/* ==========================================================================
   МСТРОЙ — стили
   1. Переменные и база
   2. Утилиты и кнопки
   3. Шапка и навигация
   4. Главная
   5. Каталог и товар
   6. Внутренние страницы
   7. Формы
   8. Подвал
   9. Анимации и адаптив
   ========================================================================== */

/* ---------- 1. Переменные и база ---------- */
:root {
  --bg: #0d0f12;
  --bg-soft: #12151a;
  --surface: #161a20;
  --card: #171b21;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f4f5;
  --muted: #9aa1aa;
  --accent: #ff6a13;
  --accent-hover: #ff7d31;
  --paper: #e9e8e4;
  --ink: #14161a;

  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 2. Утилиты и кнопки ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  max-width: 16ch;
  margin-top: 14px;
}

.section-head p {
  max-width: 44ch;
  color: var(--muted);
}

.section--paper .section-head p {
  color: #5c6067;
}

.lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 56ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--text);
}

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

.btn--dark:hover {
  background: #000;
}

.btn--sm {
  padding: 11px 18px;
  font-size: 13px;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- 3. Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.phone {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}

.phone:hover {
  color: var(--accent);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.burger span {
  top: 50%;
  transform: translate(-50%, -50%);
}

.burger span::before,
.burger span::after {
  content: "";
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 4. Главная ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(255, 106, 19, 0.16), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.03) 79px 80px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 82px);
  margin-block: 18px 22px;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-badge span {
  font-size: 12px;
  opacity: 0.85;
}

.hero-badge-mark {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.9;
}

/* Категории */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.cat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.cat-card-media {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  overflow: hidden;
}

.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.cat-card:hover .cat-card-media img {
  transform: scale(1.04);
}

.cat-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
}

.cat-card-body h3 {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.cat-card-body span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
}

.cat-card-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}

.cat-card-arrow svg {
  width: 15px;
  height: 15px;
}

.cat-card:hover .cat-card-arrow {
  background: var(--accent);
  border-color: var(--accent);
}

/* Преимущества */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg);
}

.feature-num {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.feature h3 {
  margin-top: 16px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.feature p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Процесс */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--line-strong);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  position: absolute;
  top: -18px;
  left: 0;
  padding-right: 12px;
  background: var(--bg-soft);
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--accent);
}

.step h3 {
  margin-top: 12px;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.step p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

/* CTA-полоса */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border: 40px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  max-width: 18ch;
}

.cta-band p {
  margin-top: 10px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
}

.cta-band .btn {
  background: #fff;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.cta-band .btn:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- 5. Каталог и товар ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 120% at 90% 0%, rgba(255, 106, 19, 0.1), transparent 65%),
    var(--bg-soft);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span[aria-current] {
  color: var(--text);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
}

.page-hero p {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 32px 28px;
}

.chip {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--text);
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge--accent {
  background: var(--accent);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.product-body h3 {
  font-size: 19px;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.product-body h3 a:hover {
  color: var(--accent);
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.product-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-specs span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
}

.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}

.price {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.product-foot .btn {
  padding: 10px 16px;
  font-size: 12px;
}

.product-card.is-hidden {
  display: none;
}

.catalog-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- 404 ---------- */
.error-page {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.error-page .eyebrow {
  justify-content: center;
}

.error-code {
  margin-block: 8px 4px;
  font-family: var(--font-head);
  font-size: clamp(96px, 16vw, 180px);
  font-weight: 600;
  line-height: 0.9;
  color: var(--accent);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* Карточка товара */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.product-gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.product-gallery-thumbs button {
  padding: 0;
  border: 0;
  background: var(--paper);
  cursor: pointer;
}

.product-gallery-thumbs img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.product-gallery-thumbs button:hover img,
.product-gallery-thumbs button.is-active img {
  opacity: 1;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-block: 20px 8px;
}

.detail-price strong {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1;
}

.detail-price span {
  font-size: 13px;
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 28px;
}

.spec-list {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.spec-list li span:first-child {
  color: var(--muted);
}

.spec-list li span:last-child {
  text-align: right;
  font-weight: 500;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--accent);
  clip-path: polygon(0 45%, 38% 100%, 100% 8%, 88% 0, 38% 72%, 12% 35%);
}

.prose h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
}

.prose p + p {
  margin-top: 14px;
}

.prose p {
  color: var(--muted);
}

/* ---------- 6. Внутренние страницы ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(32px, 4vw, 56px);
  background: var(--line);
  border: 1px solid var(--line);
}

.stat-cell {
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-soft);
}

.stat-cell strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.stat-cell span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.value-card {
  padding: clamp(24px, 3vw, 34px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.value-card .value-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 106, 19, 0.12);
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.value-card .value-icon svg {
  width: 22px;
  height: 22px;
}

.value-card h3 {
  margin-top: 20px;
  font-size: 20px;
  letter-spacing: 0.04em;
}

.value-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline strong {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
}

.timeline h3 {
  font-size: 19px;
  letter-spacing: 0.04em;
}

.timeline p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* Контакты */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card .value-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(255, 106, 19, 0.12);
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.contact-card .value-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card h3 {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-card a,
.contact-card p {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: 19px;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-card small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.map {
  position: relative;
  min-height: 320px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    #111419;
  display: grid;
  place-items: center;
}

.map::before,
.map::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
}

.map::before {
  left: 0;
  right: 0;
  top: 42%;
  height: 22px;
  transform: rotate(-8deg);
}

.map::after {
  top: 0;
  bottom: 0;
  left: 58%;
  width: 16px;
  transform: rotate(14deg);
}

.map-pin {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}

.map-pin svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  filter: drop-shadow(0 0 18px rgba(255, 106, 19, 0.6));
}

.map-pin span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 7. Формы ---------- */
.form-panel {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form-panel h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}

.form-panel > p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #6c727a;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #0a0c0f;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff4d4d;
}

.field-error {
  font-size: 12px;
  color: #ff6b6b;
  min-height: 14px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-success {
  display: none;
  padding: 16px 18px;
  background: rgba(60, 200, 120, 0.1);
  border: 1px solid rgba(60, 200, 120, 0.35);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #8be3b0;
}

.form-success.is-visible {
  display: block;
}

.form-note {
  font-size: 12px;
  color: #6c727a;
}

/* ---------- 8. Подвал ---------- */
.site-footer {
  margin-top: var(--section);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 72px);
}

.footer-brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 14px;
  color: var(--muted);
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contacts li {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer-contacts small {
  font-size: 12px;
  color: var(--muted);
}

.footer-contacts .footer-phone {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- 9. Анимации и адаптив ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    gap: 16px;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 640px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform 0.3s var(--ease);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: none;
  }

  .nav-link {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .nav-link::after {
    display: none;
  }

  .burger {
    display: block;
  }

  .phone {
    display: none;
  }

  .product-detail,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .nav {
    inset: 68px 0 auto;
    max-height: calc(100vh - 68px);
  }

  .header-actions .btn {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-stats .stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats .stat span {
    margin-top: 0;
    text-align: right;
  }

  .hero-badge {
    left: 12px;
    bottom: 12px;
    padding: 10px 14px;
  }

  .hero-badge-mark {
    font-size: 24px;
  }

  .cat-grid,
  .product-grid,
  .value-grid,
  .feature-grid,
  .process,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 14px;
  }

  .step::before {
    background: var(--bg-soft);
  }

  .section-head h2 {
    max-width: 100%;
  }

  .cta-band {
    padding: 28px 22px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
