/* ============================================================
   Дизайн-система прототипа «Промышленные полы СПб» (Design v2)
   Суперсовременная дизайн-система: многослойные тени,
   градиентные акценты, эффект стекла, Ken-Burns слайдер,
   анимации микро-взаимодействий и полная поддержка reduced-motion.
   ============================================================ */

:root {
  /* Палитра: технический графит + сигнальный оранжевый */
  --ink: #1b2534;
  --ink-2: #3d4d61;
  --muted: #5a6878;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --line: #e2e8f0;
  --accent: #ff6600;
  --accent-2: #e05a00;
  --accent-soft: #fff1e6;
  --dark: #14263a;
  --dark-2: #1f2c3f;
  --ok: #1e8a4c;
  --err: #c62e26;
  --radius: 16px;
  --radius-sm: 10px;
  
  /* Многослойные мягкие тени */
  --shadow-sm: 0 2px 8px rgba(20, 38, 58, 0.05);
  --shadow: 0 8px 24px rgba(20, 38, 58, 0.08), 0 2px 6px rgba(20, 38, 58, 0.04);
  --shadow-lg: 0 16px 40px rgba(20, 38, 58, 0.12), 0 4px 12px rgba(20, 38, 58, 0.06);
  --shadow-glow: 0 16px 36px rgba(20, 38, 58, 0.1), 0 8px 24px -4px rgba(255, 102, 0, 0.3);
  --shadow-btn: 0 4px 14px rgba(255, 102, 0, 0.35);
  --shadow-btn-hover: 0 8px 24px rgba(255, 102, 0, 0.5);

  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); text-transform: uppercase; letter-spacing: .5px; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); text-transform: uppercase; letter-spacing: .5px; }
h3 { font-size: 1.25rem; }

.section { padding: 64px 0; }
.section--gray { background: var(--surface); }
.section--dark { background: var(--dark); color: #d7e0ea; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Eyebrow с оранжевой градиентной полоской */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: .84rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  flex-shrink: 0;
}
.section--dark .eyebrow { color: #ffa35c; }

/* ---------- Верхняя демо-плашка прототипа (со стеклом) ---------- */
.proto-bar {
  background: rgba(20, 38, 58, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #cfd8e3;
  font-size: .8rem;
  padding: 6px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.proto-bar b { color: #ffb37a; font-weight: 600; }
.proto-bar button {
  background: none; border: 1px solid #3a4a5e; color: #cfd8e3;
  border-radius: 6px; cursor: pointer; padding: 1px 8px; font-size: .75rem;
  transition: all .2s ease;
}
.proto-bar button:hover { border-color: #ffb37a; color: #ffb37a; }

/* ---------- Шапка (Стекло + блюр + фолбэк) ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(20, 38, 58, 0.03);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header {
    background: rgba(255, 255, 255, 0.98);
  }
}

.header__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center;
  color: #fff; font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo:hover .logo__mark {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.4);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.logo__geo { font-family: var(--font-body); font-size: .72rem; color: var(--muted); letter-spacing: .4px; }

/* Навигация с анимированным подчёркиванием */
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 2px;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link:hover { color: var(--accent-2); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--accent-2); font-weight: 600; }

.header__contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header__phone { font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); font-weight: 600; white-space: nowrap; transition: color .2s; }
.header__phone:hover { text-decoration: none; color: var(--accent-2); }
.header__note { font-size: .72rem; color: var(--muted); }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background .2s, border-color .2s;
}
.burger span { width: 20px; height: 2px; background: var(--ink); transition: .25s; display: block; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Кнопки с градиентами, тенями и микро-подъёмом ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-sm); padding: 12px 24px; cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: linear-gradient(135deg, #ff6600 0%, #e05a00 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
  border: none;
}
.btn--primary:hover {
  background: linear-gradient(135deg, #ff771a 0%, #ea5c00 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.4);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.18);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,.12);
}
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.12);
}
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Hero (Тёмный градиент + радиальное оранжевое свечение) ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 75% 25%, rgba(255, 102, 0, 0.18) 0%, transparent 55%), linear-gradient(135deg, #14263a 0%, #1d3450 100%);
  overflow: hidden;
}
.hero__slider { position: relative; height: clamp(430px, 62vh, 640px); }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  display: flex; align-items: center;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}
/* Ken-Burns зум при активном слайде */
.hero__slide.is-active .hero__bg img {
  transform: scale(1.06);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,38,58,0.92) 0%, rgba(20,38,58,0.7) 45%, rgba(20,38,58,0.3) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 640px; color: #eef2f7; padding-top: 30px; }
.hero__slide.is-active .hero__content {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__content h1 { color: #fff; }

/* Стеклянная плашка бейдж hero */
.hero__region {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffb37a; border-radius: 999px; padding: 6px 16px;
  font-size: .85rem; font-weight: 600; letter-spacing: .4px; margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero__lead { font-size: 1.08rem; color: #cfdaE6; margin: 0 0 26px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Стеклянные точки и стрелки слайдера hero */
.hero__dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; display: flex; gap: 10px; justify-content: center; }
.hero__dot {
  width: 28px; height: 6px; border-radius: 3px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); padding: 0;
}
.hero__dot.is-active {
  width: 44px;
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(255, 102, 0, 0.5);
}
.hero__arrows { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.hero__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 38, 58, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 1.2rem; cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: grid; place-items: center;
}
.hero__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(255,102,0,0.4);
}
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }

/* ---------- Плашки-преимущества под hero ---------- */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.strip__item { display: flex; gap: 14px; align-items: flex-start; }
.strip__icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.12);
}
.strip__title { font-weight: 600; font-size: .95rem; margin: 0 0 2px; }
.strip__text { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- Карточки услуг (Многослойная мягкая тень + Glow) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 102, 0, 0.3);
}
.card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 1.12rem; margin: 0; color: var(--ink); transition: color 0.25s ease; }
.card:hover .card__title { color: var(--accent-2); }
.card__text { color: var(--ink-2); font-size: .92rem; margin: 0; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }

/* hover-сдвиг стрелки card__more */
.card__more { font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; color: var(--accent-2); }
.card__more span { display: inline-block; transition: transform 0.25s ease; }
.card:hover .card__more span, .card__more:hover span { transform: translateX(5px); }

.card__soon { font-size: .78rem; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); padding: 4px 10px; border-radius: 999px; }

.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .3px;
  background: var(--bg); color: var(--ink-2);
  border-radius: 999px; padding: 3px 10px;
}

/* ---------- Объекты/решения ---------- */
.objects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.object-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 190px;
  display: flex; align-items: flex-end; color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.object-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.object-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,19,29,0) 35%, rgba(13,19,29,.92) 100%);
}
.object-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(13, 19, 29, 0.4), 0 6px 20px rgba(255, 102, 0, 0.25);
}
.object-card:hover img { transform: scale(1.06); }
.object-card__body { position: relative; z-index: 2; padding: 16px 18px; }
.object-card__title { color: #fff; font-size: 1.05rem; margin: 0 0 4px; }
.object-card__text { font-size: .82rem; color: #cfd9e4; margin: 0; }

/* ---------- Таблица «как выбирается система» ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table.spec { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .92rem; }
table.spec th, table.spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { background: var(--dark); color: #fff; font-family: var(--font-head); font-weight: 500; letter-spacing: .6px; text-transform: uppercase; font-size: .8rem; }
table.spec tr:last-child td { border-bottom: none; }
table.spec tr:nth-child(even) td { background: #fafbfd; }

/* ---------- Проекты / галерея ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); padding: 0; text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.gallery-item img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 102, 0, 0.3);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__cap {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 16px; font-size: .88rem; font-weight: 500; color: var(--ink);
}
.gallery-item__demo { font-size: .68rem; font-weight: 700; letter-spacing: .8px; color: var(--accent-2); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(10, 15, 23, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 28px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: min(1000px, 100%); max-height: 82vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #dbe4ee; font-size: .9rem; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(15,22,33,.6);
  color: #fff; font-size: 1.2rem; cursor: pointer; transition: all 0.2s ease;
}
.lightbox__close:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step__num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark); color: #fff; font-family: var(--font-head);
  display: grid; place-items: center; font-size: 1.05rem; margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(20, 38, 58, 0.2);
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--ink-2); font-size: .9rem; margin: 0; }

/* ---------- Отзывы с многослойными тенями ---------- */
.reviews { position: relative; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 22px; scrollbar-width: thin;
}
.review {
  scroll-snap-align: start; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 102, 0, 0.3);
}
.review__quote { font-size: .95rem; color: var(--ink-2); margin: 0; flex: 1; }
.review__foot { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--dark); color: #ffb37a; font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
  box-shadow: 0 2px 8px rgba(20, 38, 58, 0.15);
}
.review__name { font-weight: 600; font-size: .92rem; margin: 0; }
.review__meta { font-size: .78rem; color: var(--muted); margin: 0; }
.review__demo {
  font-size: .68rem; font-weight: 700; letter-spacing: .8px; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--line); padding: 2px 8px;
  border-radius: 999px; text-transform: uppercase; margin-left: auto;
}
.reviews__nav { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.reviews__btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 1rem; transition: all .25s ease;
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.reviews__btn:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 102, 0, 0.2); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq details[open] { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 1px rgba(255,102,0,0.2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  align-items: center; padding: 17px 20px; font-weight: 600; font-size: 1rem; color: var(--ink);
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--accent-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-head); font-size: 1.4rem; color: var(--accent-2);
  transition: transform .2s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 20px 18px; color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- Форма ---------- */
.lead-section { background: var(--dark); }
.lead-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.lead-info h2 { color: #fff; }
.lead-info p { color: #c6d2de; }
.lead-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lead-list li { display: flex; gap: 10px; align-items: flex-start; color: #dbe4ee; font-size: .95rem; }
.lead-list li::before { content: "—"; color: var(--accent); font-weight: 700; }

.form {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; background: #fff; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255,102,0,.18); }
.field .field__hint { font-size: .74rem; color: var(--muted); margin: 0; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--err); }
.field__error { color: var(--err); font-size: .78rem; display: none; }
.field.is-error .field__error { display: block; }
.form__status { border-radius: var(--radius-sm); padding: 13px 16px; font-size: .9rem; display: none; }
.form__status.is-visible { display: block; }
.form__status--ok { background: #e7f6ee; color: #14632f; border: 1px solid #b7e2c6; }
.form__status--demo { background: var(--accent-soft); color: #8a4a10; border: 1px solid #ffd2ad; }
.form__status--err { background: #fdeceb; color: #8f1f19; border: 1px solid #f3c1be; }
.form__legal { font-size: .74rem; color: var(--muted); margin: 0; }
.form__legal a { color: var(--ink-2); }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-top: 0; font-size: 1.05rem; }
.contact-card p { margin: 4px 0; color: var(--ink-2); font-size: .95rem; }
.contact-card a { color: var(--ink); font-weight: 600; }
.placeholder-note { display: inline-block; font-size: .72rem; color: var(--accent-2); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; margin-top: 8px; font-weight: 600; }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding: 18px 0 4px; font-size: .84rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }

/* ---------- Страница услуги: служебные блоки ---------- */
.page-hero { background: var(--dark); color: #e7edf4; padding: 46px 0 40px; }
.page-hero h1 { color: #fff; max-width: 800px; }
.page-hero p { color: #c6d2de; max-width: 720px; margin: 0; font-size: 1.05rem; }
.page-hero .crumbs a, .page-hero .crumbs li { color: #9fb0c1; }

.spec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.spec-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.spec-list li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.callout {
  background: var(--accent-soft); border: 1px solid #ffd2ad; border-radius: var(--radius);
  padding: 18px 20px; color: #7c440f; font-size: .93rem; margin: 24px 0 0;
  box-shadow: var(--shadow-sm);
}
.callout b { color: #5c3006; }
.note-source { font-size: .78rem; color: var(--muted); margin-top: 10px; }

/* ---------- CTA-полоса с оранжевым градиентом ---------- */
.cta-strip {
  background: linear-gradient(135deg, #ff6600 0%, #d84e00 100%);
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  box-shadow: 0 16px 36px rgba(255, 102, 0, 0.25);
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.2), transparent 50%);
}
.cta-strip h2 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.cta-strip p { color: #ffe4cd; margin: 0; }
.cta-strip .btn {
  background: #fff; color: var(--accent-2); border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.cta-strip .btn:hover { background: #ffe9dc; color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: #b9c6d4; padding: 48px 0 26px; margin-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { color: #fff; font-family: var(--font-head); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; font-size: .95rem; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { color: #b9c6d4; font-size: .92rem; transition: color .2s; }
.footer a:hover { color: #ffb37a; text-decoration: none; }
.footer .logo__name { color: #fff; }
.footer__about { font-size: .88rem; line-height: 1.6; color: #93a3b4; margin-top: 14px; max-width: 320px; }
.footer__bottom {
  border-top: 1px solid #27384e; margin-top: 38px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: #7d8ea0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .objects-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav__link { display: block; padding: 13px 0; border-bottom: 1px solid var(--bg); }
  .header__contacts { display: none; }
  .header .btn { display: none; }
  .hero__arrows { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .cards-grid, .objects-grid, .gallery-grid, .steps { grid-template-columns: 1fr; }
  .reviews__track { grid-auto-columns: 92%; }
  .strip__inner { grid-template-columns: 1fr; gap: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 26px 22px; }
}

/* ============================================================
   ИТЕРАЦИЯ 3 & Design v2: фоны секций, анимации, кнопка «Подробнее»
   ============================================================ */

/* ---------- Лёгкие «строительные» фоны по секциям ---------- */
.section { position: relative; overflow: hidden; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

/* чертёжная сетка — правый верхний угол */
main > section:nth-of-type(3n+1)::before {
  background-image:
    linear-gradient(rgba(29, 52, 80, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 52, 80, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 72% 85% at 88% 8%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 72% 85% at 88% 8%, #000 0%, transparent 72%);
}

/* точки — левый нижний угол */
main > section:nth-of-type(3n+2)::before {
  background-image: radial-gradient(rgba(20, 38, 58, 0.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 62% 75% at 6% 94%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 62% 75% at 6% 94%, #000 0%, transparent 72%);
}

/* диагональная штриховка — правый нижний угол */
main > section:nth-of-type(3n)::before {
  background-image: repeating-linear-gradient(45deg, rgba(255, 102, 0, 0.055) 0 2px, transparent 2px 16px);
  -webkit-mask-image: radial-gradient(ellipse 58% 70% at 94% 96%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 58% 70% at 94% 96%, #000 0%, transparent 70%);
}

/* чертёжная сетка на внутренних страницах */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(29, 52, 80, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 52, 80, 0.05) 1px, transparent 1px),
    radial-gradient(ellipse 60% 90% at 90% 0%, rgba(255, 102, 0, 0.06) 0%, transparent 65%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
}
.page-hero > .container { position: relative; }

/* ---------- Ссылка «Подробнее» под карточками ---------- */
.cards-more-wrap {
  margin: 36px 0 0;
  text-align: center;
}
.cards-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.cards-more svg { transition: transform 0.25s ease; }
.cards-more:hover,
.cards-more:focus-visible {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}
.cards-more:hover svg { transform: translateX(5px); }

/* ---------- Появление при скролле (Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ступенчатая задержка карточек и шагов */
.cards-grid .card:nth-child(2) { transition-delay: 0.07s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.14s; }
.cards-grid .card:nth-child(4) { transition-delay: 0.07s; }
.cards-grid .card:nth-child(5) { transition-delay: 0.14s; }
.cards-grid .card:nth-child(6) { transition-delay: 0.21s; }
.steps .step:nth-child(2) { transition-delay: 0.08s; }
.steps .step:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(4) { transition-delay: 0.24s; }

/* мягкое появление контента hero внутренних страниц */
@keyframes softRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.page-hero .crumbs { animation: softRise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.page-hero h1 { animation: softRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
.page-hero p { animation: softRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both; }

/* ---------- Уважение к prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__slide .hero__bg img { transform: none !important; transition: none !important; }
  .hero__slide.is-active .hero__bg img { transform: none !important; }
  .hero__slide.is-active .hero__content { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .page-hero .crumbs, .page-hero h1, .page-hero p { animation: none !important; }
  .card:hover, .review:hover, .step:hover, .contact-card:hover, .gallery-item:hover img, .cards-more:hover, .btn:hover, .object-card:hover { transform: none !important; }
  .nav__link::after { transition: none !important; }
  .card__more span, .cards-more svg { transform: none !important; }
}
