/* ==========================================================
   ЗЕРНО — обжарочная спешелти-кофе. Общие стили.
   ========================================================== */

:root {
  --cream: #f6ecd9;
  --cream-2: #eedfc3;
  --paper: #fffaf0;
  --coffee: #2b1a10;
  --coffee-2: #4b3222;
  --muted: #765f4c;
  --tomato: #e2472b;
  --tomato-d: #c4371d;
  --olive: #76803c;
  --olive-l: #e1e4c0;
  --mustard: #e0a526;
  --mustard-l: #f7e3b0;
  --pink: #f6c1b3;
  --sky: #b9d7e4;

  --f-head: 'Unbounded', 'Rubik', 'Arial Black', system-ui, sans-serif;
  --f-text: 'Onest', 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --r-s: 14px;
  --r-m: 24px;
  --r-l: 32px;
  --r-xl: clamp(28px, 4vw, 56px);
  --hard: 0 5px 0 var(--coffee);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
  --gut: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
main { overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--coffee);
  font-family: var(--f-text);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  min-width: 320px;
}
/* бумажное зерно поверх всего — чуть-чуть тактильности */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .1 0 0 0 0 .06 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-scroll, body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
::selection { background: var(--tomato); color: var(--paper); }

:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .footer :focus-visible, .summary :focus-visible, .mnav :focus-visible { outline-color: var(--mustard); }

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--coffee); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(1320px + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 136px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 88px); }
.section--dark { background: var(--coffee); color: var(--cream); }
.section--cream2 { background: var(--cream-2); }

/* ---------- типографика ---------- */
.h-xl, .h-l, .h-m, .h-s { font-family: var(--f-head); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; overflow-wrap: break-word; text-wrap: balance; }
.h-xl { font-size: clamp(2.1rem, 7.4vw, 5rem); line-height: .98; }
.h-l { font-size: clamp(1.75rem, 4.4vw, 3.5rem); }
.h-m { font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.1; }
.h-s { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
@media (min-width: 980px) { .h-xl { font-size: clamp(3rem, 5vw, 5rem); } }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); margin-bottom: 1.1em; display: flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ''; width: 1.1em; height: 1.1em; border-radius: 50% 50% 50% 0; background: currentColor; flex: none; transform: rotate(45deg) scale(.7); }
.section--dark .eyebrow, .summary .eyebrow { color: var(--mustard); }
.lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); line-height: 1.5; max-width: 38em; }
.muted { color: var(--muted); }
.u-tomato { color: var(--tomato); }
.u-wavy { text-decoration: underline wavy var(--mustard); text-decoration-thickness: .08em; text-underline-offset: .14em; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head .lead { margin-top: 16px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; min-height: 48px;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center;
  border: 2px solid var(--coffee); border-radius: 999px;
  background: var(--paper); color: var(--coffee);
  box-shadow: 0 4px 0 var(--coffee);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--coffee); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coffee); }
.btn--primary { background: var(--tomato); color: var(--paper); }
.btn--primary:hover { background: var(--tomato-d); }
.btn--dark { background: var(--coffee); color: var(--paper); box-shadow: 0 4px 0 var(--tomato); }
.btn--dark:hover { box-shadow: 0 6px 0 var(--tomato); }
.btn--dark:active { box-shadow: 0 1px 0 var(--tomato); }
.btn--mustard { background: var(--mustard); }
.btn--lg { padding: 1.05em 1.9em; font-size: 1.06rem; min-height: 58px; }
.btn--block { width: 100%; }
.section--dark .btn, .cta .btn, .summary .btn { border-color: var(--coffee); }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .5em; align-items: center; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.iconbtn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--coffee); background: var(--paper); display: grid; place-items: center; transition: transform .25s var(--ease), background-color .2s; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { transform: rotate(90deg); background: var(--mustard); }

/* ---------- стикеры, пилюли, теги ---------- */
.sticker {
  display: inline-block; padding: .5em 1em .55em; border-radius: 999px; border: 2px solid var(--coffee);
  font-family: var(--f-head); font-weight: 700; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  background: var(--mustard); color: var(--coffee); transform: rotate(-7deg); box-shadow: 0 3px 0 var(--coffee);
}
.sticker--tomato { background: var(--tomato); color: var(--paper); }
.sticker--olive { background: var(--olive); color: var(--paper); }
.sticker--coffee { background: var(--coffee); color: var(--mustard); box-shadow: 0 3px 0 var(--tomato); }
.sticker--pink { background: var(--pink); }
.sticker--lg { font-size: clamp(.72rem, 1.1vw, .95rem); padding: .7em 1.2em .75em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: .45em 1em; border-radius: 999px; border: 2px solid var(--coffee); font-weight: 600; font-size: .95rem; background: var(--paper); }
.pill--tomato { background: var(--pink); }
.pill--mustard { background: var(--mustard-l); }
.pill--olive { background: var(--olive-l); }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; background: var(--coffee); color: var(--paper); }
.tag--filter { background: var(--olive); }

/* ---------- вращающийся бейдж ---------- */
.spin { position: relative; width: clamp(104px, 13vw, 168px); aspect-ratio: 1; border-radius: 50%; background: var(--mustard); border: 2px solid var(--coffee); display: grid; place-items: center; box-shadow: var(--hard); }
.spin__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.spin__ring text { font-family: var(--f-head); font-weight: 700; font-size: 15.5px; fill: var(--coffee); text-transform: uppercase; }
.spin__core { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--coffee); color: var(--paper); display: grid; place-items: center; place-content: center; text-align: center; line-height: 1; }
.spin__core svg { width: 58%; margin: auto; }
.spin__core b { font-family: var(--f-head); font-size: clamp(.8rem, 1.5vw, 1.2rem); }
.spin__core small { font-size: .6rem; letter-spacing: .15em; opacity: .8; margin-top: 3px; }
.spin--tomato { background: var(--tomato); }
.spin--tomato .spin__ring text { fill: var(--paper); }
.spin--cream { background: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- бегущая строка и волны ---------- */
.marquee { overflow: hidden; background: var(--tomato); color: var(--paper); border-block: 2px solid var(--coffee); padding: clamp(12px, 1.6vw, 20px) 0; transform: rotate(-1.4deg) scale(1.03); position: relative; z-index: 2; }
.marquee--mustard { background: var(--mustard); color: var(--coffee); transform: rotate(1.2deg) scale(1.03); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); font-family: var(--f-head); font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.7rem); text-transform: uppercase; white-space: nowrap; }
.marquee__track i { font-style: normal; display: inline-block; animation: spin 8s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wave { display: block; width: 100%; height: clamp(22px, 3.6vw, 46px); margin-bottom: -1px; }
.wave--coffee { fill: var(--coffee); }
.wave--cream { fill: var(--cream); background: var(--coffee); }
.wave--cream2 { fill: var(--cream-2); }
.wave--cream2-out { fill: var(--cream); background: var(--cream-2); }

/* ---------- зёрна-декор ---------- */
.bean { position: absolute; width: clamp(26px, 3.6vw, 52px); aspect-ratio: 3 / 4; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cellipse cx='30' cy='40' rx='27' ry='37' fill='%232b1a10'/%3E%3Cpath d='M35 6C17 26 45 52 25 74' stroke='%23f6ecd9' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: drift 7s ease-in-out infinite alternate; }
.bean--light { filter: invert(1) sepia(.35) saturate(1.4) hue-rotate(-12deg) brightness(.98); }
@keyframes drift { from { transform: translateY(-8px) rotate(var(--r, 20deg)); } to { transform: translateY(10px) rotate(calc(var(--r, 20deg) + 14deg)); } }

/* ---------- появление ---------- */
.reveal { transition: opacity .7s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(32px); }
html.js .reveal--pop:not(.is-in) { transform: scale(.85) rotate(-6deg); }

/* ==========================================================
   ШАПКА
   ========================================================== */
.header { position: sticky; top: 0; z-index: 60; background: rgba(246, 236, 217, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 2px solid transparent; transition: border-color .3s, background-color .3s; }
.header.is-scrolled, body.menu-open .header { border-bottom-color: var(--coffee); background: var(--cream); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 900; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.04em; text-decoration: none; line-height: 1; }
.logo svg { width: 1.25em; height: 1.25em; transition: transform .6s var(--ease); flex: none; }
.logo:hover svg { transform: rotate(200deg); }
.nav { display: none; align-items: center; gap: 4px; padding: 5px; border: 2px solid var(--coffee); border-radius: 999px; background: var(--paper); }
.nav a { padding: .55em 1.05em; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s; white-space: nowrap; }
.nav a:hover { background: var(--mustard-l); }
.nav a[aria-current='page'] { background: var(--coffee); color: var(--paper); }
.header__act { display: flex; align-items: center; gap: 10px; }
.portfolio-link { display: none; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 6px; white-space: nowrap; }
.portfolio-link:hover { color: var(--tomato); }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 16px; border-radius: 999px; border: 2px solid var(--coffee); background: var(--coffee); color: var(--paper); font-weight: 700; font-size: .95rem; transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 3px 0 var(--tomato); }
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--tomato); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__label { display: none; }
.cart-btn__n { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--tomato); color: var(--paper); display: grid; place-items: center; font-size: .85rem; line-height: 1; }
.cart-btn__n.is-empty { background: var(--coffee-2); }
.cart-btn__n.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5) rotate(-12deg); } 60% { transform: scale(.9); } }
.burger { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--coffee); background: var(--paper); display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--coffee); transition: transform .35s var(--ease); }
.burger[aria-expanded='true'] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 55; padding: calc(var(--header-h) + 28px) var(--gut) 32px; background: var(--tomato); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow-y: auto;
  visibility: hidden; opacity: 0; clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .6s var(--ease), opacity .3s, visibility 0s .6s; }
.mnav.is-open { visibility: visible; opacity: 1; clip-path: circle(150% at calc(100% - 40px) 38px); transition: clip-path .7s var(--ease), opacity .2s, visibility 0s; }
.mnav ul { display: grid; gap: 4px; }
.mnav li a { display: flex; align-items: baseline; gap: 14px; padding: .28em 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.7rem, 8vw, 3rem); letter-spacing: -.03em; text-decoration: none; line-height: 1.1; }
.mnav li a small { font-family: var(--f-text); font-size: .8rem; font-weight: 600; opacity: .7; letter-spacing: .1em; }
.mnav li a[aria-current='page'] { color: var(--coffee); }
.mnav li { transform: translateY(24px); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.mnav.is-open li { transform: none; opacity: 1; transition-delay: calc(.12s + var(--i, 0) * .05s); }
.mnav__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .95rem; border-top: 2px solid rgba(255, 250, 240, .35); padding-top: 18px; }
.mnav__foot a { text-decoration: none; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .burger { display: none; }
  .mnav { display: none; }
  .cart-btn__label { display: inline; }
}
@media (min-width: 1180px) { .portfolio-link { display: inline-block; } }
@media (max-width: 480px) { :root { --header-h: 66px; } .cart-btn { padding-left: 12px; } }

/* ==========================================================
   КАРТОЧКА ЛОТА
   ========================================================== */
.pack { width: 100%; height: auto; overflow: visible; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--coffee); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 0 0 var(--coffee);
  transition: opacity .7s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), translate .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover, .card:focus-within { translate: 0 -6px; box-shadow: 0 8px 0 var(--coffee); }
.card__media { position: relative; display: grid; place-items: center; background: var(--tint, var(--cream-2)); padding: 26px 20px 14px; border-bottom: 2px solid var(--coffee); overflow: hidden; }
.card__media::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 250, 240, .55); transform: scale(.9); transition: transform .6s var(--ease); }
.card__media .pack { position: relative; width: min(62%, 190px); transition: transform .6s var(--ease); transform-origin: 50% 90%; }
.card:hover .card__media .pack { transform: rotate(-5deg) scale(1.06); }
.card:hover .card__media::before { transform: scale(1.08); }
.card__badge { position: absolute; top: 16px; left: 14px; z-index: 2; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__title { font-family: var(--f-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 8px; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }
.card__title a:hover { color: var(--tomato); }
.card__notes { color: var(--coffee-2); font-size: .95rem; margin-bottom: 18px; }
.card__notes::first-letter { text-transform: uppercase; }
.card__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.card__price { margin-left: auto; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.card__price small { font-weight: 500; font-size: .74rem; color: var(--muted); }
.add { position: relative; z-index: 2; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 2px solid var(--coffee); background: var(--tomato); color: var(--paper); display: grid; place-items: center; box-shadow: 0 3px 0 var(--coffee); transition: transform .25s var(--ease), box-shadow .25s, background-color .2s; }
.add svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.add:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--coffee); background: var(--tomato-d); }
.add:hover svg { transform: rotate(90deg); }
.add:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--coffee); }
.add.is-done { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.25) rotate(12deg); background: var(--olive); } }

/* ==========================================================
   ГЛАВНАЯ
   ========================================================== */
.hero { position: relative; padding-block: clamp(28px, 5vw, 72px) clamp(56px, 8vw, 120px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.12fr .88fr; } }
.hero h1 { margin-bottom: clamp(20px, 2.4vw, 32px); }
.line { display: block; overflow: hidden; padding-block: .1em; margin-block: -.1em; }
.line > span { display: inline-block; animation: lineUp 1s var(--ease) both; animation-delay: calc(.1s + var(--i, 0) * .12s); }
@keyframes lineUp { from { transform: translateY(110%) rotate(4deg); } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3vw, 40px); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 2px dashed rgba(43, 26, 16, .3); }
.hero__facts li { display: grid; gap: 2px; }
.hero__facts b { font-family: var(--f-head); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; }
.hero__facts span { font-size: .88rem; color: var(--muted); }
.hero__art { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin-inline: auto; }
.hero__blob { position: absolute; inset: 5%; border-radius: 50%; background: var(--tomato); border: 2px solid var(--coffee); animation: blob 14s ease-in-out infinite alternate; }
.hero__blob::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 2px dashed rgba(255, 250, 240, .6); animation: spin 60s linear infinite; }
@keyframes blob { 0% { border-radius: 50% 46% 52% 48% / 48% 52% 46% 52%; } 100% { border-radius: 46% 54% 47% 53% / 54% 46% 54% 46%; } }
.hero__pack { position: absolute; left: 50%; top: 50%; width: 54%; transform: translate(-50%, -50%) rotate(-7deg); animation: floaty 6s ease-in-out infinite alternate; filter: drop-shadow(0 22px 24px rgba(43, 26, 16, .28)); }
@keyframes floaty { from { transform: translate(-50%, -52%) rotate(-8deg); } to { transform: translate(-50%, -47%) rotate(-4deg); } }
.hero__spin { position: absolute; right: 0; top: 4%; z-index: 3; }
.hero__sticker { position: absolute; left: -1%; bottom: 17%; z-index: 3; transform: rotate(-12deg); }
.hero__sticker2 { position: absolute; right: 2%; bottom: 8%; z-index: 3; transform: rotate(8deg); }
.hero .bean--1 { left: 4%; top: 8%; --r: -30deg; }
.hero .bean--2 { right: 12%; bottom: 30%; --r: 40deg; animation-delay: -2s; z-index: 3; }
.hero .bean--3 { left: 16%; bottom: 2%; --r: 110deg; animation-delay: -4s; }

/* шаги подписки */
.panel { border-radius: var(--r-xl); border: 2px solid var(--coffee); padding: clamp(28px, 5vw, 72px); position: relative; }
.panel--mustard { background: var(--mustard); }
.panel--olive { background: var(--olive); color: var(--paper); }
.steps { display: grid; gap: clamp(14px, 2vw, 24px); counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); color: var(--coffee); border: 2px solid var(--coffee); border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; position: relative; transition: opacity .7s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), rotate .4s var(--ease), box-shadow .4s; }
.step:hover { rotate: -1.5deg; box-shadow: var(--hard); }
.step:nth-child(2):hover { rotate: 1.5deg; }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(16px, 3vw, 40px); }
.step__n { font-family: var(--f-head); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: .8; color: var(--tomato); letter-spacing: -.05em; }
.step__ico { width: clamp(64px, 7vw, 88px); height: auto; }
.steps__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(24px, 3vw, 40px); }
.steps__cta p { font-weight: 600; max-width: 30em; }

/* обжарка */
.roast { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 940px) { .roast { grid-template-columns: 1fr 1.05fr; } }
.roast__list { display: grid; gap: 18px; margin-top: 32px; }
.roast__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.roast__list svg { width: 44px; height: 44px; }
.roast__list b { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.roast__list span { color: rgba(246, 236, 217, .75); font-size: .98rem; }
.chart { background: var(--cream); color: var(--coffee); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 32px); position: relative; border: 2px solid var(--cream); box-shadow: 10px 10px 0 var(--tomato); }
.chart__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.chart__head b { font-family: var(--f-head); font-size: .95rem; }
.chart__head span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-text); font-size: 12px; font-weight: 600; fill: var(--coffee); }
.chart .curve { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.chart.is-in .curve { stroke-dashoffset: 0; }
html:not(.js) .chart .curve { stroke-dashoffset: 0; }
.chart__sticker { position: absolute; right: -10px; top: -18px; transform: rotate(9deg); }

/* отзывы */
.reviews { display: grid; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); align-items: start; } .review:nth-child(2) { margin-top: 40px; } }
.review { border: 2px solid var(--coffee); border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 34px); background: var(--paper); display: flex; flex-direction: column; gap: 20px; }
.review--pink { background: var(--pink); }
.review--olive { background: var(--olive-l); }
.review--sky { background: var(--sky); }
.review__stars { display: flex; gap: 3px; color: var(--tomato); }
.review__stars svg { width: 20px; height: 20px; }
.review blockquote { font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.45; font-weight: 500; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: .9rem; }
.review figcaption b { display: block; font-size: 1rem; }
.ava { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 2px solid var(--coffee); display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: .9rem; background: var(--mustard); }
.ava--t { background: var(--tomato); color: var(--paper); }
.ava--o { background: var(--olive); color: var(--paper); }

/* CTA */
.cta { position: relative; background: var(--tomato); color: var(--paper); border: 2px solid var(--coffee); border-radius: var(--r-xl); padding: clamp(36px, 6vw, 96px) clamp(24px, 5vw, 80px); overflow: hidden; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }
.cta .h-l { max-width: 14em; }
.cta p { margin-top: 18px; max-width: 34em; font-size: 1.1rem; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta__art { position: relative; width: clamp(180px, 24vw, 300px); justify-self: center; }
.cta__art .spin { position: absolute; right: -8%; top: -6%; width: 46%; }
.cta__art [data-pack] { transform: rotate(8deg); filter: drop-shadow(0 18px 18px rgba(43, 26, 16, .3)); }
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; border: 2px dashed rgba(255, 250, 240, .4); pointer-events: none; }
.cta::before { width: 420px; height: 420px; right: -120px; bottom: -220px; }
.cta::after { width: 220px; height: 220px; left: -80px; top: -110px; }
.cta > * { position: relative; z-index: 1; }

/* ==========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ: шапка раздела
   ========================================================== */
.page-hero { padding-block: clamp(36px, 6vw, 88px) clamp(28px, 4vw, 56px); position: relative; }
.page-hero__in { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .page-hero__in { grid-template-columns: 1.3fr .7fr; } }
.page-hero .h-xl { margin-bottom: 0; }
.page-hero .sticker { margin-left: .4em; vertical-align: middle; position: relative; top: -.6em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); padding-top: clamp(20px, 3vw, 36px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--tomato); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.crumbs [aria-current] { color: var(--coffee); }

/* ---------- каталог ---------- */
.filters { background: var(--paper); border: 2px solid var(--coffee); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 22px 40px; box-shadow: var(--hard); }
@media (min-width: 900px) { .filters { grid-template-columns: auto 1fr; } .filters__group--wide { grid-column: 1 / -1; } }
.filters__label { font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: .4em .7em .4em 1.05em; border-radius: 999px; border: 2px solid var(--coffee); background: var(--cream); font-weight: 600; font-size: .95rem; transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.chip:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--coffee); }
.chip__n { min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: rgba(43, 26, 16, .1); padding-inline: 6px; }
.chip[aria-pressed='true'] { background: var(--coffee); color: var(--paper); }
.chip[aria-pressed='true'] .chip__n { background: var(--tomato); }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: clamp(24px, 3vw, 40px) 0 clamp(18px, 2vw, 28px); }
.shop-bar__count { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reset { background: none; border: 0; padding: 4px 0; font-weight: 700; color: var(--tomato); border-bottom: 2px solid currentColor; font-size: .92rem; }
.reset:hover { color: var(--tomato-d); }
.select { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.select select { appearance: none; -webkit-appearance: none; border: 2px solid var(--coffee); border-radius: 999px; background: var(--paper); padding: .6em 2.6em .6em 1.1em; font-weight: 700; min-height: 46px; cursor: pointer; max-width: 100%; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--coffee); border-bottom: 2.5px solid var(--coffee); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.empty { text-align: center; padding: clamp(40px, 6vw, 80px) 20px; border: 2px dashed var(--coffee); border-radius: var(--r-l); display: grid; gap: 14px; justify-items: center; }
.empty svg { width: 120px; }
.shop-note { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 16px; }
@media (min-width: 800px) { .shop-note { grid-template-columns: repeat(3, 1fr); } }
.shop-note li { border-radius: var(--r-m); padding: 22px 24px; border: 2px solid var(--coffee); background: var(--mustard-l); }
.shop-note li:nth-child(2) { background: var(--pink); }
.shop-note li:nth-child(3) { background: var(--olive-l); }
.shop-note b { display: block; font-family: var(--f-head); font-size: .98rem; margin-bottom: 6px; }

/* ---------- карточка лота ---------- */
.product { display: grid; gap: clamp(28px, 4vw, 64px); padding-block: clamp(20px, 3vw, 40px) clamp(56px, 8vw, 110px); }
@media (min-width: 940px) { .product { grid-template-columns: 1fr 1fr; align-items: start; } .product__stage { position: sticky; top: calc(var(--header-h) + 20px); } }
.product__stage { position: relative; background: var(--tint, var(--cream-2)); border: 2px solid var(--coffee); border-radius: var(--r-xl); aspect-ratio: 1 / 1.05; display: grid; place-items: center; overflow: hidden; max-height: calc(100vh - var(--header-h) - 40px); width: 100%; }
.product__stage::before { content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 250, 240, .6); }
.product__stage::after { content: ''; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(43, 26, 16, .25); animation: spin 80s linear infinite; }
.stage__pack { position: relative; z-index: 1; width: min(52%, 330px); transform: rotate(-5deg); animation: floaty2 6s ease-in-out infinite alternate; filter: drop-shadow(0 20px 22px rgba(43, 26, 16, .25)); }
@keyframes floaty2 { from { transform: translateY(-6px) rotate(-6deg); } to { transform: translateY(8px) rotate(-3deg); } }
.stage__sticker { position: absolute; z-index: 2; left: 6%; top: 7%; font-size: clamp(.7rem, 1.1vw, .9rem); padding: .7em 1.2em; }
.stage__spin { position: absolute; z-index: 2; right: 5%; bottom: 5%; }
.product__info .h-l { margin-bottom: 20px; }
.product__info .pills { margin-bottom: 22px; }
.buy { margin-top: 32px; padding: clamp(18px, 2.4vw, 30px); background: var(--paper); border: 2px solid var(--coffee); border-radius: var(--r-l); display: grid; gap: 22px; box-shadow: var(--hard); }
.opt legend { font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.opt__hint { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg--wrap { display: flex; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 46px; padding: .55em 1.1em; border-radius: 18px; border: 2px solid var(--coffee); background: var(--cream); font-weight: 700; line-height: 1.2; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.seg--wrap span { border-radius: 999px; font-weight: 600; font-size: .95rem; }
.seg span small { font-weight: 500; font-size: .8rem; opacity: .75; }
.seg label:hover span { transform: translateY(-2px); }
.seg input:checked + span { background: var(--coffee); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 3px; }
.buy__row { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center; padding-top: 20px; border-top: 2px dashed rgba(43, 26, 16, .25); }
.buy__btn { grid-column: 1 / -1; }
@media (min-width: 560px) { .buy__row { grid-template-columns: auto 1fr auto; } .buy__btn { grid-column: auto; } }
.buy__price { display: grid; line-height: 1.1; }
.buy__sum { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.buy__price small { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--coffee); border-radius: 999px; background: var(--cream); overflow: hidden; }
.qty button { width: 44px; height: 46px; border: 0; background: transparent; font-size: 1.3rem; font-weight: 700; line-height: 1; transition: background-color .2s; }
.qty button:hover { background: var(--mustard); }
.qty output, .qty span { min-width: 30px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty--s button { width: 34px; height: 34px; font-size: 1.1rem; }
.qty--s span { min-width: 24px; font-size: .95rem; }
.facts { margin-top: 32px; display: grid; }
.facts > div { display: grid; grid-template-columns: minmax(110px, .4fr) 1fr; gap: 16px; padding: 13px 0; border-bottom: 2px dashed rgba(43, 26, 16, .2); }
.facts dt { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { font-weight: 600; }
.facts dd::first-letter { text-transform: uppercase; }

.profile { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .profile { grid-template-columns: 1fr 1fr; } }
.radar { background: var(--paper); border: 2px solid var(--coffee); border-radius: var(--r-xl); padding: clamp(10px, 2vw, 28px); box-shadow: var(--hard); }
.radar svg { width: 100%; height: auto; }
.radar__label { font-family: var(--f-head); font-weight: 700; font-size: 12.5px; fill: var(--coffee); }
.radar__val { font-family: var(--f-text); font-weight: 600; font-size: 12.5px; fill: var(--muted); }
.radar__shape { transition: transform 1.2s var(--ease) .2s, opacity .6s .2s; }
html.js .radar:not(.is-in) .radar__shape { transform: scale(.05); opacity: 0; }
.meters { display: grid; gap: 22px; margin-top: 32px; }
.meter__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 9px; }
.meter__top b { font-family: var(--f-head); font-size: 1rem; }
.meter__top span { color: var(--muted); font-size: .92rem; }
.meter__top i { margin-left: auto; font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.meter__track { height: 20px; border-radius: 999px; border: 2px solid var(--coffee); background: var(--paper); overflow: hidden;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(43, 26, 16, .18) calc(10% - 2px) 10%); }
.meter__fill { display: block; height: 100%; width: var(--v); border-radius: 999px 0 0 999px; border-right: 2px solid var(--coffee); transition: width 1.3s var(--ease) .25s; background: var(--tomato); }
.meter__fill--mustard { background: var(--mustard); }
.meter__fill--olive { background: var(--olive); }
html.js .meter:not(.is-in) .meter__fill { width: 0; }

.recipe { display: grid; gap: clamp(28px, 4vw, 72px); }
@media (min-width: 940px) { .recipe { grid-template-columns: .8fr 1.2fr; align-items: start; } .recipe__head { position: sticky; top: calc(var(--header-h) + 24px); } }
.recipe__head .lead { margin-top: 18px; color: rgba(246, 236, 217, .8); }
.recipe__tip { margin-top: 28px; padding: 24px 22px 20px; border: 2px dashed rgba(246, 236, 217, .4); border-radius: var(--r-m); position: relative; }
.recipe__tip .sticker { position: absolute; top: -14px; left: 16px; }
.params { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 28px; }
@media (min-width: 640px) { .params { grid-template-columns: repeat(4, 1fr); } }
.params li { background: var(--cream); color: var(--coffee); border-radius: var(--r-m); padding: 18px 16px; display: grid; gap: 4px; }
.params li:nth-child(2) { background: var(--mustard); }
.params li:nth-child(3) { background: var(--tomato); color: var(--paper); }
.params li:nth-child(4) { background: var(--olive-l); }
.params b { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.05rem, 1.7vw, 1.4rem); letter-spacing: -.02em; white-space: nowrap; }
.params span { font-size: .85rem; font-weight: 600; opacity: .85; }
.rsteps { display: grid; gap: 0; }
.rsteps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 2px dashed rgba(246, 236, 217, .22); }
.rsteps__n { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--cream); display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; }
.rsteps li:hover .rsteps__n { background: var(--mustard); color: var(--coffee); border-color: var(--mustard); }
.rsteps p { padding-top: 12px; }

/* ---------- подписка ---------- */
.builder { display: grid; gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (min-width: 1000px) { .builder { grid-template-columns: 1.25fr .75fr; } .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.bsteps { display: grid; gap: clamp(16px, 2vw, 24px); }
.bstep { background: var(--paper); border: 2px solid var(--coffee); border-radius: var(--r-l); padding: clamp(20px, 2.6vw, 36px); }
.bstep legend { float: left; width: 100%; display: flex; align-items: center; gap: 14px; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.05rem, 1.8vw, 1.4rem); letter-spacing: -.02em; margin-bottom: 8px; padding: 0; line-height: 1.15; }
.bstep legend i { font-style: normal; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tomato); color: var(--paper); border: 2px solid var(--coffee); display: grid; place-items: center; font-size: .95rem; }
.bstep > p { clear: both; color: var(--muted); margin-bottom: 20px; font-size: .98rem; }
.tiles { clear: both; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.tiles--pills { display: flex; flex-wrap: wrap; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.tile__box { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 2px solid var(--coffee); border-radius: 22px; background: var(--cream); transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s; position: relative; }
.tile__box svg { width: 54px; height: 54px; margin-bottom: 6px; }
.tile__box b { font-family: var(--f-head); font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.15; }
.tile__box small { font-size: .86rem; line-height: 1.35; opacity: .8; }
.tile__box em { font-style: normal; align-self: flex-start; margin-top: auto; font-size: .74rem; font-weight: 800; letter-spacing: .05em; padding: .3em .7em; border-radius: 999px; background: var(--mustard); color: var(--coffee); border: 2px solid var(--coffee); }
.tile:hover .tile__box { transform: translateY(-3px); box-shadow: 0 4px 0 var(--coffee); }
.tile input:checked + .tile__box { background: var(--coffee); color: var(--paper); box-shadow: 0 5px 0 var(--tomato); transform: translateY(-3px); }
.tile input:focus-visible + .tile__box { outline: 3px solid var(--tomato); outline-offset: 3px; }
.tiles--pills .tile__box { flex-direction: row; align-items: center; padding: .6em 1.15em; border-radius: 999px; min-height: 46px; font-weight: 600; }
.tiles--pills .tile input:checked + .tile__box, .tiles--pills .tile:hover .tile__box { transform: none; box-shadow: none; }

.summary { background: var(--coffee); color: var(--cream); border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 36px); border: 2px solid var(--coffee); box-shadow: 10px 10px 0 var(--mustard); position: relative; }
.summary__packs { display: flex; justify-content: center; align-items: flex-end; height: clamp(130px, 16vw, 170px); margin-bottom: 20px; background: var(--coffee-2); border-radius: var(--r-m); padding: 14px 10px 6px; overflow: hidden; }
.minipack { width: 86px; flex: none; margin-inline: -8px; transform: rotate(calc((var(--i) - 1) * 5deg)); animation: packIn .5s var(--ease) both; animation-delay: calc(var(--i) * .06s); }
.summary__packs[data-n='4'] .minipack { width: 74px; margin-inline: -11px; transform: rotate(calc((var(--i) - 1.5) * 5deg)); }
.summary__packs[data-n='1'] .minipack { width: 100px; transform: rotate(-4deg); }
@keyframes packIn { from { opacity: 0; translate: 0 40px; } }
.summary__text { font-size: 1rem; line-height: 1.45; color: rgba(246, 236, 217, .85); min-height: 4.4em; }
.summary__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 18px 0 6px; }
.summary__price b { font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__price s { opacity: .6; font-weight: 600; white-space: nowrap; }
.summary__price .sticker { transform: rotate(-5deg); position: relative; top: -6px; }
.summary__per { font-size: .85rem; opacity: .7; }
.summary__rows { margin: 20px 0 24px; display: grid; }
.summary__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 2px dashed rgba(246, 236, 217, .2); font-size: .95rem; }
.summary__rows li span:last-child { font-weight: 700; text-align: right; }
.summary__note { font-size: .82rem; opacity: .7; margin-top: 16px; text-align: center; }

.perks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.perk { border: 2px solid var(--coffee); border-radius: var(--r-l); padding: 26px 24px; background: var(--paper); display: grid; gap: 10px; align-content: start; }
.perk svg { width: 56px; height: 56px; margin-bottom: 8px; }
.perk:nth-child(1) { background: var(--mustard-l); }
.perk:nth-child(2) { background: var(--pink); }
.perk:nth-child(3) { background: var(--olive-l); }
.perk:nth-child(4) { background: var(--sky); }

.faq { display: grid; gap: clamp(28px, 4vw, 72px); }
@media (min-width: 940px) { .faq { grid-template-columns: .8fr 1.2fr; align-items: start; } .faq__head { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq__head p { margin-top: 18px; }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 2px solid var(--coffee); border-radius: var(--r-m); background: var(--paper); transition: background-color .3s, box-shadow .3s; }
.faq__item.is-open { background: var(--mustard-l); box-shadow: var(--hard); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; padding: 20px 22px; background: none; border: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(.95rem, 1.3vw, 1.1rem); line-height: 1.25; letter-spacing: -.01em; border-radius: var(--r-m); }
.faq__q::after { content: ''; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--coffee); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%232b1a10' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .4s var(--ease), background-color .3s; }
.faq__q[aria-expanded='true']::after { transform: rotate(135deg); background-color: var(--tomato); }
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease); }
html.js .faq__item:not(.is-open) .faq__a { grid-template-rows: 0fr; }
.faq__a > div { overflow: hidden; }
html.js .faq__item:not(.is-open) .faq__a > div { visibility: hidden; }
.faq__a > div { transition: visibility 0s .45s; }
.faq__item.is-open .faq__a > div { visibility: visible; transition: visibility 0s; }
.faq__a p { padding: 0 22px 22px; max-width: 44em; }

/* ---------- о нас ---------- */
.about-hero { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 940px) { .about-hero { grid-template-columns: 1.2fr .8fr; } }
.about-hero__art { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
.about-hero__art > svg { width: 100%; height: auto; }
.about-hero__art .spin { position: absolute; left: -2%; bottom: 2%; }
.steam { animation: steam 3.5s ease-in-out infinite; transform-origin: 50% 100%; }
.steam:nth-of-type(2) { animation-delay: -1.2s; }
.steam:nth-of-type(3) { animation-delay: -2.2s; }
@keyframes steam { 0%, 100% { transform: translateY(4px) scaleY(.92); opacity: .45; } 50% { transform: translateY(-6px) scaleY(1.06); opacity: 1; } }

.timeline { display: grid; gap: 0; margin-top: clamp(28px, 4vw, 56px); }
.timeline li { display: grid; gap: 8px 40px; padding: clamp(20px, 2.6vw, 32px) 0; border-top: 2px solid var(--coffee); }
.timeline li:last-child { border-bottom: 2px solid var(--coffee); }
@media (min-width: 760px) { .timeline li { grid-template-columns: minmax(150px, .35fr) .65fr 1fr; align-items: baseline; } }
.timeline__y { font-family: var(--f-head); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1; color: var(--tomato); transition: color .3s, transform .4s var(--ease); display: inline-block; }
.timeline li:hover .timeline__y { transform: translateX(8px) rotate(-3deg); color: var(--coffee); }
.timeline p { color: var(--coffee-2); }

.mapcard { display: grid; gap: clamp(20px, 3vw, 40px); align-items: stretch; margin-top: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .mapcard { grid-template-columns: 1.7fr .8fr; } }
.map { background: var(--coffee-2); border-radius: var(--r-xl); padding: clamp(10px, 2vw, 28px); border: 2px solid rgba(246, 236, 217, .25); overflow: hidden; }
.map svg { width: 100%; height: auto; }
.map .land { fill: #6b4a33; stroke: #6b4a33; stroke-width: 9; stroke-linejoin: round; }
.map .belt { fill: var(--mustard); opacity: .16; }
.map .beltline { stroke: var(--mustard); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .7; }
.map .belt-label { font-family: var(--f-head); font-size: 11px; font-weight: 700; fill: var(--mustard); letter-spacing: .12em; }
.map .route { fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .55; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -36; } }
.mdot { cursor: pointer; outline: none; }
.mdot__hit { fill: transparent; }
.mdot__c { fill: var(--tomato); stroke: var(--cream); stroke-width: 2.5; transition: r .25s var(--ease), fill .2s; }
.mdot__pulse { fill: none; stroke: var(--tomato); stroke-width: 2; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { r: 6px; opacity: .9; } to { r: 22px; opacity: 0; } }
.mdot:hover .mdot__c, .mdot:focus-visible .mdot__c, .mdot.is-active .mdot__c { r: 10px; fill: var(--mustard); }
.mdot:focus-visible .mdot__hit { stroke: var(--mustard); stroke-width: 2.5; }
.map-label { font-family: var(--f-head); font-weight: 700; font-size: 14px; fill: var(--cream); }
.map-info { background: var(--cream); color: var(--coffee); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; box-shadow: 8px 8px 0 var(--tomato); }
.map-info .eyebrow { margin-bottom: 0; color: var(--tomato); }
.map-info .btn { margin-top: auto; }
.map-info p { min-height: 5.5em; }

.farmers { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); margin-top: clamp(32px, 4vw, 56px); }
.farmer { border: 2px solid rgba(246, 236, 217, .3); border-radius: var(--r-l); padding: 26px; display: grid; gap: 12px; align-content: start; transition: background-color .3s, color .3s, opacity .7s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.farmer:hover { background: var(--cream); color: var(--coffee); }
.farmer__place { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mustard); }
.farmer:hover .farmer__place { color: var(--tomato); }
.farmer p:last-child { opacity: .85; font-size: .98rem; }

.team { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.member { border: 2px solid var(--coffee); border-radius: var(--r-l); overflow: hidden; background: var(--paper); transition: opacity .7s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s), translate .35s var(--ease), box-shadow .35s; }
.member:hover { translate: 0 -6px; box-shadow: 0 8px 0 var(--coffee); }
.member__pic { aspect-ratio: 1 / .92; display: grid; place-items: end center; border-bottom: 2px solid var(--coffee); overflow: hidden; background: var(--bg, var(--mustard)); }
.member__pic svg { width: 78%; height: auto; transition: transform .5s var(--ease); transform-origin: 50% 100%; }
.member:hover .member__pic svg { transform: scale(1.06) rotate(-2deg); }
.member__body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.member__role { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tomato); }
.member__body p:last-child { font-size: .95rem; color: var(--coffee-2); margin-top: 6px; }

.principles { display: grid; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle { border: 2px solid var(--coffee); border-radius: var(--r-l); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: start; background: var(--paper); position: relative; overflow: hidden; }
.principle__n { font-family: var(--f-head); font-weight: 900; font-size: clamp(3.4rem, 7vw, 6rem); line-height: .8; letter-spacing: -.06em; position: absolute; right: 18px; top: 22px; opacity: .14; }
.principle:nth-child(1) { background: var(--mustard); }
.principle:nth-child(4) { background: var(--tomato); color: var(--paper); }
.principle:nth-child(2) { background: var(--olive-l); }
.principle:nth-child(3) { background: var(--pink); }
.principle p { max-width: 30em; }
.principle .h-m { max-width: 12em; }

.stats { display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 2px solid var(--cream); padding-top: 20px; display: grid; gap: 8px; align-content: start; }
.stat b { font-family: var(--f-head); font-weight: 900; font-size: clamp(2rem, 5vw, 4.2rem); letter-spacing: -.04em; line-height: 1; color: var(--mustard); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b small { font-size: .45em; letter-spacing: 0; margin-left: .15em; }
.stat span { font-size: .98rem; color: rgba(246, 236, 217, .8); max-width: 16em; }

/* ==========================================================
   КОРЗИНА (drawer) и тост
   ========================================================== */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; transition: visibility 0s .5s; }
.drawer.is-open { visibility: visible; transition: visibility 0s; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(43, 26, 16, .55); opacity: 0; transition: opacity .4s; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(460px, 100%); background: var(--cream); display: flex; flex-direction: column; border-left: 2px solid var(--coffee); transform: translateX(104%); transition: transform .5s var(--ease); outline: none; }
.drawer.is-open .drawer__panel { transform: none; }
@media (min-width: 520px) { .drawer__panel { border-radius: var(--r-l) 0 0 var(--r-l); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 2px solid var(--coffee); }
.drawer__head h2 { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px; }
.drawer__empty { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 48px 10px; }
.drawer__cup { width: 130px; }
.citem { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 2px dashed rgba(43, 26, 16, .2); animation: itemIn .4s var(--ease); }
@keyframes itemIn { from { opacity: 0; transform: translateX(20px); } }
.citem__thumb { width: 72px; height: 84px; border-radius: 16px; border: 2px solid var(--coffee); display: grid; place-items: center; padding: 6px 12px 2px; overflow: hidden; }
.citem__thumb--sub { background: var(--mustard-l); padding: 10px; }
.citem__thumb svg { width: 100%; height: auto; }
.citem__title { font-weight: 800; line-height: 1.2; }
.citem__meta { font-size: .84rem; color: var(--muted); margin: 3px 0 10px; line-height: 1.35; }
.citem__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; white-space: nowrap; }
.citem__del { background: none; border: 0; padding: 4px 0; font-size: .82rem; font-weight: 600; color: var(--muted); text-decoration: underline; }
.citem__del:hover { color: var(--tomato); }
.drawer__foot { padding: 18px 22px 22px; border-top: 2px solid var(--coffee); background: var(--paper); }
.ship { font-size: .9rem; margin-bottom: 8px; }
.ship__track { height: 10px; border-radius: 999px; border: 2px solid var(--coffee); background: var(--cream); overflow: hidden; margin-bottom: 16px; }
.ship__track span { display: block; height: 100%; width: 0; background: var(--olive); border-radius: 999px; transition: width .6s var(--ease); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-weight: 700; }
.drawer__total b { font-family: var(--f-head); font-size: 1.6rem; letter-spacing: -.03em; }
.drawer__note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 140%); background: var(--coffee); color: var(--paper); padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 4px 0 var(--tomato); transition: transform .5s var(--ease); pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }

/* ==========================================================
   ФУТЕР
   ========================================================== */
.footer { background: var(--coffee); color: var(--cream); padding-top: clamp(48px, 7vw, 100px); overflow: hidden; position: relative; }
.footer__top { display: grid; gap: 40px 32px; padding-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer__top { grid-template-columns: 1.5fr .7fr .7fr 1fr; } }
.footer__sub .h-m { margin-bottom: 14px; max-width: 13em; }
.footer__sub p { color: rgba(246, 236, 217, .7); max-width: 26em; font-size: .98rem; }
.subform { display: flex; gap: 8px; margin-top: 22px; max-width: 420px; flex-wrap: wrap; }
.subform input { flex: 1 1 180px; min-width: 0; min-height: 50px; border-radius: 999px; border: 2px solid rgba(246, 236, 217, .4); background: transparent; color: var(--cream); padding: 0 20px; transition: border-color .2s; }
.subform input::placeholder { color: rgba(246, 236, 217, .5); }
.subform input:focus { border-color: var(--mustard); outline: none; }
.subform .btn { border-color: var(--coffee); box-shadow: 0 4px 0 var(--tomato); }
.footer h3 { font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mustard); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.footer__col a:hover { opacity: 1; color: var(--mustard); }
.footer__col li { opacity: .95; }
.footer__col address { font-style: normal; display: grid; gap: 10px; opacity: .85; }
.footer__word { font-family: var(--f-head); font-weight: 900; font-size: clamp(4.4rem, 23vw, 22rem); line-height: .74; letter-spacing: -.06em; text-align: center; color: var(--tomato); user-select: none; white-space: nowrap; margin-bottom: -.06em; pointer-events: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; border-top: 2px solid rgba(246, 236, 217, .18); font-size: .85rem; color: rgba(246, 236, 217, .65); }
.footer__bottom a { text-decoration: none; font-weight: 600; color: var(--cream); }
.footer__bottom a:hover { color: var(--mustard); }

/* ==========================================================
   ДОСТУПНОСТЬ ДВИЖЕНИЯ
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none !important; }
  html.js .reveal:not(.is-in) { opacity: 1; transform: none; }
  .mdot__pulse { display: none; }
}

@media print {
  .header, .footer, .drawer, .toast, .marquee, body::before { display: none !important; }
}
