/* Шапка сайту — один модуль на весь сайт (27.10.2026), як і підвал (site-footer-20261027.css).
   Розмітка — resources/views/public/sublayouts/header.blade.php: корпоративні сторінки
   вставляють її напряму, каталог (Nuxt) бере готовий HTML з /api/layout/header.
   Поведінка — /scripts/site-header-20261027.js. Обидва файли підключає сама розмітка.

   - Вигляд — корпоративної шапки: білий рядок 72 px (лого, пошук, телефон, мова, кнопки)
     і темна смуга меню 40 px; до 1023 px — рядок 72 px з бургером.
   - Шапка липка (sticky), а не fixed: місце під себе займає сама, тож сторінкам не треба
     відступу зверху під її висоту (раніше main{margin-top:112px} і padding у v-main).
   - Розміри лише в px: у корпоративній частині 1rem = 10px, у каталозі 16px.
   - Усі правила з .site-header на початку: styles.css ставить кожному елементу свій шрифт
     і крапки в li::before, Vuetify — відступи й кольори для ul, p, a (0,1,1).
   - CSS кешується на рік: після кожної зміни — нова адреса (?v=N) в header.blade.php.
   - Шрифти — відносними шляхами (../fonts): на деві сайт живе в підтеці /irbis/. */

@font-face {
    font-family: "Site Header";
    src: url(../fonts/proximanova/ProximaNova-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Site Header";
    src: url(../fonts/proximanova/ProximaNova-Semibold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Site Header";
    src: url(../fonts/proximanova/ProximaNova-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---- Основа й скидання чужих стилів ---------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 0 10px 0 #a3a3a3;
    color: #181d27;
    font-family: "Site Header", "ProximaNova-Regular", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: normal;
    text-align: left;
}

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

.site-header * {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.site-header p,
.site-header ul,
.site-header li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header li {
    position: static;
    width: auto;
    max-width: none;
}

.site-header li::before {
    content: none;
    display: none;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

.site-header img,
.site-header svg {
    display: block;
    max-width: none;
    margin: 0;
}

/* styles.css: svg { width: 2.3rem; height: 2.3rem } — усі значки шапки 20×20. */
.site-header .site-header__search-icon,
.site-header .site-header__lang-current svg,
.site-header .site-header__mobile-toggle svg {
    width: 20px;
    height: 20px;
}

.site-header button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.site-header [hidden] {
    display: none !important;
}

/* ---- Рядок промоакції (якщо задано в налаштуваннях) ------------------ */

.site-header .site-header__promo {
    padding: 6px 0;
    background: #d0ef6b;
    color: #0a0a3a;
    font-size: 14px;
    line-height: 18px;
}

/* ---- Верхній рядок ---------------------------------------------------- */

.site-header .site-header__top {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
    padding: 0 48px;
}

.site-header .site-header__logo {
    flex-shrink: 0;
}

.site-header .site-header__logo img {
    width: 145px;
    height: 40px;
}

.site-header .site-header__search {
    position: relative;
    flex: 0 1 227px;
    min-width: 0;
    margin: 0 auto 0 0;
}

.site-header .site-header__search-field {
    position: relative;
    display: block;
}

.site-header .site-header__search-icon {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.site-header .site-header__search-input {
    display: block;
    box-sizing: border-box; /* normalize ставить input[type=search] content-box (0,1,1) */
    width: 100%;
    height: 44px !important; /* styles.css: input { height: auto !important } */
    margin: 0;
    padding: 10px 14px 10px 44px;
    border: 1px solid #d5d7da;
    border-radius: 8px;
    outline: none;
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
    color: #000;
    font-size: 16px;
    line-height: 24px;
    -webkit-appearance: none;
    appearance: none;
}

.site-header .site-header__search-input:focus {
    border-color: #2f37dd;
}

.site-header .site-header__search-input::placeholder {
    color: #717680;
    opacity: 1;
}

.site-header .site-header__search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.site-header .site-header__phone {
    flex-shrink: 0;
    color: #535862;
    font-size: 22px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 1.2px;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.site-header .site-header__phone:hover {
    color: #2f37dd;
}

.site-header .site-header__lang {
    position: relative;
    flex-shrink: 0;
}

.site-header .site-header__lang-current {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    color: #535862;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.site-header .site-header__lang-menu {
    left: 50%;
    min-width: 72px;
    padding: 4px;
    border-radius: 8px;
    background: #f4f7fb;
    box-shadow: 0 6px 14px 2px rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
}

.site-header .site-header__lang-menu a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    color: #535862;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-align: center;
}

.site-header .site-header__lang-menu a:hover,
.site-header .site-header__lang-menu a[aria-current] {
    color: #2f37dd;
}

.site-header .site-header__btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: #2f37dd;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.2px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.site-header .site-header__btn:hover {
    background: #1f27b8;
    color: #fff;
}

.site-header .site-header__btn-short {
    display: none;
}

.site-header .site-header__burger {
    display: none;
}

/* ---- Випадні панелі (меню, мова) ------------------------------------- */

.site-header .site-header__drop-host {
    position: relative;
}

.site-header .site-header__drop {
    position: absolute;
    top: 100%;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s, visibility 0s linear 0.2s;
}

/* Невидимий місток між пунктом і панеллю, щоб панель не зникала, поки ведеш мишу. */
.site-header .site-header__drop::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    height: 12px;
}

.site-header .site-header__lang-menu {
    top: calc(100% + 8px);
}

@media (hover: hover) {
    .site-header .site-header__drop-host:hover > .site-header__drop {
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
    }
}

.site-header .site-header__drop-host:focus-within > .site-header__drop,
.site-header .site-header__drop-host.is-open > .site-header__drop {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* ---- Смуга меню -------------------------------------------------------- */

.site-header .site-header__nav {
    background: #0a0a3a;
}

.site-header .site-header__nav-list {
    display: flex;
    justify-content: center;
    gap: 48px;
    height: 40px;
    padding: 0 48px;
}

.site-header .site-header__nav-item {
    display: flex;
    align-items: center;
}

.site-header .site-header__nav-link {
    color: #f3f3f3;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.2px;
    white-space: nowrap;
    transition: color 0.2s;
}

.site-header .site-header__nav-link:hover,
.site-header .site-header__drop-host:hover > .site-header__nav-link,
.site-header .site-header__nav-link.is-current {
    color: #d0ef6b;
}

.site-header .site-header__nav .site-header__drop {
    left: -16px;
    width: 300px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 16px -4px rgba(10, 13, 18, 0.08), 0 4px 6px -2px rgba(10, 13, 18, 0.03), 0 0 0 1px rgba(10, 13, 18, 0.04);
}

/* Довгі списки (Продукція, міста) — двома колонками, щоб панель не була вищою за екран. */
.site-header .site-header__nav .site-header__drop--wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4px;
    width: 560px;
}

/* Три останні пункти — панель вирівняна по правому краю, щоб не вилазила за екран. */
.site-header .site-header__nav-item:nth-last-child(-n+3) > .site-header__drop {
    right: -16px;
    left: auto;
}

.site-header .site-header__nav .site-header__drop a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #0a0a3a;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    transition: background-color 0.15s, color 0.15s;
}

.site-header .site-header__nav .site-header__drop a:hover {
    background: #f4f7fb;
    color: #2f37dd;
}

.site-header .site-header__drop--cities li,
.site-header .site-header__mobile-sub--cities li {
    padding: 8px 12px;
}

.site-header .site-header__drop--cities span,
.site-header .site-header__mobile-sub--cities span {
    display: block;
    color: #535862;
    font-size: 14px;
    line-height: 18px;
}

.site-header .site-header__nav .site-header__drop--cities a,
.site-header .site-header__mobile-sub--cities a {
    display: inline-block;
    padding: 0;
    color: #2f37dd;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
}

.site-header .site-header__nav .site-header__drop--cities a:hover {
    background: none;
    text-decoration: underline;
}

/* ---- Підказки пошуку --------------------------------------------------- */

.site-header .site-header__search-result {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: max(100%, 480px);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 16px -4px rgba(10, 13, 18, 0.08), 0 4px 6px -2px rgba(10, 13, 18, 0.03), 0 0 0 1px rgba(10, 13, 18, 0.04);
}

.site-header .site-header__search-list {
    padding: 8px 0;
}

.site-header .site-header__search-item {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 16px;
    padding: 10px 20px;
    color: #181d27;
    font-size: 14px;
    line-height: 18px;
    transition: background-color 0.15s;
}

.site-header .site-header__search-item:hover,
.site-header .site-header__search-item:focus-visible {
    background: #f4f7fb;
    outline: none;
}

.site-header .site-header__search-item span:first-child {
    color: #535862;
}

.site-header .site-header__search-item span:nth-child(2) {
    font-weight: 700;
}

.site-header .site-header__search-item span:last-child {
    color: #717680;
    text-align: right;
    white-space: nowrap;
}

.site-header .site-header__search-all {
    display: block;
    padding: 14px 20px;
    background: #eef0fd;
    color: #2f37dd;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Спливашка «перейти на українську» (російська версія) ------------ */

.site-header .site-header__ru-popup {
    position: absolute;
    top: calc(100% + 13px);
    right: 16px;
    z-index: 30;
    width: 508px;
    max-width: calc(100% - 32px);
    padding: 20px 16px;
    border: 1px solid #99c1ec;
    background: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.site-header .site-header__ru-popup.is-open {
    opacity: 1;
}

.site-header .site-header__ru-popup p {
    margin-bottom: 16px;
    color: #181d27;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.site-header .site-header__ru-popup div {
    display: flex;
    gap: 12px;
}

.site-header .site-header__ru-popup-close {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #2f37dd;
    border-radius: 8px;
    color: #2f37dd;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* ---- Мобільне меню (на десктопі приховане) ---------------------------- */

.site-header .site-header__mobile {
    display: none;
}

/* ---- 1024–1279: менші шрифти й короткі назви кнопок ------------------- */

@media (max-width: 1279px) {
    .site-header .site-header__top {
        gap: 20px;
        padding: 0 24px;
    }

    .site-header .site-header__search {
        flex-basis: 220px;
    }

    .site-header .site-header__phone {
        font-size: 18px;
        letter-spacing: 0.8px;
    }

    .site-header .site-header__lang-current {
        font-size: 16px;
    }

    .site-header .site-header__btn {
        font-size: 16px;
        letter-spacing: 0.8px;
    }

    .site-header .site-header__top .site-header__btn-long {
        display: none;
    }

    .site-header .site-header__top .site-header__btn-short {
        display: inline;
    }

    .site-header .site-header__nav-list {
        gap: 28px;
        padding: 0 24px;
    }

    .site-header .site-header__nav-link {
        font-size: 16px;
        letter-spacing: 0.8px;
    }
}

/* ---- До 1023: лого, пошук, бургер; меню відкривається на весь екран ---- */

@media (max-width: 1023px) {
    .site-header .site-header__top {
        gap: 16px;
        padding: 0 12px 0 16px;
    }

    .site-header .site-header__logo img {
        width: 80px;
        height: 22px;
    }

    .site-header .site-header__search {
        position: static;
        flex: 1 1 auto;
        margin: 0;
    }

    /* Форма без position: підказки рахуються від самої шапки — на всю ширину під нею. */
    .site-header .site-header__search-result {
        top: 100%;
        right: 0;
        width: auto;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        border-radius: 0 0 12px 12px;
    }

    .site-header .site-header__search-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        padding: 10px 16px;
    }

    .site-header .site-header__search-item span:first-child {
        grid-column: 1 / -1;
    }

    .site-header .site-header__top > .site-header__phone,
    .site-header .site-header__lang,
    .site-header .site-header__top > .site-header__btn,
    .site-header .site-header__nav {
        display: none;
    }

    .site-header .site-header__burger {
        position: relative;
        display: inline-flex;
        flex-direction: column;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 40px;
        height: 40px;
    }

    .site-header .site-header__burger span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #414651;
        transition: transform 0.2s, opacity 0.2s;
    }

    .site-header.is-menu-open .site-header__burger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.is-menu-open .site-header__burger span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-menu-open .site-header__burger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-header .site-header__mobile {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        height: calc(100vh - 72px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 24px 16px 32px;
        border-top: 1px solid #e9eaeb;
        background: #fff;
    }

    .site-header.is-menu-open .site-header__mobile {
        display: block;
    }

    .site-header .site-header__mobile-btns {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
    }

    .site-header .site-header__mobile-btns .site-header__btn {
        flex: 1 1 0;
        height: 44px;
        padding: 0 8px;
        font-size: 16px;
        letter-spacing: 0.6px;
    }

    .site-header .site-header__mobile-toggle,
    .site-header .site-header__mobile-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 8px;
        color: #181d27;
        font-size: 18px;
        font-weight: 700;
        line-height: 24px;
        text-align: left;
    }

    .site-header .site-header__mobile-toggle.is-current,
    .site-header .site-header__mobile-link.is-current {
        color: #2f37dd;
    }

    .site-header .site-header__mobile-toggle svg {
        flex-shrink: 0;
        transition: transform 0.2s;
    }

    .site-header .site-header__mobile-toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .site-header .site-header__mobile-sub {
        display: none;
        margin: 0 0 8px;
        padding: 8px;
        border: 1px solid #e9eaeb;
        border-radius: 12px;
    }

    .site-header .site-header__mobile-toggle[aria-expanded="true"] + .site-header__mobile-sub {
        display: block;
    }

    .site-header .site-header__mobile-sub a {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        color: #0a0a3a;
        font-size: 16px;
        font-weight: 600;
        line-height: 22px;
    }

    .site-header .site-header__mobile-sub a:active {
        background: #f4f7fb;
    }

    .site-header .site-header__mobile-sub--cities li:first-child a {
        color: #0a0a3a;
        font-weight: 600;
    }

    .site-header .site-header__mobile-foot {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 16px;
        padding: 16px 8px 0;
        border-top: 1px solid #e9eaeb;
    }

    .site-header .site-header__mobile-foot .site-header__phone {
        font-size: 20px;
    }

    .site-header .site-header__mobile-lang {
        display: flex;
        gap: 4px;
    }

    .site-header .site-header__mobile-lang a {
        display: block;
        padding: 8px 10px;
        border-radius: 6px;
        color: #535862;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .site-header .site-header__mobile-lang a[aria-current] {
        background: #f4f7fb;
        color: #2f37dd;
    }

    .site-header .site-header__ru-popup p {
        font-size: 16px;
        line-height: 22px;
    }
}

/* Відкрите мобільне меню: сторінка під ним не прокручується. */
html.site-header-locked,
html.site-header-locked body {
    overflow: hidden;
}
