/* «Көкшай» — чайная лавка (референс: светлый минимализм чайного магазина «Idle Hour Matcha»): тёплый белый фон, банки
   крупно на светло-сером, большие плитки разделов, чёрные кнопки, спокойная редакционная типографика (Cormorant + Golos Text).
   Свои акценты: «көк» — глубокий сине-зелёный коробок и пиал, тёплый терракотовый цвет настоя, золотое тиснение.
   Тёмные «студийные» панели — только там, где поднимается пар (первый экран, конструктор набора). */
:root {
  --bg: #f6f3ee; --fg: #171612; --muted: #6d6a62; --line: #e2ddd3; --soft: #ede9e1;
  --accent: #171612; --accent-ink: #f6f3ee; --sale: #b4472a; --ok: #3f6b4a;
  --warm: #b5622f; --kok: #2e5a54; --gold: #d6b56a; --dark: #1b1916; --dark2: #26231f;
  --card-bg: #e9e4dc; --radius: 3px; --radius-btn: 10px; --wrap: 1320px; --gap: 22px; --pad: 32px; --card-ratio: 4/5;
  --font-body: 'Golos Text', system-ui, sans-serif; --font-head: 'Cormorant', Georgia, serif;
  --step-3: clamp(30px, 3.3vw, 46px); --step-4: clamp(40px, 5vw, 72px);
  --ease: cubic-bezier(.2, .75, .15, 1);
}
html { background: var(--bg); }
body { background: var(--bg); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.01em; }
::selection { background: var(--kok); color: #fff; }
.kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.btn { font-weight: 500; letter-spacing: .01em; transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.btn:hover { filter: none; background: #34312b; border-color: #34312b; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--light { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--fg); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.chip { border-radius: 999px; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--fg); }
.sr-only, .w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— заголовки по словам ——— */
.js [data-split] .w { display: inline-block; clip-path: inset(-.4em -.25em -.32em -.25em); vertical-align: top; }
.js [data-split] .w__i { display: inline-block; transform: translateY(150%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.05s var(--ease); }
.js [data-split].is-in .w__i { transform: none; }

/* ——— раскрытие картинок ——— */
.js [data-clip] img { clip-path: inset(0 0 100% 0); transform: scale(1.18); transition: clip-path 1.15s cubic-bezier(.7, 0, .2, 1), transform 1.7s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-clip].is-in img { clip-path: inset(0); transform: none; }

/* ——— строка условий ——— */
.ann { background: var(--fg); color: #e9e3d8; font-size: 13px; overflow: hidden; height: 34px; display: flex; align-items: center; }
.ann__track { display: flex; width: max-content; animation: ann 60s linear infinite; }
.ann__item { margin: 0; padding-right: 32px; white-space: nowrap; }
.ann__item i { font-style: normal; margin: 0 16px; color: var(--gold); }
@keyframes ann { to { transform: translateX(-50%); } }

/* ——— шапка ——— */
.top { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 238, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: transform .45s var(--ease), box-shadow .3s; view-transition-name: top-bar; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.top__in { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.top__nav { display: flex; gap: 26px; font-size: 14px; }
.top__nav a { text-decoration: none; position: relative; padding: 6px 0; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.top__nav a:hover::after, .top__nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.top__logo { text-decoration: none; justify-self: center; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); }
.logo__mark { width: 30px; height: 28px; color: var(--kok); }
.logo__w { font: italic 600 30px/1 var(--font-head); letter-spacing: -.01em; transform: translateY(-2px); }
.top__tools { justify-self: end; display: flex; align-items: center; gap: 2px; }
.top__tools a, .top__tools button { position: relative; color: var(--fg); }
.top__tools b { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--kok); color: #fff; font: 600 10px/17px var(--font-body); text-align: center; }
.top__menu { display: none; }
.icon-btn:hover { background: rgba(0, 0, 0, .05); }

/* ——— первый экран ——— */
.hero { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: 26px 0 40px; min-height: min(calc(100vh - 98px), 860px); }
.hero__t { font-size: clamp(46px, 6vw, 92px); line-height: .98; letter-spacing: -.025em; margin: 0 0 24px; }
.hero__lead { max-width: 30em; font-size: 17px; color: #4a4741; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; padding: 30px 0 0; margin: 34px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); gap: 20px 34px; justify-content: start; }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts b { font: 500 30px/1 var(--font-head); }
.hero__facts span { font-size: 13px; color: var(--muted); max-width: 12em; }
.hero__stage { position: relative; height: min(78vh, 780px); min-height: 520px; border-radius: 4px; overflow: hidden; background: radial-gradient(120% 90% at 30% 18%, #3b3631 0%, #24211d 45%, #141311 100%); isolation: isolate; touch-action: pan-y; }
.hero__stage::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 92%, rgba(255, 230, 190, .07), transparent 70%); pointer-events: none; }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage.is-live .hero__poster { display: none; }
.hero__canvas, .hero__steam { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__steam { pointer-events: none; z-index: 2; }
.hero__hint { position: absolute; left: 22px; bottom: 20px; z-index: 3; color: rgba(233, 227, 216, .62); font-size: 13px; transition: opacity .6s; }
.hero__hint-m { display: none; }
.hero__stage.is-touched .hero__hint { opacity: 0; }
.hero__temp { position: absolute; right: 20px; top: 20px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #ece5d9; font-size: 12.5px; letter-spacing: .02em; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.hero__temp i { width: 7px; height: 7px; border-radius: 50%; background: #e09a4f; box-shadow: 0 0 0 0 rgba(224, 154, 79, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(224, 154, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 154, 79, 0); } }
.js .hero__txt > * { animation: rise 1s var(--ease) both; }
.js .hero__txt > :nth-child(1) { animation-delay: .05s; } .js .hero__txt > :nth-child(3) { animation-delay: .55s; } .js .hero__txt > :nth-child(4) { animation-delay: .7s; } .js .hero__txt > :nth-child(5) { animation-delay: .85s; }
.js .hero__txt > .hero__t { animation: none; }
.js .hero__stage { animation: stage 1.4s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes stage { from { clip-path: inset(12% 10% 12% 10% round 160px); } to { clip-path: inset(0 round 4px); } }

/* ——— вступление ——— */
.intro { padding: 70px 0 84px; text-align: center; }
.intro__t { max-width: 34em; margin: 0 auto; font: 500 clamp(24px, 2.4vw, 34px)/1.3 var(--font-head); letter-spacing: -.005em; }

/* ——— плитки разделов ——— */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.tile { position: relative; display: block; overflow: hidden; aspect-ratio: 3/4; color: #fff; text-decoration: none; background: var(--dark); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .34), transparent 32%, transparent 70%, rgba(0, 0, 0, .3)); z-index: 1; pointer-events: none; }
.tile__t { position: absolute; left: 18px; top: 16px; z-index: 2; font-size: 15px; letter-spacing: .01em; }
.tile__go { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--fg); transform: scale(.7) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.tile__go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.js .tile.is-in:hover img, .js .tile.is-in:focus-visible img, .tile:hover img { transform: scale(1.06); transition-delay: 0s; }
.tile:hover .tile__go, .tile:focus-visible .tile__go { transform: none; opacity: 1; }

/* ——— блоки с товарами ——— */
.block { padding: 84px 0 20px; }
.shead { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.shead h2, .shead__t { font-size: var(--step-3); }
.shead__all { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; white-space: nowrap; padding-bottom: 6px; }
.shead__all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease); }
.shead__all:hover svg { transform: translateX(4px); }
.grid--2 { --cols: 2; }

/* карточка */
.card { background: transparent; }
.card__media { position: relative; border-radius: var(--radius); }
.card__media img { transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: circle(0% at 50% var(--ly, 40%)); transition: clip-path .7s cubic-bezier(.7, 0, .25, 1); z-index: 1; }
.card:hover .card__alt { clip-path: circle(150% at 50% var(--ly, 40%)); transition-delay: .32s; transition-duration: 1s; }
.card__steam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.card__badge { z-index: 3; border-radius: 999px; padding: 3px 10px; background: var(--bg); color: var(--fg); font-size: 11.5px; letter-spacing: .02em; }
.card__fav { z-index: 3; background: rgba(246, 243, 238, .9); }
.card__body { gap: 5px; }
.card__name { order: 1; font: 500 21px/1.15 var(--font-head); letter-spacing: -.005em; }
.card__price { order: 2; font-size: 15px; }
.card__price b { font-weight: 500; }
.card__meta { order: 3; font-size: 12.5px; }
.card__vars { order: 4; margin-top: 2px; }
.card__vars .chip { min-height: 28px; padding: 0 10px; font-size: 12px; }
.card__vars [data-cv^="set:"], .card[data-id="nabor"] .card__vars { display: none; }
.card__add { order: 5; margin-top: 10px; min-height: 42px; background: transparent; color: var(--fg); border-color: var(--line); }
.card__add:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ——— бегущая строка ——— */
.band { overflow: hidden; padding: 70px 0 30px; }
.band__track { display: flex; width: max-content; }
.band__track span { transform: skewX(var(--skew, 0deg)); display: flex; align-items: center; white-space: nowrap; font: italic 500 clamp(56px, 9vw, 140px)/1 var(--font-head); letter-spacing: -.02em; color: var(--fg); }
.band__track span i { font-style: normal; font-size: .32em; color: var(--warm); margin: 0 .6em; transform: translateY(-.3em); }

/* ——— конструктор на главной ——— */
.promo-set { margin: 60px auto 0; width: min(var(--wrap), 100% - 2 * var(--pad)); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 30px; padding: clamp(28px, 4vw, 56px); border-radius: 4px; background: radial-gradient(120% 120% at 75% 30%, #3a3530 0%, #211e1a 55%, #151412 100%); color: #ece5d9; overflow: hidden; }
.promo-set h2 { font-size: var(--step-3); color: #f6f3ee; margin-bottom: 18px; }
.promo-set p { color: #c9c1b4; max-width: 30em; }
.promo-set .kicker { color: var(--gold); }
.promo-set__steps { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.promo-set__steps li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.promo-set__steps b { width: 30px; height: 30px; border: 1px solid rgba(214, 181, 106, .55); border-radius: 50%; display: grid; place-items: center; font: 600 16px var(--font-head); color: var(--gold); flex: none; }
.promo-set__stage { position: relative; }
.promo-set__svg { width: 100%; height: auto; aspect-ratio: 560/470; display: block; }
.promo-set__steam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ——— как заварить ——— */
.brew { padding: 100px 0 0; }
.brew__head { margin-bottom: 0; }
.brew__head h2 { font-size: var(--step-3); max-width: 13em; }
.brew__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.brew__track { height: 330vh; position: relative; }
.brew__sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.brew__viz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inst { margin: 0; padding: 18px 16px 14px; border-radius: 4px; background: var(--soft); display: grid; justify-items: center; align-content: center; gap: 6px; height: min(37vh, 330px); transition: background .5s, transform .6s var(--ease), box-shadow .5s, opacity .5s; opacity: .55; }
.inst svg { height: calc(100% - 26px); width: auto; max-width: 100%; display: block; }
.inst figcaption { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.inst.is-on { background: #fff; opacity: 1; transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(40, 30, 15, .45); }
.th-fill { transition: none; }
.gr-leaves path { transition: opacity .35s, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.cp-steam { transition: opacity .4s; animation: wisp 2.6s ease-in-out infinite; }
@keyframes wisp { 50% { transform: translateY(-4px); } }
.brew__steps { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 4px; position: relative; }
.brew__steps::before, .brew__steps::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.brew__steps::after { background: var(--warm); transform-origin: top; transform: scaleY(var(--p, 0)); }
.brew__step { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 18px 0 18px; border-top: 1px solid var(--line); opacity: .36; transition: opacity .5s; }
.brew__step:last-child { border-bottom: 1px solid var(--line); }
.brew__step.is-done { opacity: .55; }
.brew__step.is-on { opacity: 1; }
.brew__n { font: 500 16px var(--font-head); color: var(--warm); padding-top: 6px; }
.brew__step h3 { font: 500 14px var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 4px; }
.brew__v { margin: 0 0 6px; font: 500 40px/1 var(--font-head); letter-spacing: -.01em; transition: font-size .5s var(--ease); }
.brew__step.is-on .brew__v { font-size: 58px; }
.brew__v b { font-weight: 600; }
.brew__step p:last-child { margin: 0; color: #4a4741; font-size: 14.5px; max-width: 32em; }
.brew.is-swap .brew__v { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ——— шай ——— */
.shai { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding: 110px 0 20px; }
.shai__img { margin: 0; position: sticky; top: 90px; overflow: hidden; border-radius: var(--radius); }
.shai__img img { width: 100%; }
.shai__txt h2 { font-size: var(--step-3); margin-bottom: 18px; }
.shai__txt > p { max-width: 34em; }
.shai__txt .grid { margin-top: 30px; }

/* ——— условия ——— */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perk { padding: 30px 24px 26px; border-left: 1px solid var(--line); }
.perk:first-child { border-left: 0; padding-left: 0; }
.perk b { display: block; font: 500 34px/1.05 var(--font-head); margin-bottom: 8px; }
.perk p { margin: 0; color: var(--muted); font-size: 14px; }

/* ——— подвал ——— */
.foot { margin-top: 110px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__in { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 46px 0 30px; }
.foot__h { margin: 0 0 14px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.foot__about p:not(.foot__h) { max-width: 26em; font-size: 14px; color: #4a4741; }
.foot__about .btn { margin-top: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { text-decoration: underline; }
.foot__word { line-height: .74; text-align: center; white-space: nowrap; padding-top: 10px; overflow: hidden; }
.foot__word span { display: inline-block; font: italic 600 clamp(120px, 27vw, 420px)/.8 var(--font-head); letter-spacing: -.045em; color: var(--fg); transform: translateY(12%); }
.foot__legal { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 0 26px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }

/* ——— курсор-спутник ——— */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: 120; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; display: block; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--fg); }
.cursor__ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.cursor__ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(23, 22, 18, .45); transition: transform .45s var(--ease), background .3s, border-color .3s; }
.cursor__ring b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; font: 500 12px var(--font-body); color: #fff; white-space: nowrap; transition: opacity .25s, transform .4s var(--ease); }
.cursor.is-link .cursor__ring::before { transform: scale(1.5); border-color: rgba(23, 22, 18, .25); }
.cursor.is-label .cursor__ring::before { transform: scale(2.6); background: var(--fg); border-color: var(--fg); }
.cursor.is-label .cursor__ring b { opacity: 1; transform: translate(-50%, -50%); }
.cursor.is-label .cursor__dot, .cursor.is-text .cursor__dot { opacity: 0; }

/* ——— страницы «О лавке» и «Доставка» ——— */
.about-hero { padding: 20px 0 50px; }
.about-hero .page-title { font-size: clamp(42px, 6vw, 88px); line-height: 1; max-width: 13em; }
.about-hero__lead { max-width: 36em; font-size: 18px; color: #4a4741; }
.about-wide { margin: 0; overflow: hidden; }
.about-wide img { width: 100%; }
.about-wide img, .about-split img { filter: saturate(.78) sepia(.06); }
.about-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 80px 0 40px; }
.about-col__n { font: 500 18px var(--font-head); color: var(--warm); }
.about-col h2 { font-size: 30px; margin: 10px 0 12px; }
.about-col p { color: #4a4741; }
.about-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding: 40px 0 20px; }
.about-split figure { margin: 0; overflow: hidden; }
.about-split h2 { font-size: var(--step-3); margin-bottom: 16px; }
.mapbox { margin: 20px 0 16px; border-radius: var(--radius); overflow: hidden; }
.mapbox svg { width: 100%; height: auto; display: block; }
.dl { display: grid; margin: 10px 0 40px; border-top: 1px solid var(--line); }
.dl__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.dl__row h2 { font-size: 28px; }
.dl__row p { margin: 0; color: #4a4741; }

/* ——— карточка товара ——— */
.ptitle { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; }
.pprice { font-family: var(--font-body); font-size: 26px; }
.pprice b { font-weight: 500; }
.gallery__main { border-radius: var(--radius); view-transition-name: pimg; }
.pbrew { padding: 16px 18px; background: var(--soft); border-radius: var(--radius); }
.pbrew__t { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pbrew__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pbrew__d { display: grid; justify-items: center; padding: 12px 6px 10px; background: var(--bg); border-radius: var(--radius); }
.pbrew__d b { font: 600 32px/1 var(--font-head); }
.pbrew__d small { font-size: 12px; color: var(--muted); }
.pbrew__d i { font-style: normal; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pbrew__set { display: block; margin-top: 12px; font-size: 14px; }
.pset { padding: 16px 18px; background: var(--soft); border-radius: var(--radius); }
.pset__t { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pset__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.pset__list li { display: flex; justify-content: space-between; gap: 12px; }
.pset__list span:last-child { color: var(--muted); white-space: nowrap; }
.pset__edit { font-size: 14px; }
.pvars [data-pv^="set:"] { display: none; }

/* ——— конструктор набора ——— */
.set { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(26px, 4vw, 60px); align-items: start; padding: 8px 0 40px; }
.set__stage-col { position: sticky; top: 76px; display: grid; gap: 14px; }
.set__stage { position: relative; border-radius: 4px; overflow: hidden; background: radial-gradient(110% 100% at 50% 20%, #3a3530 0%, #24211d 55%, #161513 100%); }
.set__svg { width: 100%; height: auto; aspect-ratio: 560/470; display: block; cursor: pointer; }
.set__svg.is-swap { animation: boxswap .7s var(--ease); }
@keyframes boxswap { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.set__steam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.set__badge { position: absolute; left: 16px; bottom: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #ece5d9; font-size: 13px; backdrop-filter: blur(6px); }
.set__lid { position: absolute; right: 14px; top: 14px; min-height: 38px; padding: 0 16px; font-size: 13px; }
.cell__hl { fill: transparent; transition: fill .25s; }
.cell.is-empty .cell__hl { fill: rgba(214, 181, 106, .0); }
.cell.is-empty:hover .cell__hl { fill: rgba(214, 181, 106, .18); }
.cell.is-target .cell__hl { fill: rgba(214, 181, 106, .32); }
.cell.is-drop .cell__hl { fill: rgba(214, 181, 106, .5); }
.is-dragging, .is-dragging * { cursor: grabbing !important; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .3)); }
.fly-box { position: fixed; left: 0; top: 0; width: 60px; z-index: 130; pointer-events: none; }
.set__cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.set__cells li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border: 1px dashed #cfc8bb; border-radius: var(--radius); color: var(--muted); min-width: 0; }
.set__cells li.is-full { border-style: solid; border-color: var(--line); color: var(--fg); background: #fff; }
.set__cells li.is-target { border-color: var(--gold); border-style: solid; }
.cells__n { font: 600 16px var(--font-head); color: var(--warm); width: 14px; flex: none; }
.cells__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cells__rm, .cells__pick { border: 0; background: none; padding: 6px 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cells__pick { text-decoration: none; text-align: left; }
.set__title { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; margin: 4px 0 12px; }
.set__lead { color: #4a4741; margin-bottom: 26px; }
.step { border: 0; margin: 0 0 26px; padding: 0 0 26px; border-bottom: 1px solid var(--line); min-width: 0; }
.step legend { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; font: 500 24px var(--font-head); width: 100%; }
.step legend span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fg); color: var(--bg); font: 500 13px var(--font-body); }
.step legend small { margin-left: auto; font: 400 13px var(--font-body); color: var(--muted); }
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.boxopt { display: grid; gap: 8px; justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: left; transition: border-color .2s, box-shadow .25s, transform .3s var(--ease); }
.boxopt svg { height: 34px; width: auto; }
.boxopt .bx { fill: #e6efe9; stroke: var(--kok); stroke-width: 1.4; }
.boxopt circle { fill: var(--kok); }
.boxopt .acc { fill: var(--gold); }
.boxopt span { display: grid; }
.boxopt b { font-weight: 500; }
.boxopt small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.boxopt em { font-style: normal; font-size: 13.5px; }
.boxopt:hover { transform: translateY(-2px); }
.boxopt[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.teas__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.teas__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.teas__tabs .chip { min-height: 32px; padding: 0 12px; }
.teas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 470px; overflow: auto; padding: 2px; scrollbar-width: thin; }
.tea { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: center; font-size: 12.5px; line-height: 1.25; cursor: grab; touch-action: manipulation; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.tea:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -18px rgba(40, 30, 15, .5); }
.tea:active { cursor: grabbing; }
.tea__img svg { width: 56px; height: 70px; display: block; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.tea:hover .tea__img svg { transform: translateY(-4px) rotate(-3deg); }
.tea__n { font-weight: 500; }
.tea__p { color: var(--muted); font-size: 11.5px; }
.tea__c { position: absolute; right: 6px; top: 6px; font: 600 11px var(--font-body); font-style: normal; color: var(--kok); }
.tea.is-in { border-color: var(--kok); box-shadow: inset 0 0 0 1px var(--kok); }
.accs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.accopt { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12.5px; text-align: center; line-height: 1.25; }
.accopt svg { width: 36px; height: 34px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linejoin: round; }
.accopt b { font-weight: 500; }
.accopt em { font-style: normal; color: var(--muted); font-size: 12px; }
.accopt[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.msg textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fffdf8; font: 500 23px/1.25 'Caveat', cursive; color: #2c2a26; resize: vertical; background-image: repeating-linear-gradient(transparent 0 27px, #ece5d6 27px 28px); background-position: 0 12px; }
.msg__n { margin: 6px 0 0; }
.ribbons { display: flex; flex-wrap: wrap; gap: 10px; }
.rib { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; }
.rib i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--c) 50%, var(--d) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.rib[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.sumbox { padding: 18px 20px; background: var(--soft); border-radius: 6px; margin-bottom: 12px; }
.sumbox .sum { font-size: 14px; }
.sumbox .sum__total { font-size: 20px; }
.sumbox__act { display: grid; gap: 6px; justify-items: center; }

/* ——— переходы между страницами ——— */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
::view-transition-group(pimg) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .75, .15, 1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ——— планшет ——— */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__in { grid-template-columns: 1fr 1fr; }
}
/* ——— телефон ——— */
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .ann { font-size: 12px; height: 30px; }
  .top__in { height: 56px; grid-template-columns: auto 1fr; }
  .top__nav { display: none; }
  .top__logo { justify-self: start; }
  .logo__w { font-size: 26px; }
  .top__menu { display: inline-grid; }
  .top__search { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 12px 0 30px; gap: 26px; }
  .hero__stage { order: -1; height: min(64vh, 470px); min-height: 360px; }
  .hero__t { font-size: clamp(40px, 11vw, 56px); }
  .hero__lead { font-size: 16px; }
  .hero__hint-d { display: none; } .hero__hint-m { display: inline; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; padding-top: 22px; }
  .hero__facts b { font-size: 24px; }
  .hero__facts span { font-size: 12px; }
  .intro { padding: 46px 0 50px; }
  .block { padding-top: 60px; }
  .shead { align-items: start; flex-direction: column; gap: 10px; }
  .band { padding: 46px 0 10px; }
  .promo-set { grid-template-columns: 1fr; margin-top: 40px; padding: 22px 16px 26px; gap: 10px; }
  .promo-set__stage { order: -1; margin: 0 -10px; }
  .brew { padding-top: 70px; }
  .brew__track { height: auto; }
  .brew__sticky { position: relative; height: auto; min-height: 0; grid-template-columns: 1fr; gap: 0; width: 100%; }
  .brew__viz { position: sticky; top: 0; z-index: 4; display: block; height: 232px; margin-top: 18px; background: linear-gradient(var(--bg) 88%, rgba(246, 243, 238, 0)); }
  .inst { position: absolute; left: var(--pad); right: var(--pad); top: 8px; height: 206px; padding: 8px; opacity: 0; transform: translateY(14px) scale(.98); pointer-events: none; }
  .inst svg { height: 168px; width: auto; }
  .inst.is-on { opacity: 1; transform: none; box-shadow: none; background: var(--soft); }
  .brew__side { width: calc(100% - 2 * var(--pad)); margin: 0 auto; }
  .brew__tabs { position: relative; z-index: 5; margin: 0 0 6px; }
  .brew__step.is-on .brew__v { font-size: 44px; }
  .brew__step { min-height: 44vh; align-content: center; grid-template-columns: 40px 1fr; }
  .brew__v { font-size: 34px; }
  .shai { grid-template-columns: 1fr; padding-top: 70px; }
  .shai__img { position: relative; top: 0; }
  .perks { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .perk { padding: 22px 14px 20px; }
  .perk:nth-child(3) { border-left: 0; padding-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .perk b { font-size: 27px; }
  .foot { margin-top: 70px; }
  .foot__in { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .foot__about { grid-column: 1 / -1; }
  .about-cols, .about-split, .dl__row { grid-template-columns: 1fr; gap: 20px; }
  .about-cols { padding: 50px 0 20px; gap: 30px; }
  .set { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .set__stage-col { display: contents; }
  .set__stage { position: sticky; top: 0; z-index: 6; margin: 0 calc(-1 * var(--pad)); border-radius: 0; }
  .set__svg { height: min(40vh, 330px); width: 100%; }
  .set__panel { order: 2; }
  .set__cells { order: 1; grid-template-columns: 1fr; }
  .boxes { grid-template-columns: 1fr; }
  .boxopt { grid-template-columns: auto 1fr auto; align-items: center; }
  .teas { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; overflow: visible; }
  .accs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set__badge { left: 10px; bottom: 8px; font-size: 12px; padding: 5px 10px; }
  .set__lid { right: 10px; top: 8px; }
}
@media (max-width: 420px) {
  .hero__cta .btn { flex: 1; padding: 0 14px; }
  .tile__t { font-size: 14px; left: 12px; top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .ann__track { animation: none; }
  .js [data-split] .w__i, .js [data-clip] img { transform: none !important; clip-path: none !important; transition: none !important; }
  .js .hero__txt > *, .js .hero__stage { animation: none !important; }
  .card__alt { display: none; }
}
