/* ==========================================================================
   УльтраРезка — стили лендинга
   ========================================================================== */

:root {
  color-scheme: only light;
  --bg-dark: #12161d;
  --bg-dark-2: #1b212b;
  --bg-panel: #212936;
  --bg-light: #f4f5f7;
  --bg-muted: #eceef1;
  --bg-white: #ffffff;

  --text-dark: #12161d;
  --text-body: #3a4250;
  --text-muted: #6b7686;
  --text-light: #f4f5f7;
  --text-light-muted: #9aa4b4;

  --accent: #ff5a1f;
  --accent-dark: #d94413;
  --laser: #17d9e8;

  --border-light: #dde1e6;
  --border-dark: rgba(244, 245, 247, 0.1);

  --font-head: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 3px;
  --radius-md: 6px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-dark);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-head);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

/* Светлые секции без модификатора остаются светлыми */
.section:not(.section--dark):not(.section--muted) {
  background: var(--bg-white);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; color: var(--text-dark); font-weight: 700; }

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--laser);
  outline-offset: 3px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--accent);
  color: #14100d;
}
.btn--accent:hover { background: var(--accent-dark); color: var(--text-light); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-light);
}
.btn--ghost:hover { border-color: var(--laser); color: var(--laser); }

.btn--outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-dark);
  margin-top: 36px;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); }

.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; padding: 15px 26px; }
.btn--lg { padding: 16px 24px; font-size: 1rem; }

.btn--constructor {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--constructor:hover {
  background: rgba(255, 90, 31, 0.12);
  color: #fff;
}
.btn__tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #14100d;
  font: 700 0.7rem var(--font-mono);
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;                /* ★ наверху — прозрачная */
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

/* ★ Как только страница прокручена — шапка становится плотной */
.site-header.is-scrolled {
  background: rgba(18, 22, 29, 0.92);
  border-bottom-color: var(--border-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}

.logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.logo--footer .logo__img { height: 44px; }

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav a {
  position: relative;
  color: var(--text-light-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--accent); }

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav a:hover::after { transform: scaleX(1); }

.header__contacts {
  flex: none;
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.header__phone {
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Секции общие ---------- */
.section { padding: 96px 0; }
.section--dark { background: var(--bg-dark); color: var(--text-light-muted); }
.section--dark .section__title { color: var(--text-light); }
.section--muted { background: var(--bg-muted); }

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 12px;
}

.section__title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.2;
  max-width: 720px;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.section__lead {
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.section--dark .section__lead { color: var(--text-light-muted); }

/* ---------- Hero ---------- */
:root { --hero-h: 100dvh; }

@supports (height: 100dvh) {
  :root { --hero-h: 100dvh; }
}

.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  min-height: var(--hero-h);
  display: flex;
  align-items: center;
  padding: 68px 0 64px;
  overflow: hidden;
}

.hero__accent { color: var(--accent); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  animation: heroScroll 12s linear infinite;
  will-change: transform;
}

.hero__bg-img {
  flex: none;
  width: 100%;
  height: var(--hero-h);
  /* ★ Fallback: если hero.webp нет — берётся hero.png */
  background-image: url('Images/hero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ★ Если hero.webp реально существует — используем его */
@supports (background-image: image-set(url('x') type('image/webp'))) {
  .hero__bg-img {
    background-image: image-set(
      url('Images/hero.webp') type('image/webp'),
      url('Images/hero.png') type('image/png')
    );
  }
}

@keyframes heroScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(var(--hero-h) * -1)); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(18, 22, 29, 0.95) 0%,
    rgba(18, 22, 29, 0.75) 50%,
    rgba(18, 22, 29, 0.55) 100%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-left: 380px;
  padding-right: 80px;
}

.hero__inner {
  max-width: 1400px;   /* было 940px: на текст оставалось всего 480px */
  margin: 0;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-light);
  margin-bottom: 48px;   /* было 28px */
  font-weight: 800;
  max-width: 100%;
}

/* первая строка: оранжевый градиент + белый блик под курсором + свечение */
.hero__title-glow {
  --mx: 12%;                /* положение блика; JS обновляет их по курсору */
  --my: 50%;
  display: block;
  width: fit-content;       /* градиент ровно по ширине текста */
  max-width: 100%;
  background:
    radial-gradient(circle 200px at var(--mx) var(--my),
      #ffffff 0%,
      #ffe2d0 30%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, #ff5a1f 0%, #ff7a35 50%, #ff5a1f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 90, 31, 0.5));
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-light-muted);
  max-width: 480px;
  margin-bottom: 52px;   /* было 36px */
  line-height: 1.6;      /* было 1.5: строки чуть просторнее */
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;             /* было 14px */
  margin-bottom: 48px;   /* было 30px */
}

.hero__actions .btn {
  height: 56px;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.hero__actions .btn--accent { min-width: 350px; }
.hero__actions .btn--ghost  { min-width: 260px; }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin: 0;
  padding-top: 40px;     /* было 32px */
  border-top: 1px solid var(--border-dark);
}
.stat-row__item { display: flex; flex-direction: column; gap: 4px; }
.stat-row__value {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-light);
}
.stat-row__label {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  margin: 0;
}

/* ---------- Знакомая ситуация / проблемы ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  margin-top: 48px;
}

.problem-card {
  background: var(--bg-dark);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-card__index {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
}
.problem-card h3 { color: var(--text-light); font-size: 1.15rem; }
.problem-card p { color: var(--text-light-muted); font-size: 0.95rem; }
.problem-card__tag {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--laser);
  border-top: 1px solid var(--border-dark);
}

/* ---------- Сравнение ---------- */
.table-wrap { margin-top: 44px; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-white);
}
.compare-table tbody th { font-weight: 600; color: var(--text-dark); }
.compare-table td.is-highlight {
  color: var(--accent-dark);
  font-weight: 700;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Процесс ---------- */
.process-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.process-step {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 24px 0 24px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: transform 0.35s ease;
}
.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: none; }
.process-step:hover { transform: translateX(6px); }

.process-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.process-step:hover::before,
.process-step.is-visible::before { opacity: 1; transform: scaleY(1); }

.process-step__index {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-dark);
  flex: none;
  width: 40px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { color: var(--text-muted); margin-bottom: 8px; max-width: 520px; }
.process-step__time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- О компании ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.about__text p + p { margin-top: 16px; color: var(--text-muted); }

/* ---------- FAQ / аккордеон ---------- */
.accordion {
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
}
.accordion__item { border-bottom: 1px solid var(--border-light); }

.accordion__trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 36px 22px 0;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
}
.accordion__trigger::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.accordion__trigger[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion__panel p {
  padding: 0 36px 22px 0;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Форма заявки ---------- */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.order-info .section__title { margin-bottom: 16px; }

.order-benefits {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.order-benefits li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.order-benefits strong { font-size: 1rem; color: #fff; font-weight: 700; }
.order-benefits span { font-size: 0.88rem; color: var(--text-light-muted); }

.order-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(10px);
}

.order-field { display: flex; flex-direction: column; gap: 8px; }
.order-field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light-muted);
  letter-spacing: 0.02em;
}
.order-field input,
.order-field select,
.order-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.order-field input:focus,
.order-field select:focus,
.order-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 90, 31, 0.06);
}
.order-field textarea { resize: vertical; min-height: 90px; }
.order-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa4b4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.order-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-light-muted);
  cursor: pointer;
}
.order-checkbox input { margin-top: 3px; accent-color: var(--accent); }

.order-form__status {
  margin: 0;
  font-size: 0.88rem;
  color: #4ade80;
  min-height: 20px;
  text-align: center;
}

/* ---------- Футер ---------- */
.footer {
  background: var(--bg-dark-2);
  color: var(--text-light-muted);
  padding: 64px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dark);
}
.footer__brand p { margin-top: 14px; font-size: 0.9rem; max-width: 240px; }
.logo--footer { margin-bottom: 0; }

.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer__col h4 {
  color: var(--text-light);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 8px;
}
.footer__col a:hover { color: var(--text-light); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}
.footer__bottom a:hover { color: var(--text-light); }

/* ---------- Полоса прогресса прокрутки ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
  background: #ff5a1f;
}

/* ==========================================================================
   Coverflow-карусель «Примеры работ»
   ========================================================================== */
.works-coverflow {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 50px 0 0;
  padding: 0 0 20px;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
}

.works-coverflow__stage {
  position: relative;
  width: 100%;
  height: 900px;
  perspective: 2200px;

  user-select: none;
  cursor: grab;
  will-change: transform;
}
.works-coverflow__stage:active { cursor: grabbing; }

.works-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 960px;
  height: 640px;
  /* margin НЕ задаём — центрирование через translate(-50%, -50%) в JS */
  border-radius: 20px;
  overflow: hidden;
  background: #0e1318;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  /* ★ will-change убран с базового класса — только у активной */
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.works-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.works-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 38px 42px 34px;
  background: linear-gradient(
    to top,
    rgba(10, 14, 18, 0.96) 0%,
    rgba(10, 14, 18, 0.78) 55%,
    rgba(10, 14, 18, 0) 100%
  );
  color: var(--text-light);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.works-card__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
.works-card__desc {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #8a95a3;
}
.works-card.is-active {
  pointer-events: auto;
  z-index: 10;
  filter: none;
  will-change: transform;
}
.works-card.is-active .works-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.works-coverflow .works-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 26, 32, 0.85);
  color: #c8d0dc;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.works-coverflow .works-arrow:hover {
  background: rgba(255, 90, 31, 0.15);
  border-color: rgba(255, 90, 31, 0.55);
  color: var(--accent);
}
.works-coverflow .works-arrow:active { transform: translateY(-50%) scale(0.94); }
.works-coverflow .works-arrow--prev { left: 32px; }
.works-coverflow .works-arrow--next { right: 32px; }

.works-coverflow .works-dots { display: none; }

@media (max-width: 1400px) {
  .works-coverflow__stage { height: 700px; }
  .works-card { width: 740px; height: 500px; }
  .works-card__title { font-size: 24px; }
  .works-card__desc  { font-size: 15px; }
}

@media (max-width: 1000px) {
  .works-coverflow__stage {
    height: 520px;
    perspective: 1600px;
  }
  .works-card { width: 520px; height: 340px; }
  .works-card__title { font-size: 20px; }
  .works-card__desc  { font-size: 13px; }
  .works-coverflow .works-arrow {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .works-coverflow {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .works-coverflow__stage {
    height: 380px;
    perspective: 1200px;
  }
  .works-card {
    width: 300px;
    height: 210px;
  }
  .works-card__overlay { padding: 18px 20px 16px; }
  .works-card__title { font-size: 18px; }
  .works-card__desc  { display: none; }
  .works-coverflow .works-arrow {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .works-coverflow .works-arrow--prev { left: 8px; }
  .works-coverflow .works-arrow--next { right: 8px; }
}

/* ==========================================================================
   Анимации при скролле
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left  { transform: translateX(-60px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--right { transform: translateX(60px); }
.reveal--right.is-visible { transform: translateX(0); }
.reveal--zoom  { transform: scale(0.92); opacity: 0; }
.reveal--zoom.is-visible { transform: scale(1); opacity: 1; }
.reveal--fade  { transform: none; opacity: 0; }
.reveal--fade.is-visible { opacity: 1; }

.reveal--stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--stagger.is-visible > * { opacity: 1; transform: translateY(0); }

.reveal--stagger.is-visible > *:nth-child(1) { transition-delay: 0.0s; }
.reveal--stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal--stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal--stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal--stagger.is-visible > *:nth-child(7) { transition-delay: 0.6s; }
.reveal--stagger.is-visible > *:nth-child(8) { transition-delay: 0.7s; }

.section__eyebrow,
.section__title,
.section__lead {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.section.is-visible .section__eyebrow { opacity: 1; transform: translateY(0); transition-delay: 0.0s; }
.section.is-visible .section__title   { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.section.is-visible .section__lead    { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }

.hero__bg { will-change: transform; }

.stat-row__value { transition: color 0.3s ease; }
.stat-row__item.is-counting .stat-row__value { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--zoom,
  .reveal--fade,
  .reveal--stagger > *,
  .section__eyebrow,
  .section__title,
  .section__lead {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   СЕКЦИИ ТОВАРОВ — ровно один экран
   ========================================================================== */
.product-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  display: flex;
  align-items: center;
}

@supports (height: 100dvh) {
  .product-section {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
  }
}

#product-chashi,
#product-stole {
  background: #131a22;
}

.product-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.product-section__inner--reverse {
  direction: rtl;
}
.product-section__inner--reverse > * {
  direction: ltr;
}

.product-section__media {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-section__badge {
  position: absolute;
  top: 40px;
  left: 40px;
  padding: 10px 20px;
  background: rgba(15, 20, 26, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  z-index: 20;
  pointer-events: none;
}
.product-section__inner--reverse .product-section__badge {
  left: auto;
  right: 40px;
}

.product-section__body {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.product-section__body::-webkit-scrollbar { width: 6px; }
.product-section__body::-webkit-scrollbar-track { background: transparent; }
.product-section__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.product-section__title {
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
}

.product-section__desc {
  font-size: 16px;
  line-height: 1.6;
  color: #a0a8b3;
  margin: 0;
  max-width: 520px;
}

.product-section__features {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  max-width: 540px;
}
.product-section__features li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.product-section__features strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}
.product-section__features span {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.product-section__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ==========================================================================
   Галерея-coverflow внутри секций товаров
   ========================================================================== */
.product-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1800px;
  transform-style: preserve-3d;
  user-select: none;
  overflow: hidden;
}

.product-gallery__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-gallery__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 78%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  /* ★ will-change только у активной — см. ниже */
  pointer-events: none;
  background: #0e1318;
  transform: translate(-50%, -50%);
}

.product-gallery__card.is-active {
  will-change: transform;
}

.product-gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-gallery__card img.is-hover {
  transform: scale(1.06);
}

.product-gallery__card.is-active {
  pointer-events: auto;
  z-index: 10;
  cursor: pointer;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;                    /* ★ выше карточек */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 20, 26, 0.92);   /* ★ темнее фон, лучше видно */
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);   /* ★ тень для контраста */
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  transform-style: flat;           /* ★ отключаем 3D внутри стрелки */
  pointer-events: auto;
}
.product-gallery__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #14100d;
}
.product-gallery__arrow:active {
  transform: translateY(-50%) scale(0.94);
}
.product-gallery__arrow--prev { left: 16px; }
.product-gallery__arrow--next { right: 16px; }

.product-gallery__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
}
.product-gallery__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(244, 245, 247, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.product-gallery__dots button.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ==========================================================================
   Отключение анимаций для секций товаров
   ========================================================================== */
.product-section,
.product-section__inner,
.product-section__media,
.product-section__body,
.product-section__badge,
.product-section__title,
.product-section__desc,
.product-section__features,
.product-section__features li,
.product-section__features strong,
.product-section__features span,
.product-section__actions {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.product-section.reveal,
.product-section.reveal--left,
.product-section.reveal--right,
.product-section.reveal--zoom,
.product-section.reveal--fade,
.product-section .reveal,
.product-section .reveal--stagger,
.product-section .reveal--stagger > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* ==========================================================================
   Адаптивность
   ========================================================================== */
@media (max-width: 1024px) {
  .hero .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: flex; }

  /* Скрываем кнопку «Оставить заявку» в шапке */
  .header__contacts .btn { display: none; }

  /* Уменьшаем логотип */
  .logo__img { height: 32px; }
  .header__inner { gap: 16px; }

  .about,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }

  .problem-grid { grid-template-columns: 1fr; }

  .stat-row { gap: 28px; }

  .footer__inner { grid-template-columns: 1fr; gap: 24px; }

  .hero__actions { align-items: stretch; }
  .hero__actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .compare-table {
    min-width: 100%;
    font-size: 0.85rem;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 10px;
  }

  .product-gallery__arrow {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
  .product-gallery__arrow--prev { left: 8px; }
  .product-gallery__arrow--next { right: 8px; }
}

/* Мобильные — секции товаров: высота авто */
@media (max-width: 900px) {
  .product-section {
    height: auto;
    min-height: 100vh;
    max-height: none;
    overflow: visible;
  }
  .product-section__inner {
    min-height: 100vh;
    grid-template-columns: 1fr;
  }
  .product-section__media {
    min-height: 60vh;
  }
  .product-section__body {
    padding: 40px 24px;
  }
  .product-gallery__card {
    width: 90%;
    height: 90%;
  }
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  padding: 16px 24px 24px;
  gap: 18px;
  border-bottom: 1px solid var(--border-dark);
}

@media (max-width: 960px) {
  .hero {
    padding: 90px 0 56px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 0 48px;
  }
}

@media (max-width: 900px) {
  /* Стрелки в галерее товара — крупные и точно видны */
  .product-gallery__arrow {
    width: 48px;
    height: 48px;
    font-size: 22px;
    z-index: 30;
    display: grid !important;
    place-items: center;
    background: rgba(15, 20, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  .product-gallery__arrow--prev { left: 12px; }
  .product-gallery__arrow--next { right: 12px; }

  /* Бейдж опустить ниже, чтобы не перекрывал верх карточки */
  .product-section__badge {
    top: 16px;
    left: 16px;
    font-size: 10px;
    padding: 8px 14px;
  }
  .product-section__inner--reverse .product-section__badge {
    left: auto;
    right: 16px;
  }

  /* Точки — сделать виднее */
  .product-gallery__dots {
    bottom: 16px;
    gap: 6px;
  }
  .product-gallery__dots button {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
  }
  .product-gallery__dots button.is-active {
    background: var(--accent);
    transform: scale(1.2);
  }

  /* Карточка чуть меньше — чтобы было видно, что есть соседние */
  .product-gallery__card {
    width: 82%;
    height: 78%;
  }
}

@media (max-width: 900px) {
  .product-gallery__arrow {
    width: 48px;
    height: 48px;
    font-size: 24px;
    z-index: 200;
  }
  .product-gallery__arrow--prev { left: 12px; }
  .product-gallery__arrow--next { right: 12px; }
}

@media (max-width: 900px) {
  /* Скрываем стрелки на мобилке — там свайп */
  .product-gallery__arrow {
    display: none !important;
  }

  /* Точки делаем заметнее */
  .product-gallery__dots {
    bottom: 20px;
    gap: 8px;
  }
  .product-gallery__dots button {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.2s, transform 0.2s;
  }
  .product-gallery__dots button.is-active {
    background: var(--accent);
    transform: scale(1.3);
  }

  /* Карточка на всю ширину — чтобы было больше места для свайпа */
  .product-gallery__card {
    width: 86%;
    height: 78%;
  }

  /* Разрешаем горизонтальный жест */
  .product-gallery {
    touch-action: pan-y;
  }
}

/* Шаг 2: Темы — три плитки в ряд, как узоры */
.option-grid--themes {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.option-tile--theme {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  color: #8a95a3;
  text-align: center;
}
.option-tile--theme.is-active { color: var(--accent); }

.option-tile--theme .option-tile__icon {
  width: 64px;
  height: 64px;
}

.option-tile--theme strong {
  font-size: 14px;
  color: #fff;
}
.option-tile--theme small {
  font-size: 11px;
  color: var(--text-light-muted);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .option-grid--themes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   Переключатель инверсии (пилюля + круглый ползунок)
   ============================================================ */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* --- Трек (пилюля) --- */
.toggle-switch__slider {
  position: relative;
  display: block;
  width: 84px;
  height: 44px;
  background: #2a3340;
  border-radius: 999px;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Полоски-насечки слева на треке — как на твоей картинке */
.toggle-switch__slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 14px;
  height: 18px;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.15) 0,
    rgba(255, 255, 255, 0.15) 2px,
    transparent 2px,
    transparent 5px,
    rgba(255, 255, 255, 0.15) 5px,
    rgba(255, 255, 255, 0.15) 7px,
    transparent 7px,
    transparent 10px,
    rgba(255, 255, 255, 0.15) 10px,
    rgba(255, 255, 255, 0.15) 12px
  );
  background-repeat: no-repeat;
  transition: opacity 0.3s ease;
}

/* --- Ползунок (круг) --- */
.toggle-switch__slider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -4px;                        /* вылезает за пределы трека слева */
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: #e6eaf0;
  border-radius: 50%;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
  transition:
    left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Активное состояние --- */
.toggle-switch input:checked + .toggle-switch__slider {
  background: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 90, 31, 0.35);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  opacity: 0.5;
}

.toggle-switch input:checked + .toggle-switch__slider::after {
  left: 32px;                        /* сдвиг вправо */
  background: #ffffff;
  box-shadow:
    0 4px 12px rgba(255, 90, 31, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

/* --- Фокус для доступности --- */
.toggle-switch input:focus-visible + .toggle-switch__slider {
  outline: 2px solid var(--laser);
  outline-offset: 4px;
}

/* --- Подпись справа --- */
.toggle-switch__label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: #e6edf5;
  min-width: 90px;
  transition: color 0.2s ease;
}

.toggle-switch input:checked ~ .toggle-switch__label {
  color: var(--accent);
}

    /* ---------- Счётчик цены ---------- */
    .preview__price {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 16px;
      padding: 14px 40px;
      border-top: 1px solid var(--border-dark);
      background: rgba(255, 90, 31, 0.05);
      flex-wrap: wrap;
    }
    .preview__price-label {
      font: 600 11px var(--font-mono);
      color: var(--text-light-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .preview__price-value {
      font-family: var(--font-head);
      font-size: 22px;
      font-weight: 800;
      color: var(--accent);
      letter-spacing: -0.01em;
      transition: color 0.2s ease;
    }
    .preview__price-value.is-flash {
      animation: priceFlash 0.4s ease;
    }
    @keyframes priceFlash {
      0%   { transform: scale(1); }
      50%  { transform: scale(1.06); }
      100% { transform: scale(1); }
    }

    @media (max-width: 640px) {
      .preview__price {
        padding: 12px 20px;
      }
      .preview__price-value { font-size: 18px; }
    }

.product-gallery {
  touch-action: pan-y;
}

/* ---------- Шаги конструктора: цепочка стрелок ---------- */
.promo__steps {
  --arrow: 18px;          /* глубина острия стрелки */
  --gap: 4px;             /* просвет между стрелками */
  display: flex;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: promo-step;
}

.promo__steps li {
  counter-increment: promo-step;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 calc(var(--arrow) + 6px) 0 calc(var(--arrow) + 4px);
  margin-left: calc(var(--gap) - var(--arrow));   /* стрелки вдвигаются друг в друга */
  background: var(--bg-panel);
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  /* форма стрелки: выемка слева, острие справа */
  clip-path: polygon(
    0 0,
    calc(100% - var(--arrow)) 0,
    100% 50%,
    calc(100% - var(--arrow)) 100%,
    0 100%,
    var(--arrow) 50%
  );
  transition: background 0.25s ease, color 0.25s ease;
}

/* Первая стрелка без выемки слева */
.promo__steps li:first-child {
  margin-left: 0;
  padding-left: 18px;
  border-radius: 8px 0 0 8px;
  clip-path: polygon(
    0 0,
    calc(100% - var(--arrow)) 0,
    100% 50%,
    calc(100% - var(--arrow)) 100%,
    0 100%
  );
}


.promo__steps li::before {
  content: counter(promo-step);
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #14100d;
  font: 700 0.75rem var(--font-mono);
}



/* Телефон: стрелки не помещаются в строку, делаем вертикальный список */
@media (max-width: 640px) {
  .promo__steps {
    flex-direction: column;
    gap: 6px;
  }
  .promo__steps li,
  .promo__steps li:first-child {
    margin-left: 0;
    height: 48px;
    padding: 0 16px;
    border-radius: 8px;
    clip-path: none;
  }
}

/* ==========================================================================
   Анонс конструктора чаш
   ========================================================================== */
.section--dark.promo {
  background: #131a22;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
@supports (height: 100dvh) {
  .section--dark.promo { min-height: 100dvh; }
}

.promo__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 96px 64px;
}

.promo__text { min-width: 0; }

.promo__title {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 24px;
}

.promo__lead {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-light-muted);
  max-width: 540px;
  margin: 0 0 32px;
}

/* ---------- Шаги: активный, пройденные, прогресс ---------- */
.promo__steps li button {
  all: unset;
  cursor: pointer;
}
/* кнопка растягивается на всю стрелку, чтобы клик работал по всей её площади */
.promo__steps li button::after {
  content: '';
  position: absolute;
  inset: 0;
}
.promo__steps li button:focus-visible::after {
  outline: 2px solid var(--laser);
  outline-offset: -3px;
}

.promo__steps li:hover:not(.is-active) { background: #2c3646; }
.promo__steps li.is-done { background: #2c3646; }

.promo__steps li.is-active {
  background: var(--accent);
  color: #14100d;
}
.promo__steps li.is-active::before {
  background: #14100d;
  color: var(--accent);
}

/* полоска прогресса внизу активной стрелки */
.promo__steps li::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(20, 16, 13, 0.55);
  transform: scaleX(0);
  transform-origin: left;
}


/* ---------- Картинки: плавная смена ---------- */
.promo__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  background: #0b0f14;
}
.promo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.promo__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.promo__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 24px 20px;
  background: linear-gradient(to top, rgba(8, 12, 17, 0.92), transparent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
}

.promo__steps li.is-active::after {
  transform: scaleX(var(--p, 0));
}

@media (prefers-reduced-motion: reduce) {
  .promo__img { transition: none; transform: none; }
}

html {
  color-scheme: only light;
  background: var(--bg-dark);
}

html, body, .section, .section--muted {
  color-scheme: only light;
}

html, body {
  color-scheme: only light;
  forced-color-adjust: none;   /* запрещает WebView подменять цвета */
}

/* ==========================================================================
   Анонс конструктора: мобильная версия (дописывать в конец файла)
   ========================================================================== */
@media (max-width: 900px) {
  .section--dark.promo {
    min-height: 0;
    display: block;
    padding: 56px 0 48px;
  }

  .promo__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    gap: 0;
    padding: 0 20px;
  }

  /* дочерние элементы текста становятся прямыми элементами колонки,
     так можно поставить картинку между текстом и шагами */
  .promo__text { display: contents; }

  .promo__text > .section__eyebrow { order: 1; }

  .promo__title {
    order: 2;
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    line-height: 1.1;
    margin: 0 0 14px;
  }

  .promo__lead {
    order: 3;
    font-size: 0.98rem;
    margin: 0 0 24px;
  }

  .promo__media {
    order: 4;
    width: 100%;
    margin: 0 0 20px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    touch-action: pan-y;        /* вертикальная прокрутка страницы остаётся */
  }

  .promo__steps { order: 5; margin: 0 0 28px; }

  .promo__text > .btn {
    order: 6;
    width: 100%;
  }

  .promo__caption {
    padding: 36px 14px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  /* шаги: один ряд, активный шире и с названием */
  .promo .promo__steps {
    flex-direction: row;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
  }

  .promo .promo__steps li,
  .promo .promo__steps li:first-child {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 6px;
    gap: 0;
    justify-content: center;
    border-radius: 10px;
    clip-path: none;
    transition: flex-grow 0.35s ease, background 0.25s ease;
  }

  .promo .promo__steps li.is-active {
    flex-grow: 2.8;
    gap: 8px;
  }

  /* у неактивных шагов название скрыто, остаётся номер */
  .promo .promo__steps li button { font-size: 0; }
  .promo .promo__steps li.is-active button {
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

/* ---------- Картинки анонса: базовые стили ---------- */
.promo__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-dark);
  background: #0b0f14;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.promo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.promo__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.promo__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 24px 20px;
  background: linear-gradient(to top, rgba(8, 12, 17, 0.92), transparent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
}

.promo__text > .section__eyebrow { text-align: left; }

/* ============================================================
   КОНСТРУКТОР ЧАШ — встроен в главную страницу
   Все стили обёрнуты в .constructor-page
   ============================================================ */
.constructor-page {
  --cp-bg-dark: #12161d;
  --cp-bg-panel: #212936;
  --cp-text-light: #f4f5f7;
  --cp-text-light-muted: #9aa4b4;
  --cp-accent: #ff5a1f;
  --cp-accent-dark: #d94413;
  --cp-laser: #17d9e8;
  --cp-border-dark: rgba(244, 245, 247, 0.1);
  --cp-font-head: 'Manrope', 'Segoe UI', sans-serif;
  --cp-font-mono: 'JetBrains Mono', 'Courier New', monospace;

  position: relative;
  width: 100%;
  height: 650px;
  background: var(--cp-bg-dark);
  color: var(--cp-text-light);
  font-family: var(--cp-font-head);
  overflow: hidden;
}
.constructor-page *,
.constructor-page *::before,
.constructor-page *::after { box-sizing: border-box; }
.constructor-page button { font-family: inherit; }

.constructor-page .builder-full { width: 100%; height: 100%; position: relative; margin: 0; padding: 0; }

.constructor-page .builder {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: 100%;
  background: var(--cp-bg-dark);
  color: var(--cp-text-light);
  font-family: var(--cp-font-head);
  overflow: hidden;
}

.constructor-page .builder__panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111720 0%, #0d1219 100%);
  border-right: 1px solid var(--cp-border-dark);
  overflow: hidden;
  min-height: 0;
}

.constructor-page .builder__head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--cp-border-dark);
  text-align: left;
}
.constructor-page .builder__eyebrow {
  font: 600 13px var(--cp-font-mono);
  letter-spacing: .14em;
  color: var(--cp-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.constructor-page .builder__title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.constructor-page .builder__help {
  font-size: 16px;
  color: var(--cp-text-light-muted);
  line-height: 1.5;
  margin: 0;
}

.constructor-page .builder__content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 90, 31, 0.35) transparent;
}
.constructor-page .builder__content::-webkit-scrollbar { width: 6px; }
.constructor-page .builder__content::-webkit-scrollbar-track { background: transparent; }
.constructor-page .builder__content::-webkit-scrollbar-thumb {
  background: rgba(255, 90, 31, 0.35);
  border-radius: 3px;
}

.constructor-page .builder__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--cp-border-dark);
  background: rgba(0, 0, 0, 0.2);
}

.constructor-page .builder__btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 5px;
  font: 600 13px var(--cp-font-head);
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--cp-text-light);
  background: transparent;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
              transform 0.15s ease, box-shadow 0.25s ease;
}
.constructor-page .builder__btn--back {
  border-color: #303a45;
  color: #9ca7b4;
  order: 2;
}
.constructor-page .builder__btn--back:disabled { opacity: 0.3; cursor: not-allowed; }
.constructor-page .builder__btn--back:hover:not(:disabled) { border-color: #465361; color: #fff; transform: translateY(-2px); }

.constructor-page .builder__btn--next {
  background: var(--cp-accent);
  color: #15100d;
  border-color: var(--cp-accent);
  order: 1;
}
.constructor-page .builder__btn--next:hover:not(:disabled) {
  background: var(--cp-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 90, 31, 0.35);
}
.constructor-page .builder__btn--next:disabled { opacity: 0.5; cursor: not-allowed; }

/* Плитки */
.constructor-page .option-grid { display: grid; gap: 14px; }
.constructor-page .option-grid--additions { grid-template-columns: 1fr; gap: 12px; }

.constructor-page .option-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #29323d;
  background: #151c24;
  border-radius: 10px;
  cursor: pointer;
  color: var(--cp-text-light);
  font-family: var(--cp-font-head);
  text-align: left;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.constructor-page .option-tile:hover {
  border-color: #465361;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 90, 31, 0.15);
}
.constructor-page .option-tile.is-active {
  border-color: var(--cp-accent);
  background: rgba(255, 90, 31, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.25), 0 12px 32px rgba(255, 90, 31, 0.15);
}

.constructor-page .option-tile__image {
  width: 110px; height: 78px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #0f141a; border-radius: 8px; overflow: hidden; padding: 0;
}
.constructor-page .option-tile__image svg { width: 100%; height: 100%; display: block; max-height: 100%; }

.constructor-page .option-tile__icon { width: 72px; height: 72px; flex: none; }
.constructor-page .option-tile__icon svg,
.constructor-page .option-tile__icon img { width: 100%; height: 100%; display: block; object-fit: contain; }

.constructor-page .option-tile strong { font-size: 18px; font-weight: 700; color: #fff; text-align: left; line-height: 1.2; }
.constructor-page .option-tile small  { font-size: 13px; color: var(--cp-text-light-muted); line-height: 1.4; text-align: left; }

.constructor-page .option-tile--pattern {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 18px; padding: 18px 20px; color: #8a95a3;
}
.constructor-page .option-tile--pattern.is-active { color: var(--cp-accent); }
.constructor-page .option-tile--pattern strong { color: #fff; }
.constructor-page .option-tile--pattern.is-active strong { color: var(--cp-accent); }

.constructor-page .option-tile--addition {
  padding: 16px 20px; text-align: left; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  color: #e6edf5; cursor: pointer;
  display: flex; align-items: center; justify-content: flex-start; min-height: 56px;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.constructor-page .option-tile--addition:hover {
  border-color: rgba(255, 90, 31, 0.5); transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.constructor-page .option-tile--addition.is-active {
  border-color: var(--cp-accent); background: rgba(255, 90, 31, 0.08);
  box-shadow: 0 4px 12px rgba(255, 90, 31, 0.2);
}
.constructor-page .option-tile--addition strong { text-align: left; font-size: 16px; margin: 0; }

/* Группы узоров по темам */
.constructor-page .pattern-group { margin-bottom: 24px; }
.constructor-page .pattern-group:last-child { margin-bottom: 0; }
.constructor-page .pattern-group__head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--cp-border-dark);
}
.constructor-page .pattern-group__title {
  font-family: var(--cp-font-head); font-size: 14px; font-weight: 700;
  color: #fff; margin: 0; letter-spacing: -0.01em;
}
.constructor-page .pattern-group__desc {
  font-family: var(--cp-font-mono); font-size: 10px;
  color: var(--cp-text-light-muted); letter-spacing: 0.04em;
}

.constructor-page .option-grid--4,
.constructor-page .option-grid--3 {
  --tile-gap: 8px;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: var(--tile-gap) !important;
}
.constructor-page .option-grid--4 > .option-tile--pattern,
.constructor-page .option-grid--3 > .option-tile--pattern {
  flex: 0 0 calc((100% - 3 * var(--tile-gap)) / 4);
  max-width: calc((100% - 3 * var(--tile-gap)) / 4);
  box-sizing: border-box;
}

/* Плитка узора — вертикальная (иконка сверху) */
.constructor-page .option-tile--pattern {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 6px; text-align: center; min-height: 82px;
}
.constructor-page .option-tile--pattern .option-tile__icon { width: 40px; height: 40px; margin: 0 auto; }
.constructor-page .option-tile--pattern strong { font-size: 12px; text-align: center; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Счётчик лимита генераций */
.constructor-page .gen-limit-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 14px; border-radius: 8px;
  background: rgba(23, 217, 232, 0.06); border: 1px solid rgba(23, 217, 232, 0.22);
  font-family: var(--cp-font-mono); font-size: 11px; color: #c8d0dc; letter-spacing: 0.02em;
}
.constructor-page .gen-limit-bar strong { color: var(--cp-laser); font-weight: 700; }
.constructor-page .gen-limit-bar.is-reached { background: rgba(255, 90, 31, 0.08); border-color: rgba(255, 90, 31, 0.35); color: #ffb58a; }
.constructor-page .gen-limit-bar.is-reached strong { color: var(--cp-accent); }

.constructor-page .option-tile--pattern.is-locked { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.85); }
.constructor-page .option-tile--pattern.is-locked:hover { transform: none; border-color: #29323d; box-shadow: none; background: #151c24; }
.constructor-page .option-tile--pattern.is-generated { position: relative; border-color: rgba(23, 217, 232, 0.35); }
.constructor-page .option-tile--pattern.is-generated.is-active { border-color: var(--cp-accent); }
.constructor-page .option-tile__check {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cp-laser); color: #0b0f14;
  font-size: 10px; font-weight: 800; line-height: 1; pointer-events: none;
}

.constructor-page .gen-limit-cta {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  background: rgba(255, 90, 31, 0.07); border: 1px solid rgba(255, 90, 31, 0.3);
  display: flex; flex-direction: column; gap: 10px;
}
.constructor-page .gen-limit-cta[hidden] { display: none; }
.constructor-page .gen-limit-cta__text { margin: 0; font-size: 13px; line-height: 1.45; color: #e6edf5; }
.constructor-page .gen-limit-cta__btn { align-self: flex-start; }

/* Текстовые поля */
.constructor-page .text-field { margin-bottom: 20px; }
.constructor-page .text-field__label {
  display: block; font: 600 11px var(--cp-font-mono);
  color: var(--cp-text-light-muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.constructor-page .text-field input {
  width: 100%; height: 48px; border: 1px solid #303a45; border-radius: 6px;
  background: #0c1117; color: #fff; padding: 0 16px;
  font: 500 15px var(--cp-font-head); outline: none; transition: border-color 0.2s;
}
.constructor-page .text-field input:focus { border-color: var(--cp-accent); }
.constructor-page .text-field input::placeholder { color: #5b6577; }
.constructor-page .text-counter {
  display: flex; justify-content: space-between; margin-top: 8px;
  font: 500 11px var(--cp-font-mono); color: #647180;
}
.constructor-page .upload-field { display: block; margin-bottom: 8px; }
.constructor-page .upload-field input[type="file"] { display: none; }
.constructor-page .upload-field__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 24px; border: 1.5px dashed #3a4652; border-radius: 8px;
  background: #0f141a; color: #8b97a5; cursor: pointer; transition: 0.2s; min-height: 100px;
}
.constructor-page .upload-field__box:hover { border-color: var(--cp-accent); background: #12181f; }
.constructor-page .upload-field__box strong { color: #e2e7eb; font-size: 14px; font-weight: 600; }
.constructor-page .upload-field__box small { font-size: 11px; color: #7a8695; }

.constructor-page .place-switch { display: flex; gap: 8px; margin-top: 8px; }
.constructor-page .place-switch__btn {
  flex: 1; padding: 10px 8px; cursor: pointer; background: transparent; color: inherit;
  border: 1px solid #3a4452; border-radius: 8px; font: inherit; font-size: 14px;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.constructor-page .place-switch__btn:hover { border-color: #8a95a3; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.constructor-page .place-switch__btn.is-active { border-color: var(--cp-accent); background: rgba(255,90,31,0.12); box-shadow: 0 4px 12px rgba(255,90,31,0.2); }

.constructor-page .range { width: 100%; margin-top: 8px; accent-color: var(--cp-accent); }
.constructor-page .logo-actions { display: flex; gap: 8px; margin-top: 12px; }
.constructor-page .logo-actions__btn {
  flex: 1; padding: 10px 8px; cursor: pointer; background: transparent; color: inherit;
  border: 1px solid #3a4452; border-radius: 8px; font: inherit; font-size: 14px;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.constructor-page .logo-actions__btn:hover { border-color: #8a95a3; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

/* Правый превью-блок */
.constructor-page .builder__preview {
  display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 50% 50%, rgba(23,217,232,0.05), transparent 30%),
    radial-gradient(circle at 78% 62%, rgba(255,90,31,0.07), transparent 32%),
    #080c11;
  overflow: hidden; min-height: 0;
}
.constructor-page .preview__stage {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
}
.constructor-page #previewCanvas {
  display: block; width: 100%; height: 100%; cursor: grab;
}
.constructor-page #previewCanvas:active { cursor: grabbing; }
.constructor-page .preview__hint-3d {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font: 500 11px var(--cp-font-mono); color: #6b7787;
  background: rgba(0,0,0,0.4); padding: 6px 12px; border-radius: 20px;
  pointer-events: none; white-space: nowrap;
}
.constructor-page .preview__overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

.constructor-page .preview__loading {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; background: rgba(8,12,17,0.72); backdrop-filter: blur(4px);
  font-family: var(--cp-font-head); font-size: 14px; color: #c8d0dc;
  pointer-events: none; transition: opacity 0.2s ease;
}
.constructor-page .preview__loading[hidden] { display: none; }
.constructor-page .preview__loading-spinner {
  width: 42px; height: 42px; border: 3px solid rgba(255,90,31,0.2);
  border-top-color: var(--cp-accent); border-radius: 50%;
  animation: cpPreviewSpin 0.9s linear infinite;
}
@keyframes cpPreviewSpin { to { transform: rotate(360deg); } }

.constructor-page .preview__price {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 14px 40px; border-top: 1px solid var(--cp-border-dark);
  background: rgba(255,90,31,0.05); flex-wrap: wrap;
}
.constructor-page .preview__price-label {
  font: 600 11px var(--cp-font-mono); color: var(--cp-text-light-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.constructor-page .preview__price-value {
  font-family: var(--cp-font-head); font-size: 22px; font-weight: 800;
  color: var(--cp-accent); letter-spacing: -0.01em; display: inline-block;
}
.constructor-page .preview__price-value.is-flash { animation: cpPriceFlash 0.4s ease; }
@keyframes cpPriceFlash {
  0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); }
}

.constructor-page .preview__footer {
  padding: 16px 40px 22px; border-top: 1px solid var(--cp-border-dark);
  background: rgba(0,0,0,0.25);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.constructor-page .preview__label strong { display: block; font-size: 15px; color: #fff; font-weight: 700; }
.constructor-page .preview__label span {
  display: block; font: 500 11px var(--cp-font-mono); color: #657180; margin-top: 4px;
}
.constructor-page .preview__hint {
  font-size: 11px; color: #6b7787; max-width: 280px; text-align: right; line-height: 1.4;
}

/* Кнопка fullscreen на превью */
.constructor-page .preview__fullscreen-btn {
  position: absolute; right: 16px; bottom: 16px; z-index: 25;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20,26,32,0.78);
  border: 1px solid rgba(255,255,255,0.15);
  color: #d8e0ea; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.constructor-page .preview__fullscreen-btn svg { width: 20px; height: 20px; display: block; }
.constructor-page .preview__fullscreen-btn:hover {
  background: rgba(255,90,31,0.22); border-color: rgba(255,90,31,0.7);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,90,31,0.35);
}

/* Модалка fullscreen */
.fullscreen-view {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; background: rgba(8,12,17,0.75);
  backdrop-filter: blur(8px); animation: fullscreenFadeIn 0.3s ease;
}
.fullscreen-view[hidden] { display: none; }
@keyframes fullscreenFadeIn { from { opacity: 0; } to { opacity: 1; } }

.fullscreen-view__canvas-wrap {
  position: relative; width: min(1200px, 90vw); height: min(800px, 85vh);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  background: linear-gradient(to bottom, #6fa8d4 0%, #b8d8e8 40%, #2e4a22 60%, #1a2e12 100%);
  animation: fullscreenPop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fullscreenPop { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#fullscreenCanvas { display: block; width: 100%; height: 100%; cursor: grab; }
#fullscreenCanvas:active { cursor: grabbing; }

.fullscreen-view__close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(20,26,32,0.85); border: 1px solid rgba(255,255,255,0.15);
  color: #c8d0dc; font-size: 28px; line-height: 1; font-weight: 300;
  cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}
.fullscreen-view__close:hover {
  background: rgba(255,90,31,0.25); border-color: rgba(255,90,31,0.6);
  color: #fff; transform: rotate(90deg) scale(1.05);
}
.fullscreen-view__hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10;
  font: 500 12px 'JetBrains Mono', monospace; color: #e8eef0;
  background: rgba(0,0,0,0.5); padding: 8px 16px; border-radius: 20px;
  pointer-events: none; white-space: nowrap;
}

/* Адаптив конструктора */
@media (max-width: 1024px) {
  .constructor-page { height: auto; min-height: 100vh; max-height: none; overflow: visible; }
  .constructor-page .builder { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .constructor-page .builder__panel { border-right: 0; border-bottom: 1px solid var(--cp-border-dark); }
  .constructor-page .builder__preview { min-height: 500px; height: 70vh; }
  .constructor-page .builder__head { padding: 24px 24px 16px; }
  .constructor-page .builder__title { font-size: 24px; }
  .constructor-page .builder__content { padding: 24px; }
  .constructor-page .builder__actions { padding: 16px 24px; }
  .constructor-page .preview__price { padding: 12px 24px; }
  .constructor-page .preview__footer { padding: 14px 24px 18px; }
}

@media (max-width: 900px) {
  .constructor-page { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; margin-top: 24px; border-radius: 16px; }
  .constructor-page .builder { display: flex !important; flex-direction: column !important; grid-template-columns: none !important; height: auto !important; min-height: 0 !important; }
  .constructor-page .builder__preview { order: -1; position: relative; height: 55vh; min-height: 320px; max-height: 480px; width: 100%; }
  .constructor-page .builder__panel { order: 1; height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .constructor-page .builder__content { overflow-y: visible !important; height: auto !important; max-height: none !important; padding: 12px 16px; }
  .constructor-page .option-grid--4,
  .constructor-page .option-grid--3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .constructor-page .option-grid--4 > .option-tile--pattern,
  .constructor-page .option-grid--3 > .option-tile--pattern { flex: auto; max-width: none; }
  .constructor-page .option-tile--pattern { flex-direction: column; padding: 8px 6px; min-height: 70px; }
  .constructor-page .option-tile--pattern .option-tile__icon { width: 32px; height: 32px; }
  .constructor-page .option-tile--pattern strong { font-size: 11px; }
}

@media (max-width: 640px) {
  .constructor-page .builder__head { padding: 16px 16px 12px; }
  .constructor-page .builder__title { font-size: 18px; }
  .constructor-page .builder__help { font-size: 12px; }
  .constructor-page .builder__actions .builder__btn { height: 42px; font-size: 13px; }
  .constructor-page .preview__price { padding: 10px 16px; }
  .constructor-page .preview__price-value { font-size: 20px; }
  .constructor-page .preview__footer { padding: 12px 16px 14px; }
  .fullscreen-view { padding: 12px; }
  .fullscreen-view__canvas-wrap { width: 94vw; height: 80vh; max-height: 82vh; border-radius: 14px; }
}

/* ==========================================================================
   Нам доверяют — бегущая лента логотипов
   ========================================================================== */
.trust {
  overflow: hidden;
  background: var(--bg-muted);  
}

.trust__marquee {
  --trust-gap: 64px;
  --trust-speed: 40s;               /* ← скорость: больше число = медленнее */
  position: relative;
  margin-top: 48px;
  overflow: hidden;
  /* плавное затухание по краям */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust__track {
  display: flex;
  width: max-content;
  animation: trustScroll var(--trust-speed) linear infinite;
  will-change: transform;
}
.trust__marquee:hover .trust__track,
.trust__marquee:focus-within .trust__track { animation-play-state: paused; }

.trust__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--trust-gap);
  padding-right: var(--trust-gap);  /* чтобы стык групп был таким же, как между логотипами */
  margin: 0;
  list-style: none;
}

@keyframes trustScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* ровно одна группа из двух */
}

.trust__item { flex: none; }

.trust__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 90px;
  padding: 0;                    /* ★ убрали внутренние отступы */
  overflow: hidden;              /* ★ обрезаем по скруглению */
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.trust__item img {
  width: 100%;                   /* ★ растягиваем на всю ширину */
  height: 100%;                  /* ★ и на всю высоту */
  object-fit: cover;             /* ★ заполняет прямоугольник, обрезая лишнее */
  display: block;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.trust__item a:hover,
.trust__item a:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(18, 22, 29, 0.12);
  transform: translateY(-3px);
}
.trust__item a:hover img,
.trust__item a:focus-visible img { filter: none; opacity: 1; }

@media (max-width: 640px) {
  .trust__marquee { --trust-gap: 32px; --trust-speed: 30s; margin-top: 32px; }
  .trust__item a { width: 130px; height: 70px; padding: 10px 12px; }
}

/* Без анимации: лента листается пальцем / колесом */
@media (prefers-reduced-motion: reduce) {
  .trust__marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .trust__track { animation: none !important; }
}

/* ============================================================
   Кастомный select в форме заявки
   ============================================================ */
.order-select {
  position: relative;
  width: 100%;
}

/* Скрываем нативный <select>, но оставляем в DOM для формы */
.order-select select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  top: 0;
  left: 0;
}

.order-select__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.order-select__btn:hover {
  border-color: rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.04);
}

.order-select.is-open .order-select__btn,
.order-select__btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 90, 31, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15);
}

.order-select__btn svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.order-select.is-open .order-select__btn svg {
  transform: rotate(180deg);
}

.order-select__value {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
.order-select__value.is-placeholder {
  color: #6b7686;
  font-weight: 400;
}

/* Сам выпадающий список */
.order-select__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;

  padding: 8px;
  margin: 0;
  list-style: none;

  background: #1b212b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.4);

  max-height: 280px;
  overflow-y: auto;

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.order-select.is-open .order-select__list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.order-select__option {
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.order-select__option:hover,
.order-select__option.is-focused {
  background: rgba(255, 90, 31, 0.12);
  color: #fff;
}

.order-select__option.is-selected {
  background: var(--accent);
  color: #14100d;
  font-weight: 600;
}
.order-select__option.is-selected:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Скроллбар в списке */
.order-select__list::-webkit-scrollbar { width: 6px; }
.order-select__list::-webkit-scrollbar-track { background: transparent; }
.order-select__list::-webkit-scrollbar-thumb {
  background: rgba(255, 90, 31, 0.35);
  border-radius: 3px;
}
.order-select__list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 90, 31, 0.7);
}

/* ============================================================
   Плавный переход hero → следующий блок
   ============================================================ */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  z-index: 3;
  pointer-events: none;

  /* Плавное затухание к цвету следующей секции */
  background: linear-gradient(
    to bottom,
    rgba(18, 22, 29, 0)    0%,
    rgba(18, 22, 29, 0.15) 50%,
    rgba(18, 22, 29, 0.6)  80%,
    var(--bg-dark)         100%
  );
}

/* ============================================================
   Переключатель конструкторов + заглушка второго
   ============================================================ */
.constructor-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin: 32px 0 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
}

.constructor-switch__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-light-muted);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.constructor-switch__btn:hover:not(.is-active) {
  color: var(--text-light);
}

.constructor-switch__btn.is-active {
  background: var(--accent);
  color: #14100d;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.35);
}

.constructor-switch__btn:focus-visible {
  outline: 2px solid var(--laser);
  outline-offset: 3px;
}

/* Стадии конструктора */
/* Стадии конструктора — карточки coverflow */
.constructor-coverflow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.constructor-coverflow__stage {
  position: relative;
  width: 100%;
  perspective: 2200px;
  transform-style: preserve-3d;
}

.constructor-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 84%;
  margin: 0 auto;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* соседняя карточка: клик по ней открывает её, содержимое не кликабельно */
.constructor-stage:not(.is-active) { cursor: pointer; }
.constructor-stage:not(.is-active) > * { pointer-events: none; }

.constructor-stage > .constructor-placeholder { height: 100%; }

/* Стрелки */
.constructor-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 26, 32, 0.85);
  color: #c8d0dc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.constructor-arrow[hidden] { display: none; }
.constructor-arrow:hover {
  background: rgba(255, 90, 31, 0.15);
  border-color: rgba(255, 90, 31, 0.55);
  color: var(--accent);
}
.constructor-arrow:active { transform: translateY(-50%) scale(0.94); }
.constructor-arrow--prev { left: 16px; }
.constructor-arrow--next { right: 16px; }

@media (max-width: 900px) {
  .constructor-stage { width: 92%; }
  .constructor-arrow { display: none; }
}

/* Заглушка второго конструктора */
.constructor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 80px 32px;
  border: 1px dashed var(--border-dark);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  min-height: 420px;
}

.constructor-placeholder__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 90, 31, 0.1);
  color: var(--accent);
}
.constructor-placeholder__icon svg {
  width: 36px;
  height: 36px;
}

.constructor-placeholder__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
}

.constructor-placeholder__text {
  max-width: 460px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-light-muted);
}

@media (max-width: 640px) {
  .constructor-switch {
    display: flex;
    width: 100%;
  }
  .constructor-switch__btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .constructor-placeholder {
    padding: 48px 20px;
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .works-coverflow .works-arrow {
    display: none !important;
  }
}

/* ============================================================
   Мобила: таблица сравнения — карточки вместо горизонтального скролла
   ============================================================ */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; margin-top: 28px; }

  .compare-table {
    min-width: 0 !important;
    width: 100%;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  /* шапка с названиями колонок на мобиле не нужна: подписи берутся из data-label */
  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tbody { display: flex; flex-direction: column; gap: 14px; }

  .compare-table tbody tr {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(18, 22, 29, 0.06);
  }

  /* название параметра — заголовок карточки */
  .compare-table tbody th {
    padding: 14px 16px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: none;
  }

  .compare-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 11px 16px;
    font-size: 0.88rem;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
  }

  /* подпись колонки слева */
  .compare-table tbody td::before {
    content: attr(data-label);
    flex: none;
    max-width: 46%;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  /* строка УльтраРез — выделена */
  .compare-table tbody td.is-highlight {
    background: rgba(255, 90, 31, 0.08);
    border-bottom: none;
    font-weight: 700;
  }
  .compare-table tbody td.is-highlight::before { color: var(--accent-dark); }
}

/* ============================================================
   Блок «Знакомая ситуация» — идеальное выравнивание линий
   ============================================================ */

/* Обертка превращается в Grid с 2 колонками */
.problem-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  /* ★ Уменьшили отступ снизу (было просто margin, добавили padding) */
  margin-bottom: 0;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 90, 31, 0.05), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(23, 217, 232, 0.04), transparent 45%),
    var(--bg-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* Колонки теперь тоже Grid, чтобы строки совпадали */
.problem-split__col {
  /* ★ Уменьшили внешние отступы колонки, чтобы таблица была компактнее */
  padding: 32px 36px 24px; 
  display: grid;
  /* ★ 3 строки для пунктов + 1 строка для заголовка (auto) */
  grid-template-rows: auto repeat(3, 1fr); 
  gap: 0;
}

.problem-split__col:first-child {
  border-right: 1px solid var(--border-dark);
}

/* Заголовок-тег колонки */
.problem-split__heading {
  margin: 0 0 24px; /* ★ Уменьшили отступ под заголовком */
}

.problem-split__heading-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.4);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Пункты */
.problem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  
  /* ★ Уменьшили отступы внутри пунктов (было 24px, стало 16px) */
  padding-top: 16px; 
  padding-bottom: 16px;
  
  border-bottom: 1px solid var(--border-dark);
  height: 100%; /* Растягиваем на всю высоту строки Grid */
}

/* Первый пункт без отступа сверху */
.problem-split__col .problem-item:nth-of-type(1) {
  padding-top: 0;
}

/* Последний пункт без палочки */
.problem-split__col .problem-item:nth-of-type(3) {
  border-bottom: none;
  padding-bottom: 0;
}

/* Номера — неоновые */
.problem-item__num {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(23, 217, 232, 0.08);
  color: var(--laser);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px rgba(23, 217, 232, 0.25);
}

.problem-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.35;
}

.problem-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light-muted);
  line-height: 1.5;
}

/* Адаптив для мобильных */
@media (max-width: 900px) {
  .problem-split {
    grid-template-columns: 1fr;
  }
  .problem-split__col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
  .problem-split__col {
    padding: 32px 24px;
    /* На мобилке отключаем жесткие строки Grid */
    grid-template-rows: auto; 
  }
  .problem-item {
    height: auto;
  }
}

/* ============================================================
   Таблица цен внутри карточек товаров
   ============================================================ */
.product-price {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  overflow: hidden;
}

.product-price thead th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-dark);
}

.product-price tbody td {
  padding: 10px 14px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-dark);
}

.product-price tbody tr:last-child td {
  border-bottom: none;
}

.product-price tbody td:last-child {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .product-price {
    font-size: 0.82rem;
  }
  .product-price thead th,
  .product-price tbody td {
    padding: 8px 10px;
  }
}

/* ============================================================
   Блок «Наш цех и оборудование» — галерея под таблицей
   ============================================================ */
.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.equipment-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.equipment-gallery__item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.4);
}

.equipment-gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.equipment-gallery__item figcaption {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .equipment-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .equipment-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Блок «Наш цех и оборудование» — современный тёмный стиль
   ============================================================ */
.equipment-section {
  position: relative;
  overflow: hidden;
  
  background-image: 
    linear-gradient(to bottom, rgba(18, 22, 29, 0.85) 0%, rgba(18, 22, 29, 0.95) 100%),
    url('Images/equipment/workshop-bg.jpg');
    
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* ★ Убрали background-attachment: fixed — фоновый параллакс
     пересчитывается на каждом кадре и роняет FPS. */
}

/* --- Стеклянная таблица --- */
.equipment-table-wrap {
  margin-top: 48px;
  border-radius: 16px;
  border: 1px solid var(--border-dark);
  /* ★ backdrop-filter: blur() убран — на большой таблице он дорогой.
     Заменяем чуть более плотным фоном. */
  background: rgba(18, 22, 29, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}

.equipment-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  text-align: left;
}

.equipment-table th,
.equipment-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.equipment-table thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.2);
}

.equipment-table tbody th {
  font-weight: 700;
  color: var(--text-light);
  width: 20%;
}

.equipment-table tbody td {
  color: var(--text-light-muted);
}

.equipment-table tbody td:nth-child(2) {
  color: var(--text-light); /* Название станка чуть светлее */
}

/* Подсветка строки при наведении */
.equipment-table tbody tr {
  transition: background 0.2s ease;
}
.equipment-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.equipment-table tbody tr:last-child th,
.equipment-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Галерея фото --- */
.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.equipment-gallery__item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.equipment-gallery__item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 90, 31, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 90, 31, 0.1);
}

/* Контейнер для картинки с фиксированным соотношением */
.equipment-gallery__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1b212b;
  overflow: hidden;
}

.equipment-gallery__img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2; /* поверх плейсхолдера */
  transition: transform 0.5s ease;
}

.equipment-gallery__item:hover .equipment-gallery__img-wrap img {
  transform: scale(1.05);
}

/* Плейсхолдер с иконкой, если фото нет */
.equipment-gallery__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(244, 245, 247, 0.15);
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 70%);
}

.equipment-gallery__placeholder svg {
  width: 48px;
  height: 48px;
}

.equipment-gallery__item figcaption {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid var(--border-dark);
  background: rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
}

.equipment-gallery__item:hover figcaption {
  color: var(--accent);
}

/* --- Адаптив --- */
@media (max-width: 900px) {
  .equipment-table th,
  .equipment-table td {
    padding: 16px;
  }
  .equipment-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
  }
}

@media (max-width: 640px) {
  .equipment-table {
    min-width: 100%;
  }
  /* Превращаем таблицу в карточки на мобилке */
  .equipment-table thead {
    display: none;
  }
  .equipment-table tbody,
  .equipment-table tr,
  .equipment-table th,
  .equipment-table td {
    display: block;
    width: 100%;
  }
  .equipment-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-dark);
  }
  .equipment-table tbody tr:last-child {
    border-bottom: none;
  }
  .equipment-table th,
  .equipment-table td {
    border: none;
    padding: 4px 20px;
  }
  .equipment-table tbody th {
    font-size: 1.05rem;
    padding-bottom: 8px;
    color: var(--accent);
  }
  .equipment-table tbody td:nth-child(2) {
    font-weight: 600;
  }
  .equipment-table tbody td:nth-child(3) {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .equipment-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Блок «Сравнение» — белый фон, тени, акцент на УльтраРез
   ============================================================ */
.compare-section {
  position: relative;
  background: var(--bg-white);
  padding-top: 96px; /* Вернули стандартный отступ */
  padding-bottom: 96px;
  overflow: hidden;
}

/* ★ Мягкий и короткий fade */
.compare-section__fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px; /* Было 160px, стало 40px */
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(18, 22, 29, 0.6) 0%, /* Начинаем с полупрозрачного, а не глухого цвета */
    rgba(18, 22, 29, 0.1) 40%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Таблица */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(18, 22, 29, 0.08);
  overflow: hidden;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Шапка таблицы */
.compare-table thead th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #f8f9fa;
  border-bottom: 2px solid var(--border-light);
}

/* Первая колонка (Параметр) */
.compare-table tbody th {
  font-weight: 600;
  color: var(--text-dark);
  width: 20%;
}

/* Обычные ячейки */
.compare-table tbody td {
  color: var(--text-body);
}

/* ★ Колонка «УльтраРез» — акцент */
.compare-table__brand-col {
  background: rgba(255, 90, 31, 0.04);
  color: var(--accent) !important;
}

.compare-table tbody td.is-highlight {
  background: rgba(255, 90, 31, 0.04);
  color: var(--accent-dark);
  font-weight: 700;
  position: relative;
}

/* Левая оранжевая полоска у выделенной колонки */
.compare-table tbody td.is-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
}

/* Подсветка строк при наведении */
.compare-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}
.compare-table tbody tr:hover td.is-highlight {
  background: rgba(255, 90, 31, 0.08);
}

/* Убираем нижнюю границу у последней строки */
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Текст под таблицей */
.compare-section__bottom {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.compare-section__bottom a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.compare-section__bottom a:hover {
  color: var(--accent);
}

/* ============================================================
   Адаптив таблицы сравнения
   ============================================================ */
@media (max-width: 900px) {
  .compare-section {
    padding-top: 80px;
    padding-bottom: 64px;
  }
  .compare-section__fade-top {
    height: 120px;
  }
  .compare-table th,
  .compare-table td {
    padding: 16px;
  }
}

/* Мобильная версия — карточки (переопределяем старые стили) */
@media (max-width: 640px) {
  .compare-table {
    min-width: 0 !important;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-spacing: 0;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .compare-table tbody tr {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(18, 22, 29, 0.06);
  }

  .compare-table tbody th {
    padding: 16px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: none;
    width: 100%;
  }

  .compare-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 16px;
    font-size: 0.88rem;
    text-align: right;
    border-bottom: 1px solid var(--border-light);
  }

  .compare-table tbody td::before {
    content: attr(data-label);
    flex: none;
    max-width: 46%;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  /* Акцентная ячейка на мобилке */
  .compare-table tbody td.is-highlight {
    background: rgba(255, 90, 31, 0.08);
    border-bottom: none;
    font-weight: 700;
  }
  .compare-table tbody td.is-highlight::before {
    color: var(--accent-dark);
  }
  .compare-table tbody td.is-highlight::after {
    display: none; /* убираем полоску слева на мобилке, она не нужна */
  }
}

/* ============================================================
   Итоговая плашка в блоке «Процесс»
   ============================================================ */
.process-total {
  margin-top: 40px;
  padding: 24px 32px;
  border-radius: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 24px rgba(18, 22, 29, 0.04);
}

.process-total__label {
  font-size: 1.05rem;
  color: var(--text-body);
}

.process-total__value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .process-total {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 24px;
  }
  .process-total__value {
    font-size: 1.25rem;
  }
}

/* ============================================================
   Доставка и оплата (сетка карточек)
   ============================================================ */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.delivery-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(18, 22, 29, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.delivery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(18, 22, 29, 0.08);
}

.delivery-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 90, 31, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.delivery-card__icon svg {
  width: 24px;
  height: 24px;
}

.delivery-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.delivery-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .delivery-card {
    padding: 24px;
  }
}

/* ============================================================
   Доработки формы заявки (Кастомная загрузка файла)
   ============================================================ */
.file-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-dark);
  border-radius: 10px;
  padding: 16px;
  transition: border-color 0.2s;
}

.file-upload:hover {
  border-color: rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.04);
}

.file-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-upload__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: #14100d;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.file-upload__btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.file-upload__btn svg {
  width: 16px;
  height: 16px;
}

.file-upload__name {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.order-checkbox a {
  text-decoration: underline;
  color: var(--accent);
}
.order-checkbox a:hover {
  color: var(--accent-dark);
}

/* Аккордеон (общая обертка) */
.accordion {
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   Видео в галерее товаров
   ============================================================ */
.product-gallery__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.product-gallery__card--video {
  cursor: pointer;
}

/* Плашка "Видео" */
.product-gallery__video-hint {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-gallery__card--video.is-active .product-gallery__video-hint {
  opacity: 1;
  transform: translateY(0);
}

.product-gallery__card--video:not(.is-active) .product-gallery__video-hint {
  opacity: 0;
  transform: translateY(10px);
}

.product-gallery__video-hint svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Кнопка Play по центру (появляется при наведении) */
.product-gallery__card--video.is-active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
  
  /* Иконка Play через маску */
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff5a1f'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff5a1f'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  mask-size: 40px;
  -webkit-mask-size: 40px;
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  
  box-shadow: 0 10px 30px rgba(255, 90, 31, 0.4);
}

.product-gallery__card--video.is-active:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   Кнопка "На весь экран" на видео-слайде
   ============================================================ */
.product-gallery__fullscreen-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s;
}

.product-gallery__fullscreen-btn svg {
  width: 20px;
  height: 20px;
}

.product-gallery__card--video.is-active .product-gallery__fullscreen-btn {
  opacity: 1;
}

.product-gallery__card--video.is-active:hover .product-gallery__fullscreen-btn {
  transform: scale(1.05);
  background: rgba(255, 90, 31, 0.8);
  border-color: var(--accent);
}

/* ============================================================
   Полноэкранная модалка видео
   ============================================================ */
.fullscreen-video {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 17, 0.9);
  backdrop-filter: blur(10px);
  padding: 40px;
  animation: fullscreenFadeIn 0.3s ease;
}
.fullscreen-video[hidden] { display: none; }

.fullscreen-video__wrap {
  position: relative;
  width: min(1200px, 95vw);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  background: #000;
}

#fullscreenVideoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fullscreen-video__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 26, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.fullscreen-video__close:hover {
  background: rgba(255, 90, 31, 0.8);
  transform: rotate(90deg) scale(1.05);
}

@media (max-width: 640px) {
  .fullscreen-video { padding: 16px; }
  .fullscreen-video__wrap { aspect-ratio: 9 / 16; border-radius: 12px; }
  .fullscreen-video__close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 24px; }
}

/* ---------- Контакты в шапке ---------- */
.header__contacts {
  flex: none;
  display: flex;
  align-items: center;
  gap: 24px; /* Расстояние между блоком контактов и кнопкой */
}

/* Группа контактов: телефон сверху, соцсети снизу */
.header__contact-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* ★ Изменили с flex-end на center */
  gap: 4px;            /* Чуть увеличили отступ для красоты */
}

.header__phone {
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

/* Ряд с иконками соцсетей */
.header__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__social-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-light-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.header__social-link svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.header__social-link:hover {
  color: var(--accent);
}

.header__social-link:hover svg {
  transform: scale(1.15);
}

/* Прячем юзернеймы на средних экранах, чтобы ничего не съехало */
@media (max-width: 1280px) {
  .header__social-user {
    display: none;
  }
}

/* ============================================================
   Мобильная шапка (скрываем иконки соцсетей, оставляем только кнопку)
   ============================================================ */
@media (max-width: 960px) {
  /* Скрываем соцсети из шапки */
  .header__contact-group .header__socials {
    display: none;
  }
  
  /* Центрируем оставшийся телефон */
  .header__contact-group {
    align-items: flex-end;
    gap: 0;
  }
}

/* ============================================================
   Центрирование контактов в шапке (только MAX)
   ============================================================ */
@media (min-width: 961px) {
  .header__contact-group {
    align-items: center;
    gap: 6px;
  }
  
  .header__socials {
    justify-content: center;
  }
}

/* Скрываем блок соцсетей в мобильной шапке (там и так ничего не осталось) */
@media (max-width: 960px) {
  .header__contact-group .header__socials {
    display: none;
  }
}

/* ============================================================
   Кнопка «Наверх» для КОМПЬЮТЕРА (полностью изолированная)
   ============================================================ */
@media (min-width: 961px) {
  .mobile-fab-stack {
    display: contents; 
  }
  
  /* ★ СКРЫВАЕМ ВСЕ МОБИЛЬНЫЕ КНОПКИ (MAX и Звонок) на компьютере */
  .mobile-fab-btn {
    display: none !important; 
  }

  /* Настраиваем кнопку «Наверх» */
  .back-to-top {
    display: flex !important;
    position: fixed !important;
    bottom: 32px !important;
    right: 32px !important;
    z-index: 60 !important;
    
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important; 
    background: var(--accent) !important; 
    color: #14100d !important;
    
    align-items: center !important;
    justify-content: center !important;
    
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    
    box-shadow: 0 6px 24px rgba(255, 90, 31, 0.4) !important;
    cursor: pointer !important; 
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease !important;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
  }

  .back-to-top.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .back-to-top:hover {
    background: var(--accent-dark) !important;
    color: #fff !important;
    transform: translateY(-3px) !important; 
  }
}

/* --- Кнопки на МОБИЛЬНЫХ (MAX сверху, Наверх снизу) --- */
@media (max-width: 960px) {
  .mobile-fab-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
  }

  .mobile-fab-stack > * {
    pointer-events: auto;
  }

  /* Кнопка MAX */
  .mobile-socials__btn {
    display: grid;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #ff5a1f;
    color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
  }

  .mobile-socials__btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Кнопка Наверх */
  .back-to-top {
    display: flex;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #14100d;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(255, 90, 31, 0.4);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
  }

  .back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .back-to-top:hover {
    background: var(--accent-dark);
    color: #fff;
  }
}

@media (max-width: 480px) {
  .mobile-fab-stack {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  .mobile-socials__btn,
  .back-to-top {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
}

/* --- Кнопки на МОБИЛЬНЫХ --- */
@media (max-width: 960px) {
  .mobile-fab-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
  }

  .mobile-fab-stack > * {
    pointer-events: auto;
  }

  /* Общие стили для кнопок Позвонить и MAX */
  .mobile-fab-btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    text-decoration: none;
  }

  .mobile-fab-btn svg {
    width: 24px;
    height: 24px;
  }

  .mobile-fab-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-fab-btn:active {
    transform: scale(0.92);
  }

  /* Цвета кнопок */
  .mobile-fab-btn--phone {
    background: #22c55e; /* Зеленый цвет для звонка */
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
  }

  .mobile-fab-btn--max {
    background: #5d3fd3; /* Фирменный синий/фиолетовый цвет MAX */
    box-shadow: 0 6px 24px rgba(93, 63, 211, 0.4);
  }

  /* Кнопка Наверх */
  .back-to-top {
    display: flex;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #14100d;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(255, 90, 31, 0.4);
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
  }

  .back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .back-to-top:hover,
  .back-to-top:active {
    background: var(--accent-dark);
    color: #fff;
  }
}

/* Корректировка размеров для маленьких экранов */
@media (max-width: 480px) {
  .mobile-fab-stack {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  .mobile-fab-btn,
  .back-to-top {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
  .mobile-fab-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================================
   Кастомный скроллбар (фикс белой полосы при скролл-снэпе)
   ============================================================ */

/* ★ Гарантируем, что место под скроллбар всегда зарезервировано */
html {
  overflow-y: scroll !important;
  background-color: var(--bg-dark) !important;
}

/* Задаем стили для html и body с приоритетом */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: var(--bg-dark) !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: #2a3340 !important;
  border-radius: 5px !important;
  border: 2px solid var(--bg-dark) !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: var(--accent) !important;
}

/* Для Firefox */
html, body {
  scrollbar-width: thin !important;
  scrollbar-color: #2a3340 var(--bg-dark) !important;
}

/* ============================================================
   Анимация появления Hero (чистый CSS, без мигания)
   ============================================================ */

@keyframes fadeUpHero {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Применяем анимацию ко всем элементам */
.hero__title {
  animation: fadeUpHero 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero__subtitle {
  animation: fadeUpHero 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hero__actions {
  animation: fadeUpHero 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.stat-row {
  animation: fadeUpHero 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

/* ============================================================
   Состояние "Отправка..." для кнопки заявки
   ============================================================ */
.btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background: var(--accent) !important; /* Оставляем оранжевый */
  color: #14100d !important;
  transform: none !important; /* Убираем сдвиг при клике */
  box-shadow: none !important;
  pointer-events: none; /* Полностью отключаем клики */
}

/* ============================================================
   Акцентный текст в заголовках
   ============================================================ */
.text-accent {
  color: var(--accent) !important;
}

/* ============================================================
   Подсветка ссылок в подвале при наведении
   ============================================================ */
.footer__col a {
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--accent) !important;
}

/* ============================================================
   Запрещаем анимацию для фонов секций
   ============================================================ */
.section, 
.section--dark, 
.section--muted {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Задержка для каскадного появления */
.is-visible .section__eyebrow { transition-delay: 0.1s; }
.is-visible .section__title   { transition-delay: 0.25s; }
.is-visible .section__lead    { transition-delay: 0.4s; }

/* Задержка для каскадного появления карточек оборудования */
.equipment-gallery.reveal--stagger.is-visible > *:nth-child(1) { transition-delay: 0.0s; }
.equipment-gallery.reveal--stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.equipment-gallery.reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.equipment-gallery.reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 0.45s; }

/* ============================================================
   Каскадные задержки для отдельных блоков
   ============================================================ */
.reveal--delay-1 { transition-delay: 0.15s !important; }
.reveal--delay-2 { transition-delay: 0.3s !important; }
.reveal--delay-3 { transition-delay: 0.45s !important; }

/* ============================================================
   Строгие задержки для блоков (чтобы не появлялись раньше времени)
   ============================================================ */

/* Увеличиваем время анимации для красоты */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки */
.reveal--delay-1 { transition-delay: 0.15s !important; }
.reveal--delay-2 { transition-delay: 0.3s !important; }
.reveal--delay-3 { transition-delay: 0.45s !important; }

/* Отдельно для карточек доставки, чтобы они шли строго по очереди */
.delivery-card.reveal {
  transition-duration: 0.8s;
}

/* ============================================================
   Секция заявки на весь экран (с учетом шапки)
   ============================================================ */
#order {
  min-height: 100vh;
  min-height: 100dvh; /* Для мобильных браузеров */
  display: flex;
  align-items: center;
  padding-top: 100px; /* Отступ сверху, чтобы шапка не перекрывала контент */
  padding-bottom: 60px;
  scroll-margin-top: 68px; /* Магическое свойство: при скролле остановится ровно под шапкой */
}

/* ---------- Форма заявки ---------- */
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  
  /* ★ ВЫРАВНИВАНИЕ: вместо center ставим start */
  align-items: start; 
}

/* ★ Даем левому блоку небольшой отступ сверху, 
   чтобы визуально он начинался на одном уровне с полями формы */
.order-info {
  padding-top: 28px; 
  display: flex;
  flex-direction: column;
}

.order-info .section__title {
  margin-bottom: 16px;
}

/* Адаптив для мобильных (когда блоки встают друг под другом) */
@media (max-width: 900px) {
  .order-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .order-info {
    padding-top: 0; /* На мобилках отступ не нужен */
  }
}

/* ============================================================
   Плашка Cookie
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Чтобы не перекрывать клики, если скрыта */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__content {
  background: #1b212b; /* Темный фон, как у футера */
  border: 1px solid var(--border-dark);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  width: 100%;
}

.cookie-banner__content p {
  color: var(--text-light-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex: none;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cookie-btn--accept {
  background: var(--accent);
  color: #14100d;
}

.cookie-btn--accept:hover {
  background: var(--accent-dark);
  color: #fff;
}

.cookie-btn--decline {
  background: transparent;
  color: var(--text-light-muted);
  border-color: var(--border-dark);
}

.cookie-btn--decline:hover {
  color: var(--text-light);
  border-color: var(--text-light-muted);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 16px;
    padding: 16px 20px;
  }
  .cookie-banner__actions {
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero__title {
    /* ★ Базовый размер для второй строки (как было) */
    font-size: clamp(1.7rem, 8.5vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    font-weight: 800;
    text-wrap: balance;
  }
}

@media (max-width: 1100px) {
  .hero__br { display: none; }
}



.grecaptcha-badge { 
    visibility: hidden; 
}

/* ★ Заменяет filter: blur у неактивных карточек карусели.
   Затемнение через ::after — дёшево, без пересчёта пикселей. */
.works-card::after,
.product-gallery__card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background 0.35s ease;
  z-index: 1;
}

.works-card:not(.is-active)::after,
.product-gallery__card:not(.is-active)::after {
  background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
  .hero {
    padding: 80px 0 48px;
  }

  .hero .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ★ Базовый размер для второй строки */
  .hero__title {
    font-size: clamp(1.7rem, 8.5vw, 2.4rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    font-weight: 800;
  }

  /* ★ Первая строка — КРУПНЕЕ, с переносом, с бликом */
  .hero__title-glow {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2.4rem, 12vw, 3.4rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 14px rgba(255, 90, 31, 0.45));
    background-size: 100% 100%;
    /* никакого white-space: nowrap — текст переносится */
  }

  .hero__subtitle {
    font-size: 0.98rem !important;
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 100%;
  }

  .hero__actions {
    gap: 12px;
    margin-bottom: 28px;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 52px;
    font-size: 1rem;
    padding: 0 20px;
  }

  .stat-row {
    gap: 24px;
    padding-top: 28px;
  }

  .stat-row__value {
    font-size: 1.6rem;
  }

  .stat-row__label {
    font-size: 0.82rem;
  }
}

/* ============================================================
   Hero: мобильный блик от наклона телефона
   (использует те же --mx / --my, что и десктопный блик от курсора)
   ============================================================ */
@media (max-width: 900px) {
  /* ★ На телефоне блик меньше — так заметнее, как он «играет» по тексту */
  .hero__title-glow {
    background:
      radial-gradient(circle 90px at var(--mx, 30%) var(--my, 40%),
        #ffffff 0%,
        #ffe2d0 30%,
        rgba(255, 255, 255, 0) 100%),
      linear-gradient(90deg, #ff5a1f 0%, #ff7a35 50%, #ff5a1f 100%);
    -webkit-background-clip: text;
            background-clip: text;
  }
}

/* ============================================================
   DDoS-Guard dCAPTCHA — стилизация контейнера под сайт
   ============================================================ */
.ddg-captcha-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 16px 0 24px; /* ★ Добавили отступы сверху и снизу */
  
  /* ★ Стилизуем саму обертку в цветах сайта */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 16px;
}

/* ★ Принудительно задаем размеры iframe капчи */
.ddg-captcha-wrap iframe {
  margin: 0 auto;
  display: block;
  /* Стандартный размер виджета 300x74, можно увеличить */
  width: 320px !important;
  height: 80px !important;
  border-radius: 8px !important; /* Скругляем углы самой белой плашки */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important; /* Легкая тень */
}