/* ============ TOKENS ============ */
:root {
    /* ---- Палитра 1 · Тёплый беж (по умолчанию) ---- */
    --bg: #f1ece2;
    --bg-2: #e8e1d2;
    --paper: #faf6ec;
    --ink: #1a1815;
    --ink-2: #4b463f;
    --ink-3: #8a8278;
    --line: #d8cfba;
    --gold: #b89465;
    --gold-2: #c9a96e;
    --gold-soft: rgba(184, 148, 101, 0.12);

    /* поверхности и элементы, зависящие от палитры */
    --header-bg: rgba(241, 236, 226, 0.82);
    --btn-bg: #1a1815;
    --btn-ink: #faf6ec;
    --ph-bg: #d9d3c5;
    --ph-line: #b8af9b;
    --ph-ink: #7c7464;
    --tint: rgba(26, 24, 21, 0.04);

    /* премиальный тёмно-золотой «подвал» — одинаков во всех палитрах */
    --feature-bg: #1a1815;
    --feature-ink: #faf6ec;

    --shadow-sm:
        0 1px 2px rgba(26, 24, 21, 0.04), 0 1px 1px rgba(26, 24, 21, 0.03);
    --shadow-md:
        0 12px 32px -16px rgba(26, 24, 21, 0.18),
        0 4px 12px -6px rgba(26, 24, 21, 0.08);
    --shadow-lg:
        0 30px 60px -30px rgba(26, 24, 21, 0.25),
        0 8px 24px -8px rgba(26, 24, 21, 0.1);
    --radius: 4px;
    --radius-lg: 8px;

    --t-fast: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
    --t-med: 360ms cubic-bezier(0.2, 0.7, 0.3, 1);
    --t-slow: 600ms cubic-bezier(0.2, 0.7, 0.3, 1);

    --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --font-sans:
        "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============ ПАЛИТРЫ ============ */
/* Пастельные палитры. Золото, кнопки и тёмно-золотой «подвал» (--feature-*,
   --gold-*, --btn-*, --tint) наследуются из :root и одинаковы во всех темах. */

/* Палитра 2 · Нежная сирень */
:root[data-theme="2"] {
    --bg: #ece8f4;
    --bg-2: #e1daee;
    --paper: #f8f6fc;
    --ink: #2c2636;
    --ink-2: #5b5468;
    --ink-3: #8f88a0;
    --line: #d7cee6;
    --header-bg: rgba(236, 232, 244, 0.82);
    --ph-bg: #ddd5eb;
    --ph-line: #b8aed0;
    --ph-ink: #7f7596;
}

/* Палитра 3 · Нежная фисташка */
:root[data-theme="3"] {
    --bg: #e9f1e4;
    --bg-2: #dce8d3;
    --paper: #f6faf2;
    --ink: #262e22;
    --ink-2: #515a4b;
    --ink-3: #87917e;
    --line: #cfdec4;
    --header-bg: rgba(233, 241, 228, 0.82);
    --ph-bg: #d6e4cb;
    --ph-line: #aec09f;
    --ph-ink: #74856a;
}

/* Палитра 4 · Нежная лазурь */
:root[data-theme="4"] {
    --bg: #e5eef4;
    --bg-2: #d6e4ee;
    --paper: #f4f9fc;
    --ink: #222a33;
    --ink-2: #4d5763;
    --ink-3: #828d9a;
    --line: #c8dae7;
    --header-bg: rgba(229, 238, 244, 0.82);
    --ph-bg: #cfe0ec;
    --ph-line: #a4bcd0;
    --ph-ink: #6f8395;
}

/* Палитра 5 · Нежная пудра */
:root[data-theme="5"] {
    --bg: #f5e9ec;
    --bg-2: #eedbdf;
    --paper: #fdf6f7;
    --ink: #322329;
    --ink-2: #66545b;
    --ink-3: #9c8890;
    --line: #e6cfd6;
    --header-bg: rgba(245, 233, 236, 0.82);
    --ph-bg: #efdce1;
    --ph-line: #d2aeb9;
    --ph-ink: #93747e;
}

/* ---- Палитры 6–10 · пастель с цветным акцентом и тон-в-тон «подвалом»
       (переопределяют также --gold-*, --btn-* и --feature-bg) ---- */

/* Палитра 6 · Персик и терракота */
:root[data-theme="6"] {
    --bg: #fbede3;
    --bg-2: #f4ddcb;
    --paper: #fef8f2;
    --ink: #33271f;
    --ink-2: #6a574a;
    --ink-3: #9e8b7c;
    --line: #ecd5c2;
    --gold: #bd7a55;
    --gold-2: #d08f68;
    --gold-soft: rgba(189, 122, 85, 0.14);
    --header-bg: rgba(251, 237, 227, 0.82);
    --btn-bg: #2c2018;
    --btn-ink: #fef8f2;
    --ph-bg: #f1dac8;
    --ph-line: #cda888;
    --ph-ink: #8c725c;
    --feature-bg: #2c2018;
}

/* Палитра 7 · Мята и эвкалипт */
:root[data-theme="7"] {
    --bg: #e3f1ec;
    --bg-2: #d2e7de;
    --paper: #f2faf6;
    --ink: #1f2e29;
    --ink-2: #495a54;
    --ink-3: #7e928b;
    --line: #c5ded4;
    --gold: #4f8c7b;
    --gold-2: #6aa593;
    --gold-soft: rgba(79, 140, 123, 0.14);
    --header-bg: rgba(227, 241, 236, 0.82);
    --btn-bg: #16221e;
    --btn-ink: #f2faf6;
    --ph-bg: #cfe5dc;
    --ph-line: #9dc0b3;
    --ph-ink: #6a857c;
    --feature-bg: #16221e;
}

/* Палитра 8 · Незабудка и индиго */
:root[data-theme="8"] {
    --bg: #e7eaf6;
    --bg-2: #d8ddf0;
    --paper: #f5f6fd;
    --ink: #232636;
    --ink-2: #4e5269;
    --ink-3: #82869e;
    --line: #ccd2ea;
    --gold: #6a72b0;
    --gold-2: #838bc4;
    --gold-soft: rgba(106, 114, 176, 0.14);
    --header-bg: rgba(231, 234, 246, 0.82);
    --btn-bg: #1c1e2e;
    --btn-ink: #f5f6fd;
    --ph-bg: #d6dbef;
    --ph-line: #a9b0d8;
    --ph-ink: #757ca0;
    --feature-bg: #1c1e2e;
}

/* Палитра 9 · Дымка и слива */
:root[data-theme="9"] {
    --bg: #eceaee;
    --bg-2: #dedbe3;
    --paper: #f8f7fa;
    --ink: #2a2730;
    --ink-2: #585463;
    --ink-3: #8c8896;
    --line: #d5d1db;
    --gold: #8a5e86;
    --gold-2: #a1769c;
    --gold-soft: rgba(138, 94, 134, 0.14);
    --header-bg: rgba(236, 234, 238, 0.82);
    --btn-bg: #241e29;
    --btn-ink: #f8f7fa;
    --ph-bg: #dedae4;
    --ph-line: #b6aec0;
    --ph-ink: #7e7588;
    --feature-bg: #241e29;
}

/* Палитра 10 · Лимонад и шалфей */
:root[data-theme="10"] {
    --bg: #f3f1df;
    --bg-2: #e8e4cb;
    --paper: #fbfaf0;
    --ink: #2c2c20;
    --ink-2: #595844;
    --ink-3: #8d8c72;
    --line: #dcd8bd;
    --gold: #7f9466;
    --gold-2: #97ab7e;
    --gold-soft: rgba(127, 148, 102, 0.14);
    --header-bg: rgba(243, 241, 223, 0.82);
    --btn-bg: #232318;
    --btn-ink: #fbfaf0;
    --ph-bg: #e5e2c6;
    --ph-line: #bcb78f;
    --ph-ink: #828062;
    --feature-bg: #232318;
}

/* ============ RESET ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img,
svg {
    display: block;
    max-width: 100%;
}
button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ============ LAYOUT ============ */
.wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 56px);
}
.section {
    padding: clamp(64px, 10vw, 140px) 0;
    position: relative;
}
.eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}
h1 {
    font-size: clamp(44px, 7.2vw, 96px);
    font-weight: 400;
}
h2 {
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 400;
}
h3 {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 500;
}
p {
    margin: 0;
}

.italic-accent {
    font-style: italic;
    color: var(--gold);
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 18px 0;
    transition:
        backdrop-filter var(--t-med),
        background var(--t-med),
        padding var(--t-med),
        border-color var(--t-med);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: var(--header-bg);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--line);
    padding: 12px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
}
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--feature-bg);
    display: grid;
    place-items: center;
    color: var(--gold-2);
    font-size: 22px;
    font-weight: 500;
    font-style: italic;
    position: relative;
    letter-spacing: -0.03em;
    flex: 0 0 44px;
    transition: transform var(--t-med);
}
.brand:hover .brand-mark {
    transform: rotate(-6deg);
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 110, 0.4);
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-name {
    font-size: 18px;
    letter-spacing: 0.01em;
    font-weight: 500;
}
.brand-sub {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 4px;
    font-weight: 500;
}
.nav {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink-2);
    position: relative;
    padding: 4px 0;
    transition: color var(--t-fast);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med);
}
.nav a:hover {
    color: var(--ink);
}
.nav a:hover::after {
    transform: scaleX(1);
}

.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
}
.menu-btn:hover {
    background: var(--bg-2);
}
.menu-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--ink);
}

/* mobile nav drawer */
.mnav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 100;
    padding: 100px 32px 32px;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform var(--t-med);
    pointer-events: none;
}
.mnav.open {
    transform: translateY(0);
    pointer-events: auto;
}
.mnav a {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.mnav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all var(--t-med);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-ink);
    border-color: var(--btn-bg);
}
.btn-primary:hover {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-primary .arrow {
    transition: transform var(--t-med);
}
.btn-primary:hover .arrow {
    transform: translateX(4px);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover {
    border-color: var(--ink);
    background: var(--tint);
}
.btn-wb {
    background: var(--feature-bg);
    color: var(--feature-ink);
    border-color: var(--feature-bg);
    width: 100%;
    justify-content: center;
}
.btn-wb:hover {
    background: #cb11ab;
    border-color: #cb11ab;
}

/* ============ HERO ============ */
.hero {
    padding-top: clamp(120px, 18vw, 180px);
    padding-bottom: clamp(80px, 12vw, 140px);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.hero-tag {
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 800ms 100ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.hero h1 {
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 1000ms 250ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.hero h1 .em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.hero h1 .quiet {
    display: block;
    font-size: 0.55em;
    color: var(--ink-2);
    margin-top: 0.2em;
    font-weight: 400;
    letter-spacing: -0.005em;
}
.hero-sub {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--ink-2);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1000ms 400ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 1000ms 550ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.hero-visual {
    position: relative;
    width: 100%;
    /* fallback (older iOS Safari) */
    padding-bottom: 125%; /* 4/5 */
    height: 0;
    opacity: 0;
    animation: fadeIn 1200ms 600ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@supports (aspect-ratio: 1) {
    .hero-visual {
        aspect-ratio: 4/5;
        padding-bottom: 0;
        height: auto;
    }
}
/* main placeholder */
.placeholder {
    background: var(--ph-bg);
    border: 1px dashed var(--ph-line);
    border-radius: var(--radius-lg);
    position: relative;
    display: grid;
    place-items: center;
    color: var(--ph-ink);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    overflow: hidden;
}
.placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.placeholder::after {
    content: attr(data-label);
    font-weight: 500;
}
.placeholder.has-img::after,
.product-img.has-img::after,
.modal-img.has-img::after {
    display: none;
}
.product-img.has-img,
.placeholder.has-img,
.modal-img.has-img {
    border-style: solid;
}
.hero-visual .placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}
.hero-decor {
    position: absolute;
    top: -50px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(184, 148, 101, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: -1;
}

/* hero marquee strip */
.marquee {
    margin-top: clamp(60px, 9vw, 100px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
}
.marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 38s linear infinite;
    white-space: nowrap;
}
.marquee-item {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 28px);
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 56px;
    font-weight: 400;
}
.marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.marquee-item em {
    font-style: italic;
    color: var(--gold);
}

/* ============ ABOUT ============ */
.about {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}
.about-text h2 {
    margin-bottom: 32px;
}
.about-text h2 .em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.about-text .lead {
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.55;
    color: var(--ink);
    margin-bottom: 24px;
    font-weight: 400;
    text-wrap: pretty;
}
.about-text p {
    color: var(--ink-2);
    margin-bottom: 18px;
    line-height: 1.65;
    text-wrap: pretty;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.stat {
    background: var(--paper);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background var(--t-med);
}
.stat:hover {
    background: var(--bg);
}
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(44px, 5.5vw, 64px);
    line-height: 1;
    font-weight: 400;
    color: var(--ink);
}
.stat-num sup {
    font-size: 0.4em;
    vertical-align: super;
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
    margin-left: 4px;
}
.stat-label {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.45;
    margin-top: 4px;
}

/* ============ PRINCIPLES ============ */
.principles-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 64px;
    max-width: 760px;
}
.principles-head h2 .em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.principles-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
}
.principle {
    border-top: 1px solid var(--ink);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform var(--t-slow);
}
.principle-num {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    color: var(--gold);
}
.principle-num span {
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1;
    color: var(--ink);
    font-style: normal;
    font-weight: 400;
}
.principle h3 {
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    max-width: 95%;
}
.principle p {
    color: var(--ink-2);
    line-height: 1.65;
    max-width: 95%;
    text-wrap: pretty;
}

/* ============ CATALOG ============ */
.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 64px;
}
.catalog-head .lead {
    color: var(--ink-2);
    max-width: 360px;
    line-height: 1.55;
    font-size: 15px;
}
.catalog-head h2 {
    max-width: 700px;
}
.catalog-head h2 .em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2vw, 28px) clamp(20px, 2vw, 24px);
}
.product {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition:
        transform var(--t-med),
        box-shadow var(--t-med),
        border-color var(--t-med);
    position: relative;
}
.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(184, 148, 101, 0.5);
}
.product-img {
    background: var(--ph-bg);
    border: 1px solid var(--line);
    position: relative;
    color: var(--ph-ink);
    transition: background var(--t-med);
    overflow: hidden;
    width: 100%;
    /* fallback (везде, включая старый iOS Safari) */
    padding-bottom: 133.333%;
    height: 0;
}
/* современные браузеры — переопределяем на aspect-ratio */
@supports (aspect-ratio: 1) {
    .product-img {
        aspect-ratio: 3/4;
        padding-bottom: 0;
        height: auto;
        display: grid;
        place-items: center;
    }
}
.product-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.product-img::after {
    content: attr(data-label);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.7;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.product-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--paper);
    color: var(--ink-2);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    z-index: 1;
}
.product-body {
    padding: 22px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.product-name {
    font-family: var(--font-display);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.005em;
    min-height: 2.4em;
    text-wrap: balance;
}
.product-slogan {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    line-height: 1.3;
    color: var(--gold);
    margin-top: -6px;
    text-wrap: pretty;
}
.product-props {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.product-props span {
    font-size: 11px;
    background: var(--bg-2);
    color: var(--ink-2);
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}
.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}
.product-meta {
    font-size: 12px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
}
.product-cta {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    transition:
        gap var(--t-fast),
        color var(--t-fast);
}
.product:hover .product-cta {
    gap: 10px;
    color: var(--gold);
    border-color: var(--gold);
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 21, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med);
    overflow-y: auto;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    background: var(--paper);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 960px;
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transform: translateY(20px) scale(0.98);
    transition: transform var(--t-med);
    position: relative;
    border: 2px solid var(--line);
}
.modal-img {
    flex: 0 0 46%;
    min-width: 0;
}
.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    z-index: 2;
    transition:
        background var(--t-fast),
        transform var(--t-fast);
}
.modal-close:hover {
    background: var(--bg-2);
    transform: rotate(90deg);
}
.modal-img {
    position: relative;
    min-height: 360px;
    background: var(--ph-bg);
    display: grid;
    place-items: center;
    color: var(--ph-ink);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    overflow: hidden;
    border-radius: 6px;
}
.modal-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}
.modal-img::after {
    content: attr(data-label);
    font-weight: 500;
}
/* ---- карусель фотографий ---- */
.modal-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.modal-slider::-webkit-scrollbar {
    display: none;
}
.modal-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
.modal-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 3;
    color: #1a1815;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(26, 24, 21, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px -4px rgba(26, 24, 21, 0.35);
    cursor: pointer;
    transition:
        background var(--t-fast),
        opacity var(--t-fast),
        transform var(--t-fast);
}
.modal-arrow.prev {
    left: 12px;
}
.modal-arrow.next {
    right: 12px;
}
.modal-arrow:hover {
    background: #fff;
}
.modal-arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(26, 24, 21, 0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition:
        background var(--t-fast),
        transform var(--t-fast);
}
.modal-dot.active {
    background: #fff;
    transform: scale(1.3);
}
.modal-body {
    padding: clamp(28px, 3.5vw, 44px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
}
/* состав — отдельный блок */
.modal-ingredients {
    margin-bottom: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.modal-ingredients strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.modal-ingredients p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink-2);
    text-wrap: pretty;
}
.modal-tag {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 16px;
}
.modal-name {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 10px;
    text-wrap: balance;
}
.modal-slogan {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(17px, 1.9vw, 20px);
    line-height: 1.3;
    color: var(--gold);
    margin-bottom: 18px;
    text-wrap: pretty;
}
.modal-active {
    margin-bottom: 24px;
}
.modal-active strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.modal-active ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.modal-active li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-2);
    text-wrap: pretty;
}
.modal-active li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.modal-active li b {
    color: var(--ink);
    font-weight: 600;
}
.modal-props {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
}
.modal-props span {
    font-size: 12px;
    background: var(--bg-2);
    color: var(--ink-2);
    padding: 6px 12px;
    border-radius: 999px;
}
.modal-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-2);
    margin-bottom: 24px;
    text-wrap: pretty;
}
.modal-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 24px;
    font-size: 13px;
    margin-bottom: 28px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.modal-specs dt {
    color: var(--ink-3);
    letter-spacing: 0.04em;
}
.modal-specs dd {
    color: var(--ink);
    margin: 0;
}
.modal-howto {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.55;
    margin-bottom: 24px;
}
.modal-howto strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ============ CONTACTS ============ */
.contacts {
    background: var(--feature-bg);
    color: var(--feature-ink);
}
.contacts .eyebrow {
    color: rgba(250, 246, 236, 0.6);
}
.contacts .eyebrow::before {
    background: var(--gold-2);
}
.contacts h2 {
    color: var(--feature-ink);
    margin-bottom: 32px;
}
.contacts h2 .em {
    font-style: italic;
    color: var(--gold-2);
    font-weight: 400;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}
.contacts-lead {
    font-size: clamp(17px, 1.8vw, 20px);
    color: rgba(250, 246, 236, 0.75);
    line-height: 1.55;
    max-width: 480px;
    margin-bottom: 40px;
}
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 4px;
    border-bottom: 1px solid rgba(250, 246, 236, 0.12);
    transition:
        border-color var(--t-med),
        padding var(--t-fast);
    group: contact;
}
.contact-link:hover {
    border-color: var(--gold-2);
    padding-left: 8px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-platform {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(250, 246, 236, 0.5);
}
.contact-handle {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
}
.contact-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(250, 246, 236, 0.2);
    display: grid;
    place-items: center;
    transition: all var(--t-med);
    flex: 0 0 44px;
}
.contact-link:hover .contact-arrow {
    background: var(--gold-2);
    border-color: var(--gold-2);
    color: var(--ink);
}
.contact-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform var(--t-med);
}
.contact-link:hover .contact-arrow svg {
    transform: translate(2px, -2px);
}

/* ============ FOOTER ============ */
.foot {
    background: var(--feature-bg);
    color: rgba(250, 246, 236, 0.55);
    padding: 32px 0 28px;
    border-top: 1px solid rgba(250, 246, 236, 0.1);
    font-size: 12px;
}
.foot-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============ ПЕРЕКЛЮЧАТЕЛЬ ПАЛИТР ============ */
.theme-switch {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(250, 246, 236, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}
.theme-switch-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(250, 246, 236, 0.5);
    margin-right: 4px;
}
.theme-switch-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(250, 246, 236, 0.25);
    transition:
        transform var(--t-fast),
        box-shadow var(--t-fast),
        border-color var(--t-fast);
}
.swatch:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 246, 236, 0.6);
}
.swatch[aria-pressed="true"] {
    border-color: transparent;
    box-shadow:
        0 0 0 2px var(--feature-bg),
        0 0 0 4px var(--gold-2);
    transform: translateY(-2px);
}
.swatch:focus-visible {
    outline: 2px solid var(--gold-2);
    outline-offset: 3px;
}
/* превью цвета каждой палитры */
.swatch-1 {
    background: #f1ece2;
    color: #1a1815;
}
.swatch-2 {
    background: #ece8f4;
    color: #4a4458;
}
.swatch-3 {
    background: #e9f1e4;
    color: #3a4633;
}
.swatch-4 {
    background: #e5eef4;
    color: #2f3a45;
}
.swatch-5 {
    background: #f5e9ec;
    color: #4a373d;
}
.swatch-6 {
    background: #fbede3;
    color: #8a4f30;
}
.swatch-7 {
    background: #e3f1ec;
    color: #2f6655;
}
.swatch-8 {
    background: #e7eaf6;
    color: #3b4280;
}
.swatch-9 {
    background: #eceaee;
    color: #6a4566;
}
.swatch-10 {
    background: #f3f1df;
    color: #54603a;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-12px, 8px);
    }
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 900ms cubic-bezier(0.2, 0.7, 0.3, 1),
        transform 900ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}
.reveal.d1 {
    transition-delay: 80ms;
}
.reveal.d2 {
    transition-delay: 160ms;
}
.reveal.d3 {
    transition-delay: 240ms;
}
.reveal.d4 {
    transition-delay: 320ms;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 880px) {
    .nav {
        display: none;
    }
    .menu-btn {
        display: inline-flex;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-visual {
        padding-bottom: 100%;
        max-width: 460px;
        margin: 0 auto;
    }
    @supports (aspect-ratio: 1) {
        .hero-visual {
            aspect-ratio: 1/1;
            padding-bottom: 0;
        }
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .principles-list {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .catalog-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    /* весь поп-ап прокручивается как единый «лист», а не тонкой полоской */
    .modal-overlay {
        align-items: start;
        padding: 16px;
    }
    .modal {
        flex-direction: column;
        max-width: 460px;
        height: auto;
        max-height: none;
        transform: none;
    }
    .modal-overlay.open .modal {
        transform: none;
    }
    .modal-img {
        aspect-ratio: 4 / 5;
        max-height: none;
        min-height: 0;
        flex: 0 0 auto;
    }
    .modal-body {
        flex: 0 0 auto;
        overflow: visible;
    }
    /* кнопка закрытия закреплена в углу экрана и всегда доступна при прокрутке */
    .modal-close {
        position: fixed;
        top: 22px;
        right: 22px;
        z-index: 5;
    }
}
/* ДЕСКТОП: фото в поп-апе показывается целиком в пропорции 3:4 и никогда
   не обрезается. Ради этого поп-ап при необходимости становится шире —
   ширина текстового блока (520px) при этом не меняется. */
@media (min-width: 881px) {
    .modal {
        width: auto;
        max-width: none;
        height: min(84vh, 760px, calc((100vw - 588px) / 3 * 4));
        max-height: none;
    }
    .modal-img {
        flex: 0 0 auto;
        height: 100%;
        width: auto;
        aspect-ratio: 3 / 4;
        min-height: 0;
    }
    .modal-body {
        flex: 0 0 520px;
    }
}
@media (max-width: 520px) {
    .brand-text {
        display: none;
    }
    .hero {
        padding-top: 110px;
    }
    .hero h1 {
        font-size: clamp(40px, 12vw, 56px);
    }
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .products {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-body {
        padding: 18px;
    }
    .marquee-track {
        gap: 40px;
    }
    .marquee-item {
        gap: 40px;
    }
    .stat {
        padding: 24px 22px;
    }
    .modal-body {
        padding: 24px 22px;
    }
    .modal-name {
        font-size: 24px;
    }
    .foot-inner {
        flex-direction: column;
    }
    .wrap {
        padding: 0 20px;
    }
    .section {
        padding: 60px 0;
    }
}

@media (min-width: 1200px) {
    .hero h1 {
        letter-spacing: -0.02em;
    }
}
