/* ==========================================================================
   OVELLA — главная страница
   Шрифты: Cormorant Garamond (акцидентный) + Rawline (функциональный).
   Rawline = Raleway с обычными (lining) цифрами — подключаем Raleway и
   включаем lnum. Когда будут файлы Rawline, достаточно заменить @font-face.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-garamond-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-garamond-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Rawline"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/raleway-cyrillic-400.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rawline"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/raleway-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rawline"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/raleway-cyrillic-500.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rawline"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/raleway-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rawline"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/raleway-cyrillic-600.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rawline"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/raleway-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens (брендбук, стр. 10–11) ---------- */
:root {
  --c-black: #050705;      /* Green Shade Black */
  --c-myrtle: #21301E;     /* Myrtle Shade — основной фирменный */
  --c-arugula: #42603C;    /* Пекорино */
  --c-basil: #879F84;      /* Козий полутвёрдый */
  --c-asparagus: #465945;  /* Стилтон */
  --c-olive: #54622E;      /* Манчего */
  --c-copper: #A95132;     /* Burnt Copper — акцент до 5% */
  --c-smoke: #F3F4F0;      /* White Smoke */
  --c-white: #FFFFFF;

  --c-text: var(--c-myrtle);
  --c-muted: #5d6a5a;
  --c-line: rgba(33, 48, 30, .14);
  --c-line-light: rgba(243, 244, 240, .18);

  --ff-serif: "Cormorant Garamond", "Times New Roman", serif;
  --ff-sans: "Rawline", "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --section-y: clamp(80px, 11vw, 160px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--c-smoke);
  color: var(--c-text);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-copper); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-myrtle); color: var(--c-smoke); }
.skip-link:focus { top: 12px; }

/* Логотип красится через маску → цвет задаётся color/currentColor */
.mask { display: block; background-color: currentColor; -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; }
.mask--sheep { --mask: url(/img/logo/sheep-mark.png); aspect-ratio: 404 / 360; }
.mask--wordmark { --mask: url(/img/logo/wordmark.svg); aspect-ratio: 865.6 / 157.3; }
.mask--logo { --mask: url(/img/logo/logo-full.png); aspect-ratio: 861 / 552; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--c-copper);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--light { color: var(--c-basil); }
.h2 {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.01em;
  text-wrap: balance;
}
.lead { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.75; color: var(--c-muted); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 34px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn::after { content: "→"; font-size: 15px; letter-spacing: 0; transition: transform .3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn--copper { background: var(--c-copper); color: var(--c-smoke); }
.btn--copper:hover { background: #923f24; }
.btn--light { border-color: rgba(243, 244, 240, .5); color: var(--c-smoke); }
.btn--light:hover { background: var(--c-smoke); color: var(--c-myrtle); border-color: var(--c-smoke); }
.btn--dark { background: var(--c-myrtle); color: var(--c-smoke); }
.btn--dark:hover { background: var(--c-black); }
.btn--ghost { border-color: var(--c-line); color: var(--c-myrtle); }
.btn--ghost:hover { border-color: var(--c-myrtle); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn--sm::after { content: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--c-smoke);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h);
  transition: height .4s var(--ease);
}
.header__brand { display: inline-flex; align-items: center; gap: 16px; justify-self: start; }
.header__sheep { width: 74px; transition: width .4s var(--ease); }
.header__wordmark {
  width: 112px; opacity: 0; transform: translateX(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.header__nav { display: flex; gap: clamp(24px, 3vw, 48px); }
.header__nav a, .header__phone {
  position: relative; padding: 6px 0;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); }
.header__aside { justify-self: end; }
.header__phone { letter-spacing: .06em; }

.header.is-scrolled { background: rgba(243, 244, 240, .94); color: var(--c-myrtle); box-shadow: 0 1px 0 var(--c-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header.is-scrolled .header__inner { height: 72px; }
.header.is-scrolled .header__sheep { width: 52px; }
.header.is-scrolled .header__wordmark { opacity: 1; transform: none; }

.burger { display: none; position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; justify-self: end; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--c-myrtle); color: var(--c-smoke);
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu__nav a { font-family: var(--ff-serif); font-size: 40px; line-height: 1.2; }
.mobile-menu__nav .mobile-menu__sub { padding-left: 24px; font-size: 26px; color: var(--c-basil); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: rgba(243, 244, 240, .75); }
body.menu-open .header { color: var(--c-smoke); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .header__wordmark { opacity: 1; transform: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 120px;
  color: var(--c-smoke); text-align: center;
  background: var(--c-myrtle);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 18s var(--ease) both; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(5, 7, 5, .35) 0%, rgba(5, 7, 5, .62) 70%),
    linear-gradient(180deg, rgba(5, 7, 5, .55) 0%, rgba(5, 7, 5, .15) 30%, rgba(5, 7, 5, .25) 70%, rgba(5, 7, 5, .7) 100%);
}
.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero__title { width: min(760px, 84vw); margin: 0; }
.hero__wordmark { width: 100%; animation: rise 1.2s var(--ease) .1s both; }
.hero__descriptor {
  margin-top: clamp(16px, 2.2vw, 28px);
  font-size: clamp(11px, 1.15vw, 15px); font-weight: 500; letter-spacing: .5em; text-transform: uppercase;
  margin-right: -.5em; /* компенсация трекинга последней буквы */
  animation: rise 1.2s var(--ease) .25s both;
}
.hero__tagline {
  max-width: 560px; margin: clamp(36px, 5vw, 64px) 0 clamp(32px, 4vw, 44px);
  font-family: var(--ff-serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3;
  animation: rise 1.2s var(--ease) .4s both;
}
.hero .btn { animation: rise 1.2s var(--ease) .55s both; }
.hero__scroll { position: absolute; left: 50%; bottom: 32px; width: 1px; height: 64px; transform: translateX(-50%); overflow: hidden; }
.hero__scroll::before { content: ""; position: absolute; inset: 0; background: rgba(243, 244, 240, .25); }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--c-smoke); animation: scroll-line 2.2s var(--ease) infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scroll-line { to { top: 100%; } }

/* ==========================================================================
   Intro (текстовый блок 1)
   ========================================================================== */
.intro { padding: var(--section-y) 0 calc(var(--section-y) * .7); text-align: center; background: var(--c-smoke); }
.intro .h2 { margin-bottom: 32px; }
.intro .lead { max-width: 640px; margin-inline: auto; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 8vw, 112px);
  text-align: left;
}
.facts__item {
  padding: 28px 28px 0 0;
  border-top: 1px solid var(--c-line);
  font-size: 15px; line-height: 1.5; color: var(--c-myrtle);
}
.facts__item + .facts__item { padding-left: 28px; border-left: 1px solid var(--c-line); }
.facts__num { display: block; margin-bottom: 14px; font-family: var(--ff-serif); font-size: 30px; line-height: 1; color: var(--c-copper); }

/* ==========================================================================
   Story (текстовый блок 2)
   ========================================================================== */
.story {
  position: relative; overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--c-myrtle); color: var(--c-smoke); text-align: center;
}
.story__sheep {
  position: absolute; right: -6%; bottom: -14%;
  width: clamp(320px, 42vw, 640px);
  color: var(--c-smoke); opacity: .06;
  pointer-events: none;
}
.story__inner { position: relative; }
.story .h2 { margin-bottom: 32px; }
.story .lead { max-width: 600px; margin: 0 auto 48px; color: rgba(243, 244, 240, .72); }

/* ==========================================================================
   Catalog
   ========================================================================== */
.catalog { padding: var(--section-y) 0; background: var(--c-white); }
.catalog__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.catalog__head .eyebrow { margin-bottom: 20px; }
.catalog__head .eyebrow::before { content: none; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--c-line); border-radius: 999px; }
.tabs.is-single { display: none; }
.tabs__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.tabs__btn:hover { color: var(--c-myrtle); }
.tabs__btn[aria-selected="true"] { background: var(--c-myrtle); color: var(--c-smoke); }
.tabs__badge { padding: 2px 8px; border-radius: 999px; background: rgba(169, 81, 50, .12); color: var(--c-copper); font-size: 10px; letter-spacing: .08em; }
.tabs__btn[aria-selected="true"] .tabs__badge { background: rgba(243, 244, 240, .16); color: var(--c-smoke); }

.catalog__panel:focus-visible { outline-offset: 8px; }
.catalog__panel:not([hidden]) { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.product__link { display: flex; flex-direction: column; height: 100%; }
.product__media {
  position: relative; overflow: hidden;
  aspect-ratio: 1; background: #ECEAE6;
}
.product__media::after { /* цветная кодировка продукта — тонкая полоса снизу */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.product__link:hover .product__media img { transform: scale(1.05); }
.product__link:hover .product__media::after { transform: scaleX(1); }
.product__badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 12px; border-radius: 999px; background: var(--c-smoke);
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-myrtle);
}
.product__body { display: flex; flex-direction: column; flex: 1; padding-top: 24px; }
.product__tag { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }
.product__tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.product__name { margin-bottom: 12px; font-family: var(--ff-serif); font-weight: 500; font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; }
.product__text { flex: 1; margin-bottom: 20px; font-size: 15px; line-height: 1.6; color: var(--c-muted); }
.product__more {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 4px; border-bottom: 1px solid var(--c-line);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.product__more::after { content: "→"; letter-spacing: 0; }
.product__link:hover .product__more { border-color: var(--c-myrtle); gap: 14px; }

.catalog__foot { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 80px); }

.soon {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 72px);
  background: var(--c-smoke); border: 1px solid var(--c-line);
}
.soon__sheep { flex: none; width: clamp(96px, 12vw, 160px); color: var(--c-myrtle); }
.soon__title { margin-bottom: 12px; font-family: var(--ff-serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.soon__text { max-width: 560px; color: var(--c-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(64px, 8vw, 104px) 0 32px; background: var(--c-black); color: rgba(243, 244, 240, .72); font-size: 15px; }
.footer a { transition: color .3s var(--ease); }
.footer a:hover { color: var(--c-smoke); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.footer__logo { width: 190px; color: var(--c-smoke); margin-bottom: 28px; }
.footer__about { max-width: 320px; font-size: 14px; line-height: 1.7; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__title { margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--c-basil); }
.footer__big { font-family: var(--ff-serif); font-size: 26px; line-height: 1.2; color: var(--c-smoke); }
.footer__muted { color: rgba(243, 244, 240, .5); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials__link { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--c-line-light); border-radius: 50%; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.socials__link svg { width: 18px; height: 18px; fill: currentColor; }
.socials__link:hover { border-color: var(--c-smoke); }

.footer__docs {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  padding: 28px 0; border-top: 1px solid var(--c-line-light); border-bottom: 1px solid var(--c-line-light);
  font-size: 13px;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 28px; font-size: 12px; line-height: 1.7; color: rgba(243, 244, 240, .45); }
.footer__copy { white-space: nowrap; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; z-index: 60; left: 24px; bottom: 24px;
  display: flex; flex-direction: column; gap: 16px;
  width: min(420px, calc(100vw - 32px)); padding: 24px;
  background: var(--c-smoke); color: var(--c-myrtle);
  box-shadow: 0 20px 60px rgba(5, 7, 5, .22);
  font-size: 14px; line-height: 1.55;
  animation: rise .6s var(--ease) both;
}
.cookie a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.products [data-reveal]:nth-child(2) { transition-delay: .08s; }
.products [data-reveal]:nth-child(3) { transition-delay: .16s; }
.products [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header__aside { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .header__nav { justify-self: end; }
  .products { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer__top { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 40px; }
  .footer__logo { margin-bottom: 0; flex: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .header__nav { display: none; }
  .burger { display: block; }
  .header__sheep { width: 58px; }
  .header.is-scrolled .header__inner { height: 64px; }
  .header.is-scrolled .header__sheep { width: 46px; }
  .header__wordmark { width: 96px; }

  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__item:nth-child(n+3) { margin-top: 28px; }

  .catalog__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 100px; }
  .hero__descriptor { letter-spacing: .32em; margin-right: -.32em; }
  .hero__tagline { max-width: 320px; }
  .hero .btn { width: 100%; max-width: 320px; }

  .facts { grid-template-columns: 1fr; margin-top: 56px; }
  .facts__item, .facts__item + .facts__item, .facts__item:nth-child(n+3) { padding: 20px 0; border-left: 0; margin-top: 0; display: flex; gap: 20px; align-items: baseline; }
  .facts__item:last-child { border-bottom: 1px solid var(--c-line); }
  .facts__num { margin: 0; font-size: 24px; flex: none; }

  .story__sheep { right: -30%; bottom: -8%; width: 120vw; }

  .tabs { width: 100%; }
  .tabs__btn { flex: 1; justify-content: center; padding: 0 12px; font-size: 11px; letter-spacing: .06em; }

  /* карточки — горизонтальная лента со snap */
  .products {
    display: flex; gap: 16px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .products::-webkit-scrollbar { display: none; }
  .product { flex: 0 0 78%; scroll-snap-align: start; }
  .js .products [data-reveal] { transition-delay: 0s; }
  .catalog__foot .btn { width: 100%; }

  .soon { flex-direction: column; align-items: flex-start; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__logo { width: 160px; }
  .footer__col--contacts { grid-column: 1 / -1; }
  .footer__docs { flex-direction: column; gap: 14px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .cookie { left: 16px; bottom: 16px; padding: 20px; }
  .cookie .btn { flex: 1; }
}

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