/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

:root {
    --header-transition-fast: all 0.3s ease;
    --header-transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --header-transition-opacity: opacity 0.3s ease;
    --header-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --header-shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.3);
    --header-z-static: 100;
    --header-z-fixed: 9999;
    --header-z-search: 301; /* Поднят для input form, чтобы быть выше контента (z-index: 2) */
    --header-z-mobile: 9998;
}

/* Статичная шапка */
.header--static {
    position: relative;
    max-width: 1140px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    z-index: var(--header-z-static);
    overflow: visible;
}

.header--static .header__container,
.page .header--static .header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin: 0px auto;
    gap: 40px;
}



/* Фиксированная шапка */
.header--fixed {
    background: #000;
    color: #fff;
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    z-index: var(--header-z-fixed);
    transform: translateY(calc(-100% - 20px));
    transition: var(--header-transition-smooth);
    box-shadow: var(--header-shadow-light);
    overflow: visible;
}

.admin-bar .header--fixed {
    top: 60px;
    transform: translateY(calc(-100% - 60px));
}

@media screen and (max-width: 782px) {
    .admin-bar .header--fixed {
        top: 56px;
        transform: translateY(calc(-100% - 56px));
    }
}

.header--fixed.is-visible {
    transform: translateY(0);
}

.header--fixed .header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: 40px;
    gap: 20px;
}

.header--fixed .header__search-btn,
.header--fixed .header__menu-toggle {
    color: #fff;
}

.header--fixed .header__menu-toggle span {
    background: #fff;
}

.header-nav__menu {
    margin-top: 20px;
    display: flex;
    gap: 20px 50px;
}


.header-nav--mobile .header-nav__list.header-nav__list--additional {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Logo */
.header__logo {
    flex-shrink: 0;
}
h1.header__logo{
    padding-left: 0;
}
h1.header__logo::before{
    display: none;
}


.header__logo--center {
    flex: 1;
    text-align: center;
    margin-left: -25px;
}

.header__logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    margin-right: 30px;
    transition: var(--header-transition-opacity);
}

.header__logo-link:hover,
.header__logo-link:focus,
.header__logo-link:active,
.header__logo-link:visited {
    text-decoration: none;
}

.header__logo-link:hover {
    opacity: 0.7;
}

.header__logo-text {
    font-family: 'Rainer', sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
}

.header--fixed .header__logo-img {
    width: 53px;
    height: 26px;
    margin-left: auto;
    margin-right: auto;
}

.header--fixed .header__logo-text {
    font-size: 28px;
}

@media (max-width: 1150px) {
    .header__logo-text {
        font-size: 32px;
    }

    .header--fixed .header__logo-text {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header__logo-text {
        font-size: 28px;
    }

    .header--fixed .header__logo-text {
        font-size: 20px;
    }
}

.header__logo-subtext {
    font-family: 'Panama', 'Steinbeck', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: -5px;
}

@media (max-width: 768px) {
    .header__logo-subtext {
        font-size: 12px;
    }
}

/* Текстовый логотип - основной текст в ссылке, без подчёркивания ни в каком состоянии */
.header__logo-link {
    font-family: 'Rainer', sans-serif;
    font-size: 128px;
    font-weight: 300;
    text-transform: uppercase;
    color: #000;
    letter-spacing: normal;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.header__logo-link:hover,
.header__logo-link:focus,
.header__logo-link:active,
.header__logo-link:visited {
    text-decoration: none !important;
}

/* Подпись MAG */
.header__logo-sub {
    font-family: 'Steinbeck', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    line-height: 1;
    display: block;
    margin-top: 7px;
}

@media (max-width: 768px) {
    .header__logo-link {
        font-size: 96px;
    }
    
    .header__logo-sub {
        font-size: 12px;
        margin-top: 15px;
    }
}

/* Navigation */
.header--static .header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

@media (max-width: 1150px) {
    .header--static .header__nav {
        display: none;
    }
}

.header--fixed .header__nav {
    display: none;
}

/* Right section */
.header__right {
    display: flex;
    align-items: end;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: 10px;
}


/* Partner logo */
.header__partner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Panama', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2; /* Z-index для контейнера партнерского логотипа (можно увеличить при необходимости) */
    min-height: 50px; /* Минимальная высота контейнера, даже если картинка не загружена */
}

.header__partner-text {
    color: #000;
    text-transform: uppercase;
}

.header__partner-separator {
    color: #000;
    font-weight: 700;
}

.header__partner-logo-link {
    width: auto;
    height: 50px;
    text-decoration: none;
}

.header__partner-logo-wrapper {
    width: auto;
    height: 50px;
    display: inline-block;
}

.header__partner-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Search button */
.header__search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: var(--header-transition-opacity);
}

.header__search-btn:hover {
    opacity: 0.6;
}

.header__search-btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.header__search-icon {
    width: 24px;
    height: 24px;
}

/* Menu toggle */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    width: 32px;
    height: 32px;
}

@media (max-width: 1150px) {
    .header--static .header__menu-toggle {
        display: flex;
    }
}

.header--fixed .header__menu-toggle {
    display: flex;
}

.header__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    transition: var(--header-transition-fast);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Крестик в Safari: при открытом меню центрируем два span поверх друг друга, средний убираем из потока — убирает артефакты (точки по бокам) */
.header__menu-toggle.is-active span {
    position: absolute;
    margin: 0;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 2px;
    margin-left: -12px;
    margin-top: -1px;
}

.header__menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg);
}

.header__menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.header__menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Navigation list */
.header-nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1200px) {
    .header-nav__list {
        gap: 25px;
    }
}

.header-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav a {
    font-family: 'Steinbeck', serif;
    font-size: 12px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: var(--header-transition-opacity);
    /* white-space: nowrap; */
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

/* Скрываем текст меню при открытом поиске в статичном хедере */
.header--static .header__nav-wrapper:has(.header-search:hover) .header-nav a,
.header--static .header__nav-wrapper:has(.header-search.is-open) .header-nav a {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header--fixed .header-nav a::after {
    background: #fff;
}

.header-nav a:hover::after {
    width: 100%;
}


.header-nav .current-menu-item a::after,
.header-nav .current_page_item a::after {
    width: 100%;
}

/* Mobile navigation */
.header-nav--mobile {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    height: 0;
    padding: 0px 20px 0px;
    background: #000;
    color: #fff;
    opacity: 0;
    transform: translateY(-20px); /* Меньше смещение для плавности */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: var(--header-z-mobile);
    pointer-events: none; /* Не кликабельно пока закрыто */
    visibility: hidden;
}

.admin-bar .header-nav--mobile {
    top: 90px;
}

@media screen and (max-width: 768px) {
    .admin-bar .header-nav--mobile {
        top: 116px;
    }
}

.header__nav-wrapper {
    display: flex;
    flex-direction: row;
    padding-right: 50px;
}

header-nav__menu {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    gap: 20px 70px;
}

.header-nav--mobile.is-open {
    height: auto;
    max-height: calc(100vh - 50px); /* Высота экрана минус высота хедера */
    padding: 20px 20px 30px;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    pointer-events: auto; /* Кликабельно когда открыто */
    visibility: visible;
}

/* Корректировка высоты для админ-бара */
.admin-bar .header-nav--mobile.is-open {
    top: 90px;
    max-height: calc(100vh - 90px); /* Высота экрана минус хедер и админ-бар */
}

/* Корректировка для мобильных с админ-баром */
@media (max-width: 768px) {
    .admin-bar .header-nav--mobile.is-open {
        top: 60px;
        max-height: calc(100vh - 69px);
    }
}

/* Backdrop (затемнение фона) для мобильного меню */
.header-nav--mobile::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: -1;
}

.header-nav--mobile.is-open::before {
    opacity: 1;
    pointer-events: auto;
}

/* Убеждаемся, что контейнер не мешает скроллу */
.header-nav--mobile .header-nav__container {
    height: 100%;
    overflow: visible;
}

.header-nav--mobile .header-nav__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 70px;
    margin-bottom: 20px;
    padding: 0;
}

/* Анимация появления пунктов меню */
.header-nav--mobile .header-nav__list li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav--mobile.is-open .header-nav__list li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger-эффект: каждый элемент появляется с задержкой */
.header-nav--mobile.is-open .header-nav__list li:nth-child(1) { transition-delay: 0.05s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(2) { transition-delay: 0.08s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(3) { transition-delay: 0.11s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(4) { transition-delay: 0.14s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(5) { transition-delay: 0.17s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(6) { transition-delay: 0.20s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(7) { transition-delay: 0.23s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(8) { transition-delay: 0.26s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(9) { transition-delay: 0.29s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(10) { transition-delay: 0.32s; }
.header-nav--mobile.is-open .header-nav__list li:nth-child(n+11) { transition-delay: 0.35s; }

.header-nav--mobile .header-nav__list a {
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 0;
   /* width: auto; */
    /* display: block; */
}

.header-nav--mobile .header-nav__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.header-nav--mobile a:hover::after {
    width: 100%;
}

/* Перенос перед «и» в рубриках  */
.header-nav--mobile .menu-item--break-before-and a {
    max-width: 12ch;
}

/* Search wrapper */
.header__search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: var(--header-z-search);
}

/* Header search - расширяется влево от лупы */
.header-search {
    position: absolute;
    transform: translateY(0);
    display: flex;
    right: -50px;
    align-items: center;
    justify-content: flex-end;
    background: #000;
    color: #fff;
    height: 100%;
    width: auto;
    overflow: hidden;
    z-index: var(--header-z-search);
}


.header--fixed .header-search {
    height: 40px;
    width: 40px;
    right: 0px;

}

.header--static .header-search {
    background: transparent;
    color: #000;
    border: none;
    padding: 0px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--header-z-search);
}

.header-search:hover,
.header-search.is-open {
    width: calc(85vw - 130px);
    min-width: 650px;
    max-width: 800px;
}

.header__banner {
    display: block;
}

/* Mobile banner */
.header__banner-mobile {
    display: none;
}

/* Планшет и мобилка: верхний баннер в шапке скрыт (на главной он выводится после главного поста, перед новостями) */
@media (max-width: 1150px) {
    .header--static .header__banner,
    .header--static .header__banner-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* На странице статьи (single) скрываем header-баннер — используем только ACF баннер в контенте */
    body.single .header__banner-mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-search:hover .header-search__input,
    .header-search.is-open .header-search__input {
        width: calc(100vw - 100px);
    }
}

.header-search__input {
    position: absolute;
    flex: 1;
    font-family: 'Steinbeck', sans-serif;
    font-size: 12px;
    border: none;
    border-bottom: 1px solid transparent;
    right: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    height: 24px;
    width: 0;
    overflow: hidden;
    transform: translateX(20px);
}

.header-search:hover .header-search__input,
.header-search.is-open .header-search__input {
    opacity: 1;
    padding: 8px 15px;
    border-bottom: 1px solid #000;
    width: calc(95vw - 120px);
    transform: translateX(0);
    background: inherit;
    max-width: 700px;
    margin-right: 30px;
}


.header--fixed .header-search:hover .header-search__input,
.header--fixed .header-search.is-open .header-search__input {
    border-bottom: 1px solid #fff;
    background: #000;
}


.header-search__input:focus {
    outline: none;
}

.header-search__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header--static .header-search__input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .header-search__input {
        font-size: 16px; /* 16px — чтобы iOS не зумил страницу при фокусе на input */
        padding: 8px 12px;
    }
}

.header-search__submit {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: start;
    color: inherit;
    transition: var(--header-transition-opacity);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.header--fixed .header-search__submit {
    background: #000;
}

.header-search__icon {
    width: 24px;
    height: 24px;
}

.header--fixed .header-search__icon {
    color: #fff;
}

.header--static .header-search__icon {
    color: #000;
}

.header-search__icon path {
    fill: currentColor;
}

/* Ensure icon is visible in static header */
.header--static .header-search__submit {
    color: #000;
}

.header--fixed .header-search__submit {
    color: #fff;
}

/* ==========================================================================
   MOBILE MENU SUBSCRIBE - Форма подписки в меню
   ========================================================================== */

.header-nav__subscribe {
    margin-top: 40px;
    padding-top: 20px;
    max-width: 870px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0px;
    padding-right: 0px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
}

.header-nav--mobile.is-open .header-nav__subscribe {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s; /* Появляется после пунктов меню */
}

.header-nav__subscribe-form {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.header-nav__subscribe-title {
    font-family: 'Rainer', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    min-width: 210px;
    flex-shrink: 0;
    margin: 0;
}

.header-nav__subscribe-title.header-nav__subscribe-title--mobile {
    display: none;
    font-family: 'Rainer', serif;
    font-size: 64px;
    letter-spacing: 16px;
    font-weight: normal;
    margin-bottom: 30px;
    margin-right: auto;
    margin-left: auto;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    color: #fff;
}

.header-nav__subscribe-content {
    flex: 1;
    max-width: 620px;
    margin-left: auto;
}

.header-nav__subscribe-fields {
    display: grid;
    grid-template-columns: 2fr 155px;
    gap: 0;
    margin-bottom: 15px;
}

@media (max-width: 768px) {

    .header-nav__subscribe-content {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }
}

.header-nav__subscribe-input {
    font-family: 'Steinbeck', serif;
    font-size: 14px;
    padding: 20px 20px 20px 40px;
    line-height: 1.2;
    height: 60px;
    border: 1px solid #fff;
    border-right: none;
    background: transparent;
    color: #fff;
    transition: background-color 0.2s ease;
}

.header-nav__subscribe-input::placeholder {
    color: rgba(255, 255, 255, 1);
}

.header-nav__subscribe-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.05);
}

.header-nav__subscribe-btn {
    font-family: 'Steinbeck', Georgia, serif;
    font-size: 14px;
    padding: 15px 20px;
    height: 60px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-nav__subscribe-btn:hover {
    background-color: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .header-nav__subscribe-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

.header-nav__subscribe-note {
    font-family: 'Steinbeck', Georgia, serif;
    font-size: 12px;
    line-height: 1.6;
    color: #fff;
    margin: 0;
}

.header-nav__subscribe-note a {
    color: #fff;
    text-decoration: underline;
    text-transform: none;
    font-size: 12px;
    transition: var(--header-transition-opacity);
    text-underline-offset: 3px;
}

.header-nav__subscribe-note a::after {
    display: none;
}

.header-nav__subscribe-note a:hover {
    opacity: 0.7;
}

/* ==========================================================================
   MOBILE MENU SOCIAL - Социальные сети в меню
   ========================================================================== */

.header-nav__social {
    margin-top: 30px;
    margin-bottom: 40px; /* Отступ снизу для скролла */
    max-width: 870px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0px;
    padding-right: 0px;
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
}

.header-nav--mobile.is-open .header-nav__social {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.45s; /* Появляется последним */
}




.header-nav__social-title {
    font-family: 'Rainer', serif;
    font-size: 32px;
    font-weight: 400;
    min-width: 210px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

/* «Подписаться» перед иконками — один в один как в футере (.footer-subscribe__title) */
.header-nav__social-subscribe-label {
    display: none;
    width: 100%;
    margin: 0 0 30px 0;
    font-family: 'Rainer', serif;
    font-size: 64px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: 16px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
}


@media (max-width: 768px) {
    .header-nav__social-subscribe-label {
        font-size: clamp(64px, 9vw, 64px);
        display: block;

        letter-spacing: clamp(16px, 2.5vw, 16px);
    }
}

@media (max-width: 480px) {
    .header-nav__social-subscribe-label {
        font-size: clamp(54px, 9vw, 64px);
        letter-spacing: clamp(16px, 2.5vw, 16px);
        text-indent: 0.25em;
    }
}

@media (max-width: 360px) {
    .header-nav__social-subscribe-label {
        font-size: clamp(54px, 9vw, 64px);
        letter-spacing: clamp(14px, 2.5vw, 16px);
        text-indent: 0.05em;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .header-nav__social-title {
        display: none;
    }
}


.header-nav__social .social-icons {
    flex: 1;
    max-width: 620px;
    margin-left: auto;
}

.header-nav--mobile .social-icons .social-icons__item a {
    width: 100%;
    padding: 15px 10px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-nav--mobile .social-icons .social-icons__item a::after {
    display: none;
}

.header-nav--mobile .social-icons .social-icons__item a svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Desktop and Tablet (1150px and below) */
@media (max-width: 1150px) {
    .header--static .header__container {
        gap: 20px;
    }

    .header__logo-text {
        font-size: 32px;
    }

    .header--fixed,
    .header-nav--mobile {
        max-width: calc(100% - 40px);
    }

    .header--fixed .header__logo-text {
        font-size: 24px;
    }

    .header--static .header__nav {
        display: none;
    }

    .header__right {
        gap: 0px;
    }

    .header--static .header__menu-toggle {
        display: flex;
    }

    .header-nav__list {
        gap: 25px;
    }

    .header-nav--mobile .header-nav__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 40px;
    }

    .header-search:hover,
    .header-search.is-open {
        min-width: calc(95vw - 80px);
    }

}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .header__logo-link{
        margin-right: 0px;
    }
    .admin-bar .header--fixed {
        top: 10px;
    }

    .header--static .header__container {
        padding: 15px 15px 5px;
        gap: 0px;
        margin-bottom: 0px;
        margin-top: 0;
        flex-direction: column;
    }

    .header--fixed,
    .header-nav--mobile {
        max-width: calc(100% - 30px);
    }

    .header__logo-text {
        font-size: 28px;
    }

    .header--fixed .header__logo-text {
        font-size: 20px;
    }

    .header__logo-subtext {
        font-size: 12px;
    }

    .header-nav--mobile {
        padding: 40px 20px 20px;
    }

    .header-nav--mobile .header-nav__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-nav--mobile .header-nav__list--additional {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav__menu {
        gap: 20px 35px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }

    .header-nav--mobile a {
        font-size: 12px;
    }

    .header-search:hover,
    .header-search.is-open {
        min-width: calc(95vw - 80px);
    }


    .header-search__input {
        font-size: 16px; /* 16px — чтобы iOS не зумил страницу при фокусе на input */
        padding: 8px 12px;
    }

    .header-nav__subscribe{
        margin-top: 0px;

    }
    .header-nav__subscribe-form {
        flex-direction: column;
        gap: 20px;
    }

    .header-nav__subscribe-title {
        display: none;
    }

    .header-nav__subscribe-title.header-nav__subscribe-title--mobile {
        display: block;
        letter-spacing: 12px;
        font-size: 64px;
        margin-bottom: 0px;
    }

    .header-nav__subscribe-fields {
        grid-template-columns: 2fr 106px;
    }

    .header-nav__subscribe-input {
        border-right: 1px solid #fff;
        font-size: 14px;
        padding: 12px 16px;
    }

    .header-nav__subscribe-btn {
        font-size: 14px;
        padding: 12px 6px;
    }

    .header-nav__social {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-nav__social-title {
        font-size: 20px;
        white-space: normal;
    }

    .header-nav__social .social-icons {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }

    .header__right {
        width: 100%;
        align-items: flex-start;
    }

}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {

    .header-nav__subscribe-title.header-nav__subscribe-title--mobile {
        display: block;
        letter-spacing: 12px;
        font-size: 64px;
    }

    .header-nav--mobile.is-open {
        padding: 20px 0 20px;
        max-height: calc(100vh - 20px);
    }


}
@media (max-width: 350px) {
    .header-nav__subscribe-input {
        font-size: 12px;
        padding: 10px 6px;
    }
    .header-nav__subscribe-btn {
        font-size: 12px;
        padding: 10px 6px;
    }

}

/* WordPress Admin Bar */
@media screen and (max-width: 768px) {
    .admin-bar .header-nav--mobile {
        top: 50px;
    }
}

/* ==========================================================================
   HEADER BANNER STYLES - Баннер в шапке
   ========================================================================== */

/* Баннер в статичной шапке */
.header--static .banner-full-width {
    margin: 0;
    padding: 0;
    background: transparent;
}

.header--static .banner-full-width .container {
    padding: 0;
    max-width: none;
}

.header--static .banner-full-width .banner-middle-flat {
    margin: 0;
    padding: 0;
}

.header--static .banner-full-width .banner-header--desktop {
    margin: 0;
    padding: 0;
}

/* Адаптивность для баннера в шапке */
@media (max-width: 768px) {
    .header--static .banner-full-width {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .header--static .banner-full-width {
        margin: 0;
    }
}