/* ==========================================================================
   КРОКЕТ — завод сухого корма
   Дизайн-система. Фирменные цвета: оранжевый #E15100, графит #222427.
   Знак бренда: наклонённый квадрат (буква «О» в логотипе).
   ========================================================================== */

/* ---------- 1. Шрифт ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}

/* ---------- 2. Токены ---------- */
:root {
  /* Фирменные */
  --brand:            #E15100;
  --brand-bright:     #FE5200;
  --brand-deep:       #B33F00;
  --brand-soft:       #FFF1E8;
  --brand-tint:       #FFE0CC;

  --ink:              #222427;
  --ink-900:          #16181A;
  --ink-700:          #3A3E43;
  --ink-500:          #6B7178;
  --ink-400:          #8B9198;
  --ink-300:          #C3C8CE;
  --ink-200:          #E2E6EA;
  --ink-100:          #F1F3F5;

  --paper:            #FFFFFF;
  --paper-2:          #F7F8F9;
  --paper-3:          #EEF0F2;

  /* Семантические */
  --bg:               var(--paper);
  --bg-alt:           var(--paper-2);
  --bg-sunken:        var(--paper-3);
  --surface:          var(--paper);
  --surface-raised:   var(--paper);
  --text:             var(--ink);
  --text-muted:       var(--ink-500);
  --text-faint:       var(--ink-400);
  --line:             var(--ink-200);
  --line-strong:      var(--ink-300);

  --ok:               #1F9D55;
  --warn:             #C77700;

  /* Тёмные секции — постоянные, не зависят от темы */
  --dark-bg:          #16181A;
  --dark-bg-2:        #1E2124;
  --dark-line:        #32373C;
  --dark-text:        #F2F4F6;
  --dark-muted:       #A5ACB4;

  /* Типографика — плавная шкала */
  --f-display: clamp(2.75rem, 1.6rem + 5.2vw, 6.5rem);
  --f-h1:      clamp(2.1rem,  1.35rem + 3.2vw, 4.2rem);
  --f-h2:      clamp(1.7rem,  1.2rem  + 2.1vw, 3rem);
  --f-h3:      clamp(1.3rem,  1.08rem + 0.9vw, 1.85rem);
  --f-h4:      clamp(1.1rem,  1rem    + 0.45vw, 1.35rem);
  --f-lead:    clamp(1.05rem, 0.97rem + 0.4vw, 1.3rem);
  --f-body:    1rem;
  --f-sm:      0.9375rem;
  --f-xs:      0.8125rem;
  --f-mono:    0.875rem;

  /* Ритм 4px */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;
  --section-y: clamp(56px, 7vw, 120px);

  --container: 1280px;
  --container-narrow: 900px;

  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(22,24,26,.06), 0 2px 8px rgba(22,24,26,.04);
  --shadow-md: 0 2px 6px rgba(22,24,26,.07), 0 12px 28px rgba(22,24,26,.07);
  --shadow-lg: 0 8px 20px rgba(22,24,26,.10), 0 32px 64px rgba(22,24,26,.12);
  --shadow-brand: 0 8px 26px rgba(225,81,0,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --t-fast: .16s;
  --t: .28s;
  --t-slow: .55s;

  --header-h: 76px;
  --tilt: 11.5deg;               /* фирменный наклон квадрата — по часовой, как в логотипе */
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:             #131517;
    --bg-alt:         #1A1D20;
    --bg-sunken:      #0F1113;
    --surface:        #1C1F22;
    --surface-raised: #23272B;
    --text:           #EFF1F3;
    --text-muted:     #A2A9B0;
    --text-faint:     #7C848C;
    --line:           #2E3338;
    --line-strong:    #3D4349;
    --brand-soft:     #2A1A10;
    --brand-tint:     #3A2415;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 12px 28px rgba(0,0,0,.35);
    --shadow-lg: 0 8px 20px rgba(0,0,0,.5), 0 32px 64px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --bg:#131517; --bg-alt:#1A1D20; --bg-sunken:#0F1113;
  --surface:#1C1F22; --surface-raised:#23272B;
  --text:#EFF1F3; --text-muted:#A2A9B0; --text-faint:#7C848C;
  --line:#2E3338; --line-strong:#3D4349;
  --brand-soft:#2A1A10; --brand-tint:#3A2415;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 2px 6px rgba(0,0,0,.45), 0 12px 28px rgba(0,0,0,.35);
  --shadow-lg: 0 8px 20px rgba(0,0,0,.5), 0 32px 64px rgba(0,0,0,.45);
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- 3. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--f-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--f-h1); }
h2 { font-size: var(--f-h2); }
h3 { font-size: var(--f-h3); }
h4 { font-size: var(--f-h4); letter-spacing: -0.01em; }
p  { text-wrap: pretty; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--brand); color: #fff; }

/* ---------- 4. Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt    { background: var(--bg-alt); }
.section--sunken { background: var(--bg-sunken); }
.section--dark   { background: var(--dark-bg); color: var(--dark-text); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--dark-text); }
.section--dark .section-head__sub, .section--dark .muted { color: var(--dark-muted); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.muted { color: var(--text-muted); }
.lead { font-size: var(--f-lead); line-height: 1.55; color: var(--text-muted); }
.nowrap { white-space: nowrap; }
.text-brand { color: var(--brand); }

/* ---------- 5. Фирменный знак: наклонённый квадрат ---------- */
.sq {
  display: inline-block;
  width: .62em; height: .62em;
  border: .17em solid currentColor;
  transform: rotate(var(--tilt));
  flex: none;
  vertical-align: baseline;
}
.sq--fill { background: currentColor; border-color: currentColor; }
.sq--brand { color: var(--brand); }

/* Маркер разделов */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--f-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-4);
}
.section--dark .eyebrow { color: var(--brand-bright); }

/* Фирменный паттерн из квадратов */
.pattern-squares {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
          mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.pattern-squares i {
  position: absolute;
  border: 2px solid currentColor;
  transform: rotate(var(--tilt));
  opacity: .18;
}

/* ---------- 6. Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.header[data-stuck="true"] { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: var(--s-5); width: 100%; min-width: 0; }

.logo { display: flex; align-items: center; gap: var(--s-3); flex: none; }
/* Логотип фирменного оранжевого — один и тот же в светлой и тёмной теме.
   Контраст: 3,9 на белом и 4,33 на графите — выше порога 3:1 для крупной графики. */
.logo img { height: 34px; width: 122px; }

.nav { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: auto; min-width: 0; }
.nav__link {
  position: relative;
  padding: 10px 12px;
  font-size: var(--f-sm); font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.header__phone {
  font-weight: 700; font-size: var(--f-sm); white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.header__phone:hover { color: var(--brand); }

/* Индикатор прокрутки */
.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-bright));
  width: 100%; transform-origin: left; transform: scaleX(0);
  z-index: 1;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      animation: grow-x linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* Бургер */
.burger { display: none; width: 44px; height: 44px; place-items: center; border-radius: var(--r-sm); }
.burger span {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Шапка плотно упакована: 7 пунктов меню + мессенджеры + телефон + кнопка.
   Сжимаем по ступеням, чтобы ничего не выезжало за экран. */
@media (max-width: 1500px) {
  .nav__link { padding: 10px 9px; font-size: 0.875rem; }
  .nav__link::after { left: 9px; right: 9px; }
}
@media (max-width: 1400px) { .header__msgr { display: none; } }
@media (max-width: 1240px) { .header__phone { display: none; } }

@media (max-width: 1200px) {
  .burger { display: grid; margin-inline-start: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) clamp(16px,4vw,40px) var(--s-6);
    margin: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease), visibility var(--t);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .header__actions .btn { display: none; }
}
@media (max-width: 1200px) {
  /* в мобильном меню мессенджеры и телефон показываем отдельной строкой */
  .nav__msgrs { display: flex; gap: var(--s-3); padding-top: var(--s-5); }
  .nav__msgrs a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5em;
    padding: 13px; border-radius: var(--r-md);
    background: var(--bg-alt); font-weight: 700; font-size: var(--f-sm);
  }
}
@media (min-width: 1201px) { .nav__msgrs { display: none; } }

/* ---------- 7. Кнопки ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 14px 26px;
  font-size: var(--f-sm); font-weight: 700; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border-radius: var(--r-pill);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--brand-bright), var(--brand));
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 18px 34px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: var(--f-xs); }
.btn--block { width: 100%; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { --btn-fg: var(--bg); box-shadow: inset 0 0 0 2px var(--text); }

.btn--onDark {
  --btn-bg: transparent; --btn-fg: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.btn--onDark::before { background: #fff; }
.btn--onDark:hover { --btn-fg: var(--dark-bg); box-shadow: inset 0 0 0 2px #fff; }

.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--white::before { background: var(--brand); }
.btn--white:hover { --btn-fg: #fff; }

.btn__arrow { transition: transform var(--t) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- 8. Первый экран ---------- */
.hero {
  position: relative;
  background: var(--dark-bg);
  color: var(--dark-text);
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 96px);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(225,81,0,.16), transparent 60%),
    linear-gradient(90deg, rgba(18,20,23,.92) 0%, rgba(18,20,23,.55) 46%, rgba(18,20,23,.15) 100%);
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 1;
}
.hero__inner { position: relative; z-index: 2; }

.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .65em;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  font-size: var(--f-xs); font-weight: 600; letter-spacing: .04em;
  color: #fff;
  margin-bottom: var(--s-5);
}

.hero h1 {
  font-size: var(--f-display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: .96;
  margin-bottom: var(--s-5);
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-bright);
  position: relative;
  white-space: nowrap;
}
.hero__sub {
  font-size: var(--f-lead);
  color: var(--dark-muted);
  max-width: 56ch;
  margin-bottom: var(--s-6);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero__note { font-size: var(--f-xs); color: var(--dark-muted); display: flex; align-items: center; gap: .5em; }

/* Цифры первого экрана */
.hero__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hero__stat { background: var(--dark-bg-2); padding: var(--s-5) var(--s-4); }
.hero__stat b {
  display: flex; align-items: baseline; gap: .16em;
  font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.4rem);
  font-weight: 900; letter-spacing: -.035em; line-height: 1.05;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;          /* число и единица никогда не разъезжаются */
}
/* «от» перед числом — мелким шрифтом, не ломает строку */
.hero__stat b .pre {
  font-size: .46em; font-weight: 700; letter-spacing: 0;
  color: var(--dark-muted); text-transform: lowercase;
}
/* единица измерения — тоже мельче основного числа */
.hero__stat b .unit { font-size: .52em; font-weight: 800; letter-spacing: -.01em; }
.hero__stat span { display: block; margin-top: 8px; font-size: var(--f-xs); color: var(--dark-muted); line-height: 1.35; }
@media (max-width: 420px) { .hero__stats { grid-template-columns: 1fr; } }

/* Плавающие квадраты */
.hero__squares { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__squares i {
  position: absolute; display: block;
  border: 2px solid var(--brand-bright);
  transform: rotate(var(--tilt));
  opacity: .13;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__squares i { animation: drift 16s var(--ease-in-out) infinite alternate; }
  .hero__squares i:nth-child(2n) { animation-duration: 21s; animation-delay: -4s; }
  .hero__squares i:nth-child(3n) { animation-duration: 27s; animation-delay: -9s; }
}
@keyframes drift {
  from { transform: rotate(var(--tilt)) translate3d(0,0,0); }
  to   { transform: rotate(calc(var(--tilt) + 14deg)) translate3d(18px,-26px,0); }
}

/* ---------- 9. Заголовки секций ---------- */
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__sub { font-size: var(--f-lead); color: var(--text-muted); margin-top: var(--s-4); }

.section-head--split {
  max-width: none; display: grid; gap: var(--s-5);
  grid-template-columns: minmax(0,1fr) minmax(0,.8fr); align-items: end;
}
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- 10. Карточки ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--brand-soft); color: var(--brand);
  margin-bottom: var(--s-5);
}
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--text-muted); font-size: var(--f-sm); }

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* ---------- 11. Два пути (СТМ / опт) ---------- */
.paths { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.path {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  min-height: 340px;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease);
}
.path:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.path__media { position: absolute; inset: 0; z-index: -2; }
.path__media img { width: 100%; height: 100%; object-fit: cover; }
.path::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,17,19,.62) 0%, rgba(15,17,19,.88) 62%, rgba(15,17,19,.95) 100%);
}
.path--primary::after {
  background: linear-gradient(180deg, rgba(179,63,0,.72) 0%, rgba(20,14,10,.92) 65%, rgba(15,12,10,.96) 100%);
}
.path * { color: #fff; }
.path__tag {
  align-self: flex-start;
  font-size: var(--f-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.16);
  margin-bottom: var(--s-4);
}
.path h3 { font-size: var(--f-h3); margin-bottom: var(--s-3); }
.path p { color: rgba(255,255,255,.8); font-size: var(--f-sm); margin-bottom: var(--s-5); }
.path ul { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; gap: 10px; }
.path li { display: flex; align-items: flex-start; gap: .7em; font-size: var(--f-sm); color: rgba(255,255,255,.9); }
.path li .sq { margin-top: .45em; color: var(--brand-bright); }
.path .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 12. Этапы работы ---------- */
.steps { counter-reset: step; display: grid; gap: var(--s-5); }
.steps--grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.step {
  counter-increment: step;
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.step:hover { border-color: var(--brand); transform: translateY(-3px); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: var(--s-5); right: var(--s-5);
  font-size: 2.25rem; font-weight: 900; line-height: 1;
  color: var(--line); letter-spacing: -.04em;
  transition: color var(--t) var(--ease);
  font-variant-numeric: tabular-nums;
}
.step:hover::before { color: var(--brand-tint); }
.step h3 { font-size: var(--f-h4); margin-bottom: var(--s-3); padding-right: 60px; }
.step p { font-size: var(--f-sm); color: var(--text-muted); }
.step__meta {
  display: inline-flex; align-items: center; gap: .5em;
  margin-top: var(--s-4); padding: 5px 11px;
  font-size: var(--f-xs); font-weight: 700;
  border-radius: var(--r-pill);
  background: var(--brand-soft); color: var(--brand);
}

/* ---------- 13. Калькулятор ---------- */
.calc {
  display: grid; gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.calc__form { padding: clamp(24px, 3.2vw, 44px); }
.calc__out {
  padding: clamp(24px, 3.2vw, 44px);
  background: var(--dark-bg);
  color: var(--dark-text);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.calc__out::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(100% 80% at 100% 0%, rgba(225,81,0,.26), transparent 60%);
  pointer-events: none;
}
.calc__out > * { position: relative; }

.field { margin-bottom: var(--s-5); }
.field__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
  font-size: var(--f-sm); font-weight: 700; margin-bottom: 10px;
}
.field__value { color: var(--brand); font-variant-numeric: tabular-nums; font-weight: 800; }
.field__hint { font-size: var(--f-xs); color: var(--text-faint); margin-top: 8px; }

/* Сегментированный выбор */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--bg-sunken); border-radius: var(--r-md); }
@media (max-width: 520px) { .segmented { grid-auto-flow: row; grid-auto-columns: auto; } }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: grid; place-items: center; text-align: center;
  padding: 11px 8px; border-radius: calc(var(--r-md) - 3px);
  font-size: var(--f-xs); font-weight: 700; line-height: 1.25;
  color: var(--text-muted); cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.segmented label small { display: block; font-weight: 600; opacity: .75; font-size: 11px; margin-top: 2px; }
.segmented label:hover { color: var(--text); }
.segmented input:checked + label { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Слайдер */
.range { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; height: 28px; cursor: pointer; }
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand) var(--pct,50%), var(--line) var(--pct,50%));
}
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brand); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -8px;
  background: var(--brand); border: 3px solid var(--surface);
  box-shadow: 0 1px 6px rgba(0,0,0,.28);
  transform: rotate(var(--tilt));
  transition: transform var(--t-fast) var(--ease);
}
.range::-webkit-slider-thumb:hover { transform: rotate(var(--tilt)) scale(1.14); }
.range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 0;
  background: var(--brand); border: 3px solid var(--surface);
  transform: rotate(var(--tilt));
}

.calc__rows { display: grid; gap: 1px; background: var(--dark-line); border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--s-5); }
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); padding: 14px 18px; background: var(--dark-bg-2); }
.calc__row span { font-size: var(--f-sm); color: var(--dark-muted); }
.calc__row b { font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__row--total { background: var(--brand); }
.calc__row--total span, .calc__row--total b { color: #fff; }
.calc__row--total b { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); }

.calc__disclaimer { font-size: var(--f-xs); color: var(--dark-muted); line-height: 1.5; margin-top: auto; padding-top: var(--s-5); }

/* ---------- 14. Формы ---------- */
.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: var(--f-sm);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}
.input[aria-invalid="true"] { border-color: #D23A2A; }
.textarea { min-height: 110px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7178' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.form__error { font-size: var(--f-xs); color: #D23A2A; margin-top: 6px; min-height: 1em; }
.form__consent { font-size: var(--f-xs); color: var(--text-faint); line-height: 1.5; }
.form__consent a { text-decoration: underline; text-underline-offset: 2px; }

.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: var(--f-xs); color: var(--text-muted); cursor: pointer; }
.checkbox input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

/* ---------- 15. Аккордеон / FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; transition: border-color var(--t) var(--ease); }
.faq__item[open] { border-color: var(--brand); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 18px 22px;
  font-weight: 700; font-size: var(--f-sm);
  cursor: pointer; list-style: none;
  transition: background var(--t-fast) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--bg-alt); }
.faq__q::after {
  content: ''; flex: none;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--t) var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translateY(-3px); }
.faq__a { padding: 0 22px 20px; font-size: var(--f-sm); color: var(--text-muted); }
.faq__a > * + * { margin-top: .8em; }

/* ---------- 16. Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--f-sm); min-width: 640px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-alt);
  font-size: var(--f-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-muted); white-space: nowrap;
}
.table tbody tr { transition: background var(--t-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 17. Плашки и метки ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 6px 13px;
  font-size: var(--f-xs); font-weight: 700;
  border-radius: var(--r-pill);
  background: var(--bg-sunken); color: var(--text-muted);
  white-space: nowrap;
}
.chip--brand { background: var(--brand-soft); color: var(--brand); }
.chip--new   { background: var(--brand); color: #fff; }
.chip--ok    { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }

/* ---------- 18. Бренды ---------- */
.brand-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease);
}
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.brand-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-sunken); }
.brand-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease-out); }
.brand-card:hover .brand-card__media img { transform: scale(1.05); }
.brand-card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; gap: var(--s-3); }
.brand-card__title { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.brand-card__title h3 { font-size: var(--f-h4); }
.brand-card p { font-size: var(--f-sm); color: var(--text-muted); flex: 1; }
.brand-card__link { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: var(--f-sm); color: var(--brand); }
.brand-card__link .btn__arrow { transition: transform var(--t) var(--ease-out); }
.brand-card:hover .brand-card__link .btn__arrow { transform: translateX(4px); }

/* ---------- 19. Гранулы ---------- */
.kibble { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.kibble__item { text-align: center; padding: var(--s-6) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--t) var(--ease), transform var(--t) var(--ease-out); }
.kibble__item:hover { border-color: var(--brand); transform: translateY(-3px); }
.kibble__item img { width: 76px; height: 76px; object-fit: contain; margin: 0 auto var(--s-4); }
.kibble__item h4 { margin-bottom: 6px; }
.kibble__item p { font-size: var(--f-xs); color: var(--text-muted); }

/* ---------- 20. Логотип-строка / доверие ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--s-7); width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: var(--f-sm); color: var(--text-faint); white-space: nowrap; }

/* ---------- 21. Подвал ---------- */
.footer { background: var(--dark-bg); color: var(--dark-muted); padding-block: var(--s-9) var(--s-6); font-size: var(--f-sm); }
.footer__grid { display: grid; gap: var(--s-6); grid-template-columns: minmax(0,1.4fr) repeat(auto-fit, minmax(min(160px, 100%), 1fr)); margin-bottom: var(--s-7); }
.footer h4 { color: #fff; font-size: var(--f-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer a { transition: color var(--t-fast) var(--ease); }
.footer a:hover { color: var(--brand-bright); }
.footer__logo img { height: 36px; margin-bottom: var(--s-4); }
.footer__legal { border-top: 1px solid var(--dark-line); padding-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); justify-content: space-between; font-size: var(--f-xs); line-height: 1.6; }

/* ---------- 22. Мобильная панель действий ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: var(--s-3);
  padding: 10px clamp(12px,4vw,20px) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--t) var(--ease-out);
}
.mobile-bar[data-show="true"] { transform: none; }
.mobile-bar .btn { flex: 1; padding: 13px 14px; }
@media (max-width: 760px) { .mobile-bar { display: flex; } body { padding-bottom: 74px; } }

/* ---------- 23. Модальное окно ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; }
.modal::backdrop { background: rgba(10,12,14,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__inner { background: var(--surface); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); position: relative; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--text-muted); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.modal__close:hover { background: var(--bg-alt); color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in .3s var(--ease-out); }
  .modal[open]::backdrop { animation: fade-in .3s var(--ease); }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- 24. Появление при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
  .reveal[data-visible="true"] { opacity: 1; transform: none; }
  .reveal-group > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .reveal-group[data-visible="true"] > * { opacity: 1; transform: none; }
  .reveal-group[data-visible="true"] > *:nth-child(1) { transition-delay: 0s; }
  .reveal-group[data-visible="true"] > *:nth-child(2) { transition-delay: .07s; }
  .reveal-group[data-visible="true"] > *:nth-child(3) { transition-delay: .14s; }
  .reveal-group[data-visible="true"] > *:nth-child(4) { transition-delay: .21s; }
  .reveal-group[data-visible="true"] > *:nth-child(5) { transition-delay: .28s; }
  .reveal-group[data-visible="true"] > *:nth-child(6) { transition-delay: .35s; }
  .reveal-group[data-visible="true"] > *:nth-child(7) { transition-delay: .42s; }
  .reveal-group[data-visible="true"] > *:nth-child(8) { transition-delay: .49s; }
}

/* ---------- 25. Медиа-блоки ---------- */
.media-split { display: grid; gap: clamp(28px, 4vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; }
.media-split--reverse > *:first-child { order: 2; }
@media (max-width: 720px) { .media-split--reverse > *:first-child { order: 0; } }

.media-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-frame--tall img { aspect-ratio: 3/4; }
.media-frame__badge {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--brand); color: #fff;
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: var(--f-xs); font-weight: 800; letter-spacing: .04em;
  box-shadow: var(--shadow-brand);
}

.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: .8em; font-size: var(--f-sm); }
.checklist li .sq { margin-top: .42em; color: var(--brand); }
.checklist li b { font-weight: 700; }
.section--dark .checklist li { color: var(--dark-text); }

/* ---------- 26. Хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--f-xs); color: var(--text-faint); padding-block: var(--s-5) 0; }
.crumbs a:hover { color: var(--brand); }
.crumbs li { display: flex; align-items: center; gap: 8px; list-style: none; }
.crumbs ol { display: contents; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; color: var(--line-strong); }

/* ---------- 27. Страничный заголовок ---------- */
.page-hero { padding-block: clamp(40px, 5vw, 76px) clamp(32px, 4vw, 56px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: var(--s-4); }
.page-hero p { max-width: 68ch; }

/* ---------- 28. Печать ---------- */
@media print {
  .header, .footer, .mobile-bar, .hero__squares, .pattern-squares, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 16px; }
}

/* ---------- 29. Карточка товара в каталоге ---------- */
/* Фото в карточке тонируется в цвет бренда — так соседние карточки
   читаются как разные товары, даже если фотография переиспользуется. */
.brand-card--product .brand-card__media { aspect-ratio: 5/4; background: var(--bg-sunken); }
.brand-card--product .brand-card__media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, transparent 30%, rgba(20,22,24,.72) 100%);
  transition: opacity var(--t) var(--ease);
}
.brand-card--product:hover .brand-card__media::after { opacity: .82; }
.brand-card__wordmark {
  position: absolute; left: 16px; bottom: 12px; z-index: 1;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  font-weight: 900; letter-spacing: -.03em; color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  pointer-events: none;
}
/* Лёгкая цветовая подложка под бренд */
.brand-card__media--wonderfur { background: #E8EEF2; }
.brand-card__media--hasti     { background: #EDE8E2; }
.brand-card__media--krispy    { background: #E9E4DA; }
.brand-card__media--lakomy    { background: #E6E9E0; }

.brand-card--product h3 a { transition: color var(--t-fast) var(--ease); }
.brand-card--product:hover h3 a { color: var(--brand); }

/* ---------- 30. Заголовок страницы товара ---------- */
/* Названия рационов длинные — на карточке товара h1 должен быть спокойнее. */
.h1--product {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: var(--s-4);
  text-wrap: balance;
}
/* Строка меток в карточке товара — одна линия, без переносов по одной штуке */
.brand-card--product .brand-card__title { gap: var(--s-2); row-gap: var(--s-2); }
.brand-card--product .brand-card__title .chip { font-size: 11px; padding: 5px 10px; }

/* ---------- 31. Мессенджеры в шапке ---------- */
.header__msgr {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.header__msgr:hover { background: var(--brand-soft); color: var(--brand); transform: translateY(-1px); }
@media (max-width: 1080px) { .header__msgr { display: none; } }

/* Иконочная кнопка в мобильной панели */
.mobile-bar .btn--icon { flex: 0 0 52px; padding: 13px 0; }

/* ---------- 32. Таймлайн запуска ---------- */
.timeline {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  counter-reset: tl;
}
.timeline__item {
  position: relative;
  padding: var(--s-5);
  background: var(--dark-bg-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  border-top: 3px solid var(--brand);
  transition: transform var(--t) var(--ease-out), border-color var(--t) var(--ease);
}
.timeline__item:hover { transform: translateY(-4px); border-color: var(--brand); }
.timeline__item > b {
  display: inline-block;
  font-size: var(--f-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-bright); margin-bottom: var(--s-3);
}
.timeline__item h3 { font-size: var(--f-h4); color: #fff; margin-bottom: var(--s-2); }
.timeline__item p { font-size: var(--f-sm); color: var(--dark-muted); margin-bottom: var(--s-4); }
.timeline__you {
  display: block; padding-top: var(--s-3);
  border-top: 1px dashed var(--dark-line);
  font-size: var(--f-xs); color: var(--dark-muted);
}

/* ---------- 33. Статья журнала ---------- */
.article__head { padding-block: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 36px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.article__head h1 { margin: var(--s-4) 0 var(--s-4); font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); }
.article__meta { display: flex; flex-wrap: wrap; gap: .6em; font-size: var(--f-xs); color: var(--text-faint); }

.article__body { padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 80px); font-size: 1.0625rem; line-height: 1.72; }
.article__body > * + * { margin-top: 1.15em; }
.article__body h2 {
  margin-top: 2.1em; margin-bottom: .7em;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article__body h3 { margin-top: 1.6em; margin-bottom: .5em; font-size: var(--f-h4); }
.article__body p { color: var(--text); }
.article__body ul, .article__body ol { padding-left: 1.35em; }
.article__body ol > li, .article__body ul:not(.checklist) > li { margin-top: .6em; }
.article__body ul.checklist { padding-left: 0; }
.article__body b, .article__body strong { font-weight: 700; }
.article__body a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article__body a:not(.btn):hover { text-decoration-thickness: 2px; }
.article__body .table-wrap { margin-block: 1.6em; }
.article__body .table { min-width: 0; }

/* Вводный абзац — прямой ответ на вопрос заголовка */
.article__lead {
  font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--text);
  padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 6px);
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* Оглавление */
.toc { padding: var(--s-5); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); }
.toc__title { font-size: var(--f-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-3); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.toc li { margin: 0 !important; font-size: var(--f-sm); }
.toc a { color: var(--text); text-decoration: none !important; }
.toc a:hover { color: var(--brand); }

/* Источники */
.sources { margin-top: 2.5em; padding: var(--s-5); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--bg-alt); }
.sources__title { font-size: var(--f-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-3); }
.sources ul { padding-left: 1.2em; display: grid; gap: 6px; }
.sources li { font-size: var(--f-sm); margin: 0 !important; }
.sources__note { margin-top: var(--s-4); font-size: var(--f-xs); color: var(--text-faint); line-height: 1.5; }

/* ==========================================================================
   34. Первый экран, редакция 2 — по итогам разбора отделом продаж.
   Претензия была: «слишком много текста, разбегаются глаза». Было 91 слово
   и 12 конкурирующих объектов. Стало 68 слов и 9 объектов, а главный
   акцент переехал с «за 30 дней» на «себестоимость задаёте вы» —
   это ответ на вопрос, который клиенты задают в трубку первым.
   ========================================================================== */

/* Плашка — максимально тихая, только контекст */
.hero__badge {
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255,255,255,.72);
  margin-bottom: 20px;
}

/* H1 — короткий, поэтому его можно набрать крупно и в одну-две строки */
.hero h1 {
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 24px;
  max-width: 15ch;
}

/* Подзаголовок — одна мысль, 11 слов */
.hero__sub {
  font-size: clamp(1rem, .95rem + .45vw, 1.3rem);
  line-height: 1.45;
  max-width: 34ch;
  margin-bottom: 36px;
}

/* Вилка цен — второй по величине объект экрана.
   Инлайн, а не отдельный блок: иначе появится десятый объект. */
.hero__price {
  display: inline-block;
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-top: .1em;
}

/* Кнопки: одна заливка + текстовая ссылка. Две равновеликие кнопки
   давали две точки принятия решения — судьи отметили это единогласно. */
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 12px; }
.hero__link {
  font-size: var(--f-sm); font-weight: 500;
  color: rgba(255,255,255,.72);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,.3);
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
.hero__link:hover { color: #fff; text-decoration-color: rgba(255,255,255,.8); }

/* Микро-строка — хвост кнопки, а не самостоятельный объект */
.hero__note {
  display: block;
  font-size: var(--f-xs);
  color: rgba(255,255,255,.5);
  margin-bottom: 0;
}

/* Три цифры — один объект, а не три карточки.
   Тонкая линия сверху собирает их в строку; рамок нет. */
.hero__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  background: none;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  padding-top: 28px;
  margin-top: 56px;              /* главный разрыв: предложение ↔ параметры сделки */
}
.hero__stat { background: none; padding: 0; }
.hero__stat b { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); }
.hero__stat span { opacity: .62; }

@media (max-width: 980px) {
  .hero h1 { max-width: none; }
  .hero__sub { max-width: 42ch; }
}

/* Мобильный: цифры в столбик — три колонки на 375 px разваливаются */
@media (max-width: 620px) {
  .hero__cta { gap: 16px; }
  .hero__cta .btn { width: 100%; }
  .hero__link { width: 100%; text-align: center; }
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }
  .hero__stat {
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .hero__stat:last-child { border-bottom: 0; }
  .hero__stat b { font-size: 1.4rem; }
  .hero__stat span { margin-top: 0; text-align: right; max-width: 58%; }
}

/* Строка цифр живёт в текстовой колонке, а не в правой:
   в правой она ложилась поверх фотографии и переставала читаться. */
.hero__grid > div:first-child > .hero__stats { max-width: 640px; }
.hero__grid { align-items: start; }
@media (min-width: 981px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .38fr); }
}

/* Читаемость поверх фотографии: на мобильном градиент под текст должен идти
   сверху вниз (колонка одна), на десктопе — слева направо. */
@media (max-width: 980px) {
  .hero__bg {
    background:
      radial-gradient(120% 60% at 80% 0%, rgba(225,81,0,.18), transparent 60%),
      linear-gradient(180deg, rgba(16,18,20,.94) 0%, rgba(16,18,20,.86) 55%, rgba(16,18,20,.92) 100%);
  }
}
/* Подписи к цифрам чуть контрастнее — .62 поверх фото читалось на грани */
.hero__stat span { opacity: .78; }
.hero__note { color: rgba(255,255,255,.62); }

/* ---------- 35. Второе сообщение первого экрана ----------
   H1 держит обещание скорости, а УТП про себестоимость идёт отдельной
   строкой сразу под ним: так оно читается как самостоятельный аргумент,
   а не растворяется в описательном подзаголовке. */
.hero__kicker {
  font-size: clamp(1.15rem, .95rem + .95vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 3px solid var(--brand);
}
/* Заголовок вернулся длинный — держим его в две строки на десктопе */
.hero h1 {
  font-size: clamp(2.05rem, 1.15rem + 3.1vw, 3.6rem);
  max-width: 18ch;
  margin-bottom: 20px;
}
.hero__sub { margin-bottom: 32px; }

/* ==========================================================================
   36. Исправления по замечаниям
   ========================================================================== */

/* БАГ: текст кнопок внутри карточек «два пути» был белым на белом.
   Причина — правило `.path * { color: #fff }`, которое перебивало
   собственный цвет кнопки. Возвращаем кнопкам их переменную. */
.path .btn { color: var(--btn-fg); }
.path .btn:hover { color: var(--btn-fg); }
.path .btn svg { color: currentColor; }

/* БАГ: логотип в подвале растягивался (3,6:1 превращалось в 9,75:1).
   Фиксируем ширину явно и отдаём высоту на откуп пропорции. */
.footer__logo img { width: 132px; height: auto; }
.logo img { width: 122px; height: auto; }

/* Тёмная тема была почти чёрной. Делаем её теплее и мягче:
   не «дыра», а графит — читать белое по такому фону заметно легче. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:             #1A1D21;
    --bg-alt:         #212529;
    --bg-sunken:      #16191C;
    --surface:        #222629;
    --surface-raised: #2A2F33;
    --text:           #E8EBEE;
    --text-muted:     #A8B0B8;
    --line:           #333A40;
    --line-strong:    #434B52;
  }
}
:root[data-theme="dark"] {
  --bg:#1A1D21; --bg-alt:#212529; --bg-sunken:#16191C;
  --surface:#222629; --surface-raised:#2A2F33;
  --text:#E8EBEE; --text-muted:#A8B0B8;
  --line:#333A40; --line-strong:#434B52;
}

/* Переключатель темы в шапке */
.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  flex: none;
}
.theme-toggle:hover { background: var(--bg-alt); color: var(--text); }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}
@media (max-width: 1240px) { .theme-toggle { display: none; } }

/* Подзаголовок-УТП кликабелен — ведёт на разбор «как мы считаем от вашей цены» */
a.hero__kicker { display: inline-flex; align-items: baseline; gap: .5em; transition: border-color var(--t) var(--ease); }
a.hero__kicker:hover { border-left-color: var(--brand-bright); }
.hero__kicker-arrow { font-size: .8em; opacity: .6; transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease); }
a.hero__kicker:hover .hero__kicker-arrow { transform: translateX(4px); opacity: 1; }

/* Промо-блок «себестоимость задаёте вы» на странице контрактного производства */
.cost-promo {
  display: grid; gap: var(--s-5);
  grid-template-columns: minmax(0,1fr) auto; align-items: center;
  padding: clamp(28px, 3.5vw, 48px);
  border: 2px solid var(--brand);
  border-radius: var(--r-xl);
  background: var(--brand-soft);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease);
}
.cost-promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.cost-promo__go {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 700; color: var(--brand); white-space: nowrap;
}
.cost-promo:hover .btn__arrow { transform: translateX(4px); }
@media (max-width: 760px) { .cost-promo { grid-template-columns: 1fr; } }

/* ==========================================================================
   37. Шапка: контейнер шире контента.
   Контент сайта живёт в 1280 px, но шапке этого мало: логотип + 6 пунктов
   меню + переключатель темы + два мессенджера + телефон + кнопка не влезают
   в 1200 px рабочей ширины и наезжают друг на друга. Даём шапке 1440 px
   и убираем необязательное по мере сужения экрана.
   ========================================================================== */
.header .container { max-width: 1440px; }

.nav { flex-wrap: nowrap; }
.nav__link { white-space: nowrap; }
.header__actions { flex: none; }

/* Ступени сжатия: сначала прячем мессенджеры, потом телефон, потом всё в бургер */
@media (max-width: 1400px) { .header__msgr   { display: none; } }
@media (max-width: 1300px) { .theme-toggle   { display: none; } }
@media (max-width: 1240px) { .header__phone  { display: none; } }

/* ==========================================================================
   38. Критично: [hidden] должен скрывать.
   У .brand-card, .step и других задан display:flex/grid, а он перебивает
   браузерное правило [hidden]{display:none}. Из-за этого фильтр каталога
   менял свойство, но карточки оставались на экране, а после отправки формы
   на странице одновременно висели и форма, и блок «Заявка принята».
   ========================================================================== */
[hidden] { display: none !important; }
