*, ::after, ::before {
    box-sizing: border-box;
}

@font-face {
  font-family: 'Bebas Neue Pro';
  src: url('https://www.somgiz.com/wp-content/themes/wp-bootstrap-starter/fonts/Bebas-Neue-Pro-Regular.woff2') format('woff2');
  font-weight: 400; /* 400 це нормальна жирність (regular) */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bebas Neue Pro';
  src: url('https://www.somgiz.com/wp-content/themes/wp-bootstrap-starter/fonts/Bebas-Neue-Pro-Bold.woff2') format('woff2');
  font-weight: 700; /* 700 це жирний (bold) */
  font-style: normal;
  font-display: swap;
}

:root {
    --header-height: 150px; /* Висота хедера */
    --shadow: 0px 5px 10px 0px #0000000D;
    --radius: 3px;
}

a:hover {
    text-decoration: unset;
}

button {
    outline: none !important
}

body.sidebar-open {
    overflow: hidden;
}

.grecaptcha-badge {
    display: none;
}

/* --- Загальні стилі хедера --- */
.site-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: box-shadow 0.3s ease;

    font-family: "Manrope", sans-serif;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 1px solid transparent;
    top: 5px;
}

/* --- Десктопний хедер (ОНОВЛЕНО на CSS Grid) --- */
.header-desktop {
    display: grid;
    grid-template-columns: 1fr minmax(80px, auto) 1fr;
    align-items: center;
    max-width: 1880px;
    margin: 0 auto;
    padding: 24px 60px;
    height: var(--header-height);
    width: 100%;
    border-radius: 20px;

    background: linear-gradient(90deg, #F9F9F9 0%, #F9F9F9 100%);;
}

/* Стилі для колонок */
.header-col {
    display: flex;
    align-items: center;
}

.header-col-left {
    justify-content: flex-start;
}

.header-col-center {
    justify-content: center;
}

.header-col-center .logo-container {
    padding: 0 100px;
}

.header-col-center .logo-container a {
    display: flex;
}

.header-col-right {
    justify-content: space-between;
    gap: 30px; /* Відстань між правим меню та блоком контролю */
}

.logo-container img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.nav-left ul, .nav-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 100px;
}

.nav-left a, .nav-right a {
    font-family: Manrope;

    text-decoration: none;
    text-transform: uppercase;
    color: #334861;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}


nav ul li.current a {
    font-weight: 700;
    text-decoration: underline;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 5px;
}
.header-phone span {
    font-size: 12px;
    font-weight: 600;
    line-height: 100%;
    color: #334861;
}
.header-phone a {
    font-size: 21px;
    font-weight: 600;
    line-height: 100%;
    color: #334861;
    text-decoration: none;
}

/* --- Випадаюче меню (Загальні стилі) --- */
.dropdown-container {
    position: relative;
}

.new-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    background-color: #fff;
    border: unset;
    outline: unset;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.new-dropdown-toggle img {
    width: 92px;
    height: 38px;
    object-fit: contain;
}

.dropdown-arrow {
    color: #333;
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0;
}

.dropdown-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

.new-dropdown-menu {
    overflow: hidden;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1001;
    max-width: 150px;
    /*border: 1px solid #f0f0f0;*/
    position: absolute;
    top: calc(100% + 0px);
    right: 0;

    display: flex;
    flex-direction: column;
    gap: 16px;
    
    height: auto;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-container.active .new-dropdown-menu {
    visibility: visible;
    opacity: 1;
    max-height: 500px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.new-dropdown-menu a {
    display: block;
    color: #334861;
    text-decoration: none;
    /*white-space: nowrap;*/

    font-size: 10px;
    font-weight: 600;

    padding: 0px 16px;
    width: 100%;
}

/* --- Кнопка зовнішнього посилання --- */
.external-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-color: #fff;
    border: 1px solid #f0f0f0;
    color: #333;
    flex-shrink: 0;
}

/* --- Мобільний хедер --- */
.header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 15px;
}
.logo-container-mobile img {
    height: 50px;
    width: auto;
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
}

/* --- Сайдбар --- */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 1003;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 26px 23px;
    display: flex;
    flex-direction: column;

    overflow-y: scroll;

    font-family: "Manrope", sans-serif;
}

.mobile-sidebar.is-open {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;

    position: relative;
}

.sidebar-header .menu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
}

.sidebar-header .logo-container-sidebar a {
    display: flex;
}

.logo-container-sidebar img {
    height: 75px;
    width: auto;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.mobile-nav ul {
    list-style: none;
    padding: 28px 0;
    margin: 0;
    border-top: 1px solid #F4F4F4;
    border-bottom: 1px solid #F4F4F4;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav li {
    margin-bottom: 0;
}
.mobile-nav a {
    font-family: Manrope;

    text-decoration: none;
    text-transform: uppercase;
    color: #334861;
    font-size: 14px;
    font-weight: 600;
}

.mobile-phone {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mobile-phone span {
    font-size: 12px;
    font-weight: 600;
    color: #334861;
}
.mobile-phone a {
    font-size: 21px;
    font-weight: 600;
    color: #334861;
    text-decoration: none;

    line-height: 100%;
}

.sidebar-controls-group {
    display: flex;
    align-items: stretch;
    gap: 15px;
}

.sidebar-content-bottom {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.mobile-sidebar .dropdown-container {
    position: static;
    flex-grow: 1;
}

.mobile-sidebar .new-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding-top: 16px;
    padding-bottom: 16px;
    min-width: auto;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-sidebar .new-dropdown-menu a {
    padding: 0px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #334861;
    white-space: normal;

    text-align: left;
}

.mobile-sidebar .dropdown-container.active .new-dropdown-menu {
    box-shadow: 0px 5px 10px 0px #0000000D;
    max-width: unset;
    width: 100%;
}

.mobile-sidebar .external-link-btn {
    width: 56px;
    height: 56px;

    border: unset;
    outline: unset;
}

/* --- Оверлей --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* --- Адаптивність (Breakpoint) --- */


@media(max-width: 1750px) {
    .nav-left ul, .nav-right ul {
        gap: 60px;
    }

    .header-col-center .logo-container {
        padding: 0 50px;
    }

    .logo-container img {
        width: 85px;
        height: 85px;
    }

    .header-phone span {
        font-size: 10px;
    }

    .header-phone a {
        font-size: 16px;
    }
}

@media(max-width: 1280px) {
    .nav-left ul, .nav-right ul {
        gap: 30px;
    }

    .header-col-center .logo-container {
        padding: 0 30px;
    }

    .header-controls {
        gap: 10px;
    }

    .new-dropdown-toggle {
        gap: 5px;
        padding: 10px 5px;
    }

    .new-dropdown-toggle img {
        width: 70px;
        object-fit: contain;
    }
}

@media (max-width: 767px) {

    .site-header {
        top: 0;
    }

    .header-desktop {
        display: none;
    }
    .header-mobile {
        background-color: #fff;
        display: flex;

        padding: 15px 23px;
    }

    .menu-toggle {
        padding: 0;
    }

    .new-dropdown-toggle img {
        width: 92px;
        object-fit: contain;
    }

    .mobile-sidebar .external-link-btn {
        height: 58px;
    }
}




/* --- Загальні стилі футера --- */
.site-footer {
    background-color: #FFFFFF;
    padding: 40px 0;

    font-family: "Manrope", sans-serif;
}

.footer-container {
    max-width: 1880px;
    margin: 0 auto;
    padding: 0 60px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #E9E9E9;
}

/* --- Ліва/центральна частина --- */
.footer-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 0px;
    flex-grow: 1;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-block h4 {
    font-family: Manrope !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 100%;

    color: #334861;

    margin: 0;
}

.info-block p, .info-block a {

    font-family: Manrope !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;

    color: #334861;
    text-decoration: none;

    margin: 0;
}

.info-block a:hover {
    color: #000;
}

/* Соц. мережі */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #334861;
    color: #333;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #4D6786;
}

.social-icons svg { width: 22px; height: 22px; }

/* --- Права колонка --- */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: right;
}

.email-block .email-block-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.new-contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.new-contact-block h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 100%;

    color: #334861;

    margin: 0;
}
.new-contact-block > a {
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;

    color: #334861;
    text-decoration: none;

    margin: 0;
}
.popup-trigger {
  cursor: pointer;
  padding: 0;
    background: none;
    border: none;
    text-decoration: underline;
    
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;

    color: #334861;
    font-family: "Manrope", sans-serif;

}
.popup-trigger:hover {
    color: #000;
}


/* --- Нижня частина футера --- */
.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    font-family: Manrope;
    margin: 0;

    font-size: 14px;
    font-weight: 500;
    color: #334861;
}

.footer-bottom p span,
.footer-bottom a span {
  margin: 0 5px;
}

.footer-bottom a {

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #334861;

    margin: 0;
}
.footer-bottom a:hover { text-decoration: underline; }

/* --- Стилі для Поп-апів --- */
body.popup-visible {
    overflow: hidden;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: none; /* JS буде міняти на 'flex' */
    align-items: center;
    justify-content: center;
}
.popup.is-visible { display: flex; }

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.popup-content {
    position: relative;
    background-color: #F9F9F9;
    border-radius: 7px;
    box-shadow: 0px 6px 30px 10px rgba(0,0,0,0.1);
    padding: 50px 80px;
    min-width: 430px;

    font-family: "Manrope", sans-serif;

    display: flex;
    flex-direction: column;
    gap: 25px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;

}
.popup-close:hover { color: #000; }

.popup h4 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    line-height: 110%;

    color: #334861;

    margin: 0;
}

.phone-list a {
    display: block;
    text-align: center;
    
    font-size: 24px;
    font-weight: 600;
    line-height: 110%;

    color: #334861;

    text-decoration: none;
    padding: 8px 0;
}
.phone-list a:hover {
    color: #000;
}


/* --- АДАПТИВНІСТЬ --- */
@media (max-width: 991px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    .footer-info {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }
    .footer-contacts {
        text-align: center;
        margin-top: 20px;
    }
    .social-icons { justify-content: center; }
    
    /* Зміна порядку блоків */
    .hotline-block { order: 1; }
    .address-block { order: 2; }
    .email-block { order: 3; }
    .social-block { order: 4; }
    
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 15px;
        text-align: center;
    }

    .footer-bottom p span  {
      display: none;
    }
}

@media (max-width: 767px) {

  .site-footer {
    padding: 50px 0;
  }

    .footer-container {
        padding: 0 20px;
    }

    .footer-main {
      gap: 24px;
    }

    .footer-info {
      gap: 24px;
    }

    .footer-contacts {
      margin-top: 0;
    }

    .email-block .email-block-list {
      align-items: center;
    }

    .new-contact-block {
      align-items: center;
    }

    .new-contact-block h4,
    .info-block h4,
    .info-block p, .info-block a,
    .new-contact-block > a {
      font-size: 16px;
    }

    .popup-trigger {
      font-size: 14px;
    }

    .popup-content {
      min-width: 350px;
      padding: 30px 60px;

      gap: 10px;
    }

    .popup-content h4,
    .phone-list a {
      font-size: 16px;
    }
}