/* WOW Choco Land, демо, круг 4. База: A (реф 12 MILU), первый экран D (реф 06), зигзаг из E.
   Цвета и шрифты с её иконки и поста-иллюстрации: розовый, чёрный, золото; Prata = «WOW», Great Vibes = «Choco Land».
   Рамки фото как у Codex (фидбек 19.10): светлая подложка, тонкая чёрная линия и вторая смещённая обводка. */
@font-face { font-family: 'Prata'; src: url(assets/fonts/Prata-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: 'Prata'; src: url(assets/fonts/Prata-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: 'Great Vibes'; src: url(assets/fonts/GreatVibes-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: 'Great Vibes'; src: url(assets/fonts/GreatVibes-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(assets/fonts/Manrope-cyrillic.woff2) format('woff2'); font-weight: 200 800; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(assets/fonts/Manrope-latin.woff2) format('woff2'); font-weight: 200 800; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; font-display: swap; }

:root {
  --rose: #fbd6dc;      /* фон иллюстрации */
  --rose-hi: #fdebee;   /* светлая поверхность страницы */
  --rose-2: #f4b3c1;    /* розовый блок */
  --pink: #d9647f;      /* линии и акценты, видны и на светлом, и на розовом */
  --milk: #fff8f7;
  --paper: #fffaf5;     /* подложка рамок фото (как у Codex) */
  --ink: #1b1214;       /* чёрный с иллюстрации */
  --ink-2: #5d4449;
  --gold: #c9a14e;
  --gold-hi: #ebd08c;
  --gold-lo: #9a742e;
  --gold-grad: linear-gradient(160deg, #f0d896 0%, #c9a14e 42%, #a57c33 70%, #e3c47e 100%);
  --gold-grad-dark: linear-gradient(160deg, #b8903c 0%, #86611f 50%, #a98232 100%);
  --display: 'Prata', 'Georgia', serif;
  --script: 'Great Vibes', 'Snell Roundhand', cursive;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* шрифт интерфейса Instagram */
  --fl: 2px;            /* линия рамок: на телефоне не тоньше 2px, чтобы не пропадала */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--rose-hi); color: var(--ink); font: 500 15px/1.5 var(--text); overflow-x: clip; }
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--milk); padding: 8px 14px; border-radius: 99px; }
.skip:focus { top: 12px; }

/* вырезка её продукта: без белой обводки, мягкая тень */
.cut { filter: drop-shadow(0 14px 16px rgba(60, 20, 30, .22)) drop-shadow(0 2px 3px rgba(60, 20, 30, .18)); pointer-events: none; user-select: none; }

/* рамка фото (Codex): ::after = подложка с линией, ::before = вторая обводка, видна только справа и снизу */
.frame { position: relative; display: block; padding: 8px; transform: rotate(var(--r, -2deg)); }
.frame::before, .frame::after { content: ''; position: absolute; pointer-events: none; }
.frame::before { inset: 6px -9px -9px 6px; border: var(--fl) solid var(--ink); border-radius: 2px 8px 2px 10px; transform: rotate(2deg); }
.frame::after { inset: 0; background: var(--paper); border: var(--fl) solid var(--ink); border-radius: 2px 5px 1px 3px; }
.frame > img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* кнопки-пилюли (MILU) */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 99px; font: 700 15px/1.15 var(--text); text-decoration: none; transition: transform .2s, background-color .2s, box-shadow .2s, color .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 3px 0 var(--gold-lo), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ink { background: var(--ink); color: var(--milk); box-shadow: 0 3px 0 #000; }
.btn--line { border: 2px solid var(--gold-hi); color: var(--gold-hi); }
.btn--line:hover { background: rgba(235, 208, 140, .12); }
.btn--plain { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn--plain:hover { background: var(--milk); }
.btn--s { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* общие заголовки */
.sec-head { position: relative; text-align: center; }
.sec-head--left { text-align: left; }
.pill { display: inline-block; background: var(--milk); color: var(--pink); border: 2px solid var(--pink); border-radius: 99px; padding: 6px 14px; font: 800 11.5px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.h2 { font: 34px/1.08 var(--display); color: var(--ink); text-wrap: balance; }
.h2--gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill + .h2 { margin-top: 16px; }
.lead { margin: 14px auto 0; max-width: 40ch; font-size: 14.5px; color: var(--ink-2); }
.sec-head--left .lead { margin-left: 0; }
.h2--line { position: relative; display: inline-block; padding-bottom: 14px; }
.h2--line::after { content: ''; position: absolute; left: -6px; right: -18px; bottom: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 40 2 70 13 110 7 S 170 2 198 8' fill='none' stroke='%23d9647f' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.demo { display: inline-block; font: 800 10px/1 var(--text); letter-spacing: .08em; color: var(--pink); border: 1.5px solid var(--pink); padding: 3px 6px; border-radius: 6px; vertical-align: 2px; }

/* ягоды по странице: плывут при прокрутке, за текстом своего блока */
.about, .sets, .price, .order, .idea, .faq, .insta { position: relative; isolation: isolate; }
.fly { position: absolute; z-index: -1; pointer-events: none; transform: translateY(var(--fy, 0px)) rotate(var(--r, 0deg)); filter: drop-shadow(0 10px 10px rgba(60, 20, 30, .22)); }

/* ================= НАВИГАЦИЯ ================= */
.nav { position: relative; z-index: 8; display: flex; align-items: center; gap: 10px; background: var(--milk); border-radius: 99px; padding: 6px 6px 6px 18px; box-shadow: 0 4px 18px rgba(60, 20, 30, .08); }
.nav__logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; white-space: nowrap; }
.nav__logo b, .foot__logo b { font: 400 22px/1 var(--display); letter-spacing: .06em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: .12em; }
.nav__logo i, .foot__logo i { font: 400 23px/1 var(--script); font-style: normal; color: var(--ink); }
.nav__links { display: none; }
.nav__ig { margin-left: auto; background: var(--ink); color: var(--milk); text-decoration: none; font: 700 13px/1 var(--text); padding: 12px 16px; border-radius: 99px; }

/* ================= ПЕРВЫЙ ЭКРАН ================= */
.hero { position: relative; background: radial-gradient(120% 70% at 50% 34%, var(--milk) 0%, var(--rose) 62%, var(--rose-2) 140%); padding: 14px 14px 196px; overflow-x: clip; }
/* z-index выше зигзага: ягода, уплывшая при прокрутке вниз, ложится поверх края, а не режется им */
.berries { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.b { position: absolute; transform: translateY(var(--py, 0px)) rotate(var(--r, 0deg)); filter: drop-shadow(0 12px 12px rgba(60, 20, 30, .25)); }
.b.far { filter: blur(1.6px) drop-shadow(0 10px 10px rgba(60, 20, 30, .18)); opacity: .85; }
.b1 { width: 70px; left: -12px; top: 92px; --r: -24deg; }
.b2 { width: 60px; right: 6px; top: 96px; --r: 18deg; }
.b3 { width: 40px; left: -4px; top: 520px; --r: 30deg; display: none; }
.b4 { width: 116px; left: -18px; bottom: 40px; --r: -12deg; }
.b5 { width: 38px; right: 2px; top: 560px; --r: -30deg; display: none; }
.b6 { width: 104px; right: -16px; bottom: 52px; --r: 22deg; }
.b7 { width: 36px; left: 46%; top: 76px; --r: 12deg; display: none; }
.b8 { width: 46px; right: 96px; bottom: 30px; --r: -40deg; }

.hero__text { position: relative; z-index: 3; text-align: center; padding: 40px 0 0; }
.hero__pre { font: 800 11.5px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.logo-h { position: relative; display: flex; flex-direction: column; align-items: center; width: fit-content; max-width: 100%; margin: 30px auto 0; padding: 0 6px; }
/* padding сверху: без него у «О» срезается верх (фон-градиент обрезается по строке) */
.logo-h__wow { font: 92px/0.9 var(--display); letter-spacing: .06em; padding: .16em 0 0 .06em; margin-top: -.16em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(154, 116, 46, .35)); }
.logo-h__script { font: 62px/1 var(--script); color: var(--ink); margin-top: -6px; transform: rotate(-4deg); }
.logo-h__arc { width: 250px; height: auto; margin-top: -2px; overflow: visible; }
.logo-h__arc path { fill: none; }
.logo-h__arc text { font: 700 15px var(--text); letter-spacing: .08em; fill: var(--ink); }
.ring { position: absolute; left: -14px; right: -14px; top: -40px; bottom: -40px; width: calc(100% + 28px); height: calc(100% + 80px); overflow: visible; pointer-events: none; z-index: -1; }
.ring path { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; }
.ring path + path { stroke: var(--gold-hi); stroke-width: 1.8; }
/* ник на нижней линии овала: путь и разрыв линий считает script.js; без JS ник остаётся под «Choco Land» */
.logo-h__seal { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.logo-h__seal path { fill: none; }
.logo-h__seal text { font: 700 14px var(--text); letter-spacing: .08em; fill: var(--ink); }
.logo-h.is-seal .logo-h__arc { visibility: hidden; }
.logo-h.is-seal .logo-h__wow, .logo-h.is-seal .logo-h__script { translate: 0 var(--down, 16px); }
.hero__slogan { margin: 54px auto 0; max-width: 26ch; font: 25px/1.15 var(--script); color: var(--ink-2); }
.hero__btns { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.hero__btns .btn { width: min(100%, 280px); }

.badge { position: absolute; z-index: 6; left: 50%; bottom: -46px; width: 108px; height: 108px; margin-left: -54px; }
.badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge__bg { fill: var(--milk); stroke: var(--pink); stroke-width: 3; }
.badge__in { fill: none; stroke: var(--pink); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .7; }
.badge text { font: 13px var(--display); fill: var(--pink); letter-spacing: .06em; }
.badge img { position: absolute; width: 34px; left: 50%; top: 50%; transform: translate(-50%, -54%) rotate(-8deg); filter: drop-shadow(0 3px 3px rgba(60, 20, 30, .3)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* зигзаг-край (из E) */
.torn { position: absolute; z-index: 2; left: 0; bottom: -1px; width: 100%; height: 30px; pointer-events: none; }
.torn__sh { fill: #fff; }
.torn__p { fill: var(--rose-hi); }

/* ================= ЛЕНТА ================= */
.ribbon { position: relative; z-index: 5; height: 0; padding-top: 1px; pointer-events: none; }
.ribbon svg { position: absolute; left: 0; top: var(--top, 0px); display: block; width: 100%; height: auto; overflow: visible; }
.ribbon__d { display: none !important; }
.ribbon__band { fill: none; stroke: var(--gold); stroke-width: 34; stroke-linecap: round; filter: drop-shadow(0 4px 0 var(--gold-lo)); }
.ribbon__text { font: 14px var(--display); fill: var(--ink); letter-spacing: .05em; dominant-baseline: central; text-transform: uppercase; }
/* телефонная лента растёт вместе с шириной экрана (viewBox 390), поэтому шире 390 её место и отступ под ней тоже в vw:
   на 540–767 она иначе наезжала на заголовки (фидбек 19.10, 743px) */
.ribbon--1 { --top: min(-130px, -33.3vw); }
.ribbon--2 { --top: min(-40px, -10.3vw); }
.ribbon--3 { --top: min(-30px, -7.7vw); }

/* ================= Я, КАТЕРИНА (таймлайн) ================= */
.about { padding: max(200px, 51.3vw) 16px 40px; }
/* телефон: ягоды только в пустых местах (справа от заголовка, в отступах между блоками), см. фидбек 19.10 «налипают на текст» */
.fly--a1 { width: 50px; right: 22px; top: calc(max(200px, 51.3vw) - 40px); --r: 18deg; }
.fly--a2 { width: 40px; left: 24px; bottom: -64px; --r: -24deg; }
.about__h { font: 32px/1.08 var(--display); }
.about__h span { display: block; }
.outline { color: rgba(217, 100, 127, .1); -webkit-text-stroke: 1.6px var(--pink); }
.about__q { margin-top: 20px; font: 25px/1.2 var(--script); color: var(--ink-2); max-width: 26ch; }
.tl { position: relative; margin-top: 44px; display: grid; gap: 58px; }
.tl__line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.tl__line path { fill: none; stroke: var(--pink); stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.tl__d { display: none; }
.tl__item { position: relative; z-index: 1; display: grid; grid-template-columns: 136px 1fr; gap: 22px; align-items: center; }
.tl__item--2 { grid-template-columns: 1fr 136px; }
.tl__item--2 .frame { order: 2; --r: 2.5deg; }
.tl__item--3 .frame { --r: -1deg; }
.tl__n { position: absolute; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold-hi); font: 18px/1 var(--display); left: -6px; top: -16px; box-shadow: 0 0 0 3px var(--rose-hi); }
.tl__item--2 .tl__n { left: auto; right: 110px; }
.tl__item p { font-size: 14px; line-height: 1.45; color: var(--ink-2); background: var(--rose-hi); }
.tl__item p b { display: block; color: var(--ink); margin-bottom: 4px; font: 17px/1.25 var(--display); }

/* ================= НАБОРЫ (карточки внахлёст) ================= */
.sets { z-index: 3; padding: 120px 16px 40px; }
.fly--s1 { width: 44px; right: 22px; top: 104px; --r: -18deg; }
.deck { position: relative; display: grid; margin-top: 40px; padding: 0 4px; }
.card { position: relative; border-radius: 24px; padding: 22px 20px 26px; min-height: 290px; box-shadow: 0 14px 26px rgba(60, 20, 30, .16); isolation: isolate; overflow: visible; cursor: pointer; }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: var(--wave) center / cover no-repeat; }
.card + .card { margin-top: -18px; }
.card:nth-child(1) { transform: rotate(-3deg); --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M-20 230 C 60 170 120 270 200 210 S 300 130 340 170' fill='none' stroke='%23ee9cb0' stroke-width='22' stroke-linecap='round'/%3E%3Cpath d='M-20 292 C 80 246 140 322 232 276' fill='none' stroke='%23ee9cb0' stroke-width='14' stroke-linecap='round'/%3E%3C/svg%3E"); }
.card:nth-child(2) { transform: rotate(2.5deg); z-index: 2; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M-20 70 C 70 20 120 130 210 80 S 300 40 330 70' fill='none' stroke='%23362a2c' stroke-width='22' stroke-linecap='round'/%3E%3Cpath d='M-20 286 C 60 226 160 306 320 236' fill='none' stroke='%23362a2c' stroke-width='16' stroke-linecap='round'/%3E%3C/svg%3E"); }
.card:nth-child(3) { transform: rotate(-2deg); z-index: 3; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M-20 210 C 50 160 140 270 210 200 S 290 120 330 160' fill='none' stroke='%23fbdfe4' stroke-width='26' stroke-linecap='round'/%3E%3C/svg%3E"); }
.card:nth-child(4) { transform: rotate(3deg); z-index: 4; --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' preserveAspectRatio='none'%3E%3Cpath d='M-20 130 C 60 70 150 180 230 120 S 300 80 330 100' fill='none' stroke='%23dcbb72' stroke-width='24' stroke-linecap='round'/%3E%3Cpath d='M40 320 C 90 250 200 300 330 240' fill='none' stroke='%23dcbb72' stroke-width='16' stroke-linecap='round'/%3E%3C/svg%3E"); }
.card--rose { background: var(--rose-2); }
.card--ink { background: var(--ink); color: var(--milk); }
.card--milk { background: var(--milk); }
.card--gold { background: var(--gold-grad); }
.card__n { display: inline-block; font: 800 12px/1 var(--text); padding: 6px 10px; border-radius: 99px; background: rgba(255, 248, 247, .8); color: var(--ink); }
.card--milk .card__n { background: var(--rose); }
.card h3 { font: 32px/1 var(--display); margin: 14px 0 4px; }
.card--ink h3 { color: var(--gold-hi); }
.card__sizes { font: 24px/1.1 var(--script); color: var(--ink-2); margin-bottom: 10px; }
.card--ink .card__sizes { color: var(--rose-2); }
.card > p:not(.card__sizes) { font-size: 14px; line-height: 1.45; max-width: 22ch; }
.card .btn { margin-top: 16px; }
.card__img { position: absolute; width: 150px; right: -10px; bottom: -22px; transform: rotate(8deg); }
.card:nth-child(4) .card__img { width: 160px; right: -18px; bottom: -14px; }
/* сердце: выглядывает снизу, обрезанные края фото уходят за край карточки */
.card--clip { padding-bottom: 200px; }
.card--clip > p:not(.card__sizes) { max-width: 26ch; }
.card__clip { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.card--clip .card__img { max-width: none; width: 128%; left: -14%; right: auto; bottom: 0; translate: 0 63%; transform: rotate(-3deg); filter: drop-shadow(0 -6px 14px rgba(0, 0, 0, .35)); }
.sets__more { margin: 56px auto 0; max-width: 44ch; text-align: center; font-size: 14px; color: var(--ink-2); }
/* нажатие: карточка поднимается над остальными */
.card { transition: transform .9s cubic-bezier(.2, .8, .2, 1.1), opacity .6s ease, translate .45s cubic-bezier(.2, .9, .3, 1.35), box-shadow .3s; }
.card.is-up { translate: 0 -22px; z-index: 6; box-shadow: 0 30px 40px rgba(60, 20, 30, .3); }

/* ================= ПОШТУЧНО (ряд круглых предметов в рамке Codex) ================= */
.price { z-index: 3; padding: 70px 16px 70px; }
.fly--p1 { width: 42px; left: 26px; top: 62px; --r: 28deg; }
.pieces { display: grid; gap: 22px; margin-top: 34px; }
.piece { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: center; }
.round { position: relative; display: block; width: 100px; height: 100px; padding: 6px; }
.round::before, .round::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.round::before { inset: 5px -7px -7px 5px; border: var(--fl) solid var(--ink); }
.round::after { inset: 0; background: var(--paper); border: var(--fl) solid var(--ink); }
.round img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.piece h3 { font: 19px/1.15 var(--display); }
.piece p { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.piece__p { display: grid; justify-items: end; gap: 4px; font: 20px/1 var(--display); white-space: nowrap; }
.piece__p small { display: inline-block; font: 800 10px/1 var(--text); letter-spacing: .08em; color: var(--pink); border: 1.5px solid var(--pink); padding: 3px 6px; border-radius: 6px; }
.price__note { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--ink-2); }

/* ================= КАК ЗАКАЗАТЬ / ФОРМА ================= */
.order { z-index: 3; padding: max(170px, 43.6vw) 16px 40px; display: grid; gap: 26px; }
.fly--o1 { width: 46px; right: 16px; top: calc(max(170px, 43.6vw) + 92px); --r: 20deg; }
.steps { counter-reset: s; margin-top: 18px; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 32px; display: flex; align-items: center; font-weight: 700; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold-hi); font: 15px/1 var(--display); }
.form { display: grid; gap: 18px; }
.f legend, .field > span, .field legend { display: block; font: 800 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.f legend small { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .8; margin-left: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 99px; background: var(--milk); border: 2px solid var(--rose-2); font: 700 14px/1 var(--text); transition: background-color .15s, border-color .15s, color .15s; }
.opts input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--gold-hi); }
.opts input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.f--row { display: grid; gap: 18px; }
.field input, .field textarea { width: 100%; font: 600 15px/1.4 var(--text); color: var(--ink); background: var(--milk); border: 2px solid var(--rose-2); border-radius: 14px; padding: 11px 14px; }
.field input { min-height: 46px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--pink); outline-offset: 2px; border-color: var(--ink); }

/* превью: телефон с открытым Direct */
.send { display: grid; gap: 16px; }
.phone { position: relative; margin: 0 auto; width: min(100%, 320px); border-radius: 48px; background: #121012; padding: 10px; box-shadow: 0 0 0 2px #3a3335 inset, 0 22px 40px rgba(60, 20, 30, .28); }
.dm { position: relative; display: flex; flex-direction: column; height: 620px; border-radius: 38px; background: #fff; overflow: hidden; font: 400 14px/1.35 var(--ui); color: #000; }
.dm__sys { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px 6px 34px; font: 600 14px/1 var(--ui); }
.dm__sys::after { content: ''; position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.dm__bat { width: 24px; height: 12px; border-radius: 4px; border: 1.5px solid #000; padding: 1.5px; background: linear-gradient(#000, #000) 1.5px 1.5px / 15px 6px no-repeat; background-clip: content-box; }
.dm .ic { width: 24px; height: 24px; flex: none; fill: none; stroke: #000; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dm__head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid #efefef; }
.dm__av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.dm__who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.dm__who b { font: 700 14px/1.2 var(--ui); }
.dm__who small { font-size: 12px; color: #737373; }
.dm__chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 14px 12px 10px; scrollbar-width: none; }
.dm__intro { margin: auto 0 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: 12.5px; color: #737373; }
.dm__intro img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 8px; }
.dm__intro b { font: 700 16px/1.3 var(--ui); color: #000; }
.dm__pic { align-self: flex-end; width: 128px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--rose); }
.dm__pic.is-cut { object-fit: contain; padding: 8px; }
.dm__msg { align-self: flex-end; max-width: 80%; background: #3797f0; color: #fff; padding: 9px 13px; border-radius: 20px; font-size: 14.5px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; }
.dm__input { display: flex; align-items: center; gap: 10px; margin: 6px 10px 16px; padding: 5px 12px 5px 5px; border-radius: 99px; background: #efefef; }
.dm__cam { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #3797f0; flex: none; }
.dm__cam svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.dm__ph { flex: 1; color: #737373; }
.dm__input .ic { width: 22px; height: 22px; }
.send__btns { display: grid; gap: 10px; }
.send__hint { font-size: 13px; color: var(--ink-2); text-align: center; }
.send__hint.is-ok { color: var(--ink); font-weight: 700; }

/* ================= СВОЯ ИДЕЯ ================= */
.idea { z-index: 2; margin: 60px 0 0; background: var(--ink); color: var(--milk); padding: 70px 18px 110px; border-radius: 30px; }
.fly--i1 { width: 56px; right: 14px; top: -26px; --r: 22deg; z-index: 1; }
.idea__pre { font: 800 11.5px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--rose-2); }
.idea .h2 { font-size: 46px; margin-top: 10px; }
.idea blockquote { margin-top: 18px; font: 25px/1.2 var(--script); color: var(--gold-hi); }
.idea__text > p:not(.idea__pre) { margin-top: 16px; font-size: 14.5px; color: #e9d9db; max-width: 44ch; }
.idea__btns { display: grid; gap: 10px; margin-top: 24px; max-width: 340px; }
.idea__fig { position: relative; margin: 46px auto 0; width: min(86%, 320px); }
.ring--idea { position: absolute; left: -18px; top: -18px; width: calc(100% + 36px); height: calc(100% + 36px); z-index: 0; }
.idea__fig img { position: relative; z-index: 1; }
.idea__fig figcaption { position: absolute; z-index: 2; left: 50%; bottom: -34px; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; font: 26px/1 var(--script); color: var(--rose-2); }

/* ================= ВОПРОСЫ ================= */
.faq { padding: max(140px, 35.9vw) 16px 30px; }
.fly--f1 { width: 42px; left: 14px; top: calc(max(140px, 35.9vw) - 52px); --r: -26deg; }
.qa { max-width: 780px; margin: 30px auto 0; border-top: var(--fl) solid var(--ink); }
.q { border-bottom: var(--fl) solid var(--ink); }
.q summary { list-style: none; display: grid; grid-template-columns: 48px 1fr 26px; align-items: center; gap: 12px; padding: 16px 2px; cursor: pointer; font: 19px/1.2 var(--display); }
.q summary::-webkit-details-marker { display: none; }
.q summary:hover .q__t { color: var(--pink); }
.q__berry { position: relative; display: grid; place-items: center; width: 48px; height: 52px; }
.q__berry img { position: relative; z-index: 1; width: 30px; transform: rotate(-14deg); transition: transform .7s cubic-bezier(.3, 1.5, .4, 1); filter: drop-shadow(0 5px 5px rgba(60, 20, 30, .25)); }
.q__berry--round img { width: 34px; }
/* лужица шоколада: ягода ныряет в неё при раскрытии */
.q__berry::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 11px; border-radius: 50%; background: radial-gradient(closest-side, #4a2b26, var(--ink)); transform: scaleX(.2); opacity: 0; transition: transform .45s ease, opacity .3s; }
.q[open] .q__berry img { transform: translateY(6px) rotate(172deg) scale(.95); }
.q[open] .q__berry::after { transform: scaleX(1); opacity: 1; }
.q__pm { position: relative; width: 26px; height: 26px; border-radius: 50%; border: var(--fl) solid var(--ink); }
.q__pm::before, .q__pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform .3s; }
.q__pm::after { transform: rotate(90deg); }
.q[open] .q__pm::after { transform: rotate(0deg); }
.q__a { padding: 0 0 22px 60px; }
.drip { display: block; width: 100%; height: 30px; margin: -6px 0 12px; fill: var(--ink); transform-origin: 50% 0; }
.q__a p { font-size: 14.5px; color: var(--ink-2); max-width: 60ch; }

/* ================= ИЗ ИНСТЫ: посты как в Instagram, лента едет ================= */
.insta { padding: 80px 0 30px; }
.insta .sec-head { padding: 0 16px; }
.fly--n1 { width: 46px; left: 30px; top: 60px; --r: 18deg; }
.feed { margin-top: 26px; overflow-x: auto; padding: 22px 0 46px; scrollbar-width: thin; }
.feed__track { display: flex; width: max-content; padding-left: 16px; }
.feed__track li { margin-right: 26px; }
.feed__track li:nth-child(odd) .igp { --r: -2deg; }
.feed__track li:nth-child(even) .igp { --r: 1.8deg; margin-top: 18px; }
/* лента едет сама (script.js двигает прокрутку), пальцем её можно листать и останавливать */
.feed.run { scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.feed.run::-webkit-scrollbar { display: none; }
.igp { position: relative; display: block; width: 248px; padding: 10px 11px 14px; text-decoration: none; color: #000; font: 400 13px/1.35 var(--ui); transform: rotate(var(--r, 0deg)); transition: transform .3s; }
.igp::before, .igp::after { content: ''; position: absolute; pointer-events: none; }
.igp::before { inset: 6px -9px -9px 6px; border: var(--fl) solid var(--ink); border-radius: 2px 8px 2px 10px; transform: rotate(1.6deg); }
.igp::after { inset: 0; background: var(--paper); border: var(--fl) solid var(--ink); border-radius: 2px 5px 1px 3px; }
.igp > * { position: relative; z-index: 1; }
.igp:hover { transform: rotate(0deg) translateY(-6px); }
.igp__top { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.igp__top img { width: 28px; height: 28px; border-radius: 50%; }
.igp__top b { font-weight: 700; }
.igp__top i { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: -1px; }
.igp__ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--rose); }
.igp__ph img { width: 100%; height: 100%; object-fit: cover; }
.igp__act { display: flex; gap: 13px; padding: 10px 0 7px; }
.igp__act svg { width: 23px; height: 23px; fill: none; stroke: #000; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }
.igp__act .r { margin-left: auto; }
.igp__likes { display: block; font-weight: 700; }
.igp__cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; }
.igp__cap b { font-weight: 700; margin-right: 4px; }
.igp__date { display: block; margin-top: 4px; font-size: 11px; color: #737373; }
.insta__more { text-align: center; padding: 0 16px; }

/* ================= ПОДВАЛ ================= */
.foot { position: relative; background: var(--rose-2); color: var(--ink); border-radius: 30px 30px 0 0; margin-top: 40px; padding: 46px 20px 34px; overflow: hidden; }
.foot__hand { position: absolute; width: 150px; right: -44px; bottom: -70px; transform: rotate(-4deg); transform-origin: 100% 100%; filter: drop-shadow(0 16px 20px rgba(60, 20, 30, .25)); }
.foot__in { position: relative; max-width: 64%; }
.foot__logo { display: flex; flex-direction: column; text-decoration: none; }
.foot__logo b { font-size: 46px; background: var(--gold-grad-dark); -webkit-background-clip: text; background-clip: text; }
.foot__logo i { font-size: 38px; margin-top: -6px; }
.foot__slogan { margin-top: 16px; font: 22px/1.15 var(--script); }
.foot__in > p:not(.foot__slogan):not(.foot__demo) { margin-top: 12px; font-size: 14px; }
.foot__links { margin-top: 16px; display: grid; gap: 8px; font-weight: 800; }
.foot__links a { text-underline-offset: 4px; }
.foot__demo { margin-top: 22px; font-size: 12px; opacity: .75; }

/* ================= 360 и уже ================= */
@media (max-width: 359px) {
  .logo-h__wow { font-size: 78px; }
  .logo-h__script { font-size: 52px; }
  .logo-h__arc { width: 220px; }
  .nav { padding-left: 14px; }
  .nav__logo b { font-size: 19px; }
  .nav__logo i { font-size: 20px; }
  .nav__ig { padding: 11px 13px; }
  .h2 { font-size: 30px; }
  .piece { grid-template-columns: 84px 1fr; }
  .round { width: 84px; height: 84px; }
  .piece__p { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .tl__item { grid-template-columns: 112px 1fr; gap: 18px; }
  .tl__item--2 { grid-template-columns: 1fr 112px; }
  .tl__item--2 .tl__n { right: 86px; }
  .phone { border-radius: 42px; padding: 8px; }
  .dm { height: 540px; border-radius: 34px; }
  .q summary { grid-template-columns: 40px 1fr 26px; font-size: 17.5px; gap: 10px; }
  .q__a { padding-left: 50px; }
  .igp { width: 226px; }
}

/* ================= 768+ ================= */
@media (min-width: 768px) {
  .hero { padding: 18px 28px 220px; }
  .b1 { width: 120px; left: 2%; top: 120px; }
  .b2 { width: 96px; right: 6%; top: 120px; }
  .b3 { width: 60px; left: 16%; top: 420px; display: block; }
  .b4 { width: 170px; left: -10px; bottom: 50px; }
  .b5 { width: 54px; right: 24%; top: 470px; display: block; }
  .b6 { width: 150px; right: 2%; bottom: 60px; }
  .b8 { width: 60px; right: 26%; bottom: 40px; }
  .logo-h__wow { font-size: 128px; }
  .logo-h__script { font-size: 84px; }
  .logo-h__arc { width: 330px; }
  .logo-h { margin-top: 58px; --down: 24px; }
  .logo-h__seal text { font-size: 17px; }
  .hero__slogan { margin-top: 86px; }
  .logo-h .ring { left: -84px; top: -62px; width: calc(100% + 168px); height: calc(100% + 134px); }
  .hero__btns { flex-direction: row; justify-content: center; }
  .hero__btns .btn { width: auto; }
  .badge { margin-left: -54px; left: 30%; }
  .torn { height: 44px; }
  .ribbon__m { display: none !important; }
  .ribbon__d { display: block !important; }
  .ribbon__band { stroke-width: 58; }
  .ribbon__text { font-size: 24px; }
  .ribbon--1 { --top: -14.8vw; }
  .ribbon--2 { --top: -6vw; }
  .ribbon--3 { --top: -4vw; }
  .about { padding-top: 260px; }
  .fly--a1 { width: 70px; right: 4%; top: 230px; }
  .fly--a2 { width: 50px; left: 3%; bottom: -40px; }
  .sets { padding-top: 140px; }
  .h2 { font-size: 46px; }
  .deck { grid-template-columns: 1fr 1fr; }
  .card + .card { margin-top: 0; }
  .card:nth-child(n+3) { margin-top: -20px; }
  .card { min-height: 330px; }
  .pieces { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .piece { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .round { width: 180px; height: 180px; margin-bottom: 10px; padding: 9px; }
  .round::before { inset: 7px -10px -10px 7px; }
  .piece__p { justify-items: center; }
  .order { padding-top: 26vw; }
  .fly--o1 { top: calc(26vw + 92px); }
  .f--row { grid-template-columns: 1fr 1fr; }
  .idea__in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .idea__fig { margin-top: 0; }
  .tl__item { grid-template-columns: 190px 1fr; gap: 34px; max-width: 620px; }
  .tl__item--2 { justify-self: end; grid-template-columns: 1fr 190px; }
  .tl__item--2 .tl__n { right: 160px; }
  .faq { padding-top: 160px; }
  .fly--f1 { top: 108px; }
  .igp { width: 280px; }
  .foot__hand { width: 220px; right: -50px; bottom: -110px; }
}

/* ================= десктоп ================= */
@media (min-width: 1100px) {
  body { font-size: 16px; }
  .nav { max-width: 1120px; margin: 0 auto; padding: 8px 8px 8px 26px; gap: 26px; }
  .nav__logo b { font-size: 26px; }
  .nav__logo i { font-size: 27px; }
  .nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 700; }
  .nav__links a { text-decoration: none; }
  .nav__links a:hover { color: var(--pink); }
  .nav__ig { margin-left: 0; font-size: 14px; padding: 14px 22px; }

  .hero { padding: 20px 40px 140px; min-height: 900px; }
  .b1 { width: 170px; left: 6%; top: 150px; }
  .b2 { display: none; } /* фидбек 19.10: убрать клубнику справа от кнопок */
  .b3 { width: 80px; left: 24%; top: 560px; }
  .b4 { width: 250px; left: 4%; bottom: 60px; top: auto; }
  .b5 { width: 64px; right: 30%; top: 140px; }
  .b6 { width: 230px; right: 5%; bottom: 120px; }
  .b7 { display: block; width: 60px; left: 30%; top: 130px; }
  .b8 { width: 120px; right: 9%; top: 170px; bottom: auto; }
  .hero__text { padding-top: 70px; }
  .logo-h__wow { font-size: 168px; }
  .logo-h__script { font-size: 108px; margin-top: -12px; }
  .logo-h__arc { width: 400px; margin-top: 0; }
  .logo-h { --down: 30px; }
  .logo-h__seal text { font-size: 19px; }
  .logo-h { margin-top: 76px; }
  .logo-h .ring { left: -120px; top: -84px; width: calc(100% + 240px); height: calc(100% + 162px); }
  .hero__slogan { font-size: 32px; margin-top: 92px; max-width: none; }
  .hero__btns { margin-top: 28px; gap: 14px; }
  .badge { width: 132px; height: 132px; bottom: -60px; left: 22%; margin-left: 0; }
  .badge img { width: 44px; }
  .torn { height: 58px; }

  .ribbon__band { stroke-width: 50; }
  .ribbon__text { font-size: 21px; }

  .h2 { font-size: 60px; }
  .lead { font-size: 16px; }

  .about { max-width: 1240px; margin: 0 auto; padding: 300px 40px 60px; }
  .fly--a1 { width: 84px; right: 2%; top: 330px; }
  .fly--a2 { width: 60px; left: 1%; bottom: 260px; }
  .about__h { font-size: 58px; text-align: center; }
  .about__q { margin: 22px auto 0; text-align: center; font-size: 34px; max-width: 30ch; }
  .tl { min-height: 980px; margin-top: 60px; display: block; }
  .tl__m { display: none; }
  .tl__d { display: inline; }
  .tl__line path { stroke-width: 4; }
  .tl__item { position: absolute; max-width: 580px; grid-template-columns: 230px 1fr; gap: 40px; }
  .tl__item--1 { left: 6%; top: 0; }
  .tl__item--2 { right: 3%; top: 330px; grid-template-columns: 1fr 230px; }
  .tl__item--3 { left: 22%; top: 680px; }
  .tl__n { width: 46px; height: 46px; font-size: 20px; left: -10px; top: -18px; }
  .tl__item--2 .tl__n { right: 196px; }
  .tl__item p { font-size: 15.5px; }
  .tl__item p b { font-size: 21px; }

  .sets { max-width: 1240px; margin: 0 auto; padding: 130px 40px 60px; }
  .fly--s1 { width: 64px; left: 0; right: auto; top: 40px; }
  .deck { grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: 64px auto 0; padding: 0; align-items: start; }
  .card { min-height: 430px; padding: 28px 24px 30px; }
  .card:nth-child(n+2) { margin-left: -22px; }
  .card:nth-child(n+3) { margin-top: 0; }
  .card:nth-child(1) { margin-top: 26px; }
  .card:nth-child(2) { margin-top: -10px; }
  .card:nth-child(3) { margin-top: 14px; }
  .card:nth-child(4) { margin-top: 36px; }
  .card h3 { font-size: 38px; }
  .card__img { width: 210px; right: -36px; bottom: -50px; }
  .card:nth-child(4) .card__img { width: 220px; right: -40px; }
  .card--clip { min-height: 470px; padding-bottom: 30px; }
  .card--clip .card__img { width: 124%; left: -12%; right: auto; bottom: 0; translate: 0 66%; }
  .card.is-up { translate: 0 -44px; }
  .card:not(.is-up):hover { translate: 0 -10px; }

  .price { max-width: 1160px; margin: 0 auto; padding: 110px 40px 90px; }
  .fly--p1 { width: 58px; left: auto; right: 0; top: 80px; }
  .round { width: 250px; height: 250px; padding: 11px; }
  .round::before { inset: 9px -12px -12px 9px; }
  .piece h3 { font-size: 26px; }
  .piece p { font-size: 14.5px; max-width: 28ch; }

  .order { max-width: 1200px; margin: 0 auto; padding: 23vw 40px 60px; grid-template-columns: 1fr 360px; column-gap: 70px; align-items: start; }
  .fly--o1 { width: 76px; right: -40px; top: 30vw; }
  .order .h2 { white-space: nowrap; }
  .order .sec-head { grid-column: 1 / -1; }
  .steps { grid-auto-flow: column; justify-content: start; gap: 34px; margin-top: 22px; }
  .form { gap: 22px; }
  .send { position: sticky; top: 24px; }
  .phone { width: 350px; }
  .dm { height: 640px; }

  .idea { max-width: 1240px; margin: 80px auto 0; padding: 90px 80px 110px; }
  .fly--i1 { width: 70px; right: 40%; top: -36px; }
  .idea .h2 { font-size: 72px; }
  .idea blockquote { font-size: 32px; }
  .idea__fig { width: 420px; justify-self: center; }

  .faq { max-width: 1160px; margin: 0 auto; padding: 200px 40px 40px; }
  .fly--f1 { width: 60px; left: 2%; top: 230px; }
  .q summary { grid-template-columns: 60px 1fr 30px; padding: 22px 6px; font-size: 26px; gap: 18px; }
  .q__berry { width: 60px; height: 64px; }
  .q__berry img { width: 38px; }
  .q__berry--round img { width: 44px; }
  .q__pm { width: 30px; height: 30px; }
  .q__a { padding: 0 0 28px 84px; }
  .drip { height: 40px; }
  .q__a p { font-size: 16px; }

  .insta { padding: 110px 0 50px; }
  .fly--n1 { width: 70px; left: auto; right: 3%; top: 60px; }
  .feed { margin-top: 40px; padding: 30px 0 60px; }
  .feed__track li { margin-right: 34px; }
  .igp { width: 300px; padding: 12px 12px 16px; font-size: 14px; }

  .foot { padding: 80px 60px 60px; margin-top: 60px; }
  .foot__in { max-width: 1160px; margin: 0 auto; }
  .foot__in > * { max-width: 520px; }
  .foot__logo b { font-size: 64px; }
  .foot__logo i { font-size: 52px; }
  .foot__hand { width: 320px; right: -60px; bottom: -150px; }
}

/* ================= движение (только с JS и без reduce) ================= */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rise.in { opacity: 1; transform: none; }
.js .deck:not(.in) .card { transform: translateY(70px) rotate(0deg); opacity: 0; }
.deck.in .card:nth-child(2) { transition-delay: .1s, .1s, 0s, 0s; }
.deck.in .card:nth-child(3) { transition-delay: .2s, .2s, 0s, 0s; }
.deck.in .card:nth-child(4) { transition-delay: .3s, .3s, 0s, 0s; }
.js .tl__line { clip-path: inset(0 0 var(--hide, 100%) 0); }
.js .ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6, .1, .3, 1) .5s forwards; }
.js .ring path + path { animation-delay: .8s; }
.js .idea .ring path { animation: none; stroke-dashoffset: var(--draw, 1); }
.js .b { animation: bob 7s ease-in-out infinite; }
.js .b2, .js .b5, .js .b8 { animation-duration: 9s; animation-delay: -3s; }
.js .b3, .js .b6 { animation-duration: 8s; animation-delay: -5s; }
.js .foot__hand { transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.js .foot:not(.in) .foot__hand { transform: translateX(110%) rotate(-4deg); }
/* кнопки раз в несколько секунд покачиваются; задержки раздаёт script.js */
.js .btn--gold, .js .btn--ink, .js .nav__ig { animation: nudge 7s ease-in-out infinite; }
.js .btn:hover, .js .btn:focus-visible, .js .nav__ig:hover { animation-play-state: paused; }
/* телефон: карточки наборов слегка покачиваются */
@media (max-width: 1099px) {
  .js .deck.in .card { animation: sway 6s ease-in-out infinite; }
  .js .deck.in .card:nth-child(2) { animation-delay: -1.5s; }
  .js .deck.in .card:nth-child(3) { animation-delay: -3s; }
  .js .deck.in .card:nth-child(4) { animation-delay: -4.5s; }
}
/* вопросы: шоколад стекает при раскрытии */
.js .q[open] .drip { animation: drip .9s cubic-bezier(.3, .7, .3, 1) both; }
.js .q[open] .q__a p { animation: fadeup .5s ease .25s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes nudge { 0%, 84%, 100% { rotate: 0deg; scale: 1; } 86% { rotate: -3deg; scale: 1.04; } 89% { rotate: 2.5deg; } 92% { rotate: -1.6deg; } 95% { rotate: .8deg; scale: 1; } }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 1.4deg; } }
@keyframes drip { from { transform: scaleY(0); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise, .js .deck:not(.in) .card { opacity: 1 !important; }
  .js .rise { transform: none !important; }
  .js .deck:not(.in) .card:nth-child(1) { transform: rotate(-3deg); }
  .js .deck:not(.in) .card:nth-child(2) { transform: rotate(2.5deg); }
  .js .deck:not(.in) .card:nth-child(3) { transform: rotate(-2deg); }
  .js .deck:not(.in) .card:nth-child(4) { transform: rotate(3deg); }
  .js .foot:not(.in) .foot__hand { transform: rotate(-4deg); }
  .js .ring path { stroke-dashoffset: 0 !important; }
  .js .tl__line { clip-path: none; }
}
