/* ==========================================================================
   GOLDHOME — Premium Textile
   Stylesheet: style.css
   Author: GOLDHOME Web Team
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Variables)
   ========================================================================== */
:root {
    /* Цветовая палитра */
    --gold:          #C9A96E;
    --gold-light:    #E8D5A3;
    --gold-dark:     #A67C52;
    --gold-subtle:   rgba(201, 169, 110, 0.12);
    --dark:          #111111;
    --dark-2:        #1a1a1a;
    --dark-3:        #252525;
    --dark-4:        #333333;
    --light:         #F8F5F0;
    --light-2:       #FFFFFF;
    --muted:         #888888;
    --border:        rgba(201, 169, 110, 0.2);
    --border-light:  rgba(255, 255, 255, 0.1);

    /* Типографика */
    --font-serif:    'Playfair Display', Georgia, serif;
    --font-sans:     'Inter', system-ui, -apple-system, sans-serif;

    /* Размеры */
    --header-h:      120px;
    --container:     1240px;
    --gap:           clamp(24px, 4vw, 48px);

    /* Тени */
    --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
    --shadow-md:     0 8px 32px rgba(0,0,0,.12);
    --shadow-lg:     0 16px 64px rgba(0,0,0,.16);
    --shadow-gold:   0 8px 32px rgba(201,169,110,.25);

    /* Скругления */
    --radius-sm:     6px;
    --radius-md:     12px;
    --radius-lg:     20px;

    /* Анимации */
    --ease:          cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--dark-2);
    background: var(--light-2);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    line-height: 1.25;
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s var(--ease);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* ==========================================================================
   ДОСТУПНОСТЬ: видимый фокус только при клавиатурной навигации
   ========================================================================== */
.user-tabbing :focus,
.user-tabbing a:focus,
.user-tabbing button:focus,
.user-tabbing input:focus,
.user-tabbing textarea:focus,
.user-tabbing select:focus,
.user-tabbing [tabindex]:focus {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

:not(.user-tabbing) :focus { outline: none; }

/* Skip to content для скринридеров */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 10px 16px;
    background: var(--dark);
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Уважение настроек reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   3. UTILITIES
   ========================================================================== */

/* Контейнер */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* Секции */
.section {
    padding: clamp(64px, 8vw, 120px) 0;
}

.section--light { background: var(--light); }

.section--dark {
    background: var(--dark-2);
    color: var(--light-2);
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-label--gold { color: var(--gold); }

.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-size: clamp(28px, 3.5vw, 46px);
    color: var(--dark-2);
    margin-bottom: 20px;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.section-title--light {
    color: var(--light-2);
}

.section-title--light em {
    color: var(--gold-light);
}

.section-desc {
    font-size: 16px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   4. КНОПКИ
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: .02em;
    border-radius: var(--radius-sm);
    transition: all .25s var(--ease);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Ripple effect */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.08);
    opacity: 0;
    transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.98); }

/* Золотая кнопка */
.btn--gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(201,169,110,.3);
}
.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,169,110,.45);
}

/* Тёмная кнопка */
.btn--dark {
    background: var(--dark-2);
    color: var(--light-2);
}
.btn--dark:hover {
    background: var(--dark-3);
    transform: translateY(-2px);
}

/* Outline кнопка */
.btn--outline {
    border: 1.5px solid rgba(255,255,255,.5);
    color: var(--light-2);
    background: transparent;
}
.btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,169,110,.08);
}

/* Размеры */
.btn--sm  { padding: 10px 20px; font-size: 13px; }
.btn--md  { padding: 14px 28px; font-size: 14px; }
.btn--lg  { padding: 18px 36px; font-size: 15px; }
.btn--full { width: 100%; }

/* ==========================================================================
   5. АНИМАЦИИ (Intersection Observer)
   ========================================================================== */

/* Базовое состояние — скрыто */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* Видимое состояние */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero анимации */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .7s var(--ease) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   6. HEADER / НАВИГАЦИЯ
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}

/* Прозрачный хедер по умолчанию */
.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}

/* Хедер при скролле */
.header.scrolled {
    background: rgba(17, 17, 17, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0,0,0,.3);
    height: 68px;
}

.header.scrolled .logo__img {
    height: 86px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity .25s var(--ease), filter .25s var(--ease);
}

.logo:hover { opacity: .85; }

/* Логотип с прозрачным фоном — drop-shadow чтобы серая надпись читалась на тёмном фоне */
.logo__img {
    height: 110px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 1px 6px rgba(0,0,0,.35));
    transition: filter .25s var(--ease);
}

.logo:hover .logo__img {
    filter: drop-shadow(0 2px 12px rgba(201, 169, 110, .4));
}

/* Навигация */
.nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    border-radius: var(--radius-sm);
    letter-spacing: .02em;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--gold);
    background: rgba(201,169,110,.08);
}

.header__cta {
    margin-left: 8px;
    flex-shrink: 0;
}

/* Burger меню */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    margin-left: auto;
    padding: 4px;
}

.burger span {
    display: block;
    height: 1.5px;
    background: var(--light-2);
    border-radius: 2px;
    transition: all .3s var(--ease);
    transform-origin: left center;
}

.burger.active span:nth-child(1) { transform: rotate(42deg) scaleX(1.1); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: rotate(-42deg) scaleX(1.1); }

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-2);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 100px 40px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.mobile-menu__link {
    display: block;
    padding: 12px 24px;
    font-size: 22px;
    font-family: var(--font-serif);
    color: rgba(255,255,255,.8);
    text-align: center;
    transition: color .2s;
}

.mobile-menu__link:hover { color: var(--gold); }

.mobile-menu__cta {
    margin-top: 16px;
    width: 100%;
    max-width: 360px;
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.hero.loaded .hero__bg {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17, 17, 17, .85) 0%,
        rgba(17, 17, 17, .65) 60%,
        rgba(17, 17, 17, .4) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: var(--header-h);
    padding-bottom: 130px;
    max-width: 760px;
}

/* Лейбл-декор */
.hero__label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.hero__label-line {
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: .5;
}

/* Главный заголовок */
.hero__title {
    font-size: clamp(32px, 4.2vw, 58px);
    font-weight: 700;
    color: var(--light-2);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero__title em {
    font-style: italic;
    color: var(--gold-light);
}

.hero__subtitle {
    font-size: clamp(15px, 1.5vw, 17px);
    color: rgba(255,255,255,.72);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.75;
}

/* CTA кнопки */
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Статистика */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    padding: 0 28px;
}

.hero__stat:first-child { padding-left: 0; }

.hero__stat-num {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero__stat-label {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    letter-spacing: .05em;
    margin-top: 4px;
}

.hero__stat-divider {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,.15);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.5);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s;
}

.hero__scroll:hover { color: var(--gold); }

.hero__scroll-icon {
    width: 22px;
    height: 36px;
    border: 1.5px solid currentColor;
    border-radius: 11px;
    position: relative;
}

.hero__scroll-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    animation: scroll-bounce 1.8s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { opacity: 1; top: 6px; }
    50%       { opacity: .3; top: 16px; }
}

/* ==========================================================================
   8. О КОМПАНИИ
   ========================================================================== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about__image-wrap {
    position: relative;
}

.about__image {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-gold);
    text-align: center;
}

.about__badge-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.about__badge-text {
    font-size: 12px;
    opacity: .85;
    margin-top: 4px;
    line-height: 1.3;
}

.about__content .section-label { justify-content: flex-start; }
.about__content .section-label::before { display: none; }
.about__content .section-title { text-align: left; }

.about__text {
    color: #555;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.75;
}

.about__features {
    margin: 28px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--dark-4);
}

.about__feature-icon {
    color: var(--gold);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ==========================================================================
   9. ПРОДУКЦИЯ
   ========================================================================== */

/* Табы */
.tabs {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--dark-2);
    border-radius: var(--radius-md);
    padding: 5px;
    width: fit-content;
    margin: 0 auto 48px;
}

.tab-btn {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    border-radius: 8px;
    transition: all .25s var(--ease);
    letter-spacing: .03em;
}

.tab-btn--active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(201,169,110,.3);
}

.tab-btn:not(.tab-btn--active):hover {
    color: var(--gold);
    background: rgba(201,169,110,.08);
}

/* Контент вкладок */
.tab-content {
    display: none;
}

.tab-content--active {
    display: grid;
}

/* Сетка продуктов */
.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Карточка продукта */
.product-card {
    background: var(--light-2);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    border: 1px solid rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-card__img {
    position: relative;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.product-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,.15);
    transition: background .3s;
}

.product-card:hover .product-card__img::after {
    background: rgba(17,17,17,.05);
}

.product-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--dark-2);
    margin-bottom: 8px;
}

.product-card__desc {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
    margin-bottom: 14px;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.product-card__material {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .04em;
}

.product-card__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--gold-dark);
    white-space: nowrap;
    transition: color .2s, gap .2s;
}

.product-card__link:hover { color: var(--gold); }

/* CTA блок под продуктами */
.products__cta {
    text-align: center;
    margin-top: 48px;
    padding: 40px;
    background: var(--dark-2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.products__cta p {
    color: rgba(255,255,255,.7);
    font-size: 15px;
    max-width: 480px;
}

/* ==========================================================================
   10. ПОЧЕМУ ВЫБИРАЮТ НАС
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 32px;
    background: var(--light-2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    background: var(--gold-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card__icon svg {
    width: 26px;
    height: 26px;
    color: var(--gold);
}

.feature-card__title {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--dark-2);
    margin-bottom: 12px;
}

.feature-card__text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ==========================================================================
   11. HORECA
   ========================================================================== */
.horeca__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.horeca__content .section-label { justify-content: flex-start; }
.horeca__content .section-label::before { display: none; }
.horeca__content .section-title { text-align: left; }

.horeca__text {
    color: rgba(255,255,255,.65);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 36px;
}

.horeca__items {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
}

.horeca__item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.horeca__item-num {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    opacity: .5;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.horeca__item h4 {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--light-2);
    margin-bottom: 6px;
}

.horeca__item p {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    line-height: 1.65;
}

/* Изображение */
.horeca__image-wrap {
    position: relative;
}

.horeca__image {
    width: 100%;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.horeca__image-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    box-shadow: var(--shadow-gold);
    font-size: 14px;
    line-height: 1.4;
}

.horeca__card-icon {
    font-size: 24px;
}

.horeca__image-card strong {
    font-size: 22px;
    font-family: var(--font-serif);
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

/* ==========================================================================
   12. ГАЛЕРЕЯ
   ========================================================================== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery__item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery__img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery__item--large .gallery__img {
    min-height: 480px;
}

.gallery__img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,.2);
    transition: background .3s;
}

.gallery__img:hover::before {
    background: rgba(17,17,17,.35);
}

.gallery__caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(17,17,17,.65);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    padding: 6px 12px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: all .25s var(--ease);
}

.gallery__img:hover .gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   13. КОНТАКТЫ
   ========================================================================== */
.contact__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
}

/* Форма */
.contact__form-wrap {
    background: var(--light-2);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dark-4);
}

.form-input,
.form-select,
.form-textarea {
    padding: 13px 16px;
    font-size: 14px;
    color: var(--dark-2);
    background: var(--light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
    width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #bbb;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    background: var(--light-2);
    box-shadow: 0 0 0 3px rgba(201,169,110,.12);
}

.form-input.error,
.form-select.error {
    border-color: #e05555;
    background: #fff5f5;
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-error {
    font-size: 12px;
    color: #e05555;
    display: none;
}

.form-group.has-error .form-error { display: block; }

.form-privacy {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.form-privacy a {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* Успешная отправка */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 16px;
}

.form-success.visible { display: flex; }

.form-success__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-gold);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 24px;
}

.form-success p {
    color: var(--muted);
    font-size: 15px;
}

/* Контактная информация */
.contact-info-block {
    margin-bottom: 32px;
}

.contact-info-block__title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--dark-2);
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item__icon {
    width: 40px;
    height: 40px;
    background: var(--gold-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item__icon svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.contact-info-item__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.contact-info-item__value {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-2);
    margin-bottom: 2px;
}

a.contact-info-item__value:hover { color: var(--gold); }

.contact-info-item__note {
    font-size: 12px;
    color: var(--muted);
}

/* Карта-заглушка */
.contact__map {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--light);
    border: 1px solid rgba(0,0,0,.06);
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    text-decoration: none;
}

.contact__map:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.contact__map:hover .map-placeholder__pin {
    transform: scale(1.15);
}

.contact__map:hover .map-placeholder__link {
    background: var(--gold);
    color: #fff;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0ece6 0%, #e8e0d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.map-placeholder__pin {
    font-size: 36px;
    display: block;
    transition: transform .25s var(--ease);
}

.map-placeholder__inner span:not(.map-placeholder__pin) {
    font-size: 14px;
    color: var(--dark-4);
    line-height: 1.5;
}

.map-placeholder__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--gold-dark);
    padding: 8px 20px;
    border: 1.5px solid var(--gold);
    border-radius: 20px;
    transition: all .2s;
    margin-top: 4px;
}

.map-placeholder__link:hover {
    background: var(--gold);
    color: #fff;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.6);
    padding: 72px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__brand .logo__img {
    height: 96px;
}

.footer__brand-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 20px;
    color: rgba(255,255,255,.45);
    max-width: 280px;
}

.footer__nav-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 20px;
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav-list a {
    font-size: 14px;
    color: rgba(255,255,255,.55);
    transition: color .2s;
}

.footer__nav-list a:hover { color: var(--gold); }

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__contact-item {
    font-size: 14px;
}

.footer__contact-item a {
    color: rgba(255,255,255,.65);
    transition: color .2s;
}

.footer__contact-item a:hover { color: var(--gold); }

.footer__address {
    color: rgba(255,255,255,.4);
    margin-top: 4px;
}

.footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer__social {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

.footer__social:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   СОЦСЕТИ В СЕКЦИИ КОНТАКТОВ
   ========================================================================== */
.contact-socials {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,.07);
}

.contact-socials__title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.contact-socials__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    color: var(--dark-2);
    font-size: 13px;
    font-weight: 500;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.contact-social svg {
    width: 16px;
    height: 16px;
    color: var(--gold-dark);
    transition: color .25s var(--ease);
}

.contact-social:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

.contact-social:hover svg {
    color: #fff;
}

@media (max-width: 480px) {
    .contact-social {
        padding: 8px 12px;
        font-size: 12px;
    }
    .contact-social svg { width: 14px; height: 14px; }
}

/* Нижняя строка */
.footer__bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__copy {
    font-size: 13px;
    color: rgba(255,255,255,.3);
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    font-size: 12px;
    color: rgba(255,255,255,.3);
    transition: color .2s;
}

.footer__legal a:hover { color: var(--gold); }

/* ==========================================================================
   15. BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 50;
    width: 46px;
    height: 46px;
    background: var(--dark-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all .3s var(--ease);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    border: 1px solid rgba(201,169,110,.25);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   16. АДАПТИВНОСТЬ — TABLET (≤ 1100px)
   ========================================================================== */
@media (max-width: 1100px) {
    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer__brand {
        grid-column: span 2;
    }
}

/* ==========================================================================
   17. АДАПТИВНОСТЬ — MOBILE (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Хедер */
    :root { --header-h: 100px; }
    .nav,
    .header__cta { display: none; }
    .burger      { display: flex; }

    .header .container { padding-left: 0; padding-right: 8px; }

    .logo__img { height: 88px; }
    .header.scrolled .logo__img { height: 72px; }

    /* Мобильное меню */
    .mobile-menu__link { font-size: 18px; }

    /* Заголовки секций */
    .section-title { font-size: clamp(22px, 6vw, 34px); }
    .section-desc  { font-size: 14px; }

    /* Hero */
    .hero__content  { padding-bottom: 60px; }
    .hero__stats    { gap: 0; }
    .hero__stat     { padding: 0 16px; }
    .hero__stat:first-child { padding-left: 0; }
    .hero__actions  { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }

    /* О компании */
    .about__grid { grid-template-columns: 1fr; }
    .about__badge {
        right: 10px; bottom: -14px;
        width: 88px;  height: 88px;
    }
    .about__badge-num { font-size: 22px; }

    /* Продукция — 2 компактные колонки */
    .products__grid { grid-template-columns: repeat(2, 1fr); }

    .products__cta {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    /* Фильтр-чипсы — горизонтальный скролл */
    .product-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin-bottom: 20px;
    }
    .product-filters::-webkit-scrollbar { display: none; }

    /* Преимущества */
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card  { padding: 24px 20px; }
    .feature-card__icon { width: 44px; height: 44px; margin-bottom: 14px; }

    /* HoReCa */
    .horeca__grid { grid-template-columns: 1fr; }
    .horeca__image-wrap { order: -1; }
    .horeca__image-card { left: 10px; bottom: -14px; }

    /* Галерея */
    .gallery__grid { grid-template-columns: 1fr 1fr; }
    .gallery__item--large { grid-column: span 2; grid-row: span 1; }
    .gallery__item--large .gallery__img { min-height: 220px; }

    /* Контакты */
    .contact__grid { grid-template-columns: 1fr; }
    .form-row      { grid-template-columns: 1fr; }
    .contact-info-block__title { font-size: 18px; }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer__brand  { grid-column: span 1; }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==========================================================================
   18. АДАПТИВНОСТЬ — SMALL MOBILE (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root { --header-h: 90px; }

    .logo__img { height: 78px; }
    .header.scrolled .logo__img { height: 62px; }

    /* Заголовки */
    .section-title  { font-size: clamp(20px, 6vw, 28px); }
    .section-label  { font-size: 10px; }

    /* Hero */
    .hero__scroll   { display: none; }
    .hero__content  { padding-bottom: 40px; }

    .hero__stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        width: 100%;
    }
    .hero__stat-divider { display: none; }
    .hero__stat {
        padding: 0;
        align-items: center;
        text-align: center;
    }
    .hero__stat:first-child { padding-left: 0; }
    .hero__stat-num   { font-size: 26px; }
    .hero__stat-label { font-size: 10px; white-space: nowrap; }

    /* Кнопки */
    .btn--lg { padding: 14px 24px; font-size: 14px; }

    /* Табы */
    .tabs    { width: 100%; }
    .tab-btn { flex: 1; padding: 12px 10px; font-size: 13px; text-align: center; }

    /* Продукция */
    .products__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card--compact .product-card__img { height: 120px; }
    .product-card--compact .product-card__title { font-size: 12px; }
    .product-card__price-sm { font-size: 12px; }
    .btn-cart--icon { width: 28px; height: 28px; }
    .btn-cart--icon svg { width: 12px; height: 12px; }

    /* Преимущества */
    .features-grid { grid-template-columns: 1fr; }
    .feature-card  { padding: 20px 16px; }

    /* Галерея */
    .gallery__grid          { grid-template-columns: 1fr; }
    .gallery__item--large   { grid-column: span 1; }
    .gallery__item--large .gallery__img { min-height: 200px; }

    /* Контакты */
    .contact-info-block__title { font-size: 16px; }
    .contact-info-item__label  { font-size: 10px; }
    .contact-info-item__value  { font-size: 14px; }
}

/* ==========================================================================
   19. ПЕЧАТЬ
   ========================================================================== */
@media print {
    .header, .hero__scroll, .back-to-top { display: none; }
    .hero { min-height: auto; padding: 40px 0; }
    .hero__bg, .hero__overlay { display: none; }
    .hero__title, .hero__subtitle { color: #000; }
}

/* ==========================================================================
   20. ФИЛЬТР-ЧИПСЫ ПОДКАТЕГОРИЙ
   ========================================================================== */

.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid rgba(201, 169, 110, 0.35);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.filter-chip--active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

/* ==========================================================================
   21. КОРЗИНА И МАРКЕТПЛЕЙС
   ========================================================================== */

/* Цена и кнопка на карточке */
.product-card__price-row {
    margin: 10px 0 6px;
}

.product-card__price {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--dark-2);
}

.product-card__unit {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}

/* ── Компактные карточки ── */
.product-card--compact {
    cursor: pointer;
}

.product-card--compact .product-card__img {
    aspect-ratio: unset;
    height: 160px;
}

.product-card--compact .product-card__img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,17,17,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s;
}

.product-card--compact:hover .product-card__img-overlay {
    background: rgba(17,17,17,.35);
}

.product-card__view-hint {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .06em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.3);
}

.product-card--compact:hover .product-card__view-hint {
    opacity: 1;
    transform: translateY(0);
}

.product-card--compact .product-card__body {
    padding: 10px 12px 12px;
}

.product-card--compact .product-card__title {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card--compact .product-card__footer {
    border-top: none;
    padding-top: 0;
}

.product-card__price-sm {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-2);
}

/* Кнопка "В корзину" */
.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold-dark);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: all .22s var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-cart svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-cart:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201,169,110,.3);
}

.btn-cart.added {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: scale(1.08);
}

.btn-cart.added svg {
    animation: checkPop .3s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes checkPop {
    0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* Иконка-кнопка корзины (без текста) */
.btn-cart--icon {
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
}

.btn-cart--icon svg {
    width: 14px;
    height: 14px;
}

/* ── Модалка товара ── */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,17,17,.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.product-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    transform: scale(.95) translateY(16px);
    transition: transform .35s cubic-bezier(.34,1.3,.64,1);
    box-shadow: 0 32px 80px rgba(0,0,0,.25);
}

.product-modal-overlay.open .product-modal {
    transform: scale(1) translateY(0);
}

.product-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(4px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--dark-2);
    transition: background .2s, transform .2s;
}

.product-modal__close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.product-modal__media {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    background: linear-gradient(135deg, #f8f5f0 0%, #efe8db 100%);
}

.product-modal__img {
    flex: 1 1 auto;
    background-size: contain;
    background-origin: content-box;
    background-clip: content-box;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 0;
    position: relative;
    transition: background-image .25s ease;
    padding: 16px;
}

.product-modal__tag {
    position: absolute;
    top: 16px;
    left: 16px;
}

/* Полоска миниатюр под главным фото */
.product-modal__thumbs {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(0,0,0,.04);
    overflow-x: auto;
    scrollbar-width: thin;
}
.product-modal__thumbs::-webkit-scrollbar { height: 6px; }
.product-modal__thumbs::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 3px;
}

.product-modal__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.product-modal__thumb:hover { transform: translateY(-2px); }
.product-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-modal__thumb--active {
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(201,169,110,.3);
}

.product-modal__info {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.product-modal__subcat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.product-modal__title {
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1.25;
    color: var(--dark-2);
    margin-bottom: 16px;
}

.product-modal__desc {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-modal__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-top: 1px solid rgba(0,0,0,.07);
    border-bottom: 1px solid rgba(0,0,0,.07);
    margin-bottom: 24px;
}

.product-modal__meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.product-modal__meta-value {
    font-size: 14px;
    color: var(--dark-2);
}

.product-modal__price-row {
    margin-bottom: 20px;
}

.product-modal__price {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--dark-2);
}

.product-modal__price strong {
    color: var(--dark-2);
}

.product-modal__price span {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.product-modal__add-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.product-modal__add-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* «Запросить цену» — кнопка в модалке */
.product-modal__add-btn--request {
    background: var(--dark-2);
    color: var(--gold-light);
    border: 1px solid var(--gold);
}
.product-modal__add-btn--request:hover {
    background: var(--dark);
}

/* «Цена по запросу» — крупный текст вместо цены в модалке */
.product-modal__price--request {
    color: var(--gold);
    font-style: italic;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(18px, 2.4vw, 24px);
}

/* «Цена по запросу» — в карточке каталога */
.product-card__price-sm--request {
    color: var(--gold-dark);
    font-style: italic;
    font-weight: 500;
}

/* Подсветка ободка у «request»-карточек */
.product-card--request .product-card__img {
    border-bottom: 2px solid var(--gold-subtle);
}

/* Иконка вместо корзинки на кнопке «Запросить» */
.btn-cart--request {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-cart--request:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Плейсхолдер для отсутствующих фото в /img/ */
.product-card__img--placeholder {
    background: linear-gradient(135deg, var(--light) 0%, #efe8db 100%) !important;
    position: relative;
}
.product-card__img--placeholder::after {
    content: '🖼';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    opacity: .35;
}

/* Блок выбора размера в модалке */
.product-modal__sizes {
    margin: 4px 0 20px;
}

.product-modal__sizes-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.product-modal__sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-btn {
    padding: 7px 16px;
    border: 1.5px solid rgba(0,0,0,.15);
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-2);
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s;
}

.size-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.size-btn--active {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

@media (max-width: 640px) {
    .product-modal {
        grid-template-columns: 1fr;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        align-self: flex-end;
    }
    .product-modal__media {
        min-height: 280px;
    }
    .product-modal__img {
        min-height: 220px;
    }
    .product-modal__thumb {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }
    .product-modal__info {
        padding: 24px 20px;
    }
    .product-modal__title {
        font-size: 20px;
    }
    .product-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
}

/* Иконка корзины в хедере */
.cart-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,.75);
    transition: color .2s, background .2s;
    flex-shrink: 0;
}

.cart-icon-btn svg {
    width: 22px;
    height: 22px;
}

.cart-icon-btn:hover {
    color: var(--gold);
    background: rgba(201,169,110,.1);
}

/* Счётчик товаров */
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Оверлей */
.cart-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

.cart-overlay.active,
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Сайдбар корзины */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--light-2);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    flex-shrink: 0;
}

.cart-sidebar__title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--dark-2);
}

.cart-sidebar__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--muted);
    transition: all .2s;
}

.cart-sidebar__close svg { width: 18px; height: 18px; }

.cart-sidebar__close:hover {
    background: var(--light);
    color: var(--dark-2);
}

/* Пустая корзина */
.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    padding: 40px;
    text-align: center;
}

.cart-empty__icon { font-size: 48px; margin-bottom: 8px; }
.cart-empty p { font-size: 16px; color: var(--dark-4); }
.cart-empty span { font-size: 14px; }

/* Список товаров в корзине */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    padding: 14px;
    background: var(--light);
    border-radius: var(--radius-md);
    align-items: center;
}

.cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-2);
}

.cart-item__size {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}

.cart-item__price {
    font-size: 12px;
    color: var(--muted);
}

.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    color: var(--dark-4);
    line-height: 1;
    transition: all .2s;
}

.qty-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.qty-value {
    min-width: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.cart-item__remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    border-radius: 6px;
    transition: all .2s;
    margin-left: 4px;
}

.cart-item__remove svg { width: 14px; height: 14px; }
.cart-item__remove:hover { color: #e05555; background: #fff0f0; }

.cart-item__subtotal {
    grid-column: 1 / -1;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-dark);
}

/* Футер корзины */
.cart-sidebar__footer {
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(0,0,0,.07);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 6px;
}

.cart-total strong {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--dark-2);
}

.cart-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* ==========================================================================
   21. МОДАЛКА ЗАКАЗА
   ========================================================================== */
.order-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 202;
    width: 520px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px);
    background: var(--light-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    overflow: hidden;
}

.order-modal.open {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%);
}

.order-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    flex-shrink: 0;
}

.order-modal__header h3 {
    font-family: var(--font-serif);
    font-size: 22px;
}

.order-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    border-radius: var(--radius-sm);
    transition: all .2s;
}

.order-modal__close svg { width: 18px; height: 18px; }
.order-modal__close:hover { background: var(--light); color: var(--dark-2); }

.order-modal__body {
    overflow-y: auto;
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Состав заказа */
.order-summary {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-summary__title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.order-summary__item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--dark-4);
    gap: 12px;
}

.order-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: var(--dark-2);
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,.08);
    margin-top: 4px;
}

/* Форма в модалке */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Успешная отправка заказа */
.order-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 20px 0;
}

.order-success__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-gold);
}

.order-success h4 {
    font-family: var(--font-serif);
    font-size: 22px;
}

.order-success p {
    font-size: 14px;
    color: var(--muted);
    max-width: 320px;
    line-height: 1.6;
}

/* Адаптив корзины */
@media (max-width: 480px) {
    .cart-sidebar { width: 100vw; }
    .cart-icon-btn { display: flex; }
}

/* ==========================================================================
   22. АНИМАЦИИ КОРЗИНЫ
   ========================================================================== */

/* Летящий шарик */
.fly-dot {
    position: fixed;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 35% 35%, #E8D5A3, var(--gold-dark));
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 12px rgba(201, 169, 110, 0.7), 0 0 4px rgba(201, 169, 110, 0.4);
}

/* Отскок иконки корзины при попадании шарика */
@keyframes cartBounce {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.4) rotate(-8deg); }
    55%  { transform: scale(0.88) rotate(4deg); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cartBounce 0.45s var(--ease-spring);
}

/* Pop счётчика */
@keyframes countPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.cart-count.pop {
    animation: countPop 0.35s var(--ease-spring);
}

/* Тост-уведомление */
.cart-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--dark-2);
    color: rgba(255,255,255,.9);
    padding: 12px 22px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 500;
    z-index: 5000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    white-space: nowrap;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    opacity: 0;
    border: 1px solid rgba(201,169,110,.2);
}

.cart-toast--show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cart-toast__check {
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
}

/* ==========================================================================
   LANG SWITCHER
   ========================================================================== */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 6px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--gold);
}

.lang-chevron {
    width: 10px;
    height: 6px;
    transition: transform .2s;
    flex-shrink: 0;
}

.lang-btn.active .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    background: #222;
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 8px;
    overflow: hidden;
    z-index: 2000;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.lang-dropdown.open {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.lang-option:hover {
    background: rgba(201, 169, 110, 0.12);
    color: var(--gold);
}

.lang-option--active {
    color: var(--gold);
    background: rgba(201, 169, 110, 0.08);
}

@media (max-width: 480px) {
    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
}
