/* ============================================================
   ООО «Виктория» — производство полиэтиленовых пакетов, рециклинг
   Дизайн-система сайта. Обычный CSS, без фреймворков.
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */
:root {
  --navy-950: #06182B;
  --navy-900: #0A2440;
  --navy-800: #0E3357;
  --navy-700: #14406B;

  --blue-700: #085E92;
  --blue-600: #0B72B4;   /* основной синий (развитие #0079af) */
  --blue-500: #1B87C9;
  --blue-400: #4FA9DA;
  --blue-100: #DCEEF9;
  --blue-50:  #F1F8FC;

  --red-600: #C81F33;    /* акцентный красный (развитие #cc1526) */
  --red-500: #DE3145;

  --ink-900: #0A2440;    /* заголовки */
  --ink-700: #31414E;    /* основной текст */
  --ink-500: #5A6B77;    /* вторичный текст */
  --ink-300: #5E7386;

  --line: #E3EAF0;
  --line-soft: #EDF2F6;
  --bg: #FFFFFF;
  --bg-tint: #F5F9FC;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-1: 0 1px 2px rgba(10, 36, 64, .05), 0 4px 14px rgba(10, 36, 64, .06);
  --shadow-2: 0 6px 18px rgba(10, 36, 64, .09), 0 20px 44px rgba(10, 36, 64, .10);
  --shadow-3: 0 14px 34px rgba(10, 36, 64, .16), 0 34px 80px rgba(10, 36, 64, .18);

  --container: 1280px;
  --header-h: 100px;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  color: var(--ink-900);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 1.05rem + .5vw, 1.45rem); letter-spacing: -.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-700); }

/* Ссылки в бегущем тексте различаются не только цветом (WCAG 1.4.1) */
p a, .prose li a, .requisites td a {
  text-decoration: underline;
  text-underline-offset: .16em;
}

/* Ссылка «К содержанию» — первый фокусируемый элемент страницы */
.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 130;
  padding: 10px 18px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  transition: top .2s ease;
}
.skip-link:hover { color: #fff; }
.skip-link:focus { top: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

strong { color: var(--ink-900); font-weight: 700; }

::selection { background: var(--blue-100); color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(56px, 5vw + 28px, 104px) 0; }
.section--tint { background: var(--bg-tint); }
.section--tight { padding: clamp(40px, 3vw + 20px, 64px) 0; }

.section-head { max-width: 780px; margin-bottom: clamp(28px, 3vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin: 0; color: var(--ink-500); font-size: 1.08rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-600);
  flex: none;
}

.text-accent { color: var(--red-600); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { flex: none; }
.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 114, 180, .32);
}
.btn--primary:hover {
  background: var(--blue-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 114, 180, .38);
}
.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: #C6D5E0;
}
.btn--ghost:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
  transform: translateY(-2px);
}
.btn--white {
  background: #fff;
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(6, 24, 43, .35);
}
.btn--white:hover { color: var(--blue-700); transform: translateY(-2px); }
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--outline-white:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-1); }
/* При открытом меню шапка (и бургер-крест в ней) — над оверлеем меню */
.header.is-menu-open { z-index: 120; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
}

/* Логотип-локап */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  flex: none;
}
.brand:hover { color: inherit; }
.brand__mark { flex: none; display: block; }
.footer .brand__mark {
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  /* высота текстового блока справа: название (~24px) + 2 строки подписи (~33px) */
  width: 57px;
  height: 57px;
}
.brand > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand__name {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--navy-900);
  line-height: 1.15;
  white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--red-600); }
.brand__tagline {
  display: block;
  font-size: .72rem;
  line-height: 1.35;
  color: var(--ink-500);
  max-width: 220px;
  letter-spacing: .015em;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}
.nav__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }
.nav__link {
  display: inline-block;
  padding: 9px 8px;
  border-radius: 10px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-50); }
.nav__link.is-active { color: var(--blue-700); background: var(--blue-50); position: relative; }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px; bottom: 4px;
  height: 3px;
  border-radius: 2px;
  background: var(--red-600);
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  color: inherit;
}
.header__phone strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy-900);
  white-space: nowrap;
}
.header__phone:hover strong { color: var(--blue-700); }

.header__call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue-600);
  flex: none;
}
.header__call:hover { color: var(--blue-700); border-color: var(--blue-400); }

/* Бургер */
.burger {
  display: none;
  position: relative;
  z-index: 120;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex: none;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 110px 28px 40px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .28s ease, transform .28s ease, visibility 0s; }
.mobile-menu__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}
.mobile-menu__list a {
  display: block;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
}
.mobile-menu__list a:hover { color: var(--blue-700); }
.mobile-menu__list a.is-active { color: var(--blue-700); }
.mobile-menu__phone { display: block; font-size: 1.3rem; font-weight: 800; color: var(--navy-900); }
.mobile-menu__mail { display: block; margin-top: 6px; color: var(--ink-500); }
.mobile-menu__note { margin-top: 18px; font-size: .9rem; color: var(--ink-500); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: .88rem;
  color: var(--ink-300);
}
.breadcrumbs a { color: var(--ink-500); font-weight: 600; }
.breadcrumbs a:hover { color: var(--blue-700); }
.breadcrumbs .sep { color: #C3CFD8; }
.breadcrumbs [aria-current] { color: var(--blue-700); font-weight: 600; }

/* ---------- Обложка внутренней страницы ---------- */
.page-hero {
  position: relative;
  padding: clamp(44px, 4vw + 20px, 84px) 0 clamp(40px, 3.5vw + 16px, 68px);
  background:
    radial-gradient(900px 420px at 88% -60%, rgba(79, 169, 218, .16), transparent 62%),
    radial-gradient(700px 360px at -8% 120%, rgba(11, 114, 180, .10), transparent 60%),
    var(--bg-tint);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 114, 180, .13) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, rgba(0,0,0,.5), transparent 46%);
  -webkit-mask-image: linear-gradient(115deg, rgba(0,0,0,.5), transparent 46%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero__lead {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
  color: var(--ink-500);
}

/* ---------- Герой главной ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 560px at 90% -20%, rgba(79, 169, 218, .18), transparent 64%),
    radial-gradient(800px 460px at -10% 110%, rgba(11, 114, 180, .08), transparent 58%),
    linear-gradient(180deg, #FBFDFE 0%, #FFFFFF 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 114, 180, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 114, 180, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(860px 560px at 74% 40%, rgba(0,0,0,.75), transparent 72%);
  -webkit-mask-image: radial-gradient(860px 560px at 74% 40%, rgba(0,0,0,.75), transparent 72%);
  pointer-events: none;
}
/* Грид героя: строка 1 — рубрика, строка 2 — заголовок с кнопкой.
   Визуал занимает строку 2, поэтому подложка идёт точно от верха h1 до низа кнопки. */
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0 clamp(28px, 3.5vw, 52px);
  padding-block: clamp(56px, 6vw + 24px, 116px) clamp(48px, 5vw + 20px, 96px);
}
.hero__eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
.hero__text { grid-column: 1; grid-row: 2; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--blue-600); }
.hero__lead {
  max-width: 560px;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  color: var(--ink-500);
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Визуал героя: веер из трёх пакетов (единый вид на всех экранах) на синей подложке */
.hero__visual {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: clamp(20px, 2.2vw, 30px) clamp(10px, 1.4vw, 22px);
  min-width: 0;
}
.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--blue-50), var(--blue-100) 58%, rgba(220, 238, 249, .45));
  border-radius: 32px;
}
.hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 42%;
  min-width: 0;
  margin: 0;
  background: #fff;
  border-radius: 18px;
  padding: 8px 8px 10px;
  box-shadow: var(--shadow-3);
  transition: transform .4s cubic-bezier(.22, .8, .3, 1);
  /* Координаты веера дробные; без постоянного слоя Chrome при старте/конце
     transform-перехода пересобирает карточку с другой привязкой к пикселям —
     пакет «дёргается» по горизонтали после подъёма */
  will-change: transform;
}
/* Бокс изображения тянется по высоте карточки, contain вписывает снимки
   разных пропорций без искажений */
.hero__card img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
}
/* В веере карточки перекрывают друг друга — подписи не показываем */
.hero__card figcaption { display: none; }
.hero__card--2, .hero__card--3 { margin-left: -9%; }
/* Сдвиг до поворота: подъём строго вертикальный; translate внутри повёрнутой
   системы координат давал боковой дрейф ~1px у соседних пакетов */
.hero__card--1 { transform: translateY(12px) rotate(-7deg); z-index: 2; }
.hero__card--2 { transform: translateY(0) rotate(0); z-index: 3; }
.hero__card--3 { transform: translateY(12px) rotate(7deg); z-index: 1; }
@media (min-width: 721px) and (hover: hover) {
  .hero__visual:hover .hero__card--1 { transform: translateY(4px) rotate(-7deg); }
  .hero__visual:hover .hero__card--2 { transform: translateY(-8px) rotate(0); }
  .hero__visual:hover .hero__card--3 { transform: translateY(4px) rotate(7deg); }
}
/* Закрытие веера с паузой (гистерезис): у кромки подложки курсор то входит,
   то выходит — без паузы пакеты дёргаются вверх-вниз на каждое пересечение.
   Открытие остаётся мгновенным. */
.hero__visual:not(:hover) .hero__card { transition-delay: .35s; }

/* ---------- Карточки продукции ---------- */
.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
/* В карточке с графикой анимируется только изображение */
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-tint);
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__media--contain img { object-fit: contain; padding: 18px; }
.product-card__flag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--blue-700);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: var(--shadow-1);
}
.product-card__flag--red { color: var(--red-600); }
.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 26px;
}
.product-card__body h3 { margin-bottom: .4em; }
.product-card__body p { color: var(--ink-500); font-size: .97rem; }
.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 18px;
  padding: 0;
  list-style: none;
}
.product-card__specs li {
  margin: 0;
  padding: 6px 12px;
  background: var(--bg-tint);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-700);
}
.product-card__footer {
  margin-top: auto;
  padding-top: 6px;
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-600);
}
.product-card__link svg { transition: transform .2s ease; }
.product-card__link:hover svg { transform: translateX(4px); }

/* Большая двухколоночная продуктовая панель */
.product-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
}
.product-split__media { position: relative; min-height: 380px; background: var(--bg-tint); }
.product-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-split__media--fit { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 60px); background: #fff; }
.product-split__media--fit img { position: static; inset: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.product-split__body { padding: clamp(28px, 3.4vw, 52px); align-self: center; }

/* Коллаж серийных образцов в product-split */
.serial-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(8px, 1vw, 14px);
  padding: clamp(16px, 2vw, 28px);
  background: #fff;
}
.serial-collage img {
  position: static;
  inset: auto;
  width: auto;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 4px 10px rgba(10, 36, 64, .12));
  transition: transform .4s cubic-bezier(.22, .8, .3, 1);
}
.serial-collage img:hover { transform: scale(1.05); z-index: 1; }

/* Пара образцов в карточке продукции */
.product-card__media--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(8px, 1vw, 12px);
  padding: clamp(16px, 1.8vw, 22px);
  background: var(--bg-tint);
}
.product-card__media--pair img { object-fit: contain; }

/* Перекрёстная ссылка между разделами галереи */
.gallery-cross {
  margin-top: clamp(30px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 40px);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
}
.gallery-cross h2 { margin: 0 0 8px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.gallery-cross p { margin: 0; max-width: 620px; color: var(--ink-500); }
.gallery-cross .btn { flex-shrink: 0; }

/* ---------- Преимущества ---------- */
/* Текстовая карточка: hover-анимация как у карточек «Самое нужное» на mts.ru —
   плавный чистый scale 1.05, без подъёма и тени */
.feature-card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
  /* Постоянный слой: без него Chrome пересобирает карточку при старте/конце
     scale-перехода, и svg-иконка дёргается внутри .feature-card__icon */
  will-change: transform;
}
.feature-card:hover { transform: scale(1.05); }
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-800));
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 114, 180, .30);
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: .45em; }
.feature-card p { margin: 0; font-size: .94rem; color: var(--ink-500); }

/* ---------- Шаги ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
}
.step:hover { transform: scale(1.05); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  margin-bottom: 14px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--red-600);
}
.step h3 { font-size: 1.08rem; margin-bottom: .4em; }
.step p { margin: 0; font-size: .92rem; color: var(--ink-500); }

/* ---------- Рециклинг-блок (тёмная панель) ---------- */
.eco-band {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    radial-gradient(760px 380px at 108% -30%, rgba(79, 169, 218, .35), transparent 60%),
    radial-gradient(560px 320px at -12% 128%, rgba(200, 31, 51, .28), transparent 58%),
    linear-gradient(150deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
  color: #E7F0F7;
  padding: clamp(34px, 4vw, 64px);
  box-shadow: var(--shadow-2);
}
.eco-band h2, .eco-band h3 { color: #fff; }
.eco-band p { color: #C4D5E4; }
.eco-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.eco-band__list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.eco-band__list li {
  display: flex;
  gap: 12px;
  margin: 0;
  color: #DCE9F4;
  font-size: .98rem;
}
.eco-band__list svg { flex: none; margin-top: 3px; color: var(--blue-400); }
.eco-band__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.eco-band__photos img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .4s cubic-bezier(.22, .8, .3, 1);
}
.eco-band__photos img:hover { transform: scale(1.05); z-index: 1; }
.eco-band__caption { margin-top: 12px; font-size: .84rem; color: #9FB6C9; }

/* ---------- CTA-полоса ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    radial-gradient(700px 340px at 110% 130%, rgba(200, 31, 51, .4), transparent 55%),
    radial-gradient(600px 300px at -8% -40%, rgba(79, 169, 218, .38), transparent 60%),
    linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: clamp(36px, 4vw, 60px);
  box-shadow: var(--shadow-2);
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
}
/* Текстовый баннер: hover как у карточек «Самое нужное» на mts.ru — чистый scale */
.cta-band:hover { transform: scale(1.05); }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #C4D5E4; max-width: 560px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band__phone {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.cta-band__phone:hover { color: var(--blue-400); }
.cta-band__mail { color: #A9C4DB; font-weight: 600; }
.cta-band__mail:hover { color: #fff; }

/* ---------- Аккордеон FAQ ---------- */
.accordion { display: grid; gap: 14px; }
.ac-item {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ac-item.is-open { border-color: var(--blue-100); box-shadow: var(--shadow-2); }
.ac-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 21px 24px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink-900);
}
.ac-trigger:hover { color: var(--blue-700); }
.ac-trigger .ac-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  transition: transform .3s ease, background .2s ease, color .2s ease;
}
.ac-item.is-open .ac-icon { transform: rotate(45deg); background: var(--red-600); color: #fff; }
.ac-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.3, .7, .3, 1);
}
.ac-panel__inner {
  padding: 0 24px 24px;
  color: var(--ink-700);
  font-size: .99rem;
}
.ac-panel__inner p:last-child { margin-bottom: 0; }

/* ---------- Галерея ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.g-item {
  position: relative;
  border: 0;
  padding: 0;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-1);
  font: inherit;
  text-align: left;
}
/* Анимируется только изображение, карточка и подпись неподвижны */
.g-item__img {
  aspect-ratio: 3 / 4;
  width: 100%;
  padding: clamp(14px, 1.8vw, 22px);
  object-fit: contain;
  background: var(--bg-tint);
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}
.g-item:hover .g-item__img { transform: scale(1.05); }
.g-item__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 16px 14px;
  background: linear-gradient(transparent, rgba(6, 24, 43, .55) 30%, rgba(6, 24, 43, .88));
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(6, 24, 43, .55);
}
.g-item__cap span { display: block; font-weight: 500; font-size: .78rem; color: #DCE7F0; text-shadow: 0 1px 3px rgba(6, 24, 43, .55); }

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(6, 20, 35, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.lightbox__img {
  max-width: min(92vw, 760px);
  max-height: 84vh;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  transform: scale(.97);
  transition: transform .25s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__cap {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: #D7E4EF;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  max-width: 80vw;
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); transform: scale(1.06); }
.lightbox__btn--close { top: 26px; right: 26px; }
.lightbox__btn--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__btn--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next:hover { transform: translateY(-50%) scale(1.06); }

/* ---------- Текстовые страницы (prose) ---------- */
.prose {
  max-width: 820px;
  font-size: 1.03rem;
}
.prose h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--blue-600); font-weight: 700; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 16px 22px;
  border-left: 4px solid var(--blue-600);
  background: var(--bg-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-700);
}
.prose .note {
  padding: 18px 22px;
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  border-radius: var(--radius-md);
  font-size: .96rem;
}
.prose .note b { color: var(--navy-900); }

/* Инфо-карточки статей */
.article-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
}
.article-card:hover { transform: scale(1.05); }
.article-card__tag {
  margin-bottom: 14px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--red-600);
}
.article-card h3 { font-size: 1.08rem; }
.article-card p { flex: 1; margin: 0 0 16px; font-size: .93rem; color: var(--ink-500); }
.article-card__link { font-weight: 700; font-size: .93rem; }

/* Список с галочками */
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  margin: 0;
  padding-left: 34px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230B72B4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid var(--blue-100);
}

/* ---------- Контакты ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}
.contact-card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.contact-card__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.contact-card__label svg { color: var(--blue-600); }
.contact-card__value {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.45;
}
.contact-card__value a { color: inherit; }
.contact-card__value a:hover { color: var(--blue-700); }
.contact-card__extra { margin-top: 8px; font-size: .92rem; color: var(--ink-500); }

.requisites {
  margin-top: clamp(28px, 3vw, 44px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.requisites h2 { font-size: 1.25rem; }
.requisites table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.requisites th, .requisites td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; }
.requisites th { width: 220px; color: var(--ink-500); font-weight: 600; }
.requisites td { color: var(--navy-900); font-weight: 700; }

/* ---------- Подвал ---------- */
.footer {
  margin-top: clamp(56px, 5vw + 28px, 104px);
  background:
    radial-gradient(720px 340px at 106% -30%, rgba(79, 169, 218, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: #B9CBDA;
}
.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 3.5vw, 56px);
  padding: clamp(44px, 4vw, 68px) 0 clamp(32px, 3vw, 48px);
}
.footer .brand__name { color: #fff; }
.footer .brand__tagline { color: #8FA9BF; max-width: 230px; } /* 230px = 2 строки на широких экранах, как при ≤1300px */
.footer__about { margin-top: 18px; font-size: .93rem; max-width: 340px; color: #9FB6C9; }
.footer h4 {
  margin-bottom: 18px;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .95rem; }
.footer__list a { color: #B9CBDA; }
.footer__list a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 12px; font-size: .95rem; align-content: start; }
.footer__contacts a { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer__contacts a:hover { color: var(--blue-400); }
.footer__contacts span { color: #8FA9BF; font-size: .88rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  color: #7E96AB;
}
.footer__cookie {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color .18s;
}
.footer__cookie:hover { color: #fff; }

/* Cookie-плашка */
.cookie-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 150;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 14px 16px 14px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(6, 24, 43, .22);
  color: var(--navy-900);
  font-size: .92rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  transition:
    opacity .4s cubic-bezier(.22, .8, .3, 1),
    transform .4s cubic-bezier(.22, .8, .3, 1),
    visibility 0s linear .4s;
}
.cookie-note--show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition:
    opacity .4s cubic-bezier(.22, .8, .3, 1),
    transform .4s cubic-bezier(.22, .8, .3, 1),
    visibility 0s;
}
.cookie-note__text { margin: 0; }
.cookie-note .btn { flex: none; }

/* ---------- Появление при скролле ----------
   Анимация включается только при работающем JS (класс .js на <html>),
   иначе контент остаётся видимым без всяких условий. */
.js .reveal { opacity: 0; }
/* fill-mode backwards, а не forwards: после появления к transform ничего
   не прикреплено, иначе :hover-трансформации карточек не применяются. */
.js .reveal.is-visible {
  opacity: 1;
  animation: reveal-in .7s cubic-bezier(.22, .8, .3, 1) backwards;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
}

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

/* ---------- Адаптивность ---------- */
@media (max-width: 1300px) {
  :root { --header-h: 88px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__contact { margin-left: auto; }
  .brand__tagline { max-width: 230px; }

  .hero__inner { column-gap: 24px; padding-block: 44px 40px; }
  .hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.2vw, 2.55rem); }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* «Примеры фирменных пакетов» на production: при двух колонках третий образец не вписывается — прячем */
  #pakety-s-logotipom .grid--3 > .product-card:nth-child(3) { display: none; }

  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .eco-band__grid { grid-template-columns: 1fr; }
  .product-split { grid-template-columns: 1fr; }
  .product-split__media { min-height: 300px; }
  /* Панели с вписанным макетом пакета («О компании», «С логотипом»): показываем только шире 1300px */
  .product-split__media--fit { display: none; }
  /* Серийная продукция: в одну колонку оставляем только верхний ряд из 3 макетов */
  .serial-collage { grid-template-rows: 1fr; }
  .serial-collage img:nth-child(n + 4) { display: none; }

  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Герой в одну колонку уже с <1000px: визуал сверху, текст снизу */
@media (max-width: 999px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 22px; padding-block: 34px 40px; }
  .hero__eyebrow { grid-column: auto; grid-row: auto; margin-bottom: 0; }
  .hero__text { grid-column: auto; grid-row: auto; }
  /* Ширина веера ограничена размером десктопной колонки: пропорция 5/8
     на планшетной ширине иначе раздувает пакеты на весь первый экран */
  .hero__visual { grid-column: auto; grid-row: auto; order: -1; min-height: 0; padding: 16px 10px 18px; width: min(100%, 580px); margin-inline: auto; }
  .hero__visual::before { inset: 6% 2% 8%; }
  /* в одну колонку высота ряда не задана — пропорция вместо flex-растяжки */
  .hero__card img { flex: none; aspect-ratio: 5 / 8; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .brand__tagline { display: none; }
  .brand__name { font-size: 1.08rem; }
  .footer .brand__mark { width: 54px; height: 54px; }
  .header__phone strong { font-size: .98rem; }
  .header__inner { gap: 14px; }

  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  /* на мобильных примеры в одну колонку — третий образец возвращаем */
  #pakety-s-logotipom .grid--3 > .product-card:nth-child(3) { display: block; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .contact-grid { grid-template-columns: 1fr; }
  .requisites th { display: block; width: 100%; padding-bottom: 2px; }
  .requisites td { display: block; padding: 0 0 14px; }
  .requisites tr:last-child td { padding-bottom: 0; }

  .footer__main { grid-template-columns: 1fr; gap: 26px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .lightbox { padding: 14px; }
  .lightbox__btn--prev { left: 10px; }
  .lightbox__btn--next { right: 10px; }
  .lightbox__btn--close { top: 12px; right: 12px; }
  .lightbox__cap { bottom: 14px; font-size: .82rem; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .header__inner { gap: 10px; }
  .brand { gap: 10px; }
  .header__phone { display: none; }
  .header__call { display: inline-flex; width: 42px; height: 42px; }
  .brand__name { font-size: .95rem; }
  .brand__mark { width: 64px; height: 64px; }
  .burger { width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  /* Шапка не должна выталкивать бургер за пределы вьюпорта 320px */
  .brand { gap: 8px; }
  .brand__mark { width: 44px; height: 44px; }
  .header__inner { gap: 8px; }
  .header__call { width: 40px; height: 40px; }
  .burger { width: 40px; height: 40px; }
}

/* Уже 500px: основное меню есть в бургере — колонку «Меню» из футера убираем */
@media (max-width: 499px) {
  .footer__main > div:nth-child(2) { display: none; }
}
