/* ════════════════════════════════════════════════════════════════
   ПЕКАРЕВЪ · кондитерская фабрика — деловой B2B-сайт
   Палитра выведена из логотипа: тёмный шоколад + сливки + карамель
   ════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* шоколад */
  --choco-950: #140b06;
  --choco-900: #1b0f08;
  --choco-850: #21130a;
  --choco-800: #2a180d;
  --choco-700: #392313;
  --choco-600: #4a2e19;

  /* сливки (фон логотипа) */
  --cream:    #f4ecdd;
  --cream-2:  #ede2cd;
  --cream-3:  #e4d6bb;

  /* карамель — акцент */
  --caramel:   #c9974f;
  --caramel-2: #e2ba7c;

  /* текст */
  --ink:      #241509;              /* на светлом */
  --milk:     #f4ecdd;              /* на тёмном */
  --milk-dim: rgba(244, 236, 221, .62);
  --ink-dim:  rgba(36, 21, 9, .64);

  /* линии */
  --hair-dark:  rgba(244, 236, 221, .14);
  --hair-cream: rgba(36, 21, 9, .16);

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --container: 1280px;
  --radius: 18px;
  --header-h: 76px;
}

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--choco-950);
  color: var(--milk);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, а не hidden: hidden ломает position: sticky у hero */
  overflow-x: clip;
}

/* лёгкое зерно поверх всего — премиальная фактура */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

::selection { background: var(--caramel); color: var(--choco-950); }

/* ════════════════ ЗАГЛУШКИ ПОД КАРТИНКИ ════════════════ */
.ph {
  position: relative;
  width: 100%;
  min-height: 220px;
  border: 1px dashed rgba(36, 21, 9, .35);
  border-radius: calc(var(--radius) - 6px);
  background:
    repeating-linear-gradient(45deg,
      rgba(36, 21, 9, .045) 0 14px,
      transparent 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph::before {
  content: attr(data-note);
  font-weight: 600;
  font-size: 14px;
  color: rgba(36, 21, 9, .55);
  text-align: center;
  padding: 0 18px;
  max-width: 90%;
}
.ph::after {
  content: attr(data-file);
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(36, 21, 9, .4);
  white-space: nowrap;
}
.section-dark .ph {
  border-color: rgba(244, 236, 221, .3);
  background:
    repeating-linear-gradient(45deg,
      rgba(244, 236, 221, .05) 0 14px,
      transparent 14px 28px);
}
.section-dark .ph::before { color: rgba(244, 236, 221, .6); }
.section-dark .ph::after  { color: rgba(244, 236, 221, .38); }

.ph-tall { min-height: 300px; }
.ph-logo { min-height: 84px; }
.ph-logo::before { font-size: 12px; }
.ph-logo::after { display: none; }

/* Реальные фото, вставленные в рамки-заглушки */
.frame-img { display: block; width: 100%; object-fit: cover; }
.bento-photo .frame-img { height: 100%; min-height: 420px; }
.line-card .frame-img {
  height: clamp(180px, 26vh, 260px);
  border-radius: calc(var(--radius) - 6px);
}

/* ════════════════ КНОПКИ ════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-solid {
  background: linear-gradient(135deg, var(--caramel-2), var(--caramel));
  color: var(--choco-950);
  box-shadow: 0 8px 28px rgba(201, 151, 79, .3);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(201, 151, 79, .45); }

.btn-ghost {
  border: 1px solid var(--hair-dark);
  color: var(--milk);
  background: rgba(244, 236, 221, .04);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--caramel); color: var(--caramel-2); }

.btn-dark {
  background: var(--choco-900);
  color: var(--cream);
}
.btn-dark:hover { background: var(--choco-700); transform: translateY(-2px); }

.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ════════════════ HEADER ════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .35s ease, transform .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: rgba(20, 11, 6, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hair-dark);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--caramel-2), var(--caramel));
  color: var(--choco-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .12em;
}
.brand-sub { font-size: 10.5px; letter-spacing: .06em; color: var(--milk-dim); }

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--milk-dim);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.is-active { color: var(--cream); background: rgba(244, 236, 221, .07); }

.header-cta { flex: none; padding: 11px 22px; font-size: 14px; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-left: auto; }
.burger span {
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════ HERO ════════════════ */
/* Липкий полноэкранный блок: контент ниже наезжает «шторкой» */
.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--choco-950);
  z-index: 1;
}

.hero-media { position: absolute; inset: 0; }

.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(201, 151, 79, .16), transparent 55%),
    radial-gradient(90% 70% at 12% 88%, rgba(74, 46, 25, .55), transparent 60%),
    linear-gradient(165deg, var(--choco-850), var(--choco-950) 70%);
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: transform;
}
.hero-video.is-ready { opacity: 1; }

/* лёгкая виньетка: середина видео чистая, верх и низ — под текст */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 11, 6, .55) 0%, transparent 26%),
    linear-gradient(0deg, rgba(20, 11, 6, .92) 0%, rgba(20, 11, 6, .45) 32%, transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(56px, 9vh, 104px);
}

.hero-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 72px);
}
.hero-main { min-width: 0; }
.hero-side {
  flex: none;
  width: min(360px, 30vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.6vh, 26px);
  padding-bottom: 8px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel-2);
  margin-bottom: clamp(14px, 2.4vh, 24px);
  text-shadow: 0 1px 12px rgba(20, 11, 6, .6);
}
.hero-eyebrow .tick {
  width: 34px; height: 1px;
  background: var(--caramel);
  flex: none;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-shadow: 0 2px 28px rgba(20, 11, 6, .55);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(112%);
  animation: heroLine 1s cubic-bezier(.22, .8, .24, 1) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes heroLine { to { transform: translateY(0); } }

.hero-title em {
  font-style: normal;
  font-weight: 300;
  color: var(--caramel-2);
}

.hero-sub {
  font-size: clamp(14px, 1.2vw, 16.5px);
  color: rgba(244, 236, 221, .82);
  text-shadow: 0 1px 14px rgba(20, 11, 6, .65);
  animation: heroFade 1s ease .45s backwards;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: heroFade 1s ease .6s backwards;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* индикатор «листайте вниз» */
.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .75;
  transition: opacity .3s;
  animation: heroFade 1s ease .9s backwards;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll-track {
  width: 1px;
  height: 44px;
  background: rgba(244, 236, 221, .28);
  position: relative;
  overflow: hidden;
}
.hero-scroll-dot {
  position: absolute;
  left: -1.5px; top: 0;
  width: 4px; height: 12px;
  border-radius: 4px;
  background: var(--caramel-2);
  animation: scrollDot 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-14px); }
  70%, 100% { transform: translateY(48px); }
}
.hero-scroll-text {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(244, 236, 221, .6);
}

/* ════════════════ ШТОРКА ════════════════ */
/* контент наезжает на липкое hero-видео */
.page-curtain {
  position: relative;
  z-index: 2;
  background: var(--choco-950);
  border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
  box-shadow: 0 -28px 90px rgba(0, 0, 0, .55);
  overflow: clip;
}

.hero-stats {
  position: relative;
  border-bottom: 1px solid var(--hair-dark);
  background: var(--choco-900);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(18px, 2.6vh, 28px) 22px;
  border-left: 1px solid var(--hair-dark);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 38px);
  color: var(--caramel-2);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: var(--milk-dim);
  margin-top: 6px;
}

/* ════════════════ TICKER ════════════════ */
.ticker {
  background: var(--caramel);
  color: var(--choco-950);
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid rgba(20, 11, 6, .25);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: tickerMove 36s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track i { font-style: normal; font-size: 9px; opacity: .55; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ════════════════ СЕКЦИИ ════════════════ */
.section { position: relative; }
.section-cream {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(72px, 11vh, 130px) 0;
}
.section-dark {
  background: var(--choco-950);
  color: var(--milk);
  padding: clamp(72px, 11vh, 130px) 0;
}

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-label {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--caramel);
  border: 1px solid rgba(201, 151, 79, .45);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.section-title em {
  font-style: normal;
  font-weight: 300;
  color: var(--caramel);
}
.section-dark .section-title em { color: var(--caramel-2); }
.section-lead {
  margin-top: 20px;
  font-size: clamp(15px, 1.3vw, 17.5px);
  color: var(--ink-dim);
  max-width: 640px;
}
.section-dark .section-lead { color: var(--milk-dim); }

/* ════════════════ 01 · ФАБРИКА (bento) ════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 18px;
}
.bento-card {
  background: #fbf6ea;
  border: 1px solid var(--hair-cream);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(36, 21, 9, .1);
}
.bento-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.bento-card p { font-size: 14.5px; color: var(--ink-dim); }

.bento-photo {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.bento-photo .ph { height: 100%; border: 0; border-radius: 0; min-height: 420px; }
.bento-photo figcaption {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(20, 11, 6, .78);
  color: var(--cream);
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.bento-accent {
  background: linear-gradient(150deg, var(--choco-800), var(--choco-950));
  border-color: transparent;
  color: var(--milk);
}
.bento-accent p { color: var(--milk-dim); }
.bento-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3vw, 42px);
  color: var(--caramel-2);
  margin-bottom: auto;
}

.bento-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(201, 151, 79, .14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: auto;
}
.bento-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--caramel);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-photo-sm { grid-column: span 2; padding: 0; position: relative; overflow: hidden; }
.bento-photo-sm .ph { height: 100%; border: 0; border-radius: 0; min-height: 200px; }
.bento-photo-sm figcaption {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(20, 11, 6, .78);
  color: var(--cream);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ════════════════ 02 · ПРОИЗВОДСТВО (конвейер) ════════════════ */
/* Нативный горизонтальный скролл: страница и лента не связаны */
.line-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  margin-bottom: clamp(28px, 4vh, 44px);
}
.line-head .section-head { margin-bottom: 0; }

.line-controls {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 22px;
}

.line-nav { display: flex; gap: 10px; }
.line-arrow {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hair-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s, background .25s, opacity .25s, transform .25s;
}
.line-arrow svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-arrow:hover { border-color: var(--caramel); background: rgba(201, 151, 79, .12); }
.line-arrow:active { transform: scale(.94); }
.line-arrow[disabled] { opacity: .3; pointer-events: none; }

.line-progress { flex: none; width: min(280px, 26vw); padding-bottom: 4px; }
.line-progress-track {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: var(--hair-dark);
}
.line-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--caramel), var(--caramel-2));
}
.line-progress-dot {
  position: absolute;
  top: 50%; left: 0%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--caramel-2);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(201, 151, 79, .22);
}
.line-progress-caption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--milk-dim);
  text-align: right;
}
.line-progress-caption b, .line-progress-caption span { color: var(--caramel-2); }

.line-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  /* лента во всю ширину, карточки стартуют от края контейнера */
  padding: 6px max(clamp(20px, 4vw, 48px), (100vw - var(--container)) / 2 + clamp(20px, 4vw, 48px)) 18px;
  scroll-padding-left: max(clamp(20px, 4vw, 48px), (100vw - var(--container)) / 2 + clamp(20px, 4vw, 48px));
}
.line-track::-webkit-scrollbar { display: none; }
.line-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.line-track.is-dragging .line-card { pointer-events: none; }
.line-track:focus-visible { outline: 2px solid var(--caramel); outline-offset: 4px; }

.line-card {
  flex: none;
  scroll-snap-align: start;
  width: min(400px, 82vw);
  background: linear-gradient(165deg, var(--choco-850), var(--choco-900));
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.line-card-num {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--caramel);
  z-index: 1;
}
.line-card .ph { min-height: clamp(180px, 26vh, 260px); }
.line-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.line-card p { font-size: 14.5px; color: var(--milk-dim); flex: 1; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--caramel-2);
  background: rgba(201, 151, 79, .12);
  border: 1px solid rgba(201, 151, 79, .3);
  border-radius: 999px;
  padding: 5px 12px;
}

/* мобайл: та же лента, компактная шапка */
@media (max-width: 899px) {
  .line-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .line-controls { width: 100%; justify-content: space-between; }
  .line-progress { width: min(220px, 52vw); }
}

/* ════════════════ 03 · ПРОДУКЦИЯ ════════════════ */
.product-stage {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  margin-bottom: clamp(36px, 5vh, 56px);
}

.stage3d {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 70% at 50% 38%, rgba(201, 151, 79, .16), transparent 60%),
    linear-gradient(160deg, var(--choco-800), var(--choco-950));
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage3d-photo {
  max-width: 78%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
  animation: photoFloat 5s ease-in-out infinite;
}
@keyframes photoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.product-info {
  background: #fbf6ea;
  border: 1px solid var(--hair-cream);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--choco-950);
  background: linear-gradient(135deg, var(--caramel-2), var(--caramel));
  border-radius: 999px;
  padding: 6px 14px;
  transition: opacity .25s;
}
.product-badge.is-hidden { opacity: 0; visibility: hidden; }
.product-index {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink-dim);
}
.product-index b { color: var(--caramel); font-weight: 600; }

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  text-transform: uppercase;
  line-height: 1.15;
}
.product-sub {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--caramel);
}
.product-desc { font-size: 15px; color: var(--ink-dim); }

.spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: auto;
  font-size: 14px;
}
.spec td {
  padding: 11px 0;
  border-top: 1px solid var(--hair-cream);
}
.spec td:first-child { color: var(--ink-dim); }
.spec td:last-child { text-align: right; font-weight: 700; }

.product-info .btn { margin-top: 18px; }

/* лента-конвейер под сценой */
.belt { position: relative; padding: 26px 0 10px; }
.belt-rail {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 56px;
  transform: translateY(-50%);
  border-top: 1px solid var(--hair-cream);
  border-bottom: 1px solid var(--hair-cream);
  background-image: radial-gradient(circle 5px at 28px 50%, rgba(36, 21, 9, .18) 45%, transparent 55%);
  background-size: 56px 100%;
  animation: railMove 2.6s linear infinite;
}
@keyframes railMove { to { background-position-x: -56px; } }

.belt-track {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scrollbar-width: none;
}
.belt-track::-webkit-scrollbar { display: none; }

.belt-item {
  flex: none;
  width: 190px;
  background: #fbf6ea;
  border: 1px solid var(--hair-cream);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.belt-item:hover { transform: translateY(-4px); }
.belt-item.is-active {
  border-color: var(--caramel);
  box-shadow: 0 14px 32px rgba(201, 151, 79, .25);
  transform: translateY(-6px);
}
.belt-item-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--caramel);
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.belt-item-num .hit { color: var(--choco-950); background: var(--caramel-2); border-radius: 99px; padding: 1px 8px; font-size: 9.5px; font-weight: 800; }
.belt-item-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.25;
}
.belt-item-sub {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 3px;
}

/* ════════════════ 04 · ГЕОГРАФИЯ ════════════════ */
/* шапка: заголовок слева, цифры справа */
.geo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(28px, 4vh, 44px);
}
.geo-head .section-head { margin-bottom: 0; }

.geo-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.geo-filter {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 221, .2);
  background: rgba(20, 11, 6, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--milk-dim);
  transition: all .25s ease;
}
.geo-filter:hover { border-color: var(--caramel); color: var(--caramel-2); }
.geo-filter.is-active {
  background: linear-gradient(135deg, var(--caramel-2), var(--caramel));
  border-color: transparent;
  color: var(--choco-950);
}

.geo-stats {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(24px, 3vw, 48px);
  justify-content: end;
  padding-bottom: 6px;
}
.geo-stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 34px);
  color: var(--caramel-2);
  line-height: 1.15;
}
.geo-stat span { font-size: 13px; color: var(--milk-dim); }

/* список городов под картой */
.geo-cities {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 22px;
}
.geo-cities-col {
  border-top: 1px solid var(--hair-dark);
  padding-top: 14px;
}
.geo-cities-col b {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel-2);
  margin-bottom: 6px;
}
.geo-cities-col span { font-size: 13.5px; color: var(--milk-dim); line-height: 1.9; }

/* карта — во всю ширину блока */
.geo-map {
  position: relative;
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 80% at 60% 40%, rgba(201, 151, 79, .07), transparent 60%),
    linear-gradient(160deg, var(--choco-900), var(--choco-950));
  overflow: hidden;
}
.geo-map .geo-filters {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
}
.geo-map-canvas svg { width: 100%; height: auto; display: block; }
.geo-map-note {
  position: absolute;
  right: 14px; bottom: 12px;
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(244, 236, 221, .35);
}

/* элементы карты (SVG строит JS) */
.geo-dotgrid { fill: rgba(244, 236, 221, .07); }
.geo-land {
  fill: rgba(244, 236, 221, .035);
  stroke: rgba(244, 236, 221, .3);
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.geo-region {
  fill: none;
  stroke: rgba(244, 236, 221, .09);
  stroke-width: 1;
  stroke-linejoin: round;
}
.geo-abroad {
  fill: rgba(0, 0, 0, .28);
  stroke: none;
}
.geo-route {
  fill: none;
  stroke: var(--caramel);
  stroke-width: 1.1;
  stroke-dasharray: 3 6;
  opacity: .55;
  animation: routeFlow 1.6s linear infinite;
  transition: opacity .35s ease;
}
@keyframes routeFlow { to { stroke-dashoffset: -9; } }

.geo-city-dot {
  fill: var(--cream);
  transition: opacity .35s ease;
}
.geo-city-label {
  fill: rgba(244, 236, 221, .78);
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: .03em;
  transition: opacity .35s ease;
}
.geo-region-label {
  fill: rgba(201, 151, 79, .35);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .3em;
}
.geo-city.is-dim .geo-city-dot,
.geo-city.is-dim .geo-city-label { opacity: .13; }
.geo-route.is-dim { opacity: .07; }

.geo-hub-core { fill: var(--caramel-2); }
.geo-hub-pulse {
  fill: none;
  stroke: var(--caramel);
  stroke-width: 1.4;
  animation: hubPulse 2.4s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes hubPulse {
  0%   { opacity: .9; transform: scale(.4); }
  100% { opacity: 0;  transform: scale(2.6); }
}
.geo-hub-label {
  fill: var(--caramel-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

/* ════════════════ 05 · ПАРТНЁРАМ ════════════════ */
.terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: clamp(48px, 7vh, 72px);
}
.term-card {
  background: #fbf6ea;
  border: 1px solid var(--hair-cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.term-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(36, 21, 9, .1);
}
.term-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--caramel);
  margin-bottom: 40px;
}
.term-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.term-card p { font-size: 14px; color: var(--ink-dim); }

.networks-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.networks-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: center;
  justify-items: center;
}
.net-logo {
  width: auto;
  height: clamp(42px, 4.5vw, 58px);
}

/* ════════════════ КОНТАКТЫ ════════════════ */
.contacts {
  background:
    radial-gradient(100% 90% at 85% 0%, rgba(201, 151, 79, .1), transparent 55%),
    var(--choco-950);
}
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.contact-list { list-style: none; display: flex; flex-direction: column; }
.contact-list li {
  padding: 20px 0;
  border-top: 1px solid var(--hair-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--milk-dim);
}
.contact-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 22px);
  color: var(--cream);
  transition: color .2s;
  width: fit-content;
}
a.contact-value:hover { color: var(--caramel-2); }

.contact-direct {
  background: rgba(244, 236, 221, .04);
  border: 1px solid var(--hair-dark);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(8px);
}
.contact-direct-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--cream);
  margin-bottom: 6px;
}
.contact-direct-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(20, 11, 6, .5);
  border: 1px solid var(--hair-dark);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color .25s;
}
.contact-direct-item:hover { border-color: var(--caramel); }
.contact-direct-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 26px);
  color: var(--cream);
  transition: color .2s;
  overflow-wrap: anywhere;
}
.contact-direct-item:hover .contact-direct-value { color: var(--caramel-2); }

.form-note { font-size: 12px; color: rgba(244, 236, 221, .4); text-align: center; }

/* ════════════════ FOOTER ════════════════ */
.site-footer {
  background: var(--choco-950);
  border-top: 1px solid var(--hair-dark);
  padding: clamp(48px, 7vh, 72px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--milk-dim);
  max-width: 300px;
  margin-top: 16px;
}
.footer-logo {
  width: 270px;
  max-width: 100%;
  height: auto;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 6px;
}
.footer-col a, .footer-col span {
  font-size: 14px;
  color: var(--milk-dim);
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--hair-dark);
  font-size: 13px;
  color: rgba(244, 236, 221, .4);
}

/* ════════════════ АНИМАЦИЯ ПОЯВЛЕНИЯ ════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22, .8, .24, 1), transform .8s cubic-bezier(.22, .8, .24, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ════════════════ АДАПТИВ ════════════════ */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-photo { grid-column: span 2; }
  .product-stage { grid-template-columns: 1fr; }
  .geo-head { flex-direction: column; align-items: flex-start; }
  .geo-stats { justify-content: start; }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .networks-row { grid-template-columns: repeat(3, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: rgba(20, 11, 6, .97);
    backdrop-filter: blur(16px);
    padding: 18px 20px 28px;
    gap: 6px;
    transform: translateY(-130%);
    transition: transform .4s cubic-bezier(.22, .8, .24, 1);
    border-bottom: 1px solid var(--hair-dark);
  }
  .site-nav.is-open { transform: translateY(0); }
  .nav-link { font-size: 17px; padding: 13px 14px; }
  .header-cta { display: none; }
  .burger { display: flex; }

  .hero-grid { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-side { width: 100%; max-width: 560px; padding-bottom: 0; }
  .hero-scroll { display: none; }
  .hero-content { padding-bottom: clamp(32px, 6vh, 56px); }

  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--hair-dark); padding-left: 22px; }
}

@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento-photo, .bento-photo-sm { grid-column: span 1; }
  .terms { grid-template-columns: 1fr; }
  .networks-row { grid-template-columns: repeat(2, 1fr); }
  .geo-stats { grid-template-columns: repeat(3, auto); gap: 20px; }
  .geo-cities { grid-template-columns: 1fr; gap: 14px; }
  /* на телефоне карту можно двигать пальцем — подписи остаются читаемыми */
  .geo-map-canvas { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .geo-map-canvas svg { width: 780px; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
