/* Тема «Староминский» (kwas.ru) — весь дизайн сайта. Перенос утверждённой главной; внутренние страницы — в конце файла. Site Russia, 2026 */

/* ===== Токены ===== */
/* ===== Шрифты: свои файлы (assets/fonts) — только нужные начертания. Golos Text 400 и 600 (кириллица + латиница),
   Unbounded — переменный 500–900 (заголовки 600/700/800). Old Standard TT курсив — Google Fonts (inc/assets.php) ===== */
@font-face { font-family: "Golos Text"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/golos-text-cyrillic-400.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/golos-text-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/golos-text-cyrillic-600.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/golos-text-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD; }
@font-face { font-family: "Unbounded"; font-weight: 500 900; font-style: normal; font-display: swap; src: url(../fonts/unbounded-var.woff2) format("woff2"); }
:root { --rye: #160c06; --rye-2: #211309; --rye-3: #2e1b0e; --amber: #d9831f; --honey: #f0a93a; --gold: #e8c46a; --foam: #f6ead2; --cream: #fbf3e4; --red: #c9291c; --mint: #39b26b; --ink: #2a1a0e; --ink-2: #5a4330; --muted: rgba(246,234,210,.72); --line: rgba(246,234,210,.16); --line-dark: rgba(42,26,14,.12); --r: 22px; --pad: clamp(16px, 4vw, 56px); --max: 1320px; --ease: cubic-bezier(.22,.8,.24,1); --f-disp: "Unbounded", sans-serif; --f-body: "Golos Text", system-ui, sans-serif; --f-serif: "Old Standard TT", serif; }

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--rye); color: var(--foam); font: 400 17px/1.65 var(--f-body); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--honey); color: var(--rye); }
/* Фокус с клавиатуры виден на любом фоне: медовое кольцо (тёмные блоки) + тёмная подложка под ним (кремовые и медовые блоки) */
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 3px var(--rye); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 120; padding: 10px 16px; border-radius: 10px; background: var(--honey); color: var(--rye); font-weight: 600; transition: top .3s; }
.skip:focus { top: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.h-display { font-family: var(--f-disp); font-weight: 800; letter-spacing: -.02em; line-height: .98; text-transform: uppercase; margin: 0; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.3 var(--f-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--honey); }
.eyebrow::before { content: ""; flex: 0 0 28px; height: 1px; background: currentColor; }
/* надзаголовок — одной строкой на компьютере (у клиента переносился «… с 1996 / года»); на телефоне переносится как обычно */
@media (min-width: 700px) { .eyebrow { white-space: nowrap; } .pm__info .eyebrow { white-space: normal; } }
.sec { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.sec-title { font-size: clamp(32px, 5.6vw, 84px); margin: 18px 0 0; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 62ch; margin: 22px 0 0; }

/* ===== Зерно: фактура поверх страницы (без выхода за экран) ===== */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; 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% { background-position: 0 0; } 33% { background-position: -40px 30px; } 66% { background-position: 30px -50px; } 100% { background-position: 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__box { display: grid; justify-items: center; }
.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 var(--f-disp); letter-spacing: .2em; color: var(--muted); }


/* ===== Кнопки «наверх / вниз» — в стиле стрелок галереи ===== */
.jump { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; transition: transform .4s var(--ease); }
.jump__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(22,12,6,.8); backdrop-filter: blur(10px); color: var(--foam); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, opacity .3s, transform .3s var(--ease); }
.jump__btn:hover { background: var(--honey); color: var(--rye); border-color: var(--honey); }
.jump__btn svg { width: 20px; height: 20px; }
.jump__btn[disabled] { opacity: 0; pointer-events: none; transform: scale(.8); }
.jump.is-idle, .jump.is-typing { opacity: 0; pointer-events: none; }
.jump { transition: transform .4s var(--ease), opacity .4s; }
.jump:focus-within { opacity: 1; pointer-events: auto; }
body.has-cookie .jump { transform: translateY(var(--cookie-h, 0)); }

/* ===== Шапка (обычная, не липкая) ===== */
.hdr { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 20px 0; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { width: 112px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
.nav { display: flex; gap: clamp(14px, 1.5vw, 24px); font-size: 15px; }
.nav a { position: relative; color: var(--muted); white-space: nowrap; 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; }
/* Выпадающие подразделы шапки */
.nav { align-items: center; }
.nav__it { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__car { width: 13px; height: 13px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.nav__it:hover .nav__car, .nav__it:focus-within .nav__car { transform: rotate(180deg); color: var(--honey); }
.nav__drop { position: absolute; top: 100%; left: -16px; z-index: 30; padding-top: 16px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s; }
.nav__it:hover .nav__drop, .nav__it:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__panel { display: grid; gap: 2px; min-width: 250px; padding: 10px; border-radius: 18px; background: var(--rye-2); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.nav__panel a { padding: 10px 14px; border-radius: 12px; font-size: 15px; color: var(--muted); }
.nav__panel a::after { display: none; }
.nav__panel a:hover, .nav__panel a:focus-visible, .nav__panel a[aria-current] { background: rgba(240,169,58,.12); color: var(--foam); }
@media (prefers-reduced-motion: reduce) { .nav__drop, .nav__car { transition: none; } }
.hdr__cta { display: flex; align-items: center; gap: 14px; }
.hdr__tel { font-weight: 600; white-space: nowrap; }
.soc { display: flex; gap: 6px; }
.soc a { width: 36px; height: 36px; border-radius: 50%; background: var(--foam); display: grid; place-items: center; transition: transform .3s var(--ease), box-shadow .3s; }
.soc a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.soc img { width: 22px; height: 22px; border-radius: 6px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; 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 { position: relative; z-index: 70; border-color: var(--rye); }
body.menu-open .burger span { background: var(--rye); top: 22px; }
body.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }

/* ===== Мобильное меню: панель-«карта сайта» — быстрые действия, разделы с подразделами (открыт один), контакты отделов ===== */
.mmenu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(110% 50% at 100% 0, rgba(240,169,58,.14), transparent 62%), var(--rye-2); color: var(--foam); clip-path: circle(0 at calc(100% - 40px) 44px); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
body.menu-open .mmenu { clip-path: circle(150% at calc(100% - 40px) 44px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
body.menu-open { overflow: hidden; }
body.admin-bar .mmenu { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mmenu { top: 46px; } }
body.menu-open .cookie, body.menu-open .jump { visibility: hidden; }
.mmenu__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px var(--pad); background: rgba(33,19,9,.94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mmenu__logo img { display: block; width: 78px; height: auto; }
.mmenu__hint { margin-left: auto; font: 600 11px/1 var(--f-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mmenu__close { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--honey); color: var(--rye); display: grid; place-items: center; transition: transform .4s var(--ease); }
.mmenu__close:hover { transform: rotate(90deg); }
.mmenu__close svg { width: 20px; height: 20px; }
.mmenu__in { width: 100%; max-width: 680px; margin: 0 auto; padding: 18px var(--pad) 28px; display: grid; gap: 22px; }
.mmenu__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mmenu__quick a { display: grid; align-content: start; gap: 3px; min-height: 104px; padding: 14px 10px; border-radius: 18px; background: rgba(246,234,210,.06); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.mmenu__quick a:first-child { background: var(--honey); border-color: var(--honey); color: var(--rye); }
.mmenu__quick a:hover { border-color: var(--honey); }
.mmenu__quick svg { width: 24px; height: 24px; margin-bottom: 10px; color: var(--honey); }
.mmenu__quick a:first-child svg { color: var(--rye); }
.mmenu__quick b { font: 700 clamp(12px, 3.3vw, 14px)/1.15 var(--f-disp); white-space: nowrap; }
.mmenu__quick small { font-size: 12px; line-height: 1.3; color: var(--muted); }
.mmenu__quick a:first-child small { color: rgba(22,12,6,.74); }
.mm-nav { display: grid; border-top: 1px solid var(--line); }
.mm-sec { border-bottom: 1px solid var(--line); }
.mm-sec__head { display: flex; align-items: center; gap: 12px; }
.mm-sec__link { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; padding: 16px 0; font: 800 clamp(18px, 5.4vw, 26px)/1.1 var(--f-disp); letter-spacing: -.01em; text-transform: uppercase; }
.mm-sec__link i { flex: none; width: 22px; font: 700 11px/1 var(--f-disp); font-style: normal; letter-spacing: .08em; color: var(--honey); }
.mm-sec__link span { overflow-wrap: break-word; }
.mm-sec__link[aria-current] span { color: var(--honey); }
.mm-sec__tg { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--foam); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s, transform .45s var(--ease); }
.mm-sec__tg svg { width: 18px; height: 18px; }
.mm-sec.is-open .mm-sec__tg { background: var(--honey); border-color: var(--honey); color: var(--rye); transform: rotate(45deg); }
.mm-sec__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.mm-sec.is-open .mm-sec__body { grid-template-rows: 1fr; }
.mm-sec__body > div { min-height: 0; overflow: hidden; display: grid; gap: 2px; padding-left: 22px; }
.mm-sec__body a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--foam); transition: background .3s, color .3s; }
.mm-sec__body a:last-child { margin-bottom: 14px; }
.mm-sec__body a:hover { background: rgba(246,234,210,.06); }
.mm-sec__body a[aria-current] { background: rgba(240,169,58,.14); color: var(--honey); }
.mm-sec__body svg { flex: none; width: 16px; height: 16px; color: var(--honey); }
.mmenu__contacts { display: grid; gap: 14px; padding: 20px; border-radius: 22px; background: var(--cream); color: var(--ink); }
.mmenu__label { margin: 0; font: 600 11px/1.3 var(--f-disp); letter-spacing: .16em; text-transform: uppercase; color: #a85b0c; }
.mm-dep { display: grid; justify-items: start; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.mm-dep span { font-size: 13px; color: var(--ink-2); }
.mm-dep a[href^="tel"] { font: 700 18px/1.3 var(--f-disp); }
.mm-dep a[href^="mailto"] { font-size: 15px; font-weight: 600; color: #a85b0c; }
.mmenu__addr { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mmenu__contacts .soc a { background: var(--rye); }
.mmenu__cta { width: 100%; }
.mmenu__cta svg { width: 18px; height: 18px; }
body.menu-open .mmenu__quick, body.menu-open .mm-sec, body.menu-open .mmenu__contacts, body.menu-open .mmenu__cta { animation: mm-in .55s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * 35ms); }
body.menu-open .mmenu__contacts { --i: 10; }
body.menu-open .mmenu__cta { --i: 11; }
@keyframes mm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) {
  .mmenu__quick { gap: 6px; }
  .mmenu__quick a { padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mmenu, body.menu-open .mmenu { transition: none; }
  body.menu-open .mmenu__quick, body.menu-open .mm-sec, body.menu-open .mmenu__contacts, body.menu-open .mmenu__cta { animation: none; }
}

/* ===== Мобильное меню: медовая заливка из угла ===== */

/* ===== Кнопки ===== */
.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.1 var(--f-disp); letter-spacing: .02em; text-align: center; overflow: hidden; isolation: isolate; transition: color .4s, 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 { color: var(--rye); box-shadow: 0 14px 40px rgba(240,169,58,.3); }
.btn--ghost { --bg: transparent; --fg: var(--foam); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost-dark { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn--ghost-dark::before { background: var(--ink); }
.btn--ghost-dark:hover { color: var(--foam); }
.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: clamp(24px, 4vw, 64px); padding-top: 120px; padding-bottom: 90px; }
.hero__text { container-type: inline-size; min-width: 0; }
.hero__title { margin-top: 22px; font-size: clamp(32px, 11cqi, 104px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.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 { color: var(--honey); }
.hero__serif { font-size: 1.3em; line-height: .85; color: var(--foam); }
.hero__sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 520px; margin: 28px 0 36px; 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(76vh, 700px); perspective: 1000px; }
.hero__glass { position: absolute; inset: 0; border-radius: 300px 300px 28px 28px; overflow: hidden; 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); transition: clip-path 1.4s .2s var(--ease), transform .6s var(--ease); }
.is-ready .hero__glass { clip-path: inset(0 0 0 0 round 300px 300px 28px 28px); }
.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 var(--f-disp); letter-spacing: .26em; fill: var(--foam); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__chip { position: absolute; z-index: 5; right: -14px; top: 18%; width: 172px; padding: 14px 18px; border-radius: 18px; background: var(--cream); 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 var(--f-disp); color: #a85b0c; margin-bottom: 4px; }
.hero__chip span { font-size: 13px; line-height: 1.4; display: block; }
@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; } }

/* ===== Бегущие ленты (обёртка не даёт им вылезти за экран) ===== */
.tickers { position: relative; z-index: 4; overflow: clip; padding: 26px 0 30px; margin-top: -40px; }
.ticker { position: relative; overflow: hidden; background: var(--honey); color: var(--rye); transform: rotate(-2deg); margin: 0 -20px; 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: -30px; z-index: -1; }
.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 var(--f-disp); 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(36px); 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; padding-bottom: .06em; padding-right: .12em; margin-right: -.12em; } /* запас справа: курсивный «?» и хвосты букв не обрезаются */
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.split.is-in .w > span { transform: none; }

/* ===== Общая лента: свайп, перетаскивание мышью, стрелки ===== */
.drag { display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; padding: 30px var(--pad) 20px; cursor: grab; user-select: none; overscroll-behavior-x: contain; }
/* мало карточек (страницы партнёров, фильтр) — лента по центру, без пустоты справа; когда карточек больше ширины — обычная прокрутка от левого края */
.pc-sub-drinks .line-up__track { justify-content: safe center; }
.pc-sub-drinks .line-up__head:has(+ .line-up__track.is-fit) .arrows { visibility: hidden; }
.drag::-webkit-scrollbar { display: none; }
.drag.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.drag img { -webkit-user-drag: none; }
.arrows { display: flex; gap: 10px; flex: 0 0 auto; }
.arrows button { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s, opacity .3s; }
.arrows button:hover { background: var(--honey); color: var(--rye); border-color: var(--honey); }
.arrows button[disabled] { opacity: .3; pointer-events: none; }
.arrows svg { width: 22px; height: 22px; }

/* ===== Продукция ===== */
.line-up { position: relative; padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 7vw, 90px); background: var(--bg-lu, var(--rye-2)); transition: background-color .9s var(--ease); }
.line-up__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(246,234,210,.06); border: 1px solid var(--line); }
.chips button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .3s, color .3s; }
.chips button:hover { color: var(--foam); }
.chips button[aria-pressed="true"] { background: var(--foam); color: var(--ink); }
.filters__count { font-size: 14px; color: var(--muted); }
.pcard { position: relative; flex: 0 0 clamp(250px, 23vw, 320px); height: clamp(430px, 58vh, 520px); scroll-snap-align: start; border-radius: var(--r); padding: 24px; 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), opacity .4s; }
.pcard:hover { transform: translateY(-8px); }
.pcard::before { content: ""; position: absolute; z-index: -1; width: 140%; aspect-ratio: 1; left: -20%; bottom: -72%; border-radius: 50%; background: rgba(255,250,240,.22); transition: transform .8s var(--ease); }
.pcard:hover::before { transform: scale(1.15) translateY(-6%); }
.pcard[hidden] { display: none; }
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pcard__tag { padding: 6px 12px; border-radius: 999px; background: rgba(22,12,6,.88); color: var(--foam); font-size: 12px; font-weight: 600; }
.pcard__num { font: 800 15px var(--f-disp); }
.pcard__img { position: absolute; z-index: -1; left: 50%; top: 58px; bottom: 132px; width: 80%; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; pointer-events: none; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
/* тень — на обёртке: drop-shadow на самой картинке в ленте с прокруткой Chrome иногда рисует без картинки (видна одна тень) */
.pcard__img img { height: 100%; width: 100%; object-fit: contain; object-position: center bottom; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: translateY(-10px) rotate(3deg) scale(1.04); }
.pcard__name { font: 800 clamp(19px, 1.6vw, 24px)/1.05 var(--f-disp); text-transform: uppercase; margin: 0 0 8px; }
.pcard__meta { font-size: 14px; margin: 0; }
.pcard__open { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; color: transparent; font-size: 0; border-radius: var(--r); }
.pcard__open:focus-visible { outline-offset: -6px; }
.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: 20px; }
.pcard--cta::before { background: rgba(240,169,58,.1); }
.empty { flex: 0 0 min(560px, 88vw); display: grid; align-content: center; justify-items: start; gap: 12px; padding: 40px; border-radius: var(--r); border: 1.5px dashed var(--line); min-height: 300px; }
.empty b { font: 800 24px/1.1 var(--f-disp); text-transform: uppercase; }
.empty p { margin: 0; color: var(--muted); }
.empty[hidden] { display: none; }

/* ===== История: от колоса до кружки ===== */
.story { background: var(--cream); color: var(--ink); }
.story .eyebrow { color: #a85b0c; }
.story .lead { color: var(--ink-2); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); margin-top: 56px; }
.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.1); 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,243,228,.3); 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)); }
.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: 16px; font: 800 clamp(70px, 9vw, 140px)/1 var(--f-disp); color: var(--foam); text-shadow: 0 6px 30px rgba(0,0,0,.45); }
.step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; opacity: .28; transition: opacity .6s; }
.step.is-active { opacity: 1; }
.step__k { font: 700 13px var(--f-disp); letter-spacing: .18em; color: #a85b0c; text-transform: uppercase; }
.step h3 { font: 800 clamp(28px, 3.4vw, 50px)/1 var(--f-disp); text-transform: uppercase; margin: 14px 0 18px; letter-spacing: -.01em; }
.step p { font-size: 18px; color: var(--ink-2); margin: 0; max-width: 46ch; }
.step__mobimg { display: none; }

/* История завода: шкала лет */
.tl { margin-top: clamp(60px, 8vw, 110px); padding: clamp(20px, 3vw, 36px); border-radius: 30px; background: var(--rye); color: var(--foam); }
.tl__years { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--line); }
.tl__years button { position: relative; padding: 14px 4px 20px; border: 0; background: transparent; color: var(--muted); font: 800 clamp(16px, 2vw, 26px)/1 var(--f-disp); transition: color .3s; }
.tl__years button:hover { color: var(--foam); }
.tl__years button[aria-selected="true"] { color: var(--honey); }
.tl__run { position: absolute; bottom: -2px; left: 0; height: 3px; width: calc(100% / 6); background: var(--honey); border-radius: 3px; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .6s var(--ease); }
.tl__panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: 28px; }
.tl__ph { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; background: var(--rye-3); }
.tl__ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .8s var(--ease); }
.tl__ph.is-swap img { opacity: 0; transform: scale(1.04); }
.tl__y { display: block; font: 800 clamp(56px, 8vw, 120px)/.9 var(--f-disp); color: transparent; -webkit-text-stroke: 1.5px var(--honey); }
.tl__txt h3 { font: 800 clamp(22px, 2.4vw, 32px)/1.1 var(--f-disp); text-transform: uppercase; margin: 16px 0 12px; }
.tl__txt p { margin: 0; color: var(--muted); max-width: 44ch; }

/* ===== Цифры ===== */
.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: 36px 26px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; transition: background .5s; }
.fact:hover { background: var(--rye-3); }
.fact__n { font: 800 clamp(36px, 3.8vw, 60px)/1 var(--f-disp); color: var(--honey); letter-spacing: -.03em; white-space: nowrap; }
.fact__n small { font-size: .42em; color: var(--foam); margin-left: 6px; }
.fact p { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* ===== Где купить ===== */
.where { background: var(--rye-2); }
.where__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); margin-top: 50px; align-items: stretch; }
.where__label { display: block; font-weight: 600; margin-bottom: 10px; }
.inp { display: block; width: 100%; min-height: 56px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(246,234,210,.06); outline: none; transition: border-color .3s, background .3s; }
.inp:focus { border-color: var(--honey); background: rgba(246,234,210,.1); }
.inp::placeholder { color: rgba(246,234,210,.5); }
.inp--area { padding: 14px 18px; min-height: 84px; resize: vertical; }
.geo { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 24px; padding: 0; border: 0; background: none; color: var(--honey); font-weight: 600; text-align: left; max-width: 100%; }
.geo svg { width: 20px; height: 20px; }
.geo:hover { text-decoration: underline; text-underline-offset: 4px; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; }
.regions button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.regions button[aria-selected="true"] { background: var(--honey); border-color: var(--honey); color: var(--rye); }
.where__res { margin-top: 26px; padding: 26px; border-radius: var(--r); background: var(--cream); color: var(--ink); }
.where__res h3 { font: 800 22px/1.1 var(--f-disp); text-transform: uppercase; margin: 0 0 16px; }
.where__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.where__list li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.where__list span { color: var(--ink-2); font-size: 15px; }
/* телефон отдела — один на все регионы, под списком (в каждом регионе он повторялся) */
.where__tel { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(240,169,58,.14); font-size: 15px; color: var(--ink); }
.where__tel a { font-weight: 700; white-space: nowrap; }
.where__upd { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.map { position: relative; min-height: 480px; border-radius: 30px; overflow: hidden; background: radial-gradient(circle at 40% 40%, rgba(240,169,58,.18), transparent 60%), var(--rye); border: 1px solid var(--line); }
.map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(246,234,210,.14) 1px, transparent 1.5px); background-size: 18px 18px; mask-image: radial-gradient(circle at 45% 45%, #000 30%, transparent 75%); }
.map__sea { position: absolute; left: 6%; top: 18%; font-family: var(--f-serif); font-style: italic; font-size: 18px; color: rgba(246,234,210,.35); transform: rotate(-8deg); }
.map__sea--black { left: 34%; top: 82%; transform: rotate(4deg); }
.map__routes { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--honey); stroke-width: .35; stroke-dasharray: 1.4 1.4; opacity: .7; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.map__pt { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--foam); font-size: 14px; font-weight: 600; white-space: nowrap; }
.map__pt i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 6px rgba(240,169,58,.2); }
.map__pt i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--honey); animation: ring 2.4s var(--ease) infinite; }
.map__pt.is-on i { background: var(--foam); }
.map__pt--home i { width: 20px; height: 20px; background: var(--red); box-shadow: 0 0 0 8px rgba(201,41,28,.25); }
.map__pt span { padding: 6px 12px; border-radius: 999px; background: rgba(22,12,6,.8); border: 1px solid var(--line); }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.map__note { position: absolute; left: 24px; bottom: 22px; right: 24px; font-size: 13px; color: var(--muted); }

/* ===== Партнёрам ===== */
.biz { background: linear-gradient(180deg, var(--rye) 0, var(--rye-2) 100%); overflow: hidden; }
.dirs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 46px; }
.dir { display: grid; gap: 4px; padding: 22px 20px; border-radius: 18px; background: rgba(246,234,210,.05); border: 1px solid var(--line); transition: background .4s, border-color .4s, transform .4s var(--ease); }
.dir b { font: 700 16px/1.2 var(--f-disp); }
.dir span { font-size: 14px; color: var(--muted); }
.dir:hover { background: var(--honey); border-color: var(--honey); color: var(--rye); transform: translateY(-4px); }
.dir:hover span { color: var(--rye); }
.biz__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; margin-top: 60px; }
.biz__sub { font: 800 clamp(22px, 2.4vw, 32px)/1.1 var(--f-disp); text-transform: uppercase; margin: 0; }
.biz__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.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); }
.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 var(--f-disp); text-transform: uppercase; margin: 0 0 6px; }
.calc__note { margin: 0 0 24px; font-size: 14px; color: var(--ink-2); }
.calc__field { margin-bottom: 22px; }
.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 19px var(--f-disp); color: #a85b0c; 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 var(--line-dark); background: #fffaf2; 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 16px; }
.calc__out div { padding: 16px 14px; border-radius: 16px; background: #fffaf2; border: 1px solid var(--line-dark); }
.calc__out b { display: block; font: 800 clamp(17px, 1.55vw, 23px)/1.1 var(--f-disp); white-space: nowrap; }
.calc__out span { font-size: 13px; color: var(--ink-2); }
.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 20px; 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: var(--ink-2); align-self: center; margin-left: 6px; }
.calc__disc { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: rgba(42,26,14,.05); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

/* ===== Солод ===== */
.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: #fffaf2; overflow: hidden; border: 1px solid var(--line-dark); transition: transform .5s var(--ease), box-shadow .5s; }
.malt:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(80,40,10,.14); }
.malt img { aspect-ratio: 767/650; object-fit: contain; padding: 10px; transition: transform .8s var(--ease); }
.malt:hover img { transform: scale(1.05) rotate(-2deg); }
.malt > div { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; border-top: 1px solid var(--line-dark); }
.malt h3 { font: 800 19px/1.1 var(--f-disp); text-transform: uppercase; margin: 0 0 12px; }
.malt dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 16px; font-size: 14px; }
.malt dt { color: var(--ink-2); }
.malt dd { margin: 0; font-weight: 600; text-align: right; }
.malt__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.malt__btns a { display: grid; place-items: center; min-height: 42px; border-radius: 12px; font-weight: 600; font-size: 14px; background: var(--ink); color: var(--foam); transition: background .3s, color .3s; }
.malt__btns a + a { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.malt__btns a:hover { background: var(--honey); color: var(--rye); }
.malt__doc { margin-top: 12px; font-size: 13px; color: #a85b0c; font-weight: 600; }
.malt__doc::before { content: "↓ "; }
.malt__doc:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Лента «Где нас пьют» ===== */
.life { background: var(--rye-2); }
.life__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.life__head > .ntabs { flex: 0 0 auto; } /* вкладки целиком: не сжимаются заголовком, при нехватке места уходят на строку ниже */
.drag--life { padding-top: 50px; }
.drag--life figure { flex: 0 0 clamp(250px, 32vw, 460px); margin: 0; scroll-snap-align: start; }
.drag--life figure:nth-child(even) { margin-top: 56px; }
.drag--life .ph { display: block; cursor: zoom-in; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; }
.drag--life figure.wide { flex-basis: clamp(290px, 50vw, 740px); }
.drag--life figure.wide .ph { aspect-ratio: 3/2; }
.drag--life img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease); }
.drag--life figure:hover img { transform: scale(1.05); }
.drag--life figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.drag--life figcaption b { color: var(--foam); font-weight: 600; }

/* ===== Фестиваль ===== */
.fest { position: relative; min-height: 88vh; 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(22,12,6,.97), rgba(22,12,6,.45) 65%, rgba(22,12,6,.72)), linear-gradient(90deg, rgba(22,12,6,.8), transparent 70%); }
.fest__in { position: relative; z-index: 2; padding-bottom: clamp(60px, 9vw, 120px); padding-right: clamp(16px, 24vw, 360px); }
.fest .eyebrow { color: var(--gold); }
.fest__title { font-size: clamp(36px, 6.2vw, 100px); margin-top: 16px; }
.fest__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(22,12,6,.6); backdrop-filter: blur(8px); font-size: 15px; }
.fest__photo { position: absolute; z-index: 3; right: var(--pad); top: 12%; width: clamp(180px, 20vw, 290px); margin: 0; transform: rotate(4deg); }
.fest__photo a { display: block; cursor: zoom-in; }
.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 var(--f-disp); transform: rotate(-6deg); white-space: nowrap; }

/* ===== Новости ===== */
.news { background: var(--cream); color: var(--ink); }
/* Надзаголовок на светлых секциях главной (солод, новости): медовый не читается на креме — тёмный янтарь */
#malt .eyebrow, .news .eyebrow { color: #a85b0c; }
.ntabs { display: flex; flex-wrap: nowrap; gap: 6px; width: max-content; max-width: 100%; padding: 5px; border-radius: 999px; background: rgba(42,26,14,.06); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.ntabs::-webkit-scrollbar { display: none; }
.ntabs button { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; transition: background .3s, color .3s; }
.ntabs button[aria-selected="true"] { background: var(--ink); color: var(--foam); }
/* телефон: вкладки на всю ширину поровну, длинное название — в две строки, без обрезки */
@media (max-width: 600px) { .life__head > .ntabs { flex: 1 1 100%; width: 100%; } .ntabs button { flex: 1 1 0; white-space: normal; line-height: 1.2; padding: 6px 12px; font-size: 13px; } }
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.ngrid[hidden] { display: none; }
.ncard { display: flex; flex-direction: column; gap: 12px; }
.ncard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); transition: transform .8s var(--ease), border-radius .8s var(--ease); }
.ncard:hover img { transform: scale(.98); border-radius: 40px; }
.ncard__k { font: 700 12px var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: #a85b0c; }
.ncard h3 { margin: 0; font: 600 clamp(17px, 1.4vw, 20px)/1.3 var(--f-body); }
.ncard:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ngrid .ncard { animation: rise .7s var(--ease) both; }
.ngrid .ncard:nth-child(2) { animation-delay: .08s; }
.ngrid .ncard:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ===== Экскурсии ===== */
.eks { background: var(--rye); }
.eks__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.eks__pics { position: relative; aspect-ratio: 1; }
.eks__pics a { position: absolute; display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.5); cursor: zoom-in; }
.eks__pics img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.eks__pics a:hover img { transform: scale(1.05); }
.eks__pics a:nth-child(1) { left: 0; top: 0; width: 66%; aspect-ratio: 4/3; }
.eks__pics a:nth-child(2) { right: 0; top: 30%; width: 52%; aspect-ratio: 3/4; border: 6px solid var(--rye); }
.eks__pics a:nth-child(3) { left: 8%; bottom: 0; width: 50%; aspect-ratio: 4/3; border: 6px solid var(--rye); }
.eks__rules { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 30px 0; padding: 0; background: var(--line); border-radius: 18px; overflow: hidden; }
.eks__rules li { background: var(--rye-2); padding: 18px 16px; }
.eks__rules b { display: block; font: 800 22px/1.1 var(--f-disp); color: var(--honey); }
.eks__rules span { font-size: 14px; color: var(--muted); }
.eks__docs { display: grid; gap: 8px; margin-bottom: 30px; }
.eks__docs a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; transition: border-color .3s, background .3s; }
.eks__docs a::before { content: "PDF"; flex: 0 0 auto; padding: 4px 8px; border-radius: 6px; background: var(--red); color: var(--foam); font: 700 11px var(--f-disp); }
.eks__docs a:hover { border-color: var(--honey); background: rgba(240,169,58,.08); }

/* ===== Заявка ===== */
.order { background: var(--honey); color: var(--rye); overflow: hidden; }
.order .eyebrow { color: var(--rye); }
.order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.order__title { font-size: clamp(36px, 6vw, 96px); margin-top: 16px; }
.order__title .serif { font-size: 1.05em; }
.contacts { display: grid; gap: 4px; margin: 34px 0 0; }
.contacts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; opacity: .7; margin-top: 12px; }
.contacts dd { margin: 0; font-weight: 600; font-size: 17px; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form { background: var(--rye); color: var(--foam); border-radius: 30px; padding: clamp(22px, 3vw, 38px); box-shadow: 0 40px 100px rgba(80,30,0,.4); }
.form h3 { font: 800 22px/1.15 var(--f-disp); text-transform: uppercase; margin: 0 0 18px; }
.form__product { margin: -6px 0 16px; padding: 10px 14px; border-radius: 12px; background: rgba(240,169,58,.14); color: var(--honey); font-weight: 600; font-size: 15px; }
.fld { margin-bottom: 12px; }
.fld label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.fld label em { font-style: normal; font-weight: 400; color: var(--muted); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld__err { display: none; margin-top: 6px; font-size: 13px; color: #ff9b85; }
.fld__err--contact { margin: -4px 0 12px; }
.is-bad .fld__err, .form.bad-contact .fld__err--contact, .form.bad-agree .fld__err--agree { display: block; }
.is-bad .inp, .form.bad-contact #f-phone, .form.bad-contact #f-email { border-color: #ff9b85; }
select.inp { appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--honey) 50%), linear-gradient(135deg, var(--honey) 50%, transparent 50%); background-position: calc(100% - 26px) 25px, calc(100% - 20px) 25px; background-size: 6px 6px; background-repeat: no-repeat; }
select.inp option { background: var(--rye); }
.form__label { font-size: 14px; font-weight: 600; margin: 8px 0 10px; }
.msg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.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: 3px solid var(--honey); outline-offset: 2px; }
.form__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
.form__agree input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--honey); }
.form__agree a { color: var(--foam); text-decoration: underline; text-underline-offset: 3px; }
.fld__err--agree { margin: -8px 0 12px; }
.form .btn { width: 100%; }
.form__ok { display: none; text-align: center; padding: 34px 6px; color: var(--muted); }
.form.is-sent .form__body { display: none; }
.form.is-sent .form__ok { display: block; }
.form__ok b { display: block; font: 800 24px/1.2 var(--f-disp); color: var(--honey); margin-bottom: 10px; }

/* ===== Подвал ===== */
.ftr { background: var(--rye); padding: 70px 0 100px; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ftr__about { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 18px 0; }
.ftr h4 { font: 700 13px var(--f-disp); 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(30px, 8vw, 116px)/.85 var(--f-disp); 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; align-items: center; flex-wrap: wrap; gap: 14px 28px; font-size: 13px; color: var(--muted); }
/* кнопки «наверх/вниз» висят у правого края — у нижней строки подвала место под них, чтобы «Сделано в…» не уходило под кнопку */
@media (max-width: 1560px) { .ftr__bot { padding-right: 64px; } }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr__legal a, .ftr__legal button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.ftr__legal a:hover, .ftr__legal button:hover { color: var(--foam); }
.made a { color: var(--honey); }

/* ===== Карточка напитка (диалог) ===== */
.pm { width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 30px; background: var(--cream); color: var(--ink); overflow: hidden; box-shadow: 0 60px 140px rgba(0,0,0,.6); }
.pm__in { display: grid; grid-template-columns: .9fr 1.1fr; max-height: calc(100dvh - 24px); }
.pm__vis { position: relative; display: grid; place-items: center; padding: 40px; background: var(--c, var(--amber)); min-height: 420px; overflow: hidden; }
.pm__vis::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; bottom: -60%; border-radius: 50%; background: rgba(255,250,240,.25); }
@keyframes pm-bottle { from { opacity: 0; transform: translateY(40px) rotate(-6deg); } }
.pm__vis img { position: relative; max-height: 62vh; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); animation: pm-bottle .9s var(--ease); }
.pm__tag { position: absolute; left: 24px; top: 24px; padding: 6px 12px; border-radius: 999px; background: rgba(22,12,6,.88); color: var(--foam); font-size: 12px; font-weight: 600; }
.pm__info { position: relative; padding: clamp(24px, 3.4vw, 44px); overflow-y: auto; }
.pm__info .eyebrow { color: #a85b0c; }
.pm__name { font: 800 clamp(26px, 3vw, 40px)/1.02 var(--f-disp); text-transform: uppercase; margin: 14px 50px 14px 0; }
.pm__desc { margin: 0 0 22px; color: var(--ink-2); max-width: 52ch; }
.pm__label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pm__vars { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pm__vars button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-dark); background: #fffaf2; font-weight: 600; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.pm__vars button[aria-checked="true"] { background: var(--ink); color: var(--foam); border-color: var(--ink); }
.pm__spec { display: grid; grid-template-columns: auto 1fr; margin: 0 0 26px; border-top: 1px solid var(--line-dark); }
.pm__spec dt, .pm__spec dd { padding: 12px 0; border-bottom: 1px solid var(--line-dark); margin: 0; font-size: 15px; }
.pm__spec dt { color: var(--ink-2); padding-right: 20px; }
.pm__spec dd { font-weight: 600; text-align: right; transition: color .4s; }
.pm__spec dd.is-new { color: #a85b0c; }
.pm__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pm__btns .btn { flex: 1 1 200px; }

/* ===== Плашка cookie ===== */
.cookie { position: fixed; left: 50%; bottom: 16px; z-index: 85; transform: translateX(-50%); width: min(620px, calc(100vw - 32px)); display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; border-radius: 20px; background: var(--cream); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: cookie-in .6s var(--ease) both; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 14px; line-height: 1.45; }
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie .btn--ghost { --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-dark); }

/* ===== Адаптив ===== */
@media (max-width: 1280px) {
  .hdr__tel { display: none; }
}
@media (max-width: 1140px) {
  .nav { display: none; }
  .burger { display: block; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .dirs { grid-template-columns: repeat(3, 1fr); }
  .malt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 110px; }
  .hero__visual { height: 60vh; max-width: 440px; width: 100%; margin: 0 auto; }
  .hero__seal { left: -10px; width: 120px; height: 120px; }
  .hero__chip { right: 0; }
  .story__grid { grid-template-columns: 1fr; margin-top: 30px; }
  .story__pin { display: none; }
  .step { min-height: 0; opacity: 1; padding: 26px 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; }
  .tl__panel { grid-template-columns: 1fr; }
  .where__grid, .biz__grid, .order__grid, .eks__grid { grid-template-columns: minmax(0, 1fr); }
  .map { min-height: 340px; }
  .ngrid { grid-template-columns: 1fr 1fr; }
  .ngrid .ncard:nth-child(3) { display: none; }
  .fest__photo { position: relative; right: auto; top: auto; width: 200px; margin: 40px 0 0 var(--pad); }
  .fest__photo figcaption { left: -6px; }
  .fest { flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .fest__in { padding-right: var(--pad); }
  .pm__in { grid-template-columns: 1fr; overflow-y: auto; }
  .pm__vis { min-height: 0; padding: 30px; }
  .pm__vis img { max-height: 34vh; }
  .pm__info { overflow: visible; }
  .life__head { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hdr__price { display: none; }
  .hdr .soc { 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); }
  .fld-row { grid-template-columns: 1fr; gap: 0; }
  .ftr__grid { grid-template-columns: 1fr; }
  .dirs { grid-template-columns: 1fr 1fr; }
  .dirs .dir:last-child { grid-column: 1 / -1; }
  .malt-grid { grid-template-columns: 1fr; }
  .ngrid { grid-template-columns: 1fr; }
  .ngrid .ncard:nth-child(3) { display: flex; }
  .drag--life figure:nth-child(even) { margin-top: 0; }
  .eks__rules { grid-template-columns: 1fr; }
  .pcard { flex-basis: 80vw; }
  .tl__years button { font-size: 14px; }
  .map__pt { font-size: 12px; }
  .cookie { flex-direction: column; align-items: stretch; bottom: 12px; }
  .cookie__btns .btn { flex: 1; }
  .jump__btn { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}
/* Фактура пены под цифрами */
.facts { background: linear-gradient(180deg, var(--rye) 0, rgba(22,12,6,.82) 30%, rgba(22,12,6,.82) 70%, var(--rye) 100%), var(--foam-bg) center / cover no-repeat, var(--rye); }
.fact { background: rgba(22,12,6,.86); backdrop-filter: blur(4px); }
.hdr .btn, .cookie .btn { white-space: nowrap; }
.cookie p { flex: 1 1 auto; min-width: 0; }
@media (max-width: 1360px) { .hdr__tel { display: none; } }
.cookie { width: min(720px, calc(100vw - 32px)); }
.cookie p { font-size: 13.5px; }
.line-up .sec-title { font-size: clamp(30px, 4.4vw, 68px); }
.eks .sec-title { font-size: clamp(30px, 4.4vw, 68px); overflow-wrap: break-word; }
.eks__grid, .order__grid, .biz__grid, .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.biz__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .eks__grid, .order__grid, .biz__grid, .story__grid { grid-template-columns: minmax(0, 1fr); } }
.dirs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dir b { hyphens: auto; -webkit-hyphens: auto; }
.line-up__head { flex-wrap: wrap; }
@media (max-width: 1140px) { .dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dir { padding: 16px 14px; } .dir b { font-size: 14px; } .dir span { font-size: 13px; } }
@media (max-width: 600px) { .dir { padding: 14px 12px; } .dir b { font-size: 13px; } }
@media (max-width: 600px) { .tl { padding: 16px 14px 22px; } .tl__years button { font-size: 12px; padding: 12px 0 16px; letter-spacing: -.02em; } }
/* Карта: точка — якорь, подпись сбоку; у правого края подпись слева от точки */
.map__pt { transform: translate(-10px, -50%); }
.map__pt--left { flex-direction: row-reverse; transform: translate(calc(-100% + 10px), -50%); }
.map__pt--home { transform: translate(-13px, -50%); }
@media (max-width: 600px) {
  .map { min-height: 440px; }
  .map__pt span { padding: 5px 9px; }
  .map__sea { font-size: 15px; }
}
/* Карточка напитка: содержимое не шире экрана */
.pm__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.pm__info .eyebrow { flex-wrap: wrap; }
@media (max-width: 900px) { .pm__in { grid-template-columns: minmax(0, 1fr); } .pm__spec dd { overflow-wrap: anywhere; } }
@media (max-width: 600px) { .pm__name { font-size: clamp(20px, 6.6vw, 30px); margin-right: 0; } .pm__info .eyebrow { padding-right: 56px; } }

/* =====================================================================
   Сайт на WordPress: дополнения к главной и внутренние страницы
   ===================================================================== */

/* Текущий раздел в меню */
.nav a[aria-current] { color: var(--foam); }
.nav a[aria-current]::after { right: 0; }

/* Ссылки «Все …» под блоками главной */
.where__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: #a85b0c; }
.where__all svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.where__all:hover svg { transform: translateX(4px); }
.where__list a { color: #a85b0c; text-decoration: underline; text-underline-offset: 3px; }
.malt-more, .news__all { margin: 40px 0 0; display: flex; justify-content: center; }
.fest__more { margin-top: 28px; }
.malt__ph { position: relative; display: block; overflow: hidden; background: #fffaf2; }
/* Фон карточки солода — кадр зерна, приглушённый под светлую карточку; поверх — вырезанная упаковка с прозрачным фоном */
.malt__ph .malt__grain { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; padding: 0; opacity: .7; transform: none; -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 22%, transparent 48%); mask-image: linear-gradient(0deg, #000 0%, #000 22%, transparent 48%); }
.malt__ph .malt__grain:only-child { opacity: 1; -webkit-mask-image: none; mask-image: none; }
.malt__ph:has(> .malt__grain:only-child) { aspect-ratio: 6 / 5; } /* позиция без фото упаковки: кадр сырья на всю высоту, карточки в ряду ровные */
.malt__ph .malt__pack { position: relative; filter: drop-shadow(0 14px 16px rgba(70,38,12,.26)) drop-shadow(0 2px 3px rgba(70,38,12,.18)); }
.malt:hover .malt__grain { transform: scale(1.04); }
.pm__vis .pm__grain, .pm--pro .pm__vis .pm__grain { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; opacity: .8; -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 20%, transparent 50%); mask-image: linear-gradient(0deg, #000 0%, #000 20%, transparent 50%); mix-blend-mode: normal; filter: none; animation: none; }
.pm--pro .pm__vis .pm__grain:last-child { opacity: 1; -webkit-mask-image: none; mask-image: none; }
.malt h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.malt__doc--more::before { content: "→ "; }
.eks__docs a.eks__more { color: var(--honey); }
.eks__docs a.eks__more::before { content: "→"; background: transparent; color: var(--honey); font-size: 14px; padding: 0; }
/* На светлом фоне медовый цвет не читается (1,8:1) — тёмный янтарь, 4,5:1 */
.sec--page .eks__docs a.eks__more, .sec--page .eks__docs a.eks__more::before { color: #a85b0c; }

/* Заявка без плагина: карточка с телефонами отделов */
.form--fallback p { margin: 0 0 20px; color: var(--muted); }
.form__call { display: grid; gap: 2px; padding: 16px 20px; margin-bottom: 10px; border-radius: 16px; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.form__call span { font-size: 13px; color: var(--muted); }
.form__call b { font: 700 clamp(18px, 2vw, 22px)/1.2 var(--f-disp); color: var(--honey); }
.form__call:hover { background: rgba(240,169,58,.1); border-color: var(--honey); }

/* Плашка заголовка внутренних страниц (шапка лежит поверх) */
.page-head { position: relative; padding: clamp(120px, 14vw, 170px) 0 clamp(40px, 6vw, 70px); background: radial-gradient(50% 80% at 80% 20%, rgba(217,131,31,.22), transparent 70%), var(--rye); }
.page-head--slim { padding-bottom: 8px; background: var(--rye-2); }
.page-head__title { font-size: clamp(30px, 5vw, 72px); margin-top: 18px; overflow-wrap: break-word; }
.page-head .lead { margin-top: 18px; }
.page-head__text { position: relative; z-index: 1; min-width: 0; }
/* Шапка с фото-фоном (st_section_photo, вид bg): кадр под затемнением — текст светлый, контраст ≥ 4,5:1 на любом участке кадра */
.page-head--bg { overflow: hidden; background: var(--rye); padding-bottom: clamp(56px, 8vw, 110px); }
.page-head__media { position: absolute; inset: 0; z-index: 0; }
.page-head__img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.page-head__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,12,6,.72) 0%, rgba(22,12,6,0) 34%), linear-gradient(90deg, rgba(22,12,6,.9) 0%, rgba(22,12,6,.82) 48%, rgba(22,12,6,.5) 78%, rgba(22,12,6,.34) 100%), linear-gradient(0deg, var(--rye) 0%, rgba(22,12,6,0) 30%); }
.page-head--bg .page-head__text { max-width: 860px; }
.page-head--bg .lead { color: rgba(246,234,210,.86); }
/* Квадратный кадр справа от заголовка (вид side): ПЭТ-тара, 404 */
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 400px); gap: clamp(24px, 4vw, 64px); align-items: center; }
.page-head__side { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.page-head__side img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 900px) { .page-head__shade { background: linear-gradient(180deg, rgba(22,12,6,.8) 0%, rgba(22,12,6,.8) 100%); } .page-head__grid { grid-template-columns: minmax(0, 1fr); } .page-head__side { max-width: 320px; } }
.crumbs ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "→"; margin-right: 10px; color: var(--honey); }
.crumbs a:hover { color: var(--foam); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--foam); }

/* Светлый блок содержимого страницы */
.sec--page { padding: clamp(50px, 7vw, 100px) 0; background: var(--cream); color: var(--ink); }
.sec--page .dir { background: #fffaf2; border-color: var(--line-dark); }
.sec--page .dir span { color: var(--ink-2); }
.sec--page .dir:hover span { color: var(--rye); }
.sec--page .eks__docs a { border-color: var(--line-dark); }
.subnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-top: 30px; }
.prose + .subnav { margin-top: 50px; }
.empty-note { margin: 0; font-size: 18px; color: var(--ink-2); }
.empty-note a { color: #a85b0c; font-weight: 600; }

/* Текст страницы из редактора */
.prose { max-width: 76ch; font-size: 18px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font: 800 clamp(24px, 2.6vw, 36px)/1.1 var(--f-disp); text-transform: uppercase; margin: 1.6em 0 .6em; }
.prose h3 { font: 700 clamp(19px, 1.8vw, 24px)/1.2 var(--f-disp); margin: 1.4em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--amber); }
.prose a { color: #a85b0c; text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 18px; height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line-dark); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: rgba(42,26,14,.04); }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 4px solid var(--honey); background: #fffaf2; border-radius: 0 16px 16px 0; }
.item-cover { margin: 0 0 40px; border-radius: 24px; overflow: hidden; max-width: 1000px; }
.item-cover a { display: block; cursor: zoom-in; }
.item-cover img { width: 100%; }

/* Каталог напитков: те же карточки, что в ленте главной, — сеткой */
.sec--drinks { background: var(--rye-2); color: var(--foam); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.cat-grid .pcard { flex: none; width: auto; }
.sec--drinks .empty-note { color: var(--muted); }
.ngrid--list { margin-top: 0; }
@media (max-width: 900px) { .ngrid--list .ncard:nth-child(3) { display: flex; } }

/* Карточка напитка и солода на своей странице (макет — бывшее окно товара) */
.sec--item { padding: 20px 0 clamp(60px, 8vw, 110px); background: var(--rye-2); }
.pm--page { width: auto; max-height: none; margin: 0; box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.pm--page .pm__in { max-height: none; }
.pm--page .pm__vis { min-height: 520px; }
.pm--page .pm__info { overflow: visible; }
.pm--page .pm__name { margin-right: 0; }
.pm--pro .pm__vis img { max-height: 480px; filter: drop-shadow(0 22px 26px rgba(70,38,12,.3)); }
.pm__zoom { position: relative; display: block; cursor: zoom-in; }
.item-more { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: 30px; padding: clamp(24px, 4vw, 48px); border-radius: 30px; background: var(--cream); color: var(--ink); }
.item-more > :only-child { grid-column: 1 / -1; }
.item-more .prose h2:first-child { margin-top: 0; }
.item-facts h2 { font: 800 20px/1.15 var(--f-disp); text-transform: uppercase; margin: 0 0 12px; }
.item-facts p { margin: 0 0 26px; color: var(--ink-2); }
.line-up--more { padding-top: clamp(60px, 8vw, 100px); }
.pm--page .pm__name { overflow-wrap: break-word; }
@media (max-width: 600px) { .pm--page .pm__name { font-size: clamp(19px, 5.8vw, 28px); } }
@media (max-width: 900px) { .pm--page .pm__vis { min-height: 0; } .item-more { grid-template-columns: minmax(0, 1fr); } }

/* Постраничная навигация списков */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-dark); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: var(--foam); border-color: var(--ink); }

/* Просмотрщик фото */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--foam); overflow: hidden; }
.lb::backdrop { background: rgba(10,6,3,.92); backdrop-filter: blur(6px); }
.lb[open] { display: grid; place-items: center; animation: rise .4s var(--ease); }
.lb__fig { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 70px 76px 30px; max-width: 100%; }
.lb__fig img { max-width: min(1400px, 100%); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 16px; object-fit: contain; }
.lb__fig figcaption { font-size: 15px; color: var(--muted); text-align: center; max-width: 70ch; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(22,12,6,.7); color: var(--foam); display: grid; place-items: center; transition: background .3s, color .3s; }
.lb__btn:hover { background: var(--honey); color: var(--rye); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__btn[hidden] { display: none; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb__fig { padding: 70px 12px 90px; } .lb__prev, .lb__next { top: auto; bottom: 20px; transform: none; } .lb__prev { left: calc(50% - 62px); } .lb__next { right: calc(50% - 62px); } }
/* Плашка cookie на телефоне: кнопки переносят текст, кнопки прокрутки не перекрывают плашку (ТЗ 12) */
@media (max-width: 600px) {
  .cookie .btn { white-space: normal; min-height: 44px; padding: 6px 12px; font-size: 12px; line-height: 1.2; }
  body.has-cookie .jump { opacity: 0; visibility: hidden; transform: none; }
}

/* ===== Варианты цвета для сравнения (правки клиента 18.11.2026: «шоколадный слишком тёмный»). ?palette=milk | straw | base ===== */
/* «Молочный шоколад»: тёмные блоки светлее, текст на них остаётся светлым */
html[data-pal="milk"], html[data-pal="straw"] { --rye: #3b2616; --rye-2: #4a3120; --rye-3: #5c3e29; }
/* «Соломенный»: те же блоки плюс подвал цвета соломы с тёмным текстом */
html[data-pal="straw"] .ftr { background: #ecdcae; border-top-color: rgba(42,26,14,.12); color: var(--ink); }
html[data-pal="straw"] .ftr h4 { color: #8f520b; }
html[data-pal="straw"] .ftr__about, html[data-pal="straw"] .ftr ul, html[data-pal="straw"] .ftr__bot, html[data-pal="straw"] .ftr__legal a, html[data-pal="straw"] .ftr__legal button { color: var(--ink-2); }
html[data-pal="straw"] .ftr a:hover, html[data-pal="straw"] .ftr__legal a:hover, html[data-pal="straw"] .ftr__legal button:hover { color: var(--ink); }
html[data-pal="straw"] .ftr__big { -webkit-text-stroke-color: rgba(42,26,14,.2); }
html[data-pal="straw"] .made a { color: #8f520b; }
/* переключатель вариантов — только при сравнении, к запуску снять */
.pal-switch { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(251,243,228,.96); box-shadow: 0 10px 30px rgba(0,0,0,.3); font: 600 13px var(--f-body); color: var(--ink); }
.pal-switch span { padding: 0 8px 0 10px; color: var(--ink-2); }
.pal-switch button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; }
.pal-switch button[aria-pressed="true"] { background: var(--ink); color: var(--foam); }
@media (max-width: 600px) { .pal-switch { left: 8px; right: 8px; bottom: 8px; justify-content: center; } .pal-switch span { display: none; } }
