/* ===== БАЗОВЫЕ СТИЛИ ХЕДЕРА ===== */

.site-header {
    will-change: background;
    background: transparent;
    width: 100%;
    position: static;
    top: 0;
    left: 0;
    z-index: 90;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: "Montserrat", sans-serif;
}

.p-main .site-header {
    position: fixed;
    background: linear-gradient(
        180deg,
        rgba(37, 37, 37, 0.36) 50.05%,
        rgba(37, 37, 37, 0) 94.11%
    );
}

/* ===== СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ КРОМЕ p-main (темные иконки) ===== */
.site-header:not(.p-main .site-header) .header__nav-links a,
.site-header:not(.p-main .site-header) .dropdown-btn,
.site-header:not(.p-main .site-header) .catalog-btn,
.site-header:not(.p-main .site-header) .appointment-btn,
.site-header:not(.p-main .site-header) .sub-logo {
    color: #252525;
}

.site-header:not(.p-main .site-header) .dropdown-arrow svg path {
    fill: #252525;
}

.site-header:not(.p-main .site-header) .icon-btn {
    /* stroke: #252525; */
    filter: invert(1);
}

/* .site-header:not(.p-main .site-header) .icon-btn svg path[fill="white"] {
    fill: #252525;
} */

.site-header:not(.p-main .site-header) .catalog-btn {
    background-color: transparent;
    border-color: #a69a8b;
    color: #252525;
}

.site-header:not(.p-main .site-header) .catalog-btn svg path {
    fill: #252525;
}

.site-header:not(.p-main .site-header) .catalog-btn:hover {
    background-color: #252525;
    color: #ffffff;
}

.site-header:not(.p-main .site-header) .catalog-btn:hover svg path {
    fill: #ffffff;
}

.site-header:not(.p-main .site-header) .burger-button {
    /* background: rgba(0, 0, 0, 0.05); */
    background: transparent;
    border-color: #a69a8b;
}

.site-header:not(.p-main .site-header) .burger-button .burger-button__line {
    background-color: #252525;
}

.site-header:not(.p-main .site-header) .burger-button.open {
    border-color: #252525;
}

.site-header:not(.p-main .site-header)
    .burger-button.open
    .burger-button__line {
    background-color: #252525;
}

/* ===== СТИЛИ ДЛЯ p-main (светлые иконки) ===== */
.p-main .site-header .header__nav-links a,
.p-main .site-header .dropdown-btn,
.p-main .site-header .catalog-btn,
.p-main .site-header .appointment-btn,
.p-main .site-header .sub-logo {
    color: #ffffff;
}

.p-main .site-header .dropdown-arrow svg path {
    fill: #ffffff;
}

/* .p-main .site-header .icon-btn svg path {
    stroke: #ffffff;
}

.p-main .site-header .icon-btn svg path[fill="white"] {
    fill: #ffffff;
} */

.p-main .site-header .catalog-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.p-main .site-header .catalog-btn svg path {
    fill: #ffffff;
}

.p-main .site-header .catalog-btn:hover {
    background-color: #fff;
    opacity: 0.8;
    color: #252525;
}

.p-main .site-header .catalog-btn:hover svg path {
    fill: #252525;
}

.p-main .site-header .burger-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.p-main .site-header .burger-button .burger-button__line {
    background-color: #ffffff;
}

.p-main .site-header .burger-button.open {
    background: #fff;
    border-color: #000;
}

.p-main .site-header .burger-button.open .burger-button__line {
    background-color: #252525;
}

/* ===== СОСТОЯНИЯ ПРИ СКРОЛЛЕ ДЛЯ p-main ===== */
.p-main .site-header.header-active {
    background: #f5f5f5;
}

.site-header.burger-active {
    background: #ffffff;
}

.p-main .site-header.header-active .header__nav-links a,
.p-main .site-header.header-active .dropdown-btn,
.p-main .site-header.header-active .catalog-btn,
.p-main .site-header.header-active .appointment-btn,
.p-main .site-header.header-active .sub-logo,
.p-main .site-header.burger-active .header__nav-links a,
.p-main .site-header.burger-active .dropdown-btn,
.p-main .site-header.burger-active .catalog-btn,
.p-main .site-header.burger-active .appointment-btn,
.p-main .site-header.burger-active .sub-logo {
    color: #1a1a1a;
}
.p-main .site-header.header-active .l-header__counter {
    color: #fff;
}

.p-main .site-header.header-active .logo,
.p-main .site-header.burger-active .logo-mobile {
    filter: invert(1);
}

.p-main .site-header.header-active .dropdown-arrow svg path,
.p-main .site-header.burger-active .dropdown-arrow svg path {
    fill: #1a1a1a;
}

/* .p-main .site-header.header-active .icon-btn svg path,
.p-main .site-header.burger-active .icon-btn svg path {
    stroke: #1a1a1a;
}

.p-main .site-header.header-active .icon-btn,
.p-main .site-header.burger-active .icon-btn {
    fill: #1a1a1a;
} */

.p-main .site-header.header-active .icon-btn,
.p-main .site-header.burger-active .icon-btn {
    filter: invert(1);
}

.p-main .site-header.header-active .catalog-btn,
.p-main .site-header.burger-active .catalog-btn {
    background-color: transparent;
    border-color: #a69a8b;
    color: #252525;
}

.p-main .site-header.header-active .catalog-btn svg path,
.p-main .site-header.burger-active .catalog-btn svg path {
    fill: #252525;
}

.site-header.header-active .header-container-bottom {
    background: #fff;
}

.p-main .site-header.header-active .burger-button {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.p-main .site-header.header-active .burger-button .burger-button__line {
    background-color: #252525;
}

.p-main .site-header.header-active .burger-button.open {
    background: #252525;
    border-color: #252525;
}

.p-main .site-header.header-active .burger-button.open .burger-button__line {
    background-color: #ffffff;
}

/* ===== ВЕРХНЯЯ ЧАСТЬ ХЕДЕРА ===== */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 12px 40px;
    position: relative;
}

.header__nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.header__nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.header__nav-links a:hover {
    opacity: 0.7;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 101;
}

/* ===== ДРОПДАУН ГОРОДА (ДЕСКТОП) ===== */
.custom-dropdown {
    position: relative;
    display: inline-block;
    z-index: 102;
}

.dropdown-btn {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.dropdown-btn:hover {
    opacity: 0.8;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    min-width: 170px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s,
        visibility 0.2s;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu .b-dropdown__link {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.65rem 1.2rem;
    color: #f0f0f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 400;
    text-transform: uppercase;
}

.dropdown-menu .b-dropdown__link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ===== ИКОНКИ ===== */
.icon-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.15s,
        opacity 0.2s;
    padding: 0;
}

.icon-btn:hover {
    opacity: 0.7;
    transform: scale(1.02);
}

.icon-btn.im-popup-link {
    position: relative;
}

/* ===== НИЖНЯЯ ЧАСТЬ ХЕДЕРА ===== */
.header-bottom {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
    padding: 32px 40px;
    background: transparent;
    will-change: background;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 1823px;
    margin: 0 auto;
}

.header-container-bottom {
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    will-change: background;
}

.header-container {
    max-width: 1823px;
    margin: 0 auto;
}

.catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0 20px;
    height: 44px;
    width: fit-content;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(32px);
    background: rgba(0, 0, 0, 0.1);
    transition-duration: 0.25s;
}

.catalog-btn svg path {
    transition-duration: 0.25s;
}

.catalog-btn:hover {
    background-color: #fff;
    opacity: 0.8;
    color: #252525;
}

.catalog-btn:hover svg path {
    fill: #252525;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.p-main .logo,
.p-main .logo-mobile {
    filter: invert(0);
}

.logo-mobile,
.logo {
    filter: invert(1);
    width: 159px;
}

.sub-logo {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.appointment-btn {
    width: fit-content;
    margin-left: auto;
}

/* ===== БУРГЕР-КНОПКА ===== */
.burger-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    transition: all 0.3s ease;
}

.burger-button:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
}

.burger-button__line {
    width: 18px;
    height: 2px;
    background-color: #252525;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-button.open {
    background: #252525;
    border-color: #252525;
}

.burger-button.open .burger-button__line {
    background-color: #ffffff;
}

.burger-button.open .burger-button__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger-button.open .burger-button__line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-button.open .burger-button__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ===== БУРГЕР-МЕНЮ ===== */
.burger-menu {
    position: fixed;
    top: 168px;
    left: 0;
    width: 100%;
    height: calc(100vh - 168px);
    background-color: #fff;
    z-index: 98;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    display: flex;
    flex-direction: column;
}

.burger-menu.open {
    transform: translateX(0);
}

.burger-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    /* padding: 20px 0 0; */
}

/* ===== ДРОПДАУН ГОРОДА (БУРГЕР) ===== */
.burger-custom-dropdown {
    position: relative;
}

.burger-dropdown-btn {
    background: transparent;
    border: none;
    color: #8e7f6b;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
    text-transform: uppercase;
}

.burger-dropdown-btn:hover {
    opacity: 0.7;
}

.burger-custom-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% - 170px);
    left: 0;
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    min-width: 170px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s,
        visibility 0.2s;
    z-index: 50;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.burger-custom-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.burger-custom-dropdown .dropdown-menu button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0.65rem 1.2rem;
    color: #f0f0f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 450;
}

.burger-custom-dropdown .dropdown-menu button:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.burger-custom-dropdown .dropdown-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.burger-custom-dropdown .dropdown-arrow.open {
    transform: rotate(180deg);
}

/* ===== БУРГЕР АККОРДЕОНЫ ===== */
.burger-dropdown {
    flex: 1 0 auto;
}

.burger-dropdown__menu[data-burger-dropdown-menu="catalog"] {
    flex: 1 0 auto;
}

.burger-dropdown__menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f8f8;
}

.burger-dropdown__menu-first-step .burger-dropdown__btn {
    padding: 12px 36px;
}
.burger-dropdown__menu-first-step .burger-dropdown__item {
    padding: 12px 36px;
}

.burger-dropdown__menu-second-step .burger-dropdown__item-with-border {
    padding: 12px 52px;
}
.burger-dropdown__menu-second-step .burger-dropdown__btn {
    padding: 12px 52px;
}
.burger-dropdown__menu-second-step .burger-dropdown__item-inner {
    padding: 8px 52px;
}
.burger-dropdown__menu-second-step .burger-dropdown__item-inner:last-child {
    padding: 8px 52px 12px;
}

.burger-dropdown.open > .burger-dropdown__menu {
    max-height: 1000px;
}

.burger-dropdown__btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    line-height: 1.29;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: #252525;
}

.burger-dropdown__btn a {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.burger-dropdown__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.29;
    text-transform: uppercase;
    color: #252525;
    text-decoration: none;
}

.burger-dropdown__btn img {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.burger-dropdown.open > .burger-dropdown__btn img {
    transform: rotate(180deg);
}

.burger-dropdown__item,
.burger-dropdown__item-with-border {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.29;
    text-transform: uppercase;
    color: #252525;
    text-decoration: none;
    padding: 12px 20px;
}

.burger-partner__link {
    padding: 0;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    color: #8e7f6b;
    text-decoration: none;
}

.burger-dropdown__item-with-border,
.burger-dropdown__border {
    position: relative;
    overflow: visible;
}

.burger-dropdown__border::after,
.burger-dropdown__item-with-border::after {
    position: absolute;
    content: "";
    bottom: 0px;
    border-bottom: 1px solid #e3e1df;
    height: 1px;
    left: 50%;
    right: 50%;
    width: 100vw;
    transform: translateX(-50%);
    pointer-events: none;
}

.burger-dropdown__item-inner {
    display: block;
    padding: 12px 0;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #252525;
    text-decoration: none;
    font-family: "Inter", sans-serif;
}

/* ===== НИЖНИЙ БЛОК БУРГЕРА ===== */
.burger-bottom {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    padding: 16px 20px 40px;
    z-index: 2;
    box-shadow: 0 -1px 15px 0 rgba(0, 0, 0, 0.06);
    background: #fff;
}

/* ===== МЕГАМЕНЮ ===== */
.catalog-megamenu {
    position: fixed;
    top: 168px;
    left: 0;
    width: 100%;
    height: calc(100vh - 168px);
    background-color: transparent;
    z-index: 80;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.4s;
    overflow-y: auto;
    font-family: "Montserrat", sans-serif;
}

.catalog-megamenu.open {
    opacity: 1;
    visibility: visible;
}

.megamenu-container {
    display: flex;
    height: 100%;
    min-height: 100%;
    border-top: 1px solid #e3e1df;
}

.megamenu-left {
    width: 420px;
    background-color: #fff;
    padding: 66px 0 20px;
    flex-shrink: 0;
    position: relative;
    height: 100%;
    overflow-y: auto;
    transition: background-color 0.3s ease;
}
.megamenu-left.wedding-hover {
    background-color: #f5f5f5;
}

.megamenu-close {
    position: absolute;
    top: 0;
    left: 16px;
    cursor: pointer;
    width: 66px;
    height: 66px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.megamenu-close:hover {
    background: #fff;
    border-left: 1px solid #e3e1df;
    border-right: 1px solid #e3e1df;
}

.catalog-category__collection,
.catalog-category__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 16px 40px;
    cursor: pointer;
    transition: all 0.2s;
    color: #252525;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.13;
    text-transform: uppercase;
    text-decoration: none;
}

.catalog-category__collection:hover {
    color: #252525;
    background-color: #fff;
}

.catalog-category__collection.active {
    color: #252525;
    background-color: #fff;
}

.catalog-category__link span {
    transition: transform 0.25s;
}

.catalog-category__link:hover span {
    transform: scale(1.02);
}

.catalog__arrow-right {
    width: 18px;
}

.category-name {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.megamenu-right {
    display: none;
    flex: 1;
    overflow-y: auto;
    background-color: #ffffff;
}

.megamenu-right.wedding-active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}
.megamenu-right.wedding-fade-out {
    display: block;
    animation: fadeOut 0.4s ease forwards;
}

.submenu-content {
    animation: fadeIn 0.2s ease;
    height: 100%;
}

.submenu-layout {
    display: grid;
    grid-template-columns: 35% 65%;
    height: 100%;
    border-left: 1px solid #e3e1df;
}

.submenu-lists {
    flex: 1;
    padding: 65px 0 20px;
}

.submenu-section {
    border-top: 1px solid #e3e1df;
    padding: 16px 24px;
}

.submenu-section:last-child {
    border-bottom: 1px solid #e3e1df;
}

.submenu-section span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.29;
    text-transform: uppercase;
    color: #252525;
}

.submenu-section ul {
    list-style: none;
    margin-bottom: 0;
    font-family: "Inter", sans-serif;
}

.submenu-section li {
    margin-bottom: 10px;
}

.submenu-section ul li:last-child {
    margin-bottom: 0;
}

.submenu-section a {
    text-decoration: none;
    display: flex;
}

.submenu-section a:not([class]) {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #252525;
}

.submenu-section a:hover {
    opacity: 0.6;
}

.submenu-section__title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.29;
    text-transform: uppercase;
    color: #252525;
}

.submenu-section span {
    margin-bottom: 16px;
}

.submenu-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: calc(100dvh - 169px);
    gap: 4px;
}

.image-card {
    cursor: pointer;
    text-align: center;
    background: #000;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.image-card::after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
    mix-blend-mode: darken;
}
.image-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.image-card__img:hover {
    transform: scale(1.2);
}

.image-card__text-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
    width: 100%;
    pointer-events: none;
    z-index: 2;
}

.image-card__text {
    display: block;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin-bottom: 8px;
}

.image-card__title {
    display: block;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    font-family: "NewYork", sans-serif;
}

.megamenu-overlay {
    position: fixed;
    top: 168px;
    left: 0;
    width: 100%;
    height: calc(100% - 168px);
    background: rgba(0, 0, 0, 0.2);
    z-index: 79;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.megamenu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.burger-dropdown__padding {
    padding-top: 16px;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ===== MAIN PREVIEW ===== */
.main-preview {
    padding-top: 106px;
    min-height: 100vh;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-content {
    text-align: center;
}

.preview-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    letter-spacing: 0.2em;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (min-width: 1025px) {
    .logo-mobile {
        display: none;
    }
    .burger-button {
        display: none;
    }
}

@media (max-width: 1280px) {
    .megamenu-left {
        width: 320px;
    }
}

@media (max-width: 1024px) {
    .site-header {
        position: fixed;
    }
    .logo-area {
        display: none;
    }
    .header__nav-links {
        display: none;
    }
    .header-actions .custom-dropdown {
        display: none;
    }
    .header-top {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 10px 20px;
    }
    .logo-mobile {
        margin: 0 auto;
    }
    .header-actions {
        margin-left: auto;
    }
    .header-bottom {
        display: flex;
        justify-content: center;
        padding: 4px 20px 0;
    }
    #catalogBtn {
        display: none;
    }
    .catalog-btn {
        margin: auto;
        width: 100%;
        height: 40px;
    }
    .icon-group {
        gap: 8px;
    }
    .burger-button {
        display: flex;
    }
    .burger-menu {
        top: 108px;
        height: calc(100vh - 108px);
        height: calc(100dvh - 108px);
        padding-top: 20px;
    }

    .burger-container {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .burger-bottom {
        bottom: 0;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .catalog-megamenu {
        top: 108px;
        height: calc(100vh - 108px);
        height: calc(100dvh - 108px);
    }
    .megamenu-overlay {
        top: 109px;
        height: calc(100% - 108px);
    }
    .main-preview {
        padding-top: 108px;
        min-height: calc(100vh - 108px);
    }

    /* На мобилке все страницы имеют светлую шапку */
    .site-header {
        background: transparent;
        /* background: linear-gradient(
            180deg,
            rgba(37, 37, 37, 0.36) 50.05%,
            rgba(37, 37, 37, 0) 94.11%
        ); */
    }

    .site-header .header__nav-links a,
    .site-header .dropdown-btn,
    .site-header .catalog-btn,
    .site-header .appointment-btn,
    .site-header .sub-logo {
        color: #252525;
    }

    .site-header .dropdown-arrow svg path {
        fill: #252525;
    }

    /* .site-header .icon-btn svg path {
        stroke: #252525;
    }

    .site-header .icon-btn svg path[fill="white"] {
        fill: #252525;
    } */

    .site-header .icon-btn {
    }

    .site-header .catalog-btn {
        background-color: transparent;
        border-color: #a69a8b;
        color: #252525;
    }

    .site-header .catalog-btn svg path {
        fill: #252525;
    }

    .site-header .burger-button {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.15);
    }

    .site-header .burger-button .burger-button__line {
        background-color: #252525;
    }

    .site-header .burger-button.open {
        background: #252525;
        border-color: #252525;
    }

    .site-header .burger-button.open .burger-button__line {
        background-color: #ffffff;
    }

    .appointment-btn {
        font-size: 12px;
    }

    .appointment-btn__icon {
        width: 16px;
        height: 16px;
    }

    body.p-main {
        padding-top: 0;
    }
    body {
        padding-top: 158px;
    }
}
/* Main page news image normalization */
.p-main .b-section-news .b-news-card__img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.28;
    overflow: hidden;
}

.p-main .b-section-news .b-news-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-main .b-section-news .b-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.p-main .b-section-news .b-news-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.p-main .b-section-news .b-news-card__bottom {
    margin-top: auto;
}

/* Product page favorite button */
.p-product .b-product__head {
    gap: 24px;
}

.p-product .b-product__favourites {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    color: #252525;
    text-decoration: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.p-product .b-product__favourites .icon {
    width: 48px;
    height: 48px;
}

.p-product .b-product__favourites:hover {
    opacity: 0.65;
}

.p-product .b-product__favourites.js-act {
    color: #252525;
    transform: scale(1.04);
}

.p-product .b-product__img-wrap_video {
    cursor: default;
}

.p-product .b-product__img-wrap_video::after {
    display: none;
}

.p-product .b-product__img-wrap_video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 639px) {
    .b-categories-modal {
        overflow: hidden;
    }

    .b-categories-modal__body {
        display: flex;
        flex-direction: column;
        max-height: calc(100dvh - 24px);
        overflow: hidden;
    }

    .b-categories-modal__list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }
}

@media (max-width: 639px) {
    .p-product .b-product__head {
        align-items: flex-start;
        gap: 16px;
    }

    .p-product .b-product__favourites {
        width: 36px;
        height: 36px;
        margin-left: auto;
    }

    .p-product .b-product__favourites .icon {
        width: 28px;
        height: 28px;
    }
}

/* ===== COOKIE BANNER / KURAJE STYLE ===== */

.b-popover {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 24px;
    -webkit-transform: translate(-50%, 16px);
    -ms-transform: translate(-50%, 16px);
    transform: translate(-50%, 16px);

    width: calc(100% - 40px);
    max-width: 1040px;

    padding: 0;

    background: rgba(246, 243, 238, 0.98);
    color: #252525;

    border: 1px solid rgba(189, 174, 155, 0.75);
    border-radius: 8px;

    -webkit-box-shadow:
        14px 16px 0 rgba(189, 174, 155, 0.16),
        0 22px 60px rgba(0, 0, 0, 0.10);
    box-shadow:
        14px 16px 0 rgba(189, 174, 155, 0.16),
        0 22px 60px rgba(0, 0, 0, 0.10);

    z-index: 150;

    opacity: 0;
    visibility: hidden;

    -webkit-transition: opacity 0.25s ease, visibility 0.25s ease, -webkit-transform 0.25s ease;
    transition: opacity 0.25s ease, visibility 0.25s ease, -webkit-transform 0.25s ease;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, -webkit-transform 0.25s ease;
}

.b-popover.show {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0);
}

.b-popover__inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 32px;

    padding: 18px 24px;
}

.b-popover__text {
    margin: 0;
    max-width: 760px;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 500;

    color: #252525;
}

.b-popover__text a {
    color: #252525;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.b-popover__text a:hover {
    text-decoration: none;
}

.b-popover__accept {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;

    min-width: 116px;
    height: 40px;
    padding: 0 24px;

    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

    border: 1px solid #252525;
    border-radius: 999px;

    background: #252525;
    color: #ffffff;

    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    -webkit-transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, -webkit-transform 0.2s ease;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, -webkit-transform 0.2s ease;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
}

.b-popover__accept:hover {
    background: #a69a8b;
    border-color: #a69a8b;
    color: #ffffff;
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .b-popover {
        bottom: 12px;
        width: calc(100% - 24px);

        -webkit-box-shadow:
            8px 10px 0 rgba(189, 174, 155, 0.14),
            0 18px 44px rgba(0, 0, 0, 0.10);
        box-shadow:
            8px 10px 0 rgba(189, 174, 155, 0.14),
            0 18px 44px rgba(0, 0, 0, 0.10);
    }

    .b-popover__inner {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .b-popover__text {
        max-width: none;
        font-size: 11px;
        line-height: 1.45;
    }

    .b-popover__accept {
        width: 100%;
    }
}


/* Collection links on listing pages */
.p-products-list .b-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px 60px !important;
    max-width: 900px !important;
    margin: 0 auto 75px !important;
}

.p-products-list .b-links__wrap {
    display: contents !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    padding: 0 !important;
    text-align: center !important;
}

.p-products-list .b-links__link {
    display: inline-flex !important;
    width: auto !important;
    white-space: nowrap !important;
}

@media (max-width: 767px) {
    .p-products-list .b-links {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 0 24px !important;
        max-width: none !important;
        margin: 0 -20px 40px !important;
        padding: 0 20px 8px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .p-products-list .b-links::-webkit-scrollbar {
        display: none;
    }

    .p-products-list .b-links__wrap {
        display: contents !important;
    }

    .p-products-list .b-links__link {
        flex: 0 0 auto !important;
        font-size: 14px;
    }
}

/* About articles layout */
.b-articles__wrap_about {
    padding: 0 0 72px;
}

.b-about-stories {
    display: grid;
    gap: 56px;
    max-width: 1120px;
    margin: 0 auto;
}

.b-about-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.b-about-story__media {
    display: block;
    overflow: hidden;
    background-color: #fff;
    text-decoration: none;
}

.b-about-story__img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.b-about-story__content {
    max-width: 460px;
}

.b-about-story__title {
    margin: 0 0 18px;
    font-family: NewYork, sans-serif;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 400;
    text-transform: uppercase;
    color: #252525;
}

.b-about-story__text {
    max-width: 430px;
    margin-bottom: 24px;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(37, 37, 37, .64);
}

.b-about-story__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 48px;
    padding: 0 28px;
    background-color: #a69a8b;
    color: #fff;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .25s ease-in-out;
}

.b-about-story__link:hover {
    background-color: #8f8375;
}

@media (min-width: 768px) {
    .b-about-stories {
        gap: 72px;
    }

    .b-about-story {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
    }

    .b-about-story:nth-child(even) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .b-about-story:nth-child(even) .b-about-story__media {
        order: 2;
    }

    .b-about-story:nth-child(even) .b-about-story__content {
        order: 1;
    }

    .b-about-story:nth-child(odd) .b-about-story__content {
        justify-self: start;
    }

    .b-about-story:nth-child(even) .b-about-story__content {
        justify-self: start;
    }

    .b-about-story__title {
        font-size: 34px;
    }

    .b-about-story__img {
        height: 320px;
    }
}

@media (min-width: 1200px) {
    .b-articles__wrap_about {
        padding-bottom: 96px;
    }

    .b-about-stories {
        gap: 86px;
    }

    .b-about-story {
        gap: 72px;
    }

    .b-about-story__title {
        font-size: 38px;
    }

    .b-about-story__img {
        height: 340px;
    }
}
