/* Концепт редизайна kwas.ru — «Староминский квас». Site Russia, 2026 */

/* ===== Токены ===== */
:root { --rye: #140b05; --rye-2: #1f1209; --rye-3: #2c1a0d; --amber: #d9831f; --honey: #f0a93a; --gold: #e8c46a; --foam: #f6ead2; --cream: #fbf4e6; --red: #c9291c; --leaf: #6f8f3a; --mint: #39b26b; --ink: #2a1a0e; --muted: rgba(246,234,210,.62); --line: rgba(246,234,210,.14); --r: 22px; --pad: clamp(16px, 4vw, 56px); --max: 1320px; --ease: cubic-bezier(.22,.8,.24,1); }

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rye); color: var(--foam); font: 400 17px/1.6 "Golos Text", system-ui, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--honey); color: var(--rye); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.h-display { font-family: "Unbounded", sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: .95; text-transform: uppercase; margin: 0; }
.serif { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 500; text-transform: none; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 "Unbounded", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--honey); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sec { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.sec-title { font-size: clamp(34px, 6.4vw, 92px); margin: 18px 0 0; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 620px; margin: 24px 0 0; }

/* ===== Зерно-шум поверх всего ===== */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 33% { transform: translate(-3%,2%); } 66% { transform: translate(2%,-3%); } 100% { transform: translate(0,0); } }

/* ===== Прелоадер: наливаем стакан ===== */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--rye); transition: clip-path 1s var(--ease); clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__mug { position: relative; width: 92px; height: 128px; border: 3px solid var(--foam); border-top: 0; border-radius: 0 0 16px 16px; }
.loader__mug::after { content: ""; position: absolute; right: -26px; top: 22px; width: 22px; height: 54px; border: 3px solid var(--foam); border-left: 0; border-radius: 0 16px 16px 0; }
.loader__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0%; border-radius: 0 0 12px 12px; background: linear-gradient(180deg, var(--foam) 0 14px, var(--honey) 14px, var(--amber) 60%, #7a3a0c); }
.loader__pct { margin-top: 26px; font: 700 14px/1 "Unbounded", sans-serif; letter-spacing: .2em; color: var(--muted); text-align: center; }
.loader__box { display: grid; justify-items: center; }

/* ===== Плашка концепта ===== */
.concept-badge { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(20,11,5,.72); backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.concept-badge b { color: var(--honey); font-weight: 600; }
.concept-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(57,178,107,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(57,178,107,0); } }

/* ===== Шапка (обычная, не липкая) ===== */
.hdr { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 22px 0; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #e0472f, var(--red) 60%, #8d1a10); box-shadow: inset 0 0 0 3px var(--gold), 0 6px 20px rgba(201,41,28,.35); font: 800 13px/1 "Unbounded", sans-serif; color: var(--foam); letter-spacing: .04em; }
.logo__txt { font: 700 15px/1.1 "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.logo__txt small { display: block; font: 400 12px/1.3 "Golos Text", sans-serif; text-transform: none; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { position: relative; color: var(--muted); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--honey); transition: right .4s var(--ease); }
.nav a:hover { color: var(--foam); }
.nav a:hover::after { right: 0; }
.hdr__cta { display: flex; align-items: center; gap: 16px; }
.hdr__tel { font-weight: 600; white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--foam); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ===== Кнопки ===== */
.btn { --bg: var(--honey); --fg: var(--rye); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg); font: 700 15px/1 "Unbounded", sans-serif; letter-spacing: .02em; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--foam); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .5s var(--ease), border-radius .5s; }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { box-shadow: 0 14px 40px rgba(240,169,58,.35); }
.btn--ghost { --bg: transparent; --fg: var(--foam); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { --fg: var(--rye); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ===== Первый экран ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: radial-gradient(60% 70% at 70% 55%, rgba(217,131,31,.32), transparent 70%), radial-gradient(40% 50% at 15% 90%, rgba(201,41,28,.18), transparent 70%), var(--rye); }
.hero__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__in { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 32px; padding-top: 110px; padding-bottom: 90px; }
.hero__title { font-size: clamp(32px, 5.5vw, 92px); }
.hero__serif { font-size: 1.35em; line-height: .8; color: var(--foam); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .hero__title .line > span { transform: none; }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.hero__title .grad { background: linear-gradient(100deg, var(--gold), var(--honey) 40%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--foam); }
.hero__sub { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 520px; margin: 30px 0 38px; opacity: 0; transform: translateY(20px); transition: opacity .8s .5s, transform .8s .5s var(--ease); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; transform: translateY(20px); transition: opacity .8s .65s, transform .8s .65s var(--ease); }
.is-ready .hero__sub, .is-ready .hero__btns { opacity: 1; transform: none; }
.hero__visual { position: relative; height: min(78vh, 720px); perspective: 1000px; }
.hero__glass { position: absolute; inset: 0; border-radius: 300px 300px 28px 28px; overflow: hidden; transform-style: preserve-3d; transition: transform .6s var(--ease); box-shadow: 0 50px 120px rgba(0,0,0,.6), inset 0 0 0 1px rgba(246,234,210,.1); clip-path: inset(100% 0 0 0 round 300px 300px 28px 28px); }
.is-ready .hero__glass { clip-path: inset(0 0 0 0 round 300px 300px 28px 28px); transition: clip-path 1.4s .2s var(--ease), transform .6s var(--ease); }
.hero__glass img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0)); }
.hero__seal { position: absolute; z-index: 4; left: -40px; bottom: 60px; width: 150px; height: 150px; animation: spin 18s linear infinite; }
.hero__seal text { font: 700 11px "Unbounded", sans-serif; letter-spacing: .26em; fill: var(--foam); text-transform: uppercase; }
.hero__seal-core { position: absolute; z-index: 5; left: 10px; bottom: 110px; width: 50px; height: 50px; border-radius: 50%; background: var(--honey); display: grid; place-items: center; color: var(--rye); font: 800 18px "Unbounded", sans-serif; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__chip { position: absolute; z-index: 5; right: -14px; top: 18%; width: 170px; padding: 14px 18px; border-radius: 18px; background: rgba(251,244,230,.95); color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.35); animation: float 6s ease-in-out infinite; }
.hero__chip b { display: block; font: 800 26px/1 "Unbounded", sans-serif; color: var(--amber); }
.hero__chip span { font-size: 13px; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--honey), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ===== Бегущая строка ===== */
.ticker { position: relative; z-index: 4; overflow: hidden; background: var(--honey); color: var(--rye); transform: rotate(-2deg); margin: -30px -20px 0; padding: 18px 0; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.ticker--back { background: var(--red); color: var(--foam); transform: rotate(1.5deg); margin-top: -64px; z-index: 3; }
.ticker__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker--back .ticker__track { animation-direction: reverse; animation-duration: 40s; }
.ticker__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 800 clamp(18px, 2.2vw, 30px)/1 "Unbounded", sans-serif; text-transform: uppercase; white-space: nowrap; }
.ticker__track span::after { content: "✺"; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Появление при прокрутке ===== */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.split.is-in .w > span { transform: none; }

/* ===== Линейка продукции: горизонтальная прокрутка с закреплением ===== */
.line-up { position: relative; height: var(--lu-h, 400vh); background: var(--bg-lu, var(--rye-2)); transition: background-color .8s; }
.line-up__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.line-up__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 4vh; }
.line-up__count { font: 800 clamp(40px, 6vw, 90px)/1 "Unbounded", sans-serif; color: transparent; -webkit-text-stroke: 1px var(--line); }
.line-up__count b { color: var(--honey); -webkit-text-stroke: 0; }
.line-up__track { display: flex; gap: clamp(16px, 2vw, 32px); padding: 0 var(--pad); will-change: transform; }
.pcard { position: relative; flex: 0 0 clamp(260px, 24vw, 340px); height: min(60vh, 540px); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--c, var(--amber)); color: var(--ink); isolation: isolate; transition: transform .6s var(--ease); }
.pcard:hover { transform: translateY(-10px) rotate(-1deg); }
.pcard::before { content: ""; position: absolute; z-index: -1; width: 140%; aspect-ratio: 1; left: -20%; bottom: -70%; border-radius: 50%; background: rgba(255,255,255,.22); transition: transform .8s var(--ease); }
.pcard:hover::before { transform: scale(1.15) translateY(-6%); }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pcard__tag { padding: 6px 12px; border-radius: 999px; background: rgba(20,11,5,.88); color: var(--foam); font-size: 12px; font-weight: 600; }
.pcard__num { font: 800 15px "Unbounded", sans-serif; opacity: .5; }
.pcard__img { position: absolute; z-index: -1; left: 50%; top: 58px; bottom: 142px; width: 80%; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; }
.pcard__img img { height: 100%; width: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: translateY(-12px) rotate(4deg) scale(1.05); }
.pcard__name { font: 800 clamp(20px, 1.8vw, 26px)/1.05 "Unbounded", sans-serif; text-transform: uppercase; margin: 0 0 8px; }
.pcard__meta { font-size: 14px; opacity: .82; margin: 0; }
.pcard--light { color: var(--foam); }
.pcard--light .pcard__tag { background: var(--foam); color: var(--ink); }
.pcard--cta { background: var(--rye-3); color: var(--foam); box-shadow: inset 0 0 0 1px var(--line); justify-content: center; gap: 22px; }
.pcard--cta::before { background: rgba(240,169,58,.12); }
.line-up__bar { margin: 4vh var(--pad) 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.line-up__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--amber), var(--gold)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ===== От колоса до стакана ===== */
.story { position: relative; background: var(--cream); color: var(--ink); }
.story .eyebrow { color: var(--amber); }
.story .lead { color: rgba(42,26,14,.7); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); margin-top: 60px; }
.story__pin { position: sticky; top: 8vh; height: 84vh; border-radius: 30px; overflow: hidden; background: var(--rye); }
.story__pin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.story__pin img.is-on { opacity: 1; transform: scale(1); }
.story__level { position: absolute; z-index: 2; left: 22px; top: 22px; bottom: 22px; width: 10px; border-radius: 10px; background: rgba(251,244,230,.25); backdrop-filter: blur(6px); overflow: hidden; }
.story__level i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--lvl, 0) * 100%); background: linear-gradient(0deg, #7a3a0c, var(--amber) 60%, var(--honey)); transition: height .3s; }
.story__level i::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 10px; background: var(--foam); border-radius: 10px; }
.story__step-no { position: absolute; z-index: 2; right: 24px; bottom: 20px; font: 800 clamp(70px, 9vw, 140px)/1 "Unbounded", sans-serif; color: rgba(251,244,230,.92); mix-blend-mode: overlay; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; opacity: .25; transition: opacity .6s; }
.step.is-active { opacity: 1; }
.step__k { font: 700 13px "Unbounded", sans-serif; letter-spacing: .2em; color: var(--amber); text-transform: uppercase; }
.step h3 { font: 800 clamp(28px, 3.6vw, 52px)/1 "Unbounded", sans-serif; text-transform: uppercase; margin: 14px 0 18px; letter-spacing: -.01em; }
.step p { font-size: 18px; color: rgba(42,26,14,.75); margin: 0; max-width: 480px; }
.step__mobimg { display: none; }

/* ===== Цифры ===== */
.facts { background: var(--rye); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; margin-top: 56px; }
.fact { background: var(--rye); padding: 38px 28px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; transition: background .5s; }
.fact:hover { background: var(--rye-3); }
.fact__n { font: 800 clamp(38px, 3.9vw, 62px)/1 "Unbounded", sans-serif; white-space: nowrap; color: var(--honey); letter-spacing: -.03em; }
.fact__n small { font-size: .42em; color: var(--foam); margin-left: 6px; }
.fact p { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* ===== Для бизнеса: калькулятор кеги ===== */
.biz { background: linear-gradient(180deg, var(--rye) 0, var(--rye-2) 100%); overflow: hidden; }
.biz__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; margin-top: 50px; }
.biz__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.biz__list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: rgba(246,234,210,.04); border: 1px solid var(--line); transition: border-color .4s, transform .4s var(--ease); }
.biz__list li:hover { border-color: rgba(240,169,58,.5); transform: translateX(6px); }
.biz__list svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--honey); margin-top: 2px; }
.biz__list b { display: block; font-weight: 600; margin-bottom: 2px; }
.biz__list span { color: var(--muted); font-size: 15px; }
.calc { position: relative; border-radius: 30px; padding: clamp(24px, 3vw, 40px); background: var(--cream); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.calc__title { font: 800 22px/1.15 "Unbounded", sans-serif; text-transform: uppercase; margin: 0 0 6px; }
.calc__note { margin: 0 0 26px; font-size: 14px; color: rgba(42,26,14,.65); }
.calc__field { margin-bottom: 24px; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.calc__label output { font: 800 20px "Unbounded", sans-serif; color: var(--amber); white-space: nowrap; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { flex: 1 1 auto; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid rgba(42,26,14,.15); background: #fff; cursor: pointer; font-weight: 600; font-size: 15px; transition: background .3s, border-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--foam); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: grab; touch-action: none; }
.range:active { cursor: grabbing; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--amber) var(--fill, 50%), rgba(42,26,14,.12) var(--fill, 50%)); }
.range::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--amber) var(--fill, 50%), rgba(42,26,14,.12) var(--fill, 50%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--foam); border: 6px solid var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--foam); border: 6px solid var(--ink); }
.calc__out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 22px; }
.calc__out div { padding: 16px 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(42,26,14,.08); }
.calc__out b { display: block; font: 800 clamp(17px, 1.55vw, 23px)/1.1 "Unbounded", sans-serif; white-space: nowrap; color: var(--ink); }
.calc__out span { font-size: 13px; color: rgba(42,26,14,.6); }
.calc__out .is-main { background: var(--ink); color: var(--foam); }
.calc__out .is-main b { color: var(--honey); }
.calc__out .is-main span { color: var(--muted); }
.calc__mugs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 22px; min-height: 26px; }
.calc__mugs i { width: 14px; height: 20px; border-radius: 2px 2px 4px 4px; background: linear-gradient(180deg, var(--foam) 0 30%, var(--amber) 30%); animation: pop .4s var(--ease) both; }
@keyframes pop { from { transform: scale(0) translateY(10px); } }
.calc__mugs em { font-style: normal; font-size: 13px; color: rgba(42,26,14,.6); align-self: center; margin-left: 6px; }

/* ===== Галерея-лента (свайп, перетаскивание, стрелки) ===== */
.life { background: var(--rye-2); }
.life__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.arrows button:hover { background: var(--honey); color: var(--rye); border-color: var(--honey); }
.arrows svg { width: 22px; height: 22px; }
.drag { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 50px var(--pad) 10px; cursor: grab; user-select: none; scroll-behavior: smooth; }
.drag::-webkit-scrollbar { display: none; }
.drag.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.drag figure { flex: 0 0 clamp(260px, 34vw, 480px); margin: 0; scroll-snap-align: start; }
.drag figure:nth-child(even) { margin-top: 60px; }
.drag .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; }
.drag figure.wide { flex-basis: clamp(300px, 52vw, 760px); }
.drag figure.wide .ph { aspect-ratio: 3/2; }
.drag img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease); }
.drag figure:hover img { transform: scale(1.06); }
.drag figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.drag figcaption b { color: var(--foam); font-weight: 600; }

/* ===== Фестиваль ===== */
.fest { position: relative; min-height: 90vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--rye); }
.fest__bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; transform: translateY(var(--py, 0)); }
.fest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,11,5,.95), rgba(20,11,5,.35) 60%, rgba(20,11,5,.6)); }
.fest__in { position: relative; z-index: 2; padding-bottom: clamp(60px, 9vw, 120px); }
.fest__title { font-size: clamp(40px, 8vw, 130px); }
.fest__row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.pill { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(20,11,5,.5); backdrop-filter: blur(8px); font-size: 15px; }

/* ===== Заявка ===== */
.order { background: var(--honey); color: var(--rye); overflow: hidden; }
.order .eyebrow { color: var(--rye); }
.order__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.order__title { font-size: clamp(38px, 6.6vw, 104px); }
.order__title .serif { font-size: 1.05em; }
.form { background: var(--rye); color: var(--foam); border-radius: 30px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 100px rgba(80,30,0,.4); }
.form h3 { font: 800 22px/1.15 "Unbounded", sans-serif; text-transform: uppercase; margin: 0 0 22px; }
.inp { display: block; width: 100%; min-height: 58px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(246,234,210,.05); margin-bottom: 12px; outline: none; transition: border-color .3s, background .3s; }
.inp:focus { border-color: var(--honey); background: rgba(246,234,210,.09); }
.inp::placeholder { color: rgba(246,234,210,.45); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--honey) 50%), linear-gradient(135deg, var(--honey) 50%, transparent 50%); background-position: calc(100% - 26px) 26px, calc(100% - 20px) 26px; background-size: 6px 6px; background-repeat: no-repeat; }
select.inp option { background: var(--rye); }
.form__label { font-size: 14px; color: var(--muted); margin: 8px 0 10px; }
.msg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.msg label { cursor: pointer; }
.msg input { position: absolute; opacity: 0; pointer-events: none; }
.msg span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--cream); color: var(--ink); font-size: 12px; font-weight: 600; border: 2px solid transparent; transition: border-color .3s, transform .3s var(--ease); }
.msg span img, .msg span svg { width: 28px; height: 28px; }
.msg input:checked + span { border-color: var(--honey); transform: translateY(-3px); }
.msg input:focus-visible + span { outline: 2px solid var(--honey); outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 4px; }
.form__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 14px; }
.form__agree input { margin-top: 3px; accent-color: var(--honey); }
.form__ok { display: none; text-align: center; padding: 30px 0; }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__ok { display: block; }
.form__ok b { display: block; font: 800 24px "Unbounded", sans-serif; color: var(--honey); margin-bottom: 8px; }

/* ===== Подвал ===== */
.ftr { background: var(--rye); padding: 70px 0 100px; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ftr h4 { font: 700 13px "Unbounded", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--honey); margin: 0 0 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.ftr a:hover { color: var(--foam); }
.ftr__big { font: 800 clamp(56px, 13vw, 210px)/.85 "Unbounded", sans-serif; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--line); margin: 70px 0 30px; white-space: nowrap; letter-spacing: -.03em; }
.ftr__bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.made a { color: var(--honey); }

/* ===== Мобильное меню: полноэкранная «пена» ===== */
.mmenu { position: fixed; inset: 0; z-index: 60; background: var(--honey); color: var(--rye); padding: 100px var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between; clip-path: circle(0 at calc(100% - 40px) 44px); transition: clip-path .8s var(--ease); }
body.menu-open .mmenu { clip-path: circle(150% at calc(100% - 40px) 44px); }
.mmenu nav { display: grid; gap: 6px; }
.mmenu nav a { font: 800 clamp(30px, 9vw, 52px)/1.1 "Unbounded", sans-serif; text-transform: uppercase; }
.mmenu__foot { display: grid; gap: 12px; font-weight: 600; }
body.menu-open .burger { position: relative; z-index: 70; border-color: var(--rye); }
body.menu-open .burger span { background: var(--rye); }

/* ===== Курсор-пузырь (только мышь) ===== */
.cursor { position: fixed; z-index: 95; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1.5px solid var(--honey); pointer-events: none; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; mix-blend-mode: difference; }
.cursor.is-big { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(240,169,58,.25); }
@media (hover: none) { .cursor { display: none; } }

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr__tel { display: none; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__visual { height: 62vh; max-width: 440px; width: 100%; margin: 0 auto; }
  .hero__seal { left: -10px; width: 120px; height: 120px; }
  .hero__seal-core { left: 34px; bottom: 95px; }
  .hero__chip { right: 0; }
  .story__grid { grid-template-columns: 1fr; margin-top: 30px; }
  .story__pin { display: none; }
  .step { min-height: 0; opacity: 1; padding: 30px 0; }
  .step__mobimg { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; margin-bottom: 22px; }
  .step__mobimg img { width: 100%; height: 100%; object-fit: cover; }
  .biz__grid, .order__grid { grid-template-columns: 1fr; }
  .line-up__head .lead { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hdr__cta .btn { display: none; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact { min-height: 0; }
  .calc__out { grid-template-columns: 1fr 1fr; }
  .calc__out .is-main { grid-column: 1 / -1; }
  .msg { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr; }
  .life__head { flex-direction: column; align-items: flex-start; }
  .drag figure:nth-child(even) { margin-top: 0; }
  .concept-badge { font-size: 11px; }
  .ticker { margin-top: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* ===== Витрина солода ===== */
.malt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.malt { display: flex; flex-direction: column; border-radius: var(--r); background: #fff; overflow: hidden; border: 1px solid rgba(42,26,14,.08); transition: transform .5s var(--ease), box-shadow .5s; }
.malt:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(80,40,10,.15); }
.malt img { aspect-ratio: 767/650; object-fit: contain; padding: 10px; transition: transform .8s var(--ease); }
.malt:hover img { transform: scale(1.06) rotate(-2deg); }
.malt div { padding: 18px 20px 22px; border-top: 1px solid rgba(42,26,14,.08); }
.malt h3 { font: 800 19px/1.1 "Unbounded", sans-serif; text-transform: uppercase; margin: 0 0 6px; }
.malt p { margin: 0; font-size: 14px; color: rgba(42,26,14,.65); }

/* ===== Фото стакана-рекорда на фестивале ===== */
.fest__photo { position: absolute; z-index: 3; right: var(--pad); top: 12%; width: clamp(180px, 20vw, 300px); margin: 0; transform: rotate(4deg); }
.fest__photo img { border-radius: 18px; border: 8px solid var(--foam); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.fest__photo figcaption { position: absolute; left: -30px; bottom: 26px; padding: 10px 16px; border-radius: 999px; background: var(--honey); color: var(--rye); font: 700 13px "Unbounded", sans-serif; transform: rotate(-6deg); white-space: nowrap; }
.logo img { width: 120px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
@media (max-width: 1100px) { .malt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .fest__photo { position: relative; right: auto; top: auto; width: 200px; margin: 40px 0 0 var(--pad); } .fest { flex-direction: column; align-items: flex-start; justify-content: flex-end; } }
@media (max-width: 600px) { .malt-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .malt div { padding: 12px; } .malt h3 { font-size: 14px; } .malt p { font-size: 12px; } .logo img { width: 92px; } }
.line-up .sec-title { font-size: clamp(30px, 4.6vw, 72px); }
.fest::after { background: linear-gradient(0deg, rgba(20,11,5,.96), rgba(20,11,5,.4) 65%, rgba(20,11,5,.7)), linear-gradient(90deg, rgba(20,11,5,.75), transparent 70%); }
.fest__in { padding-right: clamp(0px, 24vw, 360px); }
.fest .eyebrow { color: var(--gold); text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.fest__title { font-size: clamp(38px, 6.4vw, 104px); }
.ftr__big { font-size: clamp(36px, 8.6vw, 116px); overflow: hidden; }
@media (max-width: 900px) { .fest__in { padding-right: var(--pad); } }
/* Мобильная лента продукции: свайп с привязкой к карточке */
@media (max-width: 900px) {
  .line-up { height: auto; }
  .line-up__sticky { position: static; height: auto; padding: 80px 0 60px; }
  .line-up__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px; cursor: grab; }
  .line-up__track::-webkit-scrollbar { display: none; }
  .line-up__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .pcard { scroll-snap-align: center; height: 460px; flex-basis: 78vw; max-width: 340px; }
  .line-up__bar { display: none; }
  .line-up__count { display: none; }
}
