/* ==========================================================================
   ВАТИН.РФ — фирменные стили
   Структура файла:
   1.  Шрифты и переменные
   2.  Сброс и базовые стили
   3.  Утилиты (контейнер, метки секций, «стежковый» разделитель)
   4.  Шапка сайта
   5.  Мобильное меню
   6.  Hero (первый экран)
   7.  О компании
   8.  Продукция + карточки
   9.  Модальное окно товара
   10. Контакты
   11. Подвал
   12. Кнопка «наверх» / вспомогательные элементы
   13. Анимации появления при скролле
   14. Адаптивная вёрстка
   ========================================================================== */

/* ==========================================================================
   1. ШРИФТЫ И ПЕРЕМЕННЫЕ
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Цветовая палитра */
  --color-bg: #0d1b2a;
  --color-bg-panel: #112236;
  --color-bg-panel-2: #1a3a5c;
  --color-accent: #e8a020;
  --color-accent-light: #f2bd57;
  --color-white: #f7f9fc;
  --color-text: #c3d3e3;
  --color-text-mute: #7f97b3;
  --color-border: rgba(154, 180, 209, 0.16);
  --color-glass: rgba(255, 255, 255, 0.035);
  --color-glass-strong: rgba(255, 255, 255, 0.07);

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

  /* Скругления и тени */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 20px 60px rgba(2, 8, 16, 0.45);
  --shadow-accent: 0 12px 32px rgba(232, 160, 32, 0.28);

  /* Переходы */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed-fast: 0.22s;
  --speed-mid: 0.4s;
  --speed-slow: 0.7s;

  /* Ширина контента */
  --container-w: 1320px;
}

/* ==========================================================================
   2. СБРОС И БАЗОВЫЕ СТИЛИ
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Фоновая «нить» — точечная сетка-текстура волокна вместо линий */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(154, 180, 209, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection { background: var(--color-accent); color: var(--color-bg); }

/* Видимый фокус для доступности с клавиатуры */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   3. УТИЛИТЫ
   ========================================================================== */

.wrap {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 128px 0;
}

.section--tight { padding: 96px 0; }
.section--alt { background: linear-gradient(180deg, rgba(17, 34, 54, 0.55), rgba(17, 34, 54, 0.15)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--color-accent);
}

.heading-2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.14;
  margin-bottom: 20px;
}
.heading-2 em {
  font-style: normal;
  color: var(--color-accent);
}

.lead {
  font-size: 17px;
  color: var(--color-text-mute);
  max-width: 620px;
}

.section-head {
  margin-bottom: 56px;
}

/* «Стежковая» линия — фирменный разделитель, отсылающий к иглопробивной прошивке ватина */
.stitch {
  border: none;
  height: 14px;
  position: relative;
  z-index: 1;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(232, 160, 32, 0.55) 0,
    rgba(232, 160, 32, 0.55) 10px,
    transparent 10px,
    transparent 22px
  );
  background-position: center;
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  opacity: 0.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 17px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform var(--speed-fast) var(--ease); }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(232, 160, 32, 0.4);
  background: var(--color-accent-light);
}
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { transform: translateY(-1px); }

.btn--ghost {
  background: var(--color-glass);
  border-color: var(--color-border);
  color: var(--color-white);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: rgba(232, 160, 32, 0.5); background: rgba(232, 160, 32, 0.08); }

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

.glass-card {
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

/* Появление элементов при прокрутке */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ==========================================================================
   4. ШАПКА
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(13, 27, 42, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--speed-mid) var(--ease), border-color var(--speed-mid) var(--ease), box-shadow var(--speed-mid) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(13, 27, 42, 0.92);
  border-color: var(--color-border);
  box-shadow: 0 12px 32px rgba(2, 8, 16, 0.35);
}

.site-header__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.brand__mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--color-accent), #c9800f);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--color-bg);
  flex-shrink: 0;
}
.brand__logo-img { height: 46px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--color-white); }
.brand__sub { font-size: 10.5px; color: var(--color-text-mute); text-transform: uppercase; letter-spacing: 0.14em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease);
  position: relative;
}
.main-nav a:hover { color: var(--color-white); background: var(--color-glass); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  display: inline-flex;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-glass);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--speed-fast) var(--ease), opacity var(--speed-fast) var(--ease);
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   5. МОБИЛЬНОЕ МЕНЮ
   ========================================================================== */

.mobile-nav {
  position: fixed;
  top: 88px; left: 0; right: 0;
  z-index: 890;
  background: rgba(11, 22, 36, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--speed-mid) var(--ease), opacity var(--speed-mid) var(--ease), visibility var(--speed-mid);
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav a {
  padding: 16px 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav .btn { margin-top: 16px; }

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 128px 0 64px;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('img/hero.jpg') center / cover no-repeat, linear-gradient(135deg, #0a1826, #10233a 45%, #0d1b2a 100%);
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 16, 26, 0.92) 0%, rgba(9, 19, 31, 0.82) 38%, rgba(9, 19, 31, 0.5) 66%, rgba(9, 19, 31, 0.28) 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(232, 160, 32, 0.1);
  border: 1px solid rgba(232, 160, 32, 0.32);
  margin-bottom: 30px;
}
.hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: var(--color-accent); }

.hero__desc {
  font-size: 18px;
  color: var(--color-text-mute);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(9, 18, 30, 0.55);
  backdrop-filter: blur(10px);
  max-width: 580px;
  overflow: hidden;
}
.hero__stat {
  padding: 20px 22px;
  border-right: 1px solid var(--color-border);
}
.hero__stat:last-child { border-right: none; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}
.hero__stat-num span { color: var(--color-accent); }
.hero__stat-label {
  font-size: 10.5px;
  color: var(--color-text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  line-height: 1.35;
}

/* Слайдер в hero */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
}
.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s var(--ease);
}
.hero-slider__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  background: linear-gradient(150deg, var(--color-bg-panel-2), var(--color-bg-panel));
}
.hero-slider__slide img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.hero-slider__slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 13, 22, 0.86) 0%, rgba(6, 13, 22, 0.05) 42%);
}
.hero-slider__caption {
  position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 2;
}
.hero-slider__tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.hero-slider__heading {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-white);
}

.hero-slider__nav {
  position: absolute;
  bottom: 24px; right: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-slider__arrow {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 18, 30, 0.55);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}
.hero-slider__arrow:hover { background: rgba(232, 160, 32, 0.35); border-color: var(--color-accent); }

.hero-slider__dots {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-slider__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--speed-fast) var(--ease);
}
.hero-slider__dot.is-active { width: 22px; border-radius: 4px; background: var(--color-accent); }

.hero__scroll-cue {
  position: absolute;
  left: 32px; bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 249, 252, 0.55);
}
.hero__scroll-line {
  width: 32px; height: 1px;
  background: rgba(247, 249, 252, 0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--color-accent);
  animation: scroll-line 2.4s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ==========================================================================
   7. О КОМПАНИИ
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
}

.about__copy p {
  font-size: 15.5px;
  color: var(--color-text);
  line-height: 1.85;
  margin-top: 18px;
}

.about__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--color-bg-panel-2), var(--color-bg-panel));
}
.about__figure img { width: 100%; height: 100%; object-fit: contain; }
.about__figure-badge {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(9, 18, 30, 0.72);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}
.about__figure-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-accent);
}
.about__figure-badge span { font-size: 12px; color: var(--color-text-mute); }

/* Карточки преимуществ */
.advantages {
  margin-top: 88px;
}
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.advantage-card {
  padding: 30px 28px;
  border-radius: var(--radius-md);
  transition: transform var(--speed-mid) var(--ease), border-color var(--speed-mid) var(--ease), background var(--speed-mid) var(--ease);
  position: relative;
}
.advantage-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 160, 32, 0.4);
  background: rgba(232, 160, 32, 0.045);
}
.advantage-card__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  display: block;
}
.advantage-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 10px;
}
.advantage-card__text {
  font-size: 14px;
  color: var(--color-text-mute);
  line-height: 1.7;
}

/* ==========================================================================
   8. ПРОДУКЦИЯ
   ========================================================================== */

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--speed-mid) var(--ease), border-color var(--speed-mid) var(--ease), box-shadow var(--speed-mid) var(--ease);
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 160, 32, 0.45);
  box-shadow: 0 24px 56px rgba(2, 8, 16, 0.5);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, var(--color-bg-panel-2), var(--color-bg-panel));
  overflow: hidden;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 6px;
}

.product-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__title {
  font-size: 18.5px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.product-card__desc {
  font-size: 14px;
  color: var(--color-text-mute);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.spec-chip {
  font-size: 12px;
  color: var(--color-text);
  background: rgba(154, 180, 209, 0.09);
  border: 1px solid var(--color-border);
  padding: 5px 11px;
  border-radius: 6px;
}
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--speed-fast) var(--ease);
}
.product-card:hover .product-card__cta { gap: 13px; }

/* ==========================================================================
   9. МОДАЛЬНОЕ ОКНО ТОВАРА
   ========================================================================== */

.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 9, 16, 0.86);
  backdrop-filter: blur(10px);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed-mid) var(--ease), visibility var(--speed-mid);
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transform: translateY(24px) scale(0.98);
  transition: transform var(--speed-mid) var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(9, 18, 30, 0.7);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--speed-fast) var(--ease);
}
.modal__close:hover { background: rgba(232, 160, 32, 0.35); }

.modal__gallery {
  position: relative;
  aspect-ratio: 16 / 8.5;
  background: var(--color-bg);
  overflow: hidden;
}
.modal__gallery-track { display: flex; height: 100%; transition: transform 0.5s var(--ease); }
.modal__gallery-slide {
  min-width: 100%; height: 100%;
  background: linear-gradient(150deg, var(--color-bg-panel-2), var(--color-bg));
}
.modal__gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.modal__gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 10px;
  background: rgba(9, 18, 30, 0.6);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background var(--speed-fast) var(--ease);
}
.modal__gallery-arrow:hover { background: rgba(232, 160, 32, 0.35); }
.modal__gallery-arrow--prev { left: 18px; }
.modal__gallery-arrow--next { right: 18px; }
.modal__gallery-counter {
  position: absolute; bottom: 18px; right: 18px;
  background: rgba(9, 18, 30, 0.75);
  color: var(--color-white);
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 20px;
}

.modal__body { padding: 40px 44px; }
.modal__title { font-size: 25px; margin-bottom: 18px; }
.modal__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.modal__desc { font-size: 15px; color: var(--color-text); line-height: 1.85; }
.modal__desc p + p { margin-top: 14px; }
.modal__desc strong { color: var(--color-white); }

.modal__order {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: rgba(232, 160, 32, 0.08);
  border: 1px solid rgba(232, 160, 32, 0.28);
}
.modal__order-text p { font-size: 13.5px; color: var(--color-text-mute); margin-bottom: 4px; }
.modal__order-text a {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-accent);
  transition: color var(--speed-fast) var(--ease);
}
.modal__order-text a:hover { color: var(--color-accent-light); }

/* ==========================================================================
   10. КОНТАКТЫ
   ========================================================================== */

.contacts__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: stretch;
}

.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  transition: border-color var(--speed-fast) var(--ease);
}
.contact-row:hover { border-color: rgba(232, 160, 32, 0.35); }
.contact-row__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(232, 160, 32, 0.12);
  border: 1px solid rgba(232, 160, 32, 0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
}
.contact-row__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-mute);
  font-weight: 600;
}
.contact-row__value {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  transition: color var(--speed-fast) var(--ease);
}
a.contact-row__value:hover { color: var(--color-accent); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel);
  min-height: 340px;
  height: 100%;
}
.map-frame iframe { width: 100%; height: 100%; border: none; display: block; min-height: 340px; }

/* ==========================================================================
   11. ПОДВАЛ
   ========================================================================== */

.site-footer {
  position: relative; z-index: 1;
  background: rgba(7, 14, 24, 0.96);
  border-top: 1px solid var(--color-border);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 56px;
  padding: 72px 0 44px;
  border-bottom: 1px solid var(--color-border);
}
.footer__brand .brand { margin-bottom: 18px; }
.footer__tagline { font-size: 14px; color: var(--color-text-mute); line-height: 1.8; max-width: 320px; }

.footer__heading {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer__list { display: flex; flex-direction: column; gap: 12px; }
.footer__list a { font-size: 14.5px; color: var(--color-text-mute); transition: color var(--speed-fast) var(--ease); }
.footer__list a:hover { color: var(--color-accent); }

.footer__contacts p { font-size: 14.5px; color: var(--color-text-mute); line-height: 1.9; }
.footer__contacts a { color: var(--color-accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 0;
  font-size: 12.5px;
  color: rgba(154, 180, 209, 0.55);
}

/* ==========================================================================
   12. КНОПКА «НАВЕРХ»
   ========================================================================== */

.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 500;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(9, 18, 30, 0.75);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease), visibility var(--speed-fast), background var(--speed-fast) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: rgba(232, 160, 32, 0.35); }

/* ==========================================================================
   14. АДАПТИВНАЯ ВЁРСТКА
   ========================================================================== */

@media (min-width: 1600px) {
  :root { --container-w: 1480px; }
  .hero__title { font-size: clamp(52px, 4vw, 68px); }
}

@media (max-width: 1279px) {
  .hero__inner { gap: 48px; }
  .advantages__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 1024px) {
  .header-phone { display: none !important; }
  .main-nav { display: none; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero-slider { order: -1; aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; }
  .hero__content { max-width: 640px; margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; max-width: 520px; margin: 0 auto; aspect-ratio: 16/10; }
  .advantages__grid { grid-template-columns: 1fr 1fr; }
  .products__grid { grid-template-columns: 1fr 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .map-frame { min-height: 320px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__contacts { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .section { padding: 84px 0; }
  .wrap { padding: 0 20px; }
  .site-header__inner { padding: 0 20px; height: 76px; }
  .mobile-nav { top: 76px; }
  .hero { padding-top: 108px; }
  .hero__inner { padding: 0 20px; gap: 32px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .hero__stat:nth-child(2n) { border-right: none; }
  .hero__stat:nth-child(1), .hero__stat:nth-child(2) { border-bottom: 1px solid var(--color-border); }
  .hero__scroll-cue { display: none; }
  .advantages__grid { grid-template-columns: 1fr; }
  .advantages { margin-top: 56px; }
  .products__grid { grid-template-columns: 1fr; }
  .modal__body { padding: 26px 22px; }
  .modal__gallery { aspect-ratio: 4 / 3.2; }
  .modal__order { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 479px) {
  .hero__badge { font-size: 11px; }
  .hero__title { letter-spacing: -0.01em; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 40px; }
}
