/* ==========================================================================
   ADELE ENERGY — основные стили
   --------------------------------------------------------------------------
   Всё оформление управляется переменными в блоке :root ниже.
   Чтобы поменять фирменный цвет, достаточно изменить --red.
   ========================================================================== */

/* ----------------------------- 1. ПЕРЕМЕННЫЕ ----------------------------- */
:root {
  /* Фирменные цвета (красный снят с оригинального логотипа) */
  --red:        #E30613;
  --red-dark:   #BE0510;
  --red-soft:   #FDEBEC;

  /* Текст */
  --ink:        #373736;   /* заголовки — цвет надписи в логотипе */
  --body:       #555555;   /* основной текст */
  --muted:      #8A8A8A;   /* второстепенный */

  /* Фоны */
  --bg:         #FFFFFF;
  --bg-soft:    #F5F5F5;
  --dark:       #16222E;   /* тёмная подложка / оверлей героя */
  --dark-2:     #1D2C3A;

  /* Границы */
  --line:       #E0E0E0;
  --line-dark:  rgba(255, 255, 255, .16);

  /* Геометрия */
  --radius:     10px;
  --radius-sm:  7px;
  --container:  1240px;
  --section-y:  110px;

  --shadow:     0 10px 34px rgba(22, 34, 46, .10);
  --shadow-lg:  0 22px 60px rgba(22, 34, 46, .18);
  --transition: .25s cubic-bezier(.4, 0, .2, 1);

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------- 2. СБРОС ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--red); text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.32rem; font-weight: 700; }

p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }

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

/* ----------------------------- 3. СЕТКА ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow { max-width: 1010px; }

.section { padding: var(--section-y) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 74px 0; }

/* «Энергия будущего» — узкий центрированный блок с текстом слева */
.intro { max-width: 620px; margin: 0 auto 0 0; padding-left: 18%; }
@media (max-width: 1100px) { .intro { padding-left: 8%; } }
@media (max-width: 700px)  { .intro { padding-left: 0; margin: 0 auto; } }

.rule {
  width: 58px;
  height: 5px;
  margin-bottom: 26px;
  border-radius: 3px;
  background: var(--red);
}

.intro h2 { text-transform: uppercase; letter-spacing: .01em; }
.intro p { color: var(--body); }

/* ----------------------------- 4. КНОПКИ --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(227, 6, 19, .32);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--red-soft); color: var(--red-dark); }

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Ссылка «Подробнее →» */
.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
}
.more .more__arrow { transition: transform var(--transition); }
.more:hover { color: var(--red); }
.more:hover .more__arrow { transform: translateX(5px); }

/* ----------------------------- 5. ШАПКА ---------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}

/* Прозрачная шапка поверх героя (только на главной) */
.header--over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
}

.header--over .nav a,
.header--over .lang { color: #fff; }
.header--over .nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.header--over .nav a.is-active { color: #fff; }
.header--over .nav a.is-active::after { background: #fff; }
.header--over .burger { border-color: rgba(255, 255, 255, .45); }
.header--over .burger span { background: #fff; }

/* Состояние после прокрутки — шапка становится белой */
.header.is-stuck {
  position: fixed;
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 4px 22px rgba(22, 34, 46, .10);
}
.header.is-stuck .nav a,
.header.is-stuck .lang { color: var(--ink); }
.header.is-stuck .nav a:hover { color: var(--red); background: var(--red-soft); }
.header.is-stuck .nav a.is-active { color: var(--red); }
.header.is-stuck .nav a.is-active::after { background: var(--red); }
.header.is-stuck .burger { border-color: var(--line); }
.header.is-stuck .burger span { background: var(--ink); }

/* Логотип.
   Два файла: тёмная надпись — для светлого фона, белая — для фотографии. */
.logo { display: flex; align-items: center; flex: none; }
.logo:hover { opacity: .85; }

.logo__img { display: block; width: auto; height: 26px; }

.logo__img--dark  { display: block; }
.logo__img--light { display: none; }

.header--over:not(.is-stuck) .logo__img--dark  { display: none; }
.header--over:not(.is-stuck) .logo__img--light { display: block; }

.header.is-stuck .logo__img--dark  { display: block; }
.header.is-stuck .logo__img--light { display: none; }

/* Навигация */
.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav a:hover { color: var(--red); background: var(--red-soft); }

.nav a.is-active { color: var(--red); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

/* Выбор языка */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px;
  font-size: .94rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.lang:hover { color: var(--red); }
.lang__caret { font-size: .7em; opacity: .8; }

/* Кнопка-гамбургер */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------- 6. ГЕРОЙ ---------------------------------- */
/* Высота растёт вместе с шириной экрана: так фотография 2:1 обрезается
   минимально и на широких мониторах не теряет колёса автомобиля. */
.hero {
  position: relative;
  display: flex;
  min-height: clamp(520px, 50vw, 860px);
  padding: 150px 0 46px;
  overflow: hidden;
  background: var(--dark);
}

/* Фотография — нижний слой. Видна, пока видео не загрузилось,
   и остаётся, если видео отсутствует или отключено. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

/* Фоновое видео героя.
   ------------------------------------------------------------------------
   Файл video/hero.mp4 — горизонтальный, 1280 x 720 (16:9), без поворота.
   object-fit: cover заполняет блок героя и аккуратно подрезает лишнее
   по краям, поэтому никаких чёрных полей и никакого зума не нужно.

   Если поставите видео другого соотношения — просто замените файл,
   cover подстроится сам. */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Затемнение поверх фото или видео — под белый заголовок и панель продукции */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 18, 28, .52) 0%, rgba(9, 18, 28, .18) 45%, rgba(9, 18, 28, .46) 100%);
}

/* Заголовок сверху, панель продукции снизу — как в макете */
.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  width: 100%;
}

.hero__head { max-width: 800px; }

.hero__title {
  margin: 0 0 .25em;
  color: #fff;
  font-size: clamp(2rem, 3.9vw, 3.1rem);
  font-weight: 800;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}

.hero__subtitle {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.72rem);
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

/* Панель с продукцией внизу героя.
   Параметры взяты из Figma: 672 x 144, скругление 16,
   заливка FFFFFF 16 %, эффект Background blur. */
.hero__products {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 672px;
  max-width: 100%;
  height: 144px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.product {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 0 4px;
  border-radius: 10px;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.product:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  transform: translateY(-2px);
}

/* Продукция вырезана на прозрачном фоне, маска больше не нужна */
.product__thumb {
  display: block;
  width: 100%;
  max-width: 100px;
  height: 70px;
}
.product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .30));
}

.product__name {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}

/* ----------------------------- 7. КАРТОЧКИ ------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.cards { max-width: 1000px; margin: 0 auto; }

.card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 52px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: #c9c9c9;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 26px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}
.card p {
  flex: 1;
  margin: 0 0 34px;
  padding: 0 12px;
  font-size: .99rem;
  line-height: 1.62;
  color: var(--body);
}
.card .more { align-self: center; }

/* Иконка-заглушка вместо фото (используется на внутренних страницах) */
.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 800;
}

/* --------------------------- 8. КОНСУЛЬТАЦИЯ ----------------------------- */
.consult {
  display: grid;
  grid-template-columns: 335px 1fr;
  gap: 26px;
  align-items: stretch;
  max-width: 780px;
  margin: 0 auto;
}

.consult__photo {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 0;
}

.consult__form {
  padding: 28px 32px 30px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.consult__form h3 {
  margin-bottom: 14px;
  font-size: 1.22rem;
  font-weight: 800;
}
.consult__form > p {
  margin-bottom: 24px;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--body);
}

/* ----------------------------- 9. ФОРМЫ ---------------------------------- */
.form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder,
.field textarea::placeholder { color: #A9A9A9; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, .12);
}

.field textarea { min-height: 150px; resize: vertical; }

.field label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--red); }
.field .error { min-height: 0; color: var(--red-dark); font-size: .82rem; }

.field.has-error input,
.field.has-error textarea { border-color: var(--red); background: #FFF8F8; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
}
.checkbox input { width: auto; margin-top: 4px; flex: none; }
.checkbox label { font-weight: 400; font-size: .85rem; color: var(--muted); }

.form__note { margin: 0; font-size: .82rem; color: var(--muted); }

.alert {
  padding: 15px 20px;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  font-size: .93rem;
}
.alert--ok  { background: #E8F7EC; color: #1B7A38; border: 1px solid #A9E0BA; }
.alert--err { background: var(--red-soft); color: var(--red-dark); border: 1px solid #F3B6B3; }

/* ---------------------------- 10. КОНТАКТЫ ------------------------------- */
.contact-list { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 16px; }

.contact-list__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 1.15rem;
}
.contact-list b {
  display: block;
  margin-bottom: 2px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a, .contact-list span { font-size: 1rem; color: var(--ink); }
.contact-list a:hover { color: var(--red); }

/* ---------------------------- 11. ПОДВАЛ --------------------------------- */
.footer {
  padding-top: 66px;
  background: var(--bg-soft);
  font-size: .95rem;
}

/* Подвал: бренд, Продукция, Adele Energy, Соцсети */
.footer__grid {
  display: grid;
  grid-template-columns: 2.9fr 1fr 1fr .75fr;
  gap: 36px;
  padding-bottom: 58px;
}

.footer h4 {
  margin-bottom: 18px;
  font-size: .96rem;
  font-weight: 800;
  color: var(--red);
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer li a { color: #464646; font-size: .95rem; }
.footer li a:hover { color: var(--red); }

.footer .logo { margin-bottom: 0; }
.footer .logo__img { height: 28px; }

/* Красная полоса внизу */
.footer__bar {
  background: var(--red);
  color: #fff;
  font-size: .82rem;
}
/* Строка: копирайт слева, ссылки по центру */
.footer__bar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.footer__bar a { color: #fff; opacity: .92; }
.footer__bar a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.footer__bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-self: center;
}
.footer__bar-links span { opacity: .55; }

/* --------------------------- 12. ВНУТРЕННИЕ СТРАНИЦЫ --------------------- */
.page-head {
  padding: 70px 0 58px;
  background: var(--dark);
  color: #fff;
}
.page-head h1 {
  margin-bottom: 14px;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.page-head p { max-width: 660px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 1.05rem; }

.breadcrumbs { margin-bottom: 16px; font-size: .85rem; color: rgba(255, 255, 255, .68); }
.breadcrumbs a { color: rgba(255, 255, 255, .68); }
.breadcrumbs a:hover { color: #fff; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ------------------- Блок продукции на странице «Продукция» --------------
   Слева крупный рендер станции, справа описание с кнопками.
   У третьего блока порядок обратный (текст слева, рендер справа). */
.product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.product-row__media {
  display: grid;
  place-items: center;
  min-height: 320px;
}
.product-row__media img {
  width: auto;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.product-row__body h2 {
  margin-bottom: .55em;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.product-row__body p {
  max-width: 34em;
  color: var(--body);
}

/* Кнопки «Особенности» + «Спецификация» в одну строку */
.product-row .btn-row { align-items: center; margin-top: 6px; }

/* Текстовая ссылка-кнопка, например «Спецификация» */
.btn-link {
  display: inline-flex;
  align-items: center;
  padding: 15px 6px;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  color: var(--red);
  white-space: nowrap;
  cursor: pointer;
}
.btn-link:hover { color: var(--red-dark); }

/* Пометка «Made in KZ | CT-K3» под кнопками */
.made-in {
  margin: 26px 0 0;
  color: var(--ink);
  font-size: 1.02rem;
}
.made-in strong { font-weight: 800; }

.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 15px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--body); }
.feature-list li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--red);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: var(--bg-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr:last-child td { border-bottom: 0; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 70px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: .95rem; color: var(--body); }

.stat { text-align: center; }
.stat b {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--red);
}
.stat span { font-size: .9rem; color: var(--muted); }

/* CTA-полоса */
.cta {
  padding: 74px 0;
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { max-width: 620px; margin: 0 auto 30px; color: rgba(255, 255, 255, .82); }
.cta .btn-row { justify-content: center; }

/* Карта */
.map {
  overflow: hidden;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------------------------- 13. УТИЛИТЫ -------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-6 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head p { margin: 0; color: var(--body); }
.section-head .rule { margin-left: auto; margin-right: auto; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------- 14. АДАПТИВ -------------------------------- */
@media (max-width: 1080px) {
  :root { --section-y: 84px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.8fr 1fr 1fr; row-gap: 40px; }
  .card { min-height: auto; }
}

@media (max-width: 940px) {
  .grid--3 { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .card { min-height: auto; padding: 42px 28px 30px; }

  .burger { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 12px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 14px 14px; font-size: 1rem; }
  .header--over:not(.is-stuck) .nav a { color: var(--ink); }
  .header--over:not(.is-stuck) .nav a.is-active { color: var(--red); }
  .nav a.is-active::after { display: none; }
  .nav .lang { padding: 14px; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .consult { grid-template-columns: 1fr; }
  .consult__photo { min-height: 240px; max-height: 320px; }

  /* Блок продукции: рендер сверху, текст снизу — в обоих вариантах */
  .product-row { grid-template-columns: 1fr; gap: 34px; }
  .product-row--reverse .product-row__media { order: -1; }
  .product-row__media { min-height: 0; }
  .product-row__media img { max-height: 300px; }
}

@media (max-width: 700px) {
  :root { --section-y: 62px; }

  .container { padding: 0 20px; }

  .hero { min-height: 0; padding: 122px 0 30px; }

  /* Панель на телефоне переносится в две строки, высота — по содержимому */
  .hero__products {
    flex-wrap: wrap;
    gap: 10px 12px;
    height: auto;
    min-height: 0;
    padding: 18px 16px;
    border-radius: 14px;
  }
  .product { flex: 0 0 calc(50% - 6px); height: auto; }
  .product__thumb { max-width: 72px; height: 56px; }

  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__bar .container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 4px;
  }

  .card { padding: 36px 22px 28px; }
  .consult__form { padding: 24px 20px; }

  .btn-row { flex-direction: column; }
  .btn { width: 100%; }
}

@media (max-width: 460px) {
  .footer__grid { grid-template-columns: 1fr; }
  /* На узких экранах оставляем по два продукта в ряд */
  .product { flex: 0 0 calc(50% - 6px); }
  .hero__products { padding: 16px 12px; gap: 8px; }
  .product__thumb { height: 50px; }
  .product__name { font-size: .84rem; }
}

/* Уважаем настройку «уменьшить движение»: вместо видео остаётся фотография */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}

/* ---------------------------- 15. ПЕЧАТЬ --------------------------------- */
@media print {
  .header, .footer, .cta, .burger, .hero__products, .hero__video { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .card, .table-wrap { box-shadow: none; border-color: #999; }
}


/* ==========================================================================
   16. СТРАНИЦА СТАНЦИИ (Nova AC и аналогичные)
   ========================================================================== */

/* Мелкая серая подпись над заголовком блока */
.kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: .88rem;
}

/* Заголовок блока: по центру или слева */
.block-head { max-width: 780px; margin: 0 auto 50px; text-align: center; }
.block-head h2 { margin-bottom: 0; }
.block-head--left { max-width: 820px; margin: 0 0 46px; text-align: left; }
.block-head--left .rule { margin-left: 0; }

/* -------------------------- Преимущества в карточках --------------------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.adv-card {
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FBFBFB;
}
.adv-card__icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--ink); }
.adv-card__icon svg { display: block; width: 100%; height: 100%; }
.adv-card h3 { margin-bottom: 10px; font-size: 1rem; }
.adv-card p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--body); }

/* ------------------------------- Блок «Дизайн» --------------------------- */
.design-grid {
  display: grid;
  grid-template-columns: 250fr 251fr;
  grid-template-rows: 199fr 186fr;
  gap: 14px;
  max-width: 720px;
  aspect-ratio: 513 / 406;
  margin: 0 auto;
}
.design-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.design-grid__tall { grid-row: 1 / span 2; }

/* -------------------- Список возможностей станции ------------------------ */
.feature-rows { display: grid; gap: 28px; max-width: 740px; margin: 0 auto; }
.feature-rows h3 { margin-bottom: 7px; font-size: 1rem; }
.feature-rows p { margin: 0; font-size: .95rem; color: var(--body); }

/* ------------------------ Технические характеристики --------------------- */
.spec-layout { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; }

.spec-media { display: grid; justify-items: center; gap: 18px; }
.spec-media img { width: auto; max-height: 330px; }

.spec-3d {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}
.spec-3d:hover { color: var(--red-dark); }

.spec-body h3 { margin: 0 0 18px; font-size: 1.18rem; }
.spec-body h3:not(:first-child) { margin-top: 44px; }
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.spec-list { margin: 0; }
.spec-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { margin-bottom: 3px; color: var(--ink); font-size: .92rem; font-weight: 700; }
.spec-list dd { margin: 0; color: var(--body); font-size: .91rem; line-height: 1.5; }

/* ------------------------------ Документация ----------------------------- */
.docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 250px));
  gap: 24px;
  justify-content: center;
}
.doc-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.doc-card__icon { width: 40px; height: 48px; color: var(--ink); }
.doc-card__icon svg { display: block; width: 100%; height: 100%; }
.doc-card h3 { margin: 0; font-size: 1rem; }
.doc-card .doc-dl {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}
.doc-card .doc-dl:hover { color: var(--red-dark); }

/* ------------------------ Карточки других станций ------------------------ */
.station-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 660px;
}
.station-card {
  padding: 24px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
}
.station-card img {
  width: auto;
  height: 168px;
  margin: 0 auto 22px;
  object-fit: contain;
}
.station-card h3 { margin-bottom: 12px; font-size: 1.02rem; }
.station-card p { margin-bottom: 18px; font-size: .92rem; color: var(--body); }
.station-card .card-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .92rem;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}
.station-card .card-link:hover { color: var(--red-dark); }

/* ------------------------------- Адаптив --------------------------------- */
@media (max-width: 1080px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-layout { grid-template-columns: 210px 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .spec-layout { grid-template-columns: 1fr; gap: 36px; }
  .spec-media { justify-items: start; }
  .spec-media img { max-height: 250px; }
  .spec-cols { gap: 0 28px; }
  .station-cards { max-width: none; }
}

@media (max-width: 700px) {
  .adv-grid { grid-template-columns: 1fr; }
  .design-grid { gap: 8px; }
  .spec-cols { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .station-cards { grid-template-columns: 1fr; }
  .feature-rows { gap: 22px; }
}


/* ==========================================================================
   17. СТРАНИЦА «КОНТАКТЫ»
   ========================================================================== */

.contacts-head { padding-bottom: 56px; text-align: center; }
.contacts-head h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
}

.contacts-map { padding-top: 0; }

/* Карта — картинка, адреса лежат поверх неё в тех же пропорциях */
.map-wrap { position: relative; max-width: 1005px; margin: 0 auto; }
.map-wrap__img { display: block; width: 100%; height: auto; }

.map-offices {
  position: absolute;
  left: 3.9%;
  top: 33%;
  width: 47%;
}

.office + .office { margin-top: 30px; }
.office h2 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  font-weight: 800;
}
.office p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(.86rem, 1.2vw, 1.02rem);
  line-height: 1.75;
}
.office a { color: var(--ink); }
.office a:hover { color: var(--red); }

@media (max-width: 820px) {
  /* На узких экранах текст уходит под карту, наложение больше не нужно */
  .map-offices { position: static; width: auto; margin-top: 26px; }
  .map-wrap { max-width: 100%; }
  .office h2 { font-size: 1.1rem; }
  .office p { font-size: .95rem; }
  .contacts-head { padding-bottom: 34px; }
}


/* Знак «Сделано в Казахстане» в панели продукции */
@media (min-width: 701px) {
  .product--badge { border-left: 1px solid rgba(255, 255, 255, .22); }
}
.product--badge .product__thumb { max-width: 88px; height: 62px; }
.product--badge .product__thumb img { filter: none; }


/* ==========================================================================
   18. СТРАНИЦА «ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ»
   ========================================================================== */

.legal-head { padding-bottom: 34px; text-align: center; }
.legal-head h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
}

.legal { max-width: 760px; margin: 0 auto; }

.legal p {
  margin: 0 0 1.15em;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}

.legal h2 {
  margin: 1.7em 0 .55em;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.legal ul {
  margin: 0 0 1.15em;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}
.legal li { padding-left: 1.1em; text-indent: -1.1em; }
.legal li::before { content: "- "; }

.legal__back { margin: 52px 0 0; }
.legal__back a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__back a:hover { color: var(--red-dark); }
