﻿:root {
  --milk: #FAFAFA;
  --white: #FFFFFF;
  --mist: #EDF3F8;
  /* Фирменный синий (как на упаковке Сыркофф) */
  --brand: #143A5A;        /* основной — текст, кнопки, шапка */
  --brand-mid: #3A5B78;    /* вторичный текст */
  --brand-light: #6E8AA3;  /* приглушённый */
  --ink: #0E2438;          /* самый тёмный — фон B2B/футера */
  --gold: #D4A843;
  --gold-ink: #8A6A1C;     /* золото для мелкого текста на светлом (контраст AA) */
  --premium-accent: #FF6B9D; /* линейка Premium — точечно */
  --premium-glow: rgba(255, 107, 157, 0.3);
  --gost-blue: #1A5276;
  --gray: #7F8C8D;
  --gray-light: #ECF0F1;
  /* Цветовой кодинг линеек каталога */
  --line-premium: #FF6B9D;
  --line-glazed: #143A5A;
  --line-mult: #27AE60;
  --line-rozhki: #D4A843;
  --line-desserts: #B5478B;
  --line-tvorog: #2A9D8F;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Onest', 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1200px;
  --section-padding: 100px 24px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--milk);
  color: var(--brand);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--brand);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--brand-mid);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  /* column: под контентом размещается лента логотипов сетей */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--milk);
  padding: 120px 24px 80px;
}

/* ===== Лента «Уже на полках» (marquee логотипов сетей) ===== */
.hero-logos {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-logos-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  white-space: nowrap;
}

.hero-logos-viewport {
  flex: 1;
  min-width: 0;
  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);
}

.hero-logos-track {
  display: flex;
  width: max-content;
  animation: logosScroll 38s linear infinite;
}

/* два одинаковых набора; padding-right = внутреннему gap — цикл бесшовный */
.hero-logos-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.hero-logos-set img {
  height: 24px;
  width: auto;
}

@keyframes logosScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(212, 168, 67, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 107, 157, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(250, 250, 250, 0.5) 0%, transparent 80%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(0.98); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.hero-text {
  min-width: 0;
}

/* ===== HERO VISUAL (композиция packshot'ов) ===== */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.hero-visual-blob {
  position: absolute;
  inset: 8% 8% 8% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%,
    rgba(212, 168, 67, 0.18) 0%,
    rgba(20, 58, 90, 0.08) 45%,
    transparent 72%);
  filter: blur(4px);
}

.hero-pack {
  position: absolute;
  opacity: 0;
  filter: drop-shadow(0 18px 30px rgba(20, 58, 90, 0.22));
  /* каскадный вход (heroPackIn) + бесконечное плавание (heroFloat).
     heroPackIn трогает только opacity/filter — transform остаётся за heroFloat/параллаксом */
  animation: heroPackIn 0.7s ease 0.05s both, heroFloat 6s ease-in-out infinite;
}

.hero-pack-1 {
  width: 52%;
  top: 26%;
  left: 24%;
  z-index: 2;
}

.hero-pack-2 {
  width: 36%;
  top: 4%;
  right: 4%;
  z-index: 3;
  animation: heroPackIn 0.7s ease 0.18s both, heroFloat 6s ease-in-out -2s infinite;
}

.hero-pack-3 {
  width: 40%;
  bottom: 4%;
  left: 4%;
  z-index: 1;
  animation: heroPackIn 0.7s ease 0.31s both, heroFloat 6s ease-in-out -4s infinite;
}

/* --mx/--my задаёт параллакс от курсора (script.js), поверх — плавание */
@keyframes heroFloat {
  0%, 100% { transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--r, 0deg)); }
  50% { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 14px)) rotate(var(--r, 0deg)); }
}

.hero-pack-2 { --r: 6deg; }
.hero-pack-3 { --r: -5deg; }

/* вход упаковок: мягкая «проявка» с расфокусом, без участия transform */
@keyframes heroPackIn {
  from { opacity: 0; filter: blur(10px) drop-shadow(0 18px 30px rgba(20, 58, 90, 0.22)); }
  to   { opacity: 1; filter: blur(0)   drop-shadow(0 18px 30px rgba(20, 58, 90, 0.22)); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin-bottom: 24px;
}

.hero-title-accent {
  background: linear-gradient(120deg, var(--gold), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--brand-mid);
  max-width: 540px;
  margin: 0 0 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(20, 58, 90, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20, 58, 90, 0.35);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: var(--transition);
  background: transparent;
}

.header.scrolled {
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  padding: 12px 24px;
}

@supports not (backdrop-filter: blur(1px)) {
  .header.scrolled { background: rgba(250, 250, 250, 0.98); }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
}

.logo-accent {
  background: linear-gradient(120deg, var(--gold), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-mid);
  transition: var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--brand);
}

/* активный пункт меню (scrollspy ставит aria-current в script.js) */
.nav a[aria-current="page"] {
  color: var(--brand);
}

.nav a[aria-current="page"]::after {
  width: 100%;
}

/* золотая кнопка «Где купить» — только в RU-версии */
.nav-buy {
  padding: 10px 24px;
  background: var(--gold);
  color: var(--ink) !important;
  border-radius: 60px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
}

.nav-buy::after {
  display: none !important;
}

.nav-buy:hover {
  background: #E0B84C !important;
  transform: translateY(-1px);
}

.nav-cta {
  padding: 10px 24px;
  background: var(--brand);
  color: var(--white) !important;
  border-radius: 60px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--brand-mid) !important;
}


.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-title {
  margin-bottom: 20px;
}

.about-text p {
  color: var(--brand-mid);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat-card {
  background: var(--milk);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(20, 58, 90, 0.04);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 168, 67, 0.2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-number .suffix {
  font-size: 0.6em;
  color: var(--gold-ink);
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--brand-mid);
  font-weight: 500;
  line-height: 1.4;
}

.stat-icon {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-ink);
}

.stat-icon svg {
  width: 30px;
  height: 30px;
  display: inline-block;
}

/* ===== CATALOG TABS ===== */
.catalog {
  position: relative;
  /* без overflow:hidden — он ломает position:sticky у .tabs-wrap;
     декор .catalog::before (inset:0) за границы секции не выходит */
  background: var(--milk);
}

.catalog::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 200px at 10% 16%, rgba(212, 168, 67, 0.07), transparent 62%),
    radial-gradient(circle 240px at 90% 26%, rgba(20, 58, 90, 0.05), transparent 62%),
    radial-gradient(circle 180px at 78% 90%, rgba(255, 107, 157, 0.05), transparent 62%);
}

.catalog > .container {
  position: relative;
  z-index: 1;
}

.catalog-header {
  text-align: center;
  margin-bottom: 48px;
}

.tabs-wrap {
  position: relative;
  margin-bottom: 48px;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-mid);
  background: var(--white);
  border: 1px solid rgba(20, 58, 90, 0.08);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.tab-btn:hover {
  border-color: var(--gold);
  color: var(--brand);
  transform: translateY(-1px);
}

.tab-btn.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(20, 58, 90, 0.2);
}

.tab-btn[data-tab="premium"].active {
  background: linear-gradient(135deg, var(--premium-accent), var(--gold));
  border-color: transparent;
  box-shadow: 0 4px 20px var(--premium-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.catalog-more {
  text-align: center;
  margin-top: 36px;
}

.catalog-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: var(--transition);
}

.catalog-more-link:hover {
  color: var(--gold);
  gap: 12px;
}


/* Цветовой кодинг линеек: верхняя полоска карточки */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line-color, var(--gold));
  z-index: 2;
}

[data-tab-content="premium"]    .product-card { --line-color: var(--line-premium); }
[data-tab-content="glazed"]   .product-card { --line-color: var(--line-glazed); }
[data-tab-content="mult"]     .product-card { --line-color: var(--line-mult); }
[data-tab-content="rozhki"]   .product-card { --line-color: var(--line-rozhki); }
[data-tab-content="desserts"] .product-card { --line-color: var(--line-desserts); }
[data-tab-content="tvorog"]   .product-card { --line-color: var(--line-tvorog); }

/* компактная сетка: полный каталог ~110 позиций */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

/* чипы-фильтры: второй уровень навигации внутри большой вкладки */
.catalog-filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

/* скользящая золотая подложка — переезжает к активному чипу (позиция из script.js) */
.chip-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 60px;
  background: var(--gold);
  box-shadow: 0 3px 12px rgba(212, 168, 67, 0.3);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.34, 1.28, 0.64, 1),
              width 0.42s cubic-bezier(0.34, 1.28, 0.64, 1),
              height 0.42s ease,
              opacity 0.3s ease;
}

.chip-indicator.ready {
  opacity: 1;
}

.filter-chip {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  border-radius: 60px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-mid);
  background: var(--white);
  border: 1px solid rgba(20, 58, 90, 0.08);
  transition: color var(--transition), border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--gold);
  color: var(--brand);
}

/* активный чип: фон даёт скользящая подложка, сам чип прозрачный */
.filter-chip.active {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
}

/* липкий ряд вкладок — только десктоп (на мобайле сетка 2×3 слишком высокая) */
@media (min-width: 769px) {
  .tabs-wrap {
    position: sticky;
    top: 64px;
    z-index: 20;
    padding: 12px 0;
    margin-bottom: 36px;
    background: linear-gradient(var(--milk) 80%, rgba(250, 250, 250, 0));
  }
}

/* подзаголовок линейки внутри вкладки */
.catalog-group {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.catalog-group:first-child {
  margin-top: 0;
}

.catalog-group::after {
  content: '';
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(212, 168, 67, 0.45) 0 7px, transparent 7px 15px);
}

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(20, 58, 90, 0.08);
  transition: var(--transition);
  animation: cardIn 0.5s ease both;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 168, 67, 0.2);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--milk);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

/* при наведении на карточку фото плавно увеличивается */
.product-card:hover .product-card-img img {
  transform: scale(1.18);
}


.product-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.3;
  margin-bottom: 6px;
  flex: 1;
  transition: transform var(--transition);
}

/* Карточки с описанием (EN/ZH overview): заголовок не растягивается,
   описание остаётся сразу под ним (выравнивание по верху) */
.product-card-body:has(.product-card-desc) .product-card-title {
  flex: none;
  min-height: 2.6em;
}

/* контент карточки слегка приподнимается вслед за зумом фото */
.product-card:hover .product-card-title {
  transform: translateY(-2px);
}

.product-card:hover .product-card-tag {
  transform: translateY(-2px);
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--brand-mid);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-card-weight {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

.product-card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--gray-light);
  color: var(--brand-mid);
  margin-bottom: 10px;
  transition: transform var(--transition);
}

/* Цвета пилюль по линейкам — EN/ZH overview (class-based) */
.product-card-tag.premium  { background: rgba(255,107,157,0.13); color: var(--premium-accent); }
.product-card-tag.gost     { background: rgba(26, 82, 118, 0.22); color: var(--gost-blue); }
.product-card-tag.mult     { background: rgba(39, 174, 96, 0.13); color: var(--line-mult); }
.product-card-tag.rozhki   { background: rgba(212,168, 67, 0.15); color: var(--gold-ink); }
.product-card-tag.desserts { background: rgba(181, 71,139, 0.13); color: var(--line-desserts); }
.product-card-tag.tvorog   { background: rgba(42, 157,143, 0.13); color: var(--line-tvorog); }

/* Цвета пилюль по вкладкам — RU каталог (tab-based, охватывает все карточки внутри) */
[data-tab-content="premium"]  .product-card-tag { background: rgba(255,107,157,0.13); color: var(--premium-accent); }
[data-tab-content="glazed"]   .product-card-tag { background: rgba(26, 82, 118, 0.12); color: var(--gost-blue); }
[data-tab-content="mult"]     .product-card-tag { background: rgba(39, 174, 96, 0.13); color: var(--line-mult); }
[data-tab-content="rozhki"]   .product-card-tag { background: rgba(212,168, 67, 0.15); color: var(--gold-ink); }
[data-tab-content="desserts"] .product-card-tag { background: rgba(181, 71,139, 0.13); color: var(--line-desserts); }
[data-tab-content="tvorog"]   .product-card-tag { background: rgba(42, 157,143, 0.13); color: var(--line-tvorog); }

/* Stagger animation delays for cards */
.products-grid .product-card:nth-child(1) { animation-delay: 0s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.08s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.16s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.24s; }
.products-grid .product-card:nth-child(5) { animation-delay: 0.32s; }
.products-grid .product-card:nth-child(6) { animation-delay: 0.4s; }

/* ===== ПРОИЗВОДСТВО ===== */
.production {
  background: var(--mist);
}

.production-head {
  text-align: center;
  margin-bottom: 48px;
}

.production-head .section-subtitle {
  margin: 12px auto 0;
}

.production-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* линия-поток между этапами (только десктоп, один ряд) */
.production-steps::before {
  content: '';
  position: absolute;
  top: 29px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 7px, transparent 7px 15px);
  opacity: 0.55;
  z-index: 0;
  /* линия «протекает» 1→4, когда секция попадает в вьюпорт (.in-view из script.js) */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.6s ease 0.2s;
}

.production-steps.in-view::before {
  clip-path: inset(0 0 0 0);
}

/* номера этапов всплывают поочерёдно вслед за линией */
.production-steps .prod-num {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.production-steps.in-view .prod-num {
  transform: scale(1);
}

.production-steps.in-view .prod-card:nth-child(1) .prod-num { transition-delay: 0.2s; }
.production-steps.in-view .prod-card:nth-child(2) .prod-num { transition-delay: 0.6s; }
.production-steps.in-view .prod-card:nth-child(3) .prod-num { transition-delay: 1.0s; }
.production-steps.in-view .prod-card:nth-child(4) .prod-num { transition-delay: 1.4s; }

.prod-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(20, 58, 90, 0.25);
}

.prod-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid rgba(20, 58, 90, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 168, 67, 0.25);
}

.prod-illu {
  display: block;
  width: 100%;
  aspect-ratio: 22 / 15;
}

.prod-body {
  padding: 20px;
}

.prod-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
  margin: 6px 0 8px;
}

.prod-desc {
  font-size: 0.88rem;
  color: var(--brand-mid);
  line-height: 1.5;
}

.production-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.prod-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--milk);
  border: 1px solid rgba(20, 58, 90, 0.08);
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.prod-fact svg {
  width: 17px;
  height: 17px;
  color: var(--gold-ink);
  flex-shrink: 0;
}

/* на десктопе — все четыре факта строго в одну строку */
@media (min-width: 1024px) {
  .production-facts { flex-wrap: nowrap; }
}

/* ниже десктопа — ровный столбец одинаковой ширины (без «лесенки») */
@media (max-width: 1023px) {
  .production-facts { flex-direction: column; align-items: stretch; gap: 10px; }
  .prod-fact { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .production-steps { grid-template-columns: repeat(2, 1fr); }
  .production-steps::before { display: none; }
}

@media (max-width: 460px) {
  .production-steps { grid-template-columns: 1fr; }
}

/* ===== ГДЕ КУПИТЬ ===== */
.buy {
  background: var(--white);
}

.buy-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.buy-store {
  flex: 0 1 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 18px 20px;
  background: var(--milk);
  border: 1px solid rgba(20, 58, 90, 0.08);
  border-radius: var(--radius);
  transition: var(--transition);
}

.buy-store:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.buy-store img {
  max-height: 38px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: var(--transition);
}

.buy-store:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.buy-store img[src*="vkusvill"] { max-height: 26px; }
.buy-store img[src*="yarche"]   { max-height: 30px; }

/* на тач-устройствах hover нет — логотипы сразу в цвете */
@media (hover: none) {
  .buy-store img {
    filter: grayscale(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .buy-store { flex: 0 1 calc(50% - 8px); height: 72px; padding: 14px; }
}

/* ===== TRUST BAND (значки качества) ===== */
.trust {
  background: #E3ECF4;
  padding: 56px 24px;
}

.trust-row {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--white);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(20, 58, 90, 0.08);
}

.trust-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--brand);
  line-height: 1.2;
  margin-bottom: 2px;
}

.trust-item-sub {
  font-size: 0.82rem;
  color: var(--brand-mid);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ===== B2B SECTION ===== */
.b2b {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.b2b-wave,
.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 54px;
  display: block;
  z-index: 2;
}

.b2b::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(212, 168, 67, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255, 107, 157, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.b2b .section-title {
  color: var(--white);
}

.b2b .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.b2b-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.b2b-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}

.b2b-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 168, 67, 0.2);
  transform: translateY(-2px);
}

.b2b-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: rgba(212, 168, 67, 0.12);
}

.b2b-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.b2b-card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.b2b-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}

.b2b-cta {
  margin-top: 40px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  z-index: 1;
}

.b2b-cta-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.b2b-cta-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.btn-gold {
  background: var(--gold);
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(212, 168, 67, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(212, 168, 67, 0.4);
  background: #E0B84C;
}

/* ===== Кнопка «Наверх» (длинная страница каталога) ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(20, 58, 90, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--brand-mid);
  transform: translateY(-3px);
}

.to-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

.b2b-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.b2b-stat {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}

.b2b-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 4px;
}

.b2b-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
}

/* ===== CONTACTS ===== */
.contacts {
  background: var(--white);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts-map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-light);
  position: relative;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--milk);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(20, 58, 90, 0.08);
  color: var(--brand);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
}

.contact-value a {
  transition: var(--transition);
}

.contact-value a:hover {
  color: var(--gold);
}

/* ===== QR с контактами ===== */
.contact-qr {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--milk);
  border: 1px solid rgba(20, 58, 90, 0.08);
  border-radius: var(--radius);
}

.contact-qr-img {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 6px;
  border: 1px solid rgba(20, 58, 90, 0.06);
}

.contact-qr-sub {
  font-size: 0.88rem;
  color: var(--brand-mid);
  line-height: 1.5;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .contact-qr {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 84px 24px 32px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
  display: inline-block;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 280px;
}

.footer-req {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.01em;
}

.footer-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== Бургер-меню на планшете и ниже (узкий ряд не помещается) ===== */
@media (max-width: 960px) {
  /* без backdrop-filter: иначе шапка — containing block для fixed-меню */
  .header.scrolled {
    background: rgba(250, 250, 250, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 250, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    font-size: 1.2rem;
  }
  .nav.open { display: flex; }
  .nav-cta { margin-top: 8px; }
  .mobile-toggle { display: flex; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header     { padding: 12px 16px; }
  .hero       { padding: 86px 16px 48px; min-height: auto; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.4rem); margin-bottom: 16px; }
  .logo       { font-size: 1.3rem; gap: 7px; }
  .logo-mark  { width: 28px; height: 28px; }
  .hero-content { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .hero-text  { order: 2; }
  .hero-visual { order: 1; max-width: 248px; margin: 0 auto; }
  .hero-desc  { font-size: 0.98rem; margin: 0 auto 26px; }
  .hero-buttons { flex-direction: column; align-items: center; justify-content: center; }
  .btn        { width: 100%; max-width: 320px; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { gap: 16px; }
  .stat-card  { padding: 24px 16px; }
  .b2b-grid   { grid-template-columns: 1fr; gap: 32px; }
  .b2b-features { grid-template-columns: 1fr; }
  .b2b-cta    { padding: 24px 16px; }
  .b2b-stats  { gap: 12px; }
  /* табы — сетка 2×3: все шесть вкладок видны сразу, пилюли одной ширины */
  .catalog-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .tab-btn {
    padding: 10px 12px;
    font-size: 0.82rem;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
  .hero-logos { flex-direction: column; gap: 14px; margin-top: 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-body { padding: 14px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .contacts-map { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  /* карточки компактные — две колонки даже на телефоне (каталог большой) */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-body { padding: 10px 12px 12px; }
  .product-card-title { font-size: 0.85rem; }
  .catalog-group { font-size: 1.05rem; }
  .footer-grid   { grid-template-columns: 1fr; }
  .trust-row     { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title { font-size: clamp(2.2rem, 4.4vw, 3rem); }
}

@media (min-width: 1920px) {
  .container { max-width: 1400px; }
}

/* ===== Доступность: уважение к prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================ */
/* ===== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ + CJK-ШРИФТ (RU/EN/ZH) ========== */
/* ============================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}
.lang-switch a {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--brand-mid);
  padding: 5px 9px;
  border-radius: 8px;
  transition: var(--transition);
}
.lang-switch a:hover {
  color: var(--brand);
  background: rgba(20, 58, 90, 0.06);
}
.lang-switch a.lang-active {
  color: var(--brand);
  background: rgba(20, 58, 90, 0.09);
}
.lang-switch a::after { display: none !important; }

/* Китайская версия — подключаем CJK-шрифт Noto Sans SC */
html[lang="zh-Hans"] body,
html[lang="zh-Hans"] .hero-title,
html[lang="zh-Hans"] .section-title,
html[lang="zh-Hans"] .logo,
html[lang="zh-Hans"] .prod-title,
html[lang="zh-Hans"] .product-card-title,
html[lang="zh-Hans"] .b2b-card-title,
html[lang="zh-Hans"] .b2b-cta-title,
html[lang="zh-Hans"] .stat-number {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
}
