:root {
  --ink: #171a12;
  --ink-2: #3a3d31;
  --muted: #6a6a58;
  --paper: #f4efe4;
  --paper-2: #ebe3d2;
  --paper-3: #e2d8c3;
  --line: rgba(23, 26, 18, .14);
  --dark: #12150e;
  --dark-2: #1b1f15;
  --dark-3: #262b1e;
  --on-dark: #f4efe4;
  --on-dark-2: rgba(244, 239, 228, .64);
  --line-dark: rgba(244, 239, 228, .14);
  --accent: #f0a81c;
  --accent-2: #ffbe3d;
  --accent-ink: #1d1404;
  --danger: #b4432f;

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --hdr-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.55 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.no-scroll { overflow: hidden; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -12px rgba(240, 168, 28, .7); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { background: rgba(244, 239, 228, .08); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(244, 239, 228, .35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(244, 239, 228, .16); }
.btn--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Шапка ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--hdr-h);
  color: var(--on-dark);
  transition: background-color .3s, box-shadow .3s, height .3s;
}
.hdr.is-solid { background: rgba(18, 21, 14, .92); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line-dark); --hdr-h: 64px; height: 64px; }
.hdr__in { height: 100%; width: min(100% - var(--gutter) * 2, 1400px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark { width: 30px; height: 30px; color: var(--accent); }
.logo__txt { font: 700 13px/1.1 var(--f-display); letter-spacing: .01em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; opacity: .78; transition: opacity .2s; position: relative; }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav__phone-m { display: none; }
.hdr__phone { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.hdr__phone span { font-weight: 800; font-size: 16px; }
.hdr__phone small { font-size: 12px; color: var(--on-dark-2); }
.cartbtn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(244, 239, 228, .1); display: grid; place-items: center; transition: background-color .2s, transform .3s var(--ease); flex: none; }
.cartbtn:hover { background: rgba(244, 239, 228, .2); }
.cartbtn svg { width: 22px; height: 22px; }
.cartbtn__n { position: absolute; top: -3px; right: -4px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; line-height: 21px; text-align: center; }
.cartbtn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(244, 239, 228, .1); position: relative; flex: none; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(100svh, 640px);
  background:
    radial-gradient(ellipse 55% 60% at 78% 100%, rgba(240, 168, 28, .22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 0%, rgba(120, 140, 70, .16), transparent 70%),
    var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  display: flex; align-items: center;
  cursor: crosshair;
}
.hero::before { /* зерно */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(18, 21, 14, .78) 0%, rgba(18, 21, 14, .35) 48%, transparent 70%); }
.hero__in { position: relative; z-index: 3; width: min(100% - var(--gutter) * 2, 1400px); margin-inline: auto; padding: calc(var(--hdr-h) + 40px) 0 120px; cursor: auto; }
.hero__title { margin: 0; font: 800 clamp(44px, 7.4vw, 118px)/.92 var(--f-display); letter-spacing: -.035em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__line:last-child { color: var(--accent); }
.hero__lead { max-width: 30ch; margin: 28px 0 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: rgba(244, 239, 228, .82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__facts { list-style: none; margin: 56px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: 14px; color: var(--on-dark-2); }
.hero__facts b { display: block; color: var(--on-dark); font: 700 22px/1.2 var(--f-display); letter-spacing: -.02em; }
.hero__hint { position: absolute; z-index: 3; left: max(var(--gutter), calc((100% - 1400px) / 2)); bottom: 22px; margin: 0; font-size: 13px; color: var(--on-dark-2); pointer-events: none; transition: opacity .6s; }
.hero__hint.is-gone { opacity: 0; }

/* вход */
.js .hero__line > *, .js .hero__line { animation: rise 1s var(--ease) both; }
.js .hero__line:nth-child(2) { animation-delay: .1s; }
.js .hero__lead { animation: fade .9s .35s var(--ease) both; }
.js .hero__cta { animation: fade .9s .5s var(--ease) both; }
.js .hero__facts { animation: fade .9s .65s var(--ease) both; }
@keyframes rise { from { transform: translateY(60%); opacity: 0; clip-path: inset(0 0 100% 0); } to { transform: none; opacity: 1; clip-path: inset(0 0 -10% 0); } }
@keyframes fade { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Бегущая строка ---------- */
.ticker { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 50s linear infinite; }
.ticker span { font: 700 clamp(18px, 2vw, 26px)/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.ticker i { width: 22px; height: 12px; border-radius: 6px; background: var(--accent-ink); transform: rotate(-24deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px 60px; flex-wrap: wrap; }
.sec__head--row .sec__sub { max-width: 420px; margin: 0; }
.kicker { margin: 0 0 14px; font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 18px; height: 10px; border-radius: 5px; background: var(--accent); transform: rotate(-24deg); }
.h2 { margin: 0; font: 800 clamp(32px, 4.6vw, 64px)/1.02 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.sec__sub { margin: 18px 0 0; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 56ch; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Чипы, поля ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px;
  background: var(--paper-2); color: var(--ink); font-weight: 650; font-size: 15px;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.chip:hover { background: var(--paper-3); }
.chip[aria-checked="true"], .chip[aria-selected="true"], .chip.is-on { background: var(--ink); color: var(--paper); }
.chip small { font-size: 12px; opacity: .55; font-weight: 700; }
.chips--sm .chip { min-height: 36px; padding: 6px 14px; font-size: 14px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.chips--sm .chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips--sm .chip.is-on { background: var(--ink); box-shadow: none; }

.field { border: 0; margin: 0; padding: 0 0 30px; min-width: 0; }
.field + .field { padding-top: 30px; border-top: 1px solid var(--line); }
.field__lbl { display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 16px; font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.field__lbl span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; }
.field__note { font-size: 14px; color: var(--muted); margin: 0; }

.range { display: flex; align-items: center; gap: 20px; }
.range input[type="range"] { flex: 1; }
.range__val { display: flex; align-items: baseline; gap: 8px; flex: none; min-width: 170px; justify-content: flex-end; }
.range__val input { width: 110px; text-align: right; border: 0; border-bottom: 2px solid var(--ink); background: transparent; font: 800 30px/1.1 var(--f-display); letter-spacing: -.03em; padding: 2px 0; -moz-appearance: textfield; }
.range__val input::-webkit-inner-spin-button { -webkit-appearance: none; }
.range__val span { color: var(--muted); font-weight: 600; }
.range__val--days b { font: 800 30px/1.1 var(--f-display); letter-spacing: -.03em; }
.range + .chips { margin-top: 14px; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--p), var(--paper-3) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--paper-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--accent); border: 4px solid var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.select {
  appearance: none; border: 0; border-radius: 999px; min-height: 46px; padding: 0 44px 0 18px;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171a12' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 18px center;
  font-weight: 650; font-size: 15px;
}
.select--dark { background-color: var(--dark-3); color: var(--on-dark); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f4efe4' stroke-width='1.8'/%3E%3C/svg%3E"); width: 100%; }

/* ---------- Калькулятор ---------- */
.calc__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.animals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.animal {
  border: 0; text-align: left; border-radius: var(--r); padding: 14px 16px; min-height: 64px;
  background: var(--paper-2); font-weight: 700; font-size: 15px; line-height: 1.2;
  display: flex; align-items: center; gap: 10px;
  transition: background-color .2s, color .2s, transform .25s var(--ease);
}
.animal:hover { background: var(--paper-3); transform: translateY(-2px); }
.animal i { width: 16px; height: 9px; border-radius: 5px; transform: rotate(-24deg); background: var(--c, var(--accent)); flex: none; transition: transform .3s var(--ease); }
.animal[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.animal[aria-checked="true"] i { transform: rotate(-24deg) scale(1.3); }

.result {
  position: sticky; top: calc(var(--hdr-h) + 20px);
  background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(18, 21, 14, .6);
  overflow: hidden;
}
.result::before { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 168, 28, .3), transparent 70%); pointer-events: none; }
.result__for { margin: 0; font-size: 14px; color: var(--on-dark-2); font-weight: 600; position: relative; }
.result__big { margin: 10px 0 0; font: 800 clamp(56px, 7vw, 92px)/.95 var(--f-display); letter-spacing: -.045em; display: flex; align-items: baseline; gap: 12px; position: relative; font-variant-numeric: tabular-nums; }
.result__big small { font-size: .32em; letter-spacing: -.01em; color: var(--accent); }
.result__sub { margin: 14px 0 0; font-size: 19px; color: var(--on-dark-2); }
.result__sub b { color: var(--on-dark); font-weight: 800; }
.result__lines { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.result__lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.result__lines .rl-code { font: 700 13px/1 var(--f-display); background: var(--c, var(--accent)); color: #fff; padding: 7px 9px; border-radius: 8px; }
.result__lines .rl-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.result__lines .rl-name small { display: block; color: var(--on-dark-2); font-weight: 500; font-size: 13px; }
.result__lines .rl-sum { font-weight: 800; text-align: right; white-space: nowrap; }
.result__lines button { all: unset; cursor: pointer; }
.result__lines button:hover .rl-name { text-decoration: underline; text-underline-offset: 3px; }
.result__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 26px; }
.result__stats dt, .bulk__out dt, .place__rows dt { font-size: 13px; color: var(--on-dark-2); font-weight: 600; }
.result__stats dd, .bulk__out dd, .place__rows dd { margin: 4px 0 0; font-weight: 800; font-size: 18px; }
.result__note { margin: 16px 0 0; font-size: 13px; color: var(--on-dark-2); }

/* ---------- Каталог ---------- */
.catalog { background: var(--paper); padding-top: 0; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; position: sticky; top: var(--hdr-h); z-index: 10; padding: 12px 0; background: linear-gradient(var(--paper) 80%, rgba(244, 239, 228, 0)); }
.filters__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { border: 0; border-radius: 999px; min-height: 46px; width: 250px; padding: 0 18px 0 44px; background: var(--paper-2); font-weight: 600; font-size: 15px; }
.search input::placeholder { color: var(--muted); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.prod {
  position: relative; display: flex; flex-direction: column;
  background: #fbf8f1; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .3s, transform .4s var(--ease);
  animation: fade .5s var(--ease) both;
}
.prod:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -28px rgba(23, 26, 18, .45); }
.prod__media { border: 0; padding: 22px 0 6px; background: radial-gradient(ellipse 70% 60% at 50% 70%, color-mix(in srgb, var(--c) 22%, transparent), transparent 75%), var(--paper-2); display: grid; place-items: center; height: 210px; }
.prod__media svg { height: 180px; width: auto; transition: transform .5s var(--ease); filter: drop-shadow(0 16px 14px rgba(23, 26, 18, .22)); }
.prod:hover .prod__media svg { transform: translateY(-6px) rotate(-2deg); }
.prod__tag { position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; }
.prod__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.prod__code { font: 700 13px/1 var(--f-display); color: var(--c); letter-spacing: .02em; }
.prod__name { margin: 8px 0 0; font-size: 19px; line-height: 1.2; font-weight: 800; }
.prod__name button { all: unset; cursor: pointer; }
.prod__name button:hover { text-decoration: underline; text-underline-offset: 3px; }
.prod__for { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.prod__meta { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.prod__buy { margin-top: auto; padding-top: 18px; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.prod__price b { display: block; font: 800 22px/1.1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.prod__price span { font-size: 13px; color: var(--muted); font-weight: 600; }

.add { border: 0; border-radius: 999px; min-height: 46px; padding: 0 18px; background: var(--ink); color: var(--paper); font-weight: 750; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, transform .2s var(--ease); }
.add:hover { background: #000; }
.add:active { transform: scale(.95); }
.add svg { width: 16px; height: 16px; }
.step { display: inline-flex; align-items: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); height: 46px; }
.step button { width: 42px; height: 46px; border: 0; background: transparent; font-size: 22px; font-weight: 700; line-height: 1; border-radius: 999px; }
.step button:hover { background: rgba(0, 0, 0, .08); }
.step input { width: 40px; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 16px; -moz-appearance: textfield; padding: 0; }
.step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.step--sm { height: 38px; } .step--sm button { width: 36px; height: 38px; font-size: 19px; } .step--sm input { width: 34px; font-size: 15px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 18px; }

/* ---------- Опт ---------- */
.bulk { background: var(--paper-2); }
.bulk__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.tiers { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.tiers li { padding: 16px 12px 0 0; transition: color .3s; color: var(--muted); }
.tiers li b { display: block; font: 800 clamp(22px, 2.4vw, 32px)/1.1 var(--f-display); letter-spacing: -.03em; }
.tiers li span { font-size: 14px; font-weight: 600; }
.tiers li.is-on { color: var(--ink); }
.tiers li.is-on b { color: var(--ink); }
.tiers li.is-on b::after { content: ''; display: inline-block; width: 12px; height: 7px; border-radius: 4px; background: var(--accent); transform: rotate(-24deg) translateY(-6px); margin-left: 6px; }

.bulk__calc { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 0 0 1px var(--line); }
.bulk__vol { margin: 0 0 14px; font: 800 clamp(48px, 6vw, 80px)/1 var(--f-display); letter-spacing: -.045em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-variant-numeric: tabular-nums; }
.bulk__vol small { font: 600 16px/1.3 var(--f-text); letter-spacing: 0; color: var(--muted); }
.bulk__calc input[type="range"] { width: 100%; }
.bulk__scale { position: relative; height: 18px; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.bulk__scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.bulk__scale span:first-child, .bulk__scale span:last-child { transform: none; }
.bulk__out { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; margin: 26px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.bulk__out dt { color: var(--muted); }
.bulk__out dd { font: 800 clamp(20px, 2vw, 26px)/1.15 var(--f-display); letter-spacing: -.03em; }
.bulk__out [data-bulk-save] { color: #3f7a26; }
.pallet { display: flex; flex-wrap: wrap-reverse; gap: 3px; min-height: 66px; align-content: flex-start; margin-bottom: 18px; }
.pallet i { width: 14px; height: 18px; border-radius: 4px 4px 5px 5px; background: var(--paper-3); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .06); animation: pop .35s var(--ease) both; }
.pallet i.t { background: var(--accent); }
.pallet em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 700; align-self: center; margin-left: 6px; }
@keyframes pop { from { transform: scale(.3) translateY(10px); opacity: 0; } }

/* ---------- Доставка ---------- */
.delivery { background: var(--dark); color: var(--on-dark); }
.delivery .kicker { color: var(--on-dark-2); }
.delivery .sec__sub { color: var(--on-dark-2); }
.delivery__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .ring { fill: none; stroke: var(--line-dark); stroke-dasharray: 3 6; }
.map .ring-l { fill: var(--on-dark-2); font: 600 11px var(--f-text); }
.map .volga { fill: none; stroke: #355f6b; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.map .volga-l { fill: #6aa0ad; font: italic 600 13px var(--f-text); letter-spacing: .3em; }
.map .town { cursor: pointer; }
.map .town circle { fill: var(--on-dark); transition: r .25s var(--ease), fill .2s; }
.map .town .hit { fill: transparent; }
.map .town text { fill: var(--on-dark-2); font: 600 13px var(--f-text); transition: fill .2s; paint-order: stroke; stroke: var(--dark); stroke-width: 4px; }
.map .town:hover text, .map .town:focus text { fill: var(--on-dark); }
.map .town:hover circle.dot { fill: var(--accent); }
.map .town.is-on circle.dot { fill: var(--accent); r: 7; }
.map .town.is-on text { fill: var(--accent); font-weight: 800; }
.map .town:focus { outline: none; }
.map .town:focus-visible circle.dot { stroke: var(--accent); stroke-width: 3; }
.map .home circle { fill: var(--accent); }
.map .home .pulse { fill: none; stroke: var(--accent); stroke-width: 2; animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(5); opacity: 0; } }
.map .route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 7; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -13; } }

.place { background: var(--dark-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--line-dark); }
.place .field__lbl { color: var(--on-dark-2); }
.place__name { margin: 26px 0 0; font: 800 clamp(30px, 3.2vw, 42px)/1.05 var(--f-display); letter-spacing: -.035em; }
.place__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 22px 0 26px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.place__note { margin: 16px 0 0; font-size: 14px; color: var(--on-dark-2); }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.steps li:nth-child(2) { transition-delay: .1s; } .steps li:nth-child(3) { transition-delay: .2s; }
.steps__n { font: 800 clamp(48px, 6vw, 84px)/1 var(--f-display); letter-spacing: -.05em; color: var(--accent); -webkit-text-stroke: 0; }
.steps h3 { margin: 18px 0 8px; font-size: 22px; font-weight: 800; }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 100px); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative; font-weight: 800; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0); }
.faq__list summary:hover { color: #000; }
.faq__list details p { margin: -6px 0 24px; color: var(--ink-2); max-width: 62ch; }
.faq__list details[open] p { animation: fade .4s var(--ease); }

/* ---------- Финал ---------- */
.final { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; left: -10%; bottom: -40%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(240, 168, 28, .2), transparent); pointer-events: none; }
.final__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.final__title { margin: 0; font: 800 clamp(36px, 5vw, 72px)/1 var(--f-display); letter-spacing: -.04em; text-wrap: balance; }
.final .sec__sub { color: var(--on-dark-2); }
.final__phone { display: inline-block; margin-top: 30px; white-space: nowrap; font: 800 clamp(24px, 4vw, 54px)/1 var(--f-display); letter-spacing: -.04em; color: var(--accent); text-decoration: none; }
.final__phone:hover { color: var(--accent-2); }
.final__info { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; }
.final__info li { display: grid; grid-template-columns: 110px 1fr; font-weight: 600; }
.final__info span { color: var(--on-dark-2); font-weight: 500; }
.final__info a { text-decoration-color: rgba(244, 239, 228, .3); text-underline-offset: 3px; word-break: break-word; }

.callback { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.callback__title { margin: 0 0 6px; font: 800 26px/1.15 var(--f-display); letter-spacing: -.03em; }
.inp { display: grid; gap: 6px; }
.inp span { font-size: 13px; font-weight: 700; color: var(--muted); }
.inp input, .inp textarea, .inp select { border: 0; border-radius: 12px; min-height: 52px; padding: 0 16px; background: var(--paper-2); font-weight: 600; font-size: 16px; width: 100%; transition: box-shadow .2s, background-color .2s; }
.inp textarea { padding: 14px 16px; min-height: 80px; resize: vertical; }
.inp .select { width: 100%; padding-right: 44px; border-radius: 12px; }
.inp input:focus, .inp textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.inp.is-err input { box-shadow: inset 0 0 0 2px var(--danger); }
.legal { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.form-msg { margin: 0; font-weight: 700; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #3f7a26; } .form-msg.err { color: var(--danger); }

/* ---------- Подвал ---------- */
.foot { background: #0c0e09; color: var(--on-dark-2); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.foot__brand { margin: 0; font: 700 15px var(--f-display); color: var(--on-dark); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__nav a { text-decoration: none; } .foot__nav a:hover { color: var(--on-dark); }
.foot__legal { margin: 0; width: 100%; font-size: 13px; opacity: .7; }

/* ---------- Корзина ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(12, 14, 9, .55); backdrop-filter: blur(3px); animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; } }
.cart {
  position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .45s var(--ease);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5);
  visibility: hidden;
}
.cart.is-open { transform: none; visibility: visible; }
.cart:focus { outline: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart__head h2 { margin: 0; font: 800 24px var(--f-display); letter-spacing: -.03em; }
.cart__body { flex: 1; overflow-y: auto; padding: 8px 24px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); position: relative; flex: none; }
.x span { position: absolute; left: 13px; right: 13px; top: 21px; height: 2px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.x span + span { transform: rotate(-45deg); }
.x:hover { background: var(--paper-3); }

.ci { display: grid; grid-template-columns: 54px 1fr auto; gap: 4px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ci__img { grid-row: span 2; width: 54px; height: 66px; display: grid; place-items: center; background: var(--paper-2); border-radius: 10px; }
.ci__img svg { height: 56px; width: auto; }
.ci__name { font-weight: 800; font-size: 15px; line-height: 1.25; }
.ci__name small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.ci__sum { font-weight: 800; text-align: right; white-space: nowrap; }
.ci__row { grid-column: 2 / -1; display: flex; justify-content: space-between; align-items: center; }
.ci__del { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.ci__del:hover { color: var(--danger); }

.sum { margin: 18px 0 0; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; }
.sum dt { color: var(--muted); } .sum dd { margin: 0; font-weight: 800; text-align: right; }
.sum .off dd { color: #3f7a26; }
.sum .total { margin-top: 8px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 20px; }
.sum .total dt { color: var(--ink); font-weight: 800; }
.sum .total dd { font: 800 26px var(--f-display); letter-spacing: -.03em; }
.nudge { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 20%, var(--paper)); font-size: 14px; font-weight: 600; }
.nudge b { font-weight: 800; }
.order { display: grid; gap: 12px; margin-top: 24px; }
.order h3 { margin: 6px 0 0; font: 800 18px var(--f-display); letter-spacing: -.02em; }
.radios { display: flex; flex-wrap: wrap; gap: 6px; }
.radios label { position: relative; }
.radios input { position: absolute; opacity: 0; }
.radios span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 99px; background: var(--paper-2); font-weight: 650; font-size: 14px; cursor: pointer; transition: background-color .2s, color .2s; }
.radios input:checked + span { background: var(--ink); color: var(--paper); }
.radios input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-empty { text-align: center; padding: 60px 10px; }
.cart-empty svg { width: 120px; margin: 0 auto 20px; }
.cart-empty h3 { margin: 0 0 8px; font: 800 22px var(--f-display); letter-spacing: -.03em; }
.cart-empty p { color: var(--muted); margin: 0 0 24px; }
.done { text-align: center; padding: 50px 6px; }
.done__ico { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 22px; animation: bump .6s var(--ease); }
.done__ico svg { width: 40px; }
.done h3 { margin: 0 0 10px; font: 800 26px/1.15 var(--f-display); letter-spacing: -.03em; }
.done p { color: var(--ink-2); margin: 0 0 8px; }

/* ---------- Карточка товара ---------- */
.pd {
  border: 0; padding: 0; border-radius: var(--r-lg); width: min(880px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .6);
}
.pd[open] { animation: dlg .45s var(--ease); }
.pd::backdrop { background: rgba(12, 14, 9, .6); backdrop-filter: blur(4px); }
@keyframes dlg { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.pd .x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pd__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.pd__media { background: radial-gradient(ellipse 70% 60% at 50% 65%, color-mix(in srgb, var(--c) 28%, transparent), transparent 75%), var(--paper-2); display: grid; place-items: center; padding: 40px 20px; }
.pd__media svg { height: 300px; width: auto; filter: drop-shadow(0 24px 20px rgba(23, 26, 18, .25)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.pd__txt { padding: clamp(24px, 3.4vw, 44px); }
.pd__code { font: 700 14px var(--f-display); color: var(--c); }
.pd__name { margin: 8px 0 0; font: 800 clamp(26px, 3vw, 36px)/1.08 var(--f-display); letter-spacing: -.035em; }
.pd__for { margin: 8px 0 0; color: var(--muted); font-weight: 600; }
.pd__desc { margin: 18px 0 0; color: var(--ink-2); }
.pd__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.pd__specs dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.pd__specs dd { margin: 3px 0 0; font-weight: 800; }
.pd__buy { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pd__price b { display: block; font: 800 30px/1 var(--f-display); letter-spacing: -.035em; }
.pd__price span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 16px; font-weight: 650; font-size: 15px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5); transition: transform .45s var(--ease); max-width: calc(100% - 24px);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast button { border: 0; border-radius: 999px; min-height: 40px; padding: 0 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; white-space: nowrap; }
.toast:empty { display: none; }

/* ---------- Нижняя панель (телефон) ---------- */
.mbar { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .hdr__phone { display: none; }
  .nav { gap: 20px; }
}
@media (max-width: 920px) {
  :root { --hdr-h: 64px; }
  .hdr.is-solid { height: 64px; }
  .burger { display: block; }
  .cartbtn { margin-left: auto; }
  .nav {
    position: fixed; inset: 64px 0 auto; margin: 0; flex-direction: column; gap: 0;
    background: rgba(18, 21, 14, .98); padding: 8px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line-dark); opacity: 1; }
  .nav a.is-active::after { display: none; }
  .nav__phone-m { display: block; color: var(--accent); font-weight: 800; border: 0 !important; }
  .calc__grid, .bulk__grid, .delivery__grid, .faq__grid, .final__grid { grid-template-columns: 1fr; }
  .result { position: relative; top: 0; }
  .pd__in { grid-template-columns: 1fr; }
  .pd__media { padding: 28px 20px 18px; }
  .pd__media svg { height: 200px; }
  .steps { grid-template-columns: 1fr; }
  .mbar {
    display: grid; grid-template-columns: auto 1fr; gap: 8px;
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 21, 14, .94); backdrop-filter: blur(14px);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mbar.is-on { transform: none; }
  .mbar a, .mbar button { min-height: 50px; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; text-decoration: none; }
  .mbar__call { background: rgba(244, 239, 228, .1); color: var(--on-dark); padding: 0 18px; }
  .mbar__call svg { width: 20px; height: 20px; }
  .mbar__cart { background: var(--accent); color: var(--accent-ink); justify-content: space-between !important; padding: 0 20px; }
  .mbar__cart b { font-weight: 800; white-space: nowrap; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { align-items: flex-start; }
  .hero__in { padding-top: calc(var(--hdr-h) + 36px); }
  .hero__title { font-size: 10.6vw; }
  .hero__shade { background: linear-gradient(180deg, rgba(18, 21, 14, .7) 0%, rgba(18, 21, 14, .4) 55%, transparent 75%); }
  .hero__lead { margin-top: 20px; }
  .hero__cta { margin-top: 26px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { margin-top: 30px; gap: 12px 24px; }
  .hero__facts b { font-size: 18px; }
  .range { flex-direction: column; align-items: stretch; gap: 6px; }
  .range__val { justify-content: flex-start; order: -1; }
  .animals { grid-template-columns: 1fr 1fr; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .chips--scroll::-webkit-scrollbar { display: none; }
  .filters__tools { flex-wrap: nowrap; }
  .search { flex: 1; } .search input { width: 100%; }
  .filters .select { max-width: 46%; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prod__media { height: 150px; padding-top: 14px; }
  .prod__media svg { height: 128px; }
  .prod__body { padding: 14px 12px 14px; }
  .prod__name { font-size: 16px; }
  .prod__for { font-size: 13px; }
  .prod__meta { display: none; }
  .prod__buy { flex-direction: column; align-items: stretch; }
  .prod__price b { font-size: 19px; }
  .add { justify-content: center; }
  .step { justify-content: space-between; }
  .prod__tag { top: 10px; left: 10px; font-size: 11px; }
  .tiers { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .bulk__out { grid-template-columns: 1fr 1fr; }
  .bulk__out div:last-child { grid-column: 1 / -1; }
  .map .town text { display: none; }
  .map .town.is-on text, .map .town.city text { display: block; font-size: 22px; }
  .map .town circle.dot { r: 6; }
  .final__info li { grid-template-columns: 90px 1fr; }
  .toast { border-radius: 18px; width: calc(100% - 24px); justify-content: space-between; }
}
@media (max-width: 420px) {
  .bulk__scale span:nth-child(4) { display: none; }
  .mbar__call { font-size: 0; gap: 0; padding: 0 16px !important; }
  .mbar__call svg { width: 22px; height: 22px; }
}
@media (max-width: 340px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
