/* ============================================================
   Карламанский МКК — дизайн-система
   Premium Natural Dairy · Playfair Display + Inter
   ============================================================ */

:root {
  /* Палитра */
  --cream-50:  #FDFAF4;
  --cream-100: #F8F1E3;
  --cream-200: #F0E3CB;
  --cream-300: #E5D2AE;
  --caramel-300: #E3B863;
  --caramel-400: #D9A441;
  --caramel-500: #BC8526;
  --caramel-600: #9C6D1C;
  --caramel-700: #835A14;
  --navy-700: #27496D;
  --navy-800: #1E3A5F;
  --navy-900: #16293F;
  --brown-900: #2C2114;
  --brown-700: #4A3A26;
  --brown-600: #6B5640;
  --white: #FFFFFF;
  --sage-100: #EFF3E3;
  --sage-200: #DCE8CB;
  --sage-400: #9AC478;
  --sage-600: #5B7A4A;

  /* Типографика */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Тени */
  --shadow-sm: 0 1px 3px rgba(44, 33, 20, 0.07);
  --shadow-md: 0 6px 24px -6px rgba(44, 33, 20, 0.12);
  --shadow-lg: 0 18px 50px -12px rgba(44, 33, 20, 0.18);
  --shadow-can: 0 24px 40px -16px rgba(30, 58, 95, 0.35);

  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Z-шкала */
  --z-nav: 50;
  --z-menu: 40;
  --z-raised: 10;

  --container: 1200px;
  --nav-h: 76px;
}

/* ---------- Базис ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--brown-900);
  background-color: var(--cream-50);
  -webkit-font-smoothing: antialiased;
}

/* Свежий mesh-фон: луговая зелень + утреннее золото + капля неба */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 88% -8%, rgba(154, 196, 120, 0.28), transparent 60%),
    radial-gradient(950px 650px at -8% 28%, rgba(233, 197, 107, 0.30), transparent 55%),
    radial-gradient(850px 600px at 108% 78%, rgba(168, 196, 220, 0.20), transparent 60%),
    radial-gradient(700px 500px at 18% 105%, rgba(220, 232, 203, 0.45), transparent 60%),
    linear-gradient(180deg, #FAFCF3 0%, #FDFAF2 100%);
}

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

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--brown-900);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a {
  color: var(--navy-800);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--caramel-600); }

:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--caramel-300); color: var(--brown-900); }

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

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--cream {
  background: linear-gradient(165deg,
    rgba(248, 246, 234, 0.9) 0%,
    rgba(239, 243, 227, 0.9) 55%,
    rgba(246, 241, 223, 0.9) 100%);
}
.section--navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: var(--cream-100);
}
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--cream-200); }

/* ---------- Кикер / подписи ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel-700);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--caramel-400);
  border-radius: 2px;
}
.section--navy .kicker { color: var(--caramel-300); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--brown-600);
  max-width: 56ch;
}
.section--navy .lead { color: var(--cream-200); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::before { display: none; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: var(--caramel-600);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(156, 109, 28, 0.6);
}
.btn--primary:hover {
  background: var(--caramel-700);
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(131, 90, 20, 0.55);
}

.btn--outline {
  background: transparent;
  color: var(--brown-900);
  border-color: var(--cream-300);
}
.btn--outline:hover {
  border-color: var(--caramel-400);
  color: var(--caramel-600);
  background: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--navy-800);
}
.btn--light:hover { background: var(--cream-100); color: var(--navy-900); }

/* ---------- Навигация ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: var(--z-nav);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  width: 100%;
  max-width: calc(var(--container) - 32px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: clamp(18px, 3vw, 32px);
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brown-900);
}
.brand:hover { color: var(--brown-900); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brown-600);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brown-700);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav__links a:hover { background: var(--cream-100); color: var(--brown-900); }
.nav__links a[aria-current="page"] {
  background: var(--brown-900);
  color: var(--cream-50);
}

.nav__cta { flex: none; }
.nav__cta .btn { min-height: 46px; padding: 11px 22px; font-size: 0.92rem; }

.nav__burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--brown-900);
}
.nav__burger svg { width: 24px; height: 24px; }

.mobile-menu {
  position: fixed;
  top: calc(var(--nav-h) + 28px);
  left: 16px;
  right: 16px;
  z-index: var(--z-menu);
  background: var(--cream-50);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--brown-900);
}
.mobile-menu a:hover { background: var(--cream-100); }
.mobile-menu a[aria-current="page"] { background: var(--brown-900); color: var(--cream-50); }
.mobile-menu .btn { width: 100%; margin-top: 10px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(60px, 10vw, 120px));
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(217, 164, 65, 0.14), transparent 60%),
    radial-gradient(760px 520px at 8% 88%, rgba(154, 196, 120, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(250, 252, 243, 0.85), rgba(253, 250, 244, 0));
}

/* Дрейфующие ауры: свежая зелень и сливочное золото */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(72px);
}
.hero::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle, rgba(154, 196, 120, 0.45), rgba(154, 196, 120, 0) 70%);
  animation: blob-drift 16s ease-in-out infinite alternate;
}
.hero::after {
  width: 460px;
  height: 460px;
  left: -160px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(233, 197, 107, 0.5), rgba(233, 197, 107, 0) 70%);
  animation: blob-drift 21s ease-in-out infinite alternate-reverse;
}

@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(48px, 36px) scale(1.18); }
}
.hero--inner {
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- Hero с фоновым видео (кинематографичный) ---------- */
.hero--video {
  display: flex;
  align-items: center;
  min-height: min(92vh, 820px);
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 56px;
  background: var(--navy-900);
}
.hero--video::before,
.hero--video::after { content: none; }                 /* убираем декоративные ауры базового .hero */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__video::after {                                  /* тёмная подложка ПОВЕРХ видео, но ПОД текстом */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(96% 82% at 50% 42%, rgba(22, 41, 63, 0.50), transparent 74%),
    linear-gradient(180deg, rgba(22, 41, 63, 0.52) 0%, rgba(22, 41, 63, 0.38) 45%, rgba(22, 41, 63, 0.72) 100%);
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero--video .hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.hero--video .kicker { color: #F5E4BC; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.hero--video h1 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38); }
.hero--video .hero__accent { color: #F1CE84; }
.hero--video .lead { color: #fff; max-width: 600px; margin-inline: auto; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.hero--video .hero__badges { justify-content: flex-start; }
.hero--video .badge {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (max-width: 760px) {
  .hero--video { min-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__video video { display: none; }
  .hero__video { background: var(--navy-900) url('assets/video/hero-poster.jpg') center / cover no-repeat; }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--cream-200);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown-700);
  box-shadow: var(--shadow-sm);
}
.badge svg { width: 16px; height: 16px; color: var(--caramel-500); flex: none; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__art { position: relative; }

/* ---------- Карточки ---------- */

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--cream-300); }

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--cream-100) 20%, var(--sage-100) 100%);
  color: var(--caramel-500);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }

.card p:last-child { margin-bottom: 0; color: var(--brown-600); }

/* Продуктовая карточка */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--caramel-300); }

.product-card__media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 24px 0;
  height: 230px;
  background:
    radial-gradient(320px 200px at 75% 20%, rgba(220, 232, 203, 0.55), transparent 70%),
    linear-gradient(180deg, var(--cream-100), var(--cream-50));
}
.product-card__media svg { height: 100%; width: auto; }

/* Крупнее фото товара в блоке-превью «Две легенды» на главной (там 2 большие карточки) */
[aria-labelledby="products-title"] .product-card__media { height: 306px; padding-top: 26px; }

/* Сливки: фото обрезано впритык — чуть уменьшаем, чтобы было вровень с соседними */
[data-sku="cond-cream"] .product-photo { max-height: 90%; max-width: 90%; }

/* Фото продукта на белом фоне: multiply растворяет белый в подложке */
.product-card__media .product-photo {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-photo { transform: translateY(-6px); }

.product-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel-700);
}
.product-card__body p { color: var(--brown-600); font-size: 0.95rem; margin: 0; }
.product-card__meta {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--brown-600);
}
.product-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card__meta svg { width: 15px; height: 15px; color: var(--navy-700); }

/* ---------- Цифры ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--caramel-300);
  line-height: 1;
}
.stat__label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--cream-200);
}

/* ---------- Таймлайн ---------- */

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 36px;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--cream-300);
}
.timeline li { position: relative; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--caramel-400);
  border: 3px solid var(--cream-50);
  box-shadow: 0 0 0 2px var(--caramel-400);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-800);
}
.timeline p { color: var(--brown-600); margin: 6px 0 0; }

/* ---------- Списки преимуществ ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  color: var(--caramel-500);
}

/* ---------- Формы ---------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--brown-700); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  color: var(--brown-900);
  background: var(--white);
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(39, 73, 109, 0.15);
}
.field__hint { font-size: 0.82rem; color: var(--brown-600); }

/* ---------- CTA-полоса ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--cream-100);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.cta-band::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,65,0.35), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: var(--cream-200); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* ---------- Подвал ---------- */

.footer {
  background: var(--brown-900);
  color: var(--cream-200);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  margin-top: 0;
}
.footer a { color: var(--cream-200); }
.footer a:hover { color: var(--caramel-300); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(248, 241, 227, 0.15);
}
.footer__brand .brand__name { color: var(--cream-50); }
.footer__brand .brand__sub { color: rgba(248, 241, 227, 0.6); }
.footer__brand p { font-size: 0.92rem; color: rgba(248, 241, 227, 0.7); margin-top: 16px; }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel-300);
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 0.95rem; }

.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--caramel-300); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(248, 241, 227, 0.55);
}

/* ---------- Прогресс прокрутки ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: calc(var(--z-nav) + 1);
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--caramel-400), var(--caramel-600));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Фото-слои и параллакс ---------- */

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(250, 252, 243, 0.55) 0%,
    rgba(250, 252, 243, 0.32) 45%,
    rgba(250, 252, 243, 0.94) 100%);
}
.hero > .container { position: relative; z-index: 1; }

/* Более заметный фон под шапкой (напр. страница «Продукция») */
.hero--photo-visible .hero__photo img { opacity: 0.5; }
.hero--photo-visible .hero__photo::after {
  background: linear-gradient(180deg,
    rgba(250, 252, 243, 0.30) 0%,
    rgba(250, 252, 243, 0.18) 45%,
    rgba(250, 252, 243, 0.92) 100%);
}

@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.12) translateY(-2%); }
}

.photo-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding-block: clamp(64px, 9vw, 110px);
  color: var(--cream-100);
}
.photo-band__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  bottom: -18%;
  z-index: 0;
  will-change: transform;
}
.photo-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(22, 41, 63, 0.82) 0%,
    rgba(22, 41, 63, 0.55) 50%,
    rgba(44, 33, 20, 0.35) 100%);
}
.photo-band__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.photo-band h2 { color: var(--white); }
.photo-band p { color: var(--cream-200); }
.photo-band .kicker { color: var(--caramel-300); }
.photo-band__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 32px;
}
.photo-band__stats .stat { text-align: left; }

/* ---------- Фото-рамки ---------- */

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-200);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo-frame:hover img { transform: scale(1.05); }
.photo-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: rgba(253, 250, 244, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown-900);
  box-shadow: var(--shadow-sm);
}
.photo-frame__caption svg { width: 15px; height: 15px; color: var(--caramel-500); flex: none; }
.photo-frame--tall { aspect-ratio: 3 / 4; }
.photo-frame--wide { aspect-ratio: 16 / 10; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}
.photo-grid .photo-frame { aspect-ratio: 4 / 5; }

/* Коллаж: два фото внахлёст */

.collage {
  position: relative;
  min-height: 420px;
}
.collage__main {
  width: 78%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.collage__main img { width: 100%; height: 100%; object-fit: cover; }
.collage__accent {
  position: absolute;
  right: 0;
  bottom: -28px;
  width: 46%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--cream-50);
  box-shadow: var(--shadow-lg);
}
.collage__accent img { width: 100%; height: 100%; object-fit: cover; }
.collage__badge {
  position: absolute;
  left: -6px;
  top: 24px;
  z-index: 2;
  background: var(--caramel-500);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.collage__badge span { display: block; font-family: var(--font-display); font-size: 1.6rem; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- 3D-наклон ---------- */

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s ease;
}
.tilt > * { transform: translateZ(0); }

/* ---------- Анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

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

/* ---------- Декор: волна ---------- */

.wave { display: block; width: 100%; height: 70px; color: var(--cream-100); }
.wave--navy { color: var(--navy-800); }

/* ---------- Страница продукции: фильтр ---------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.pill {
  padding: 10px 22px;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--cream-300);
  background: var(--white);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--brown-700);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pill:hover { border-color: var(--caramel-400); color: var(--caramel-600); }
.pill.is-active {
  background: var(--brown-900);
  border-color: var(--brown-900);
  color: var(--cream-50);
}

/* ---------- Спецтаблица (характеристики) ---------- */

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--cream-200);
}
.spec-table th { font-weight: 600; color: var(--brown-700); white-space: nowrap; }
.spec-table td { color: var(--brown-600); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .collage { margin-bottom: 40px; }
  .collage__main { width: 100%; }
  .photo-band { min-height: 380px; }
  .hero__art { order: -1; max-width: 420px; margin-inline: auto; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .grid--4 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .photo-frame { aspect-ratio: 16 / 10; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Кастомный курсор-пчёлка 🐝 ---------- */
*, *::before, *::after { cursor: url('assets/bee-cursor.png') 8 6, auto !important; }
/* текстовые поля — обычный курсор ввода, чтобы удобно печатать */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea, [contenteditable="true"] { cursor: text !important; }
