/* Дикий Люкс — главная: блок акции (первый экран) и протокол-цикл.
   Подключается только на index.html, после инлайн-стилей страницы. */

/* =============================================
   ACTION / OFFER — витрина с одним товаром
   ============================================= */
.offer {
    --offer-ink: #F2F1ED;
    --offer-muted: rgba(242, 241, 237, 0.62);
    --offer-gold: #C9A04E;
    --offer-navy: #14234A;
    --px: 0;   /* наклон курсора, −1…1 — задаёт home.js */
    --py: 0;
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(92px, 12.5vh, 128px) 4.58vw clamp(36px, 6vh, 64px);
    background: radial-gradient(120% 95% at 74% 42%, #22396F 0%, #172A57 46%, #0F1B3B 100%);
    color: var(--offer-ink);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
}
/* мелкое зерно — как бумага этикетки; статично, ничего не стоит */
.offer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.offer-light {
    position: absolute;
    z-index: 0;
    width: 62vw;
    height: 62vw;
    right: -6vw;
    top: 50%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(201, 160, 78, 0.26), rgba(201, 160, 78, 0.08) 55%, transparent 72%);
    transform: translate(calc(var(--px) * 18px), calc(-50% + var(--py) * 14px));
    animation: offerBreath 9s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes offerBreath {
    from { opacity: 0.75; scale: 0.96; }
    to   { opacity: 1;    scale: 1.05; }
}

.offer-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: 3vw;
    align-items: stretch;
}

/* ---------- текстовая колонка ---------- */
.offer-copy {
    position: relative;
    z-index: 1;   /* ниже витрины: длинное название уходит «за стекло» */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}
.offer-flag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin: 0 0 auto;
    padding: 9px 16px 9px 14px;
    border: 1px solid rgba(242, 241, 237, 0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--offer-ink);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.offer-until { color: var(--offer-muted); font-weight: 400; }
.offer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--offer-gold);
    box-shadow: 0 0 0 0 rgba(201, 160, 78, 0.6);
    animation: offerPulse 2.4s ease-out infinite;
}
@keyframes offerPulse {
    0%   { box-shadow: 0 0 0 0 rgba(201, 160, 78, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(201, 160, 78, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 160, 78, 0); }
}

.offer-name {
    margin: 4vh 0 3.2vh;
    font-weight: 200;
    /* строка целиком помещается в колонку текста (≈0,6em на заглавную букву Inter 200) */
    font-size: min(10.2vw, calc(80vw / var(--chars, 10)), 19vh);
    line-height: 0.86;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--offer-ink);
    transform: translate(calc(var(--px) * -10px), calc(var(--py) * -6px));
    transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.offer-line {
    display: block;
    overflow: hidden;
    /* маска не должна резать акценты (É) и хвосты букв */
    padding: 0.16em 0 0.04em;
    margin-top: -0.16em;
}
.offer-line > span { display: inline-block; }

.offer-lead {
    max-width: 34em;
    margin: 0 0 3.4vh;
    font-size: clamp(15px, 1.12vw, 18px);
    line-height: 1.55;
    color: var(--offer-muted);
}

.offer-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 26px;
}
.offer-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--offer-ink);
    color: var(--offer-navy);
    font: 500 14px/1 'Inter', sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.offer-cta::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.offer-cta:hover { transform: translateY(-2px); background: #FFFFFF; }
.offer-cta:active { transform: translateY(0) scale(0.98); }
.offer-cta.is-added { background: var(--offer-gold); color: var(--offer-navy); }
.offer-more {
    color: var(--offer-ink);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 241, 237, 0.35);
    padding-bottom: 3px;
    transition: border-color 0.25s ease;
}
.offer-more:hover { border-color: var(--offer-ink); }
.offer-cta:focus-visible,
.offer-more:focus-visible,
.offer-arch:focus-visible {
    outline: 2px solid var(--offer-gold);
    outline-offset: 4px;
}

.offer-note {
    min-height: 1.4em;
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--offer-gold);
}
.offer-note:empty { margin-top: 0; min-height: 0; }

.offer-timer {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 3vh;
    padding-top: 2.2vh;
    border-top: 1px solid rgba(242, 241, 237, 0.14);
    max-width: 34em;
}
.offer-timer[hidden] { display: none; }
.offer-timer-label { font-size: 13px; color: var(--offer-muted); }
.offer-timer-value {
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.offer-timer-value b { font-weight: 300; color: var(--offer-muted); margin: 0 2px 0 1px; }

/* ---------- витрина ---------- */
.offer-stage {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
}
/* без процентов: колонка витрины всегда ~40vw, а длина без % нужна в clip-path ленты */
.offer-stage { --arch-w: min(33vw, 54vh); }
.offer-arch {
    --r: 50% 50% 18px 18px / 36% 36% 18px 18px;
    position: relative;
    display: block;
    width: var(--arch-w);
    aspect-ratio: 0.72;
    border-radius: var(--r);
    background:
        radial-gradient(70% 46% at 50% 30%, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, #F7F5F0 0%, #EEEAE1 100%);
    box-shadow:
        0 70px 120px -60px rgba(5, 10, 30, 0.85),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    overflow: hidden;
    transform: translate(calc(var(--px) * 10px), calc(var(--py) * 8px));
    transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
/* тонкая внутренняя рама — как у витринного стекла */
.offer-arch::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50% 50% 10px 10px / 34% 34% 10px 10px;
    border: 1px solid rgba(20, 35, 74, 0.08);
    pointer-events: none;
    z-index: 1;
}
/* мягкая тень товара на «полке» */
.offer-arch::after {
    content: '';
    position: absolute;
    left: 24%;
    right: 24%;
    bottom: 7.5%;
    height: 5%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(20, 35, 74, 0.22), transparent);
    filter: blur(6px);
    z-index: 0;
}
.offer-product {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 4%;
    width: 104%;
    height: auto;
    mix-blend-mode: multiply;    /* белый фон фото сливается со стеклом витрины */
    transform: translate(calc(-50% + var(--px) * 6px), calc(var(--py) * 5px));
    transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.offer-sheen {
    position: absolute;
    z-index: 2;
    inset: -30% -60%;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.85) 49%, rgba(255, 246, 222, 0.55) 51%, transparent 58%);
    mix-blend-mode: soft-light;
    transform: translateX(-60%);
    pointer-events: none;
}

.offer-seal {
    position: absolute;
    z-index: 3;
    left: max(0px, calc(50% - min(16.5vw, 27vh) - clamp(46px, 4.4vw, 70px)));
    top: 10%;
    width: clamp(112px, 10vw, 158px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--offer-gold);
    color: var(--offer-navy);
    display: grid;
    place-items: center;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
    transform: translate(calc(var(--px) * 22px), calc(var(--py) * 16px));
    transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.offer-seal svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: offerSpin 32s linear infinite;
}
.offer-seal text {
    fill: currentColor;
    font: 500 15px 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.offer-seal-value {
    position: relative;
    font-weight: 300;
    font-size: clamp(26px, 2.5vw, 40px);
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}
@keyframes offerSpin { to { transform: rotate(360deg); } }

.offer-price {
    position: absolute;
    z-index: 3;
    right: max(0px, calc(50% - min(16.5vw, 27vh) - 4vw));
    bottom: 13%;
    display: grid;
    justify-items: start;
    gap: 2px;
    padding: 16px 20px 15px;
    border-radius: 18px;
    background: rgba(15, 27, 59, 0.82);
    border: 1px solid rgba(242, 241, 237, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
    font-variant-numeric: tabular-nums;
    transform: translate(calc(var(--px) * 16px), calc(var(--py) * 12px));
    transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.offer-price-old {
    position: relative;
    font-size: 14px;
    color: var(--offer-muted);
}
.offer-price-old s { text-decoration: none; }
.offer-price-old::after {   /* зачёркивание рисуется анимацией */
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 52%;
    height: 1px;
    background: var(--offer-gold);
    transform-origin: left center;
}
.offer-price-new {
    font-size: clamp(26px, 2.3vw, 36px);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.1;
    white-space: nowrap;
}
.offer-price-cond { font-size: 12px; color: var(--offer-gold); white-space: nowrap; }

/* ---------- несколько плашек: лежат стопкой, видна одна ---------- */
.offer { flex-direction: column; }
.offer-slides {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
}
.offer-slide {
    grid-area: 1 / 1;
    display: flex;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.offer-slide.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.6s ease;
}
.offer-slide > .offer-grid { flex: 1; }

.offer-nav {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: clamp(20px, 3.4vh, 34px);
}
.offer-tabs { flex: 1; display: flex; gap: 18px; min-width: 0; }
.offer-tab {
    flex: 1;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 0 0 2px;
    border: 0;
    background: none;
    color: var(--offer-muted);
    font: 400 13px/1.35 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}
.offer-tab:hover, .offer-tab.is-active { color: var(--offer-ink); }
.offer-tab-cond { margin-left: 4px; color: var(--offer-muted); white-space: nowrap; }
.offer-tab:focus-visible, .offer-pause:focus-visible { outline: 2px solid var(--offer-gold); outline-offset: 4px; }
.offer-tab-bar { display: block; height: 2px; border-radius: 2px; background: rgba(242, 241, 237, 0.18); overflow: hidden; }
.offer-tab-bar i { display: block; height: 100%; background: var(--offer-gold); transform-origin: left center; transform: scaleX(0); }
.offer.is-multi .offer-tab.is-active .offer-tab-bar i { animation: offerProgress var(--rotate, 7s) linear forwards; }
.offer.is-paused .offer-tab.is-active .offer-tab-bar i,
.offer.is-hover .offer-tab.is-active .offer-tab-bar i,
.offer.is-away .offer-tab.is-active .offer-tab-bar i { animation-play-state: paused; }
@keyframes offerProgress { to { transform: scaleX(1); } }
.offer-pause {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(242, 241, 237, 0.24);
    background: transparent;
    color: var(--offer-ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.offer-pause:hover { border-color: rgba(242, 241, 237, 0.6); background: rgba(255, 255, 255, 0.05); }
.offer-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offer-pause .i-play { display: none; }
.offer.is-paused .offer-pause .i-pause { display: none; }
.offer.is-paused .offer-pause .i-play { display: block; }

/* курьер по Москве и МО — одна строка у вкладок акций */
.offer-delivery {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 9px 0 0;   /* на одной линии с подписями вкладок: у них сверху полоса прогресса */
    font: 400 13px/1.35 'Inter', sans-serif;
    color: var(--offer-muted);
    white-space: nowrap;
}
.offer-delivery strong { font-weight: 500; color: var(--offer-ink); }
.offer-delivery-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--offer-gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* зеркальная диагональ (галочка в админке): печать справа сверху, ценник слева снизу —
   когда главное на фото справа внизу (патч Lift Kiss), чтобы его не закрыть */
.offer-slide.is-mirror .offer-seal {
    left: auto;
    right: max(0px, calc(50% - min(16.5vw, 27vh) - clamp(46px, 4.4vw, 70px)));
}
.offer-slide.is-mirror .offer-price {
    right: auto;
    left: max(0px, calc(50% - min(16.5vw, 27vh) - 4vw));
}


/* ---------- подарок: красная лента с бантом поперёк витрины ----------
   Лента идёт ровно по ширине арки, как обёрнутая вокруг коробки. Её нижний
   край — на 35% высоты арки: над товаром (у Lift Kiss он начинается на 41%)
   остаётся просвет. Верх ленты при этом заходит на купол — края подрезаны
   точно по его полукругу, поэтому ничего не торчит.
   Бант — на стороне печати: слева, а при зеркальной раскладке — справа. */
.offer-ribbon {
    --rb-h: clamp(30px, 2.5vw, 40px);
    --rb-bottom: 0.35;    /* нижний край ленты, доля высоты арки сверху */
    position: absolute;
    z-index: 3;
    left: calc(50% - var(--arch-w) / 2);
    width: var(--arch-w);
    bottom: calc(var(--arch-w) / 0.72 * (1 - var(--rb-bottom)));
    height: var(--rb-h);
    translate: calc(var(--px) * 10px) calc(var(--py) * 8px);
    transition: translate 0.6s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
    filter: drop-shadow(0 6px 8px rgba(5, 10, 30, 0.32));
}
.offer-ribbon-band {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12% 0 30%;
    background: linear-gradient(180deg, #7E0A1E 0%, #BA152D 16%, #DE2D44 44%, #C41A32 62%, #8E0C22 100%);
    /* края чуть темнее — лента будто уходит за стенки арки */
    box-shadow: inset 8px 0 8px -6px rgba(60, 0, 12, 0.45), inset -8px 0 8px -6px rgba(60, 0, 12, 0.45);
    /* силуэт арки, перенесённый на ленту: верх арки — полукруг радиусом в полширины,
       прямоугольник клипа поднят до верха арки (на её высоту × --rb-bottom минус высота ленты) */
    clip-path: inset(calc(var(--rb-h) - var(--arch-w) / 0.72 * var(--rb-bottom)) 0 -100px 0 round calc(var(--arch-w) / 2) calc(var(--arch-w) / 2) 0 0);
    transform-origin: 18% 50%;
    overflow: hidden;
}
/* атласный блик */
.offer-ribbon-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 35%, rgba(255, 210, 216, 0.55) 48%, transparent 60%);
    transform: translateX(-120%);
}
.offer-ribbon-text {
    position: relative;
    color: #FFF3F1;
    font: 600 clamp(11px, 0.95vw, 14px)/1 'Inter', sans-serif;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 1px rgba(80, 0, 12, 0.5);
}
.offer-bow {
    position: absolute;
    left: 18%;
    top: 50%;
    width: clamp(96px, 8.6vw, 136px);
    height: auto;
    transform: translate(-50%, -46%);
    overflow: visible;
}
.offer-slide.is-mirror .offer-ribbon-band { padding: 0 30% 0 12%; transform-origin: 82% 50%; }
.offer-slide.is-mirror .offer-bow { left: 82%; }

.offer-slide.is-active .offer-ribbon-band { animation: ribbonTie 0.8s 1.15s cubic-bezier(.2, .8, .2, 1) both; }
.offer-slide.is-active .offer-ribbon-band::after { animation: ribbonShine 1.4s 2.1s ease-in-out both; }
.offer-slide.is-active .offer-bow { animation: bowPop 0.9s 1.55s cubic-bezier(.34, 1.56, .5, 1) both; }
@keyframes ribbonTie {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
@keyframes ribbonShine {
    from { transform: translateX(-120%); }
    to   { transform: translateX(120%); }
}
@keyframes bowPop {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.2) rotate(-28deg); }
    to   { opacity: 1; transform: translate(-50%, -46%) scale(1) rotate(0deg); }
}

/* надпись над названием у подарка — красная, как лента */
/* у подарка плашка стоит прямо над названием — одной группой с текстом */
.offer-flag.offer-flag--gift { margin: auto 0 0; }
.offer-flag--gift {
    gap: 9px;
    padding: 10px 18px 10px 14px;
    border-color: transparent;
    background: linear-gradient(180deg, #D3243B 0%, #A8132A 100%);
    color: #FFFFFF;
    font-size: 14px;
    box-shadow: 0 12px 26px -14px rgba(210, 36, 59, 0.9);
}
.offer-gift-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* текст про подарок — крупнее и ярче, «в подарок» и сумма жирным */
.offer-slide--gift .offer-lead {
    font-size: clamp(17px, 1.4vw, 22px);
    line-height: 1.45;
    color: var(--offer-ink);
    max-width: 30em;
}
.offer-lead strong { font-weight: 600; color: #FFFFFF; }
.offer-lead strong.is-gift {
    text-decoration: underline;
    text-decoration-color: #D3243B;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* подарок: печать «Подарок», на ценнике — сумма, от которой он положен */
.offer-seal.is-gift .offer-seal-value { font-size: clamp(19px, 1.7vw, 27px); letter-spacing: 0; }
.offer-price-cap { font-size: 13px; color: var(--offer-muted); }
.offer-footnote { margin: 16px 0 0; font-size: 13px; color: var(--offer-muted); }
a.offer-cta { text-decoration: none; }
.offer-arch.is-cover .offer-product {
    inset: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
    transform: scale(1.03) translate(calc(var(--px) * 4px), calc(var(--py) * 4px));
}
.offer-arch.is-cover::after { display: none; }
.offer-monogram {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 200;
    font-size: min(16vw, 30vh);
    color: rgba(20, 35, 74, 0.14);
    text-transform: uppercase;
}

/* ---------- первый показ: одна согласованная последовательность ----------
   Чистый CSS (fill-mode: both держит начальное состояние на время задержки),
   поэтому блок не останется невидимым, даже если скрипт не загрузится. */
.offer-slide.is-active .offer-flag { animation: offerFade 0.8s 0.05s cubic-bezier(.2, .7, .2, 1) both; }
.offer-slide.is-active .offer-line > span { animation: offerRise 1.05s 0.12s cubic-bezier(.16, .84, .24, 1) both; }
.offer-slide.is-active .offer-line:nth-child(2) > span { animation-delay: 0.22s; }
.offer-slide.is-active .offer-line:nth-child(3) > span { animation-delay: 0.32s; }
.offer-slide.is-active .offer-arch { animation: offerArch 1.25s 0.1s cubic-bezier(.65, 0, .2, 1) both; }
.offer-slide.is-active .offer-product { animation: offerProduct 1.4s 0.5s cubic-bezier(.16, .84, .24, 1) both; }
.offer-slide.is-active .offer-sheen { animation: offerSheen 1.8s 1.35s cubic-bezier(.3, .6, .2, 1) both; }
.offer-slide.is-active .offer-seal { animation: offerSeal 1s 1.05s cubic-bezier(.34, 1.5, .5, 1) both; }
.offer-slide.is-active .offer-price { animation: offerFade 0.9s 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.offer-slide.is-active .offer-price-old::after { animation: offerStrike 0.6s 1.55s cubic-bezier(.6, 0, .2, 1) both; }
.offer-slide.is-active .offer-lead { animation: offerFade 0.9s 0.55s cubic-bezier(.2, .7, .2, 1) both; }
.offer-slide.is-active .offer-actions { animation: offerFade 0.9s 0.7s cubic-bezier(.2, .7, .2, 1) both; }
.offer-slide.is-active .offer-footnote,
.offer-slide.is-active .offer-timer { animation: offerFade 0.9s 0.85s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes offerFade {
    from { opacity: 0; translate: 0 14px; }
    to   { opacity: 1; translate: 0 0; }
}
@keyframes offerRise {
    from { transform: translateY(108%); }
    to   { transform: translateY(0); }
}
@keyframes offerArch {
    from { clip-path: inset(100% 0 0 0 round 50% 50% 18px 18px / 36% 36% 18px 18px); }
    to   { clip-path: inset(0 0 0 0 round 50% 50% 18px 18px / 36% 36% 18px 18px); }
}
@keyframes offerProduct {
    from { opacity: 0; translate: 0 12%; scale: 0.94; }
    to   { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes offerSeal {
    from { opacity: 0; scale: 0.35; rotate: -50deg; }
    to   { opacity: 1; scale: 1; rotate: 0deg; }
}
@keyframes offerSheen {
    from { transform: translateX(-60%); }
    to   { transform: translateX(60%); }
}
@keyframes offerStrike {
    from { scale: 0 1; }
    to   { scale: 1 1; }
}

@media (prefers-reduced-motion: reduce) {
    .offer *, .offer *::before, .offer *::after { animation: none !important; }
    .offer-sheen { display: none; }
    .offer-name, .offer-arch, .offer-seal, .offer-price, .offer-light { transform: none !important; }
    .offer-product { transform: translateX(-50%) !important; }
}

/* ---------- планшет и телефон ---------- */
@media (max-width: 900px) {
    .offer {
        min-height: 0;
        padding: 18px 18px 40px;
        background: radial-gradient(140% 70% at 50% 28%, #22396F 0%, #172A57 50%, #0F1B3B 100%);
    }
    .offer-light { width: 130vw; height: 130vw; right: -15vw; top: 30%; }
    .offer-grid { grid-template-columns: 1fr; row-gap: 0; }
    .offer-copy { display: contents; }
    /* по размеру текста и по центру над аркой: на планшете растянутая на всю ширину плашка тяжелила экран */
    .offer-flag { order: 1; justify-self: center; margin: 0 0 18px; font-size: 12px; padding: 8px 14px 8px 12px; }
    .offer-stage { order: 2; margin: 0 auto 4px; width: 100%; }
    .offer-stage { --arch-w: min(74vw, 330px); }
    .offer-seal { width: 96px; left: max(0px, calc(50% - min(37vw, 165px) - 30px)); top: 6%; }
    .offer-seal text { font-size: 17px; }
    .offer-seal-value { font-size: 24px; }
    .offer-price {
        right: max(0px, calc(50% - min(37vw, 165px) - 18px));
        bottom: 9%;
        padding: 12px 16px;
        border-radius: 14px;
    }
    .offer-price-new { font-size: 24px; }
    .offer-name {
        order: 3;
        margin: 26px 0 14px;
        font-size: min(15vw, calc(150vw / var(--chars, 10)));
        white-space: normal;
        overflow-wrap: anywhere;
        transform: none;
    }
    .offer-lead { order: 4; margin-bottom: 22px; font-size: 15px; }
    .offer-actions { order: 5; gap: 16px 22px; }
    .offer-cta { width: 100%; justify-content: center; padding: 18px 22px; }
    .offer-more { margin: 0 auto; }
    .offer-slide.is-mirror .offer-seal { left: auto; right: max(0px, calc(50% - min(37vw, 165px) - 30px)); }
    .offer-ribbon { --rb-h: 28px; }
    .offer-bow { width: 78px; }
    .offer-ribbon-text { font-size: 10.5px; letter-spacing: 0.22em; }
    .offer-flag.offer-flag--gift { margin: 0 0 18px; font-size: 13px; padding: 9px 14px 9px 12px; }
    .offer-slide--gift .offer-lead { font-size: 17px; }
    .offer-slide.is-mirror .offer-price { right: auto; left: max(0px, calc(50% - min(37vw, 165px) - 18px)); }
    .offer-footnote { order: 6; text-align: center; }
    .offer-note { order: 7; text-align: center; }
    .offer-timer { order: 8; margin-top: 22px; padding-top: 16px; justify-content: space-between; }
    .offer-seal.is-gift .offer-seal-value { font-size: 16px; }
    .offer-timer-value { font-size: 18px; }
}
@media (max-width: 900px) {
    .offer-nav { margin-top: 26px; gap: 14px; align-items: flex-end; }
    .offer-tabs { gap: 12px; }
    .offer-tab { font-size: 12px; }
    /* название и порог всегда в две строки — у обеих вкладок одинаково */
    .offer-tab-cond { display: block; margin: 3px 0 0; }
    .offer-nav { flex-wrap: wrap; }
    .offer-delivery { order: 3; flex-basis: 100%; display: block; margin-top: 6px; white-space: normal; text-align: center; }
    .offer-delivery-icon { display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -5px; }
}
@media (max-width: 380px) {
    .offer-seal { width: 84px; }
    .offer-seal-value { font-size: 21px; }
}

/* =============================================
   PROTOCOL — цикл ухода (было: строки 01–04)
   ============================================= */
#protocol.cycle {
    background: #F2F1ED;
    padding: clamp(80px, 11vh, 120px) 4.58vw;
    overflow: hidden;
}
.cycle-head h2 {
    margin: 0 0 clamp(40px, 6vh, 72px);
    max-width: 1180px;
    font-size: clamp(36px, 4.4vw, 64px);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #0B0B0E;
}
.cycle-head h2 span { color: rgba(11, 11, 14, 0.34); }

.cycle-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 110px);
    align-items: center;
}

.cycle-ring {
    position: relative;
    width: min(100%, 540px, 62vh);
    aspect-ratio: 1;
    justify-self: center;
}
.cycle-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}
.cycle-track { fill: none; stroke: rgba(11, 11, 14, 0.14); stroke-width: 1; }
.cycle-ticks { fill: none; stroke: rgba(11, 11, 14, 0.22); stroke-width: 6; stroke-dasharray: 1 18.47; }
.cycle-progress {
    fill: none;
    stroke: #C9A04E;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .25, 1);
}
.cycle-runner {
    fill: #C9A04E;
    transform-box: view-box;
    transform-origin: 50% 50%;
    transition: transform 1.1s cubic-bezier(.65, 0, .25, 1);
}

.cycle-center {
    position: absolute;
    inset: 24%;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 8px;
}
.cycle-center-num {
    font-size: clamp(52px, 6vw, 92px);
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #0B0B0E;
}
.cycle-center-label {
    max-width: 17ch;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(11, 11, 14, 0.55);
}

.cycle-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid rgba(11, 11, 14, 0.14);
    border-radius: 999px;
    background: #F2F1ED;
    color: #0B0B0E;
    font: 500 14px/1 'Inter', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.cycle-node::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(11, 11, 14, 0.22);
    transition: background 0.35s ease;
}
.cycle-node:hover { border-color: rgba(11, 11, 14, 0.4); }
.cycle-node.is-active {
    background: #1B3060;
    border-color: #1B3060;
    color: #FFFFFF;
    box-shadow: 0 14px 30px -14px rgba(27, 48, 96, 0.6);
}
.cycle-node.is-active::before { background: #C9A04E; }
.cycle-node.is-done::before { background: #C9A04E; }
.cycle-node:focus-visible { outline: 2px solid #C9A04E; outline-offset: 3px; }

.cycle-panel { position: relative; max-width: 520px; }
.cycle-step[hidden] { display: none; }
.cycle-step { animation: cycleIn 0.6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes cycleIn {
    from { opacity: 0; translate: 0 12px; }
    to   { opacity: 1; translate: 0 0; }
}
.cycle-when {
    margin: 0 0 18px;
    font-size: 14px;
    color: #9C7A33;
}
.cycle-step h3 {
    margin: 0 0 20px;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: #0B0B0E;
}
.cycle-step p.cycle-text {
    margin: 0;
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.6;
    color: rgba(11, 11, 14, 0.68);
}
.cycle-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}
.cycle-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(11, 11, 14, 0.16);
    background: transparent;
    color: #0B0B0E;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.cycle-arrow:hover { background: #0B0B0E; border-color: #0B0B0E; color: #FFFFFF; }
.cycle-arrow:focus-visible { outline: 2px solid #C9A04E; outline-offset: 3px; }
.cycle-arrow svg { width: 18px; height: 18px; }
.cycle-hint { margin-left: 8px; font-size: 13px; color: rgba(11, 11, 14, 0.45); }

@media (max-width: 900px) {
    #protocol.cycle { padding: 64px 16px 72px !important; }
    .cycle-head h2 { margin-bottom: 36px; font-size: clamp(28px, 8.4vw, 40px); }
    .cycle-body { grid-template-columns: 1fr; gap: 36px; }
    /* боковые подписи выходят за кольцо на полширины — оставляем им место */
    .cycle-ring { width: min(calc(100% - 72px), 340px); }
    .cycle-node { padding: 9px 13px; font-size: 12.5px; gap: 6px; }
    .cycle-node::before { width: 6px; height: 6px; }
    .cycle-center { inset: 27%; }
    .cycle-center-label { font-size: 12.5px; }
    .cycle-step h3 { font-size: 28px; margin-bottom: 14px; }
    .cycle-controls { margin-top: 28px; }
    .cycle-arrow { width: 48px; height: 48px; }
}

/* =============================================
   BESTSELLERS — цена и одна кнопка в строку
   ============================================= */
#popular .p-bottom { gap: 12px; margin-top: 6px; }
#popular .p-price { white-space: nowrap; }
#popular .p-card--sm .btn-cart { padding: 11px 16px; letter-spacing: 0.08em; }
#popular .btn-cart.is-added { background: #39715A; }
@media (max-width: 900px) {
    /* в паре карточек названия на одной высоте, цены — по нижнему краю,
       даже если подпись у одной из них в две строки */
    #popular .p-card .p-img-wrap {
        flex: none !important;
        aspect-ratio: 1 / 1 !important;
        min-height: 0 !important;
    }
    #popular .p-card .p-info { flex: 1 1 auto !important; }
    #popular .p-card .p-bottom { margin-top: auto !important; }
    /* кнопка — круглая иконка, как на карточках каталога: текст в 8px не читался */
    #popular .p-card .p-price { font-size: 15px !important; }
    #popular .p-card .btn-cart {
        position: relative;
        flex: none;
        width: 40px;
        height: 40px;
        margin-left: auto;
        padding: 0 !important;
        border-radius: 50%;
        font-size: 0 !important;
    }
    #popular .p-card .btn-cart::before {
        content: '';
        position: absolute;
        inset: 0;
        margin: auto;
        width: 18px;
        height: 18px;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3Cpath d='M12 11v5M9.5 13.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3Cpath d='M12 11v5M9.5 13.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    #popular .p-card .btn-cart.is-added::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    }
}

/* =============================================
   TESTIMONIALS — инициалы вместо стоковых фото
   ============================================= */
.ts-front .ts-photo.ts-initials {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.ts-card--white .ts-photo.ts-initials { background: #1B3060; color: #FFFFFF; }
.ts-card--gold .ts-photo.ts-initials { background: rgba(11, 11, 14, 0.08); }
