/* ==========================================================================
   WindeTech — стили сайта
   1. Токены   2. База   3. Компоненты   4. Секции   5. Адаптив и анимации
   ========================================================================== */

/* 1. Токены ---------------------------------------------------------------- */
:root {
  --bg: #05070d;
  --bg-2: #080d18;
  --surface: #0b1220;
  --surface-2: #101828;
  --border: #152035;
  --border-2: #1e2c47;

  --text: #f4f7fb;
  --text-2: #c7d0e0;
  --muted: #9aa7bd;
  --dim: #7d8aa3;

  --accent: #0a84ff;
  --accent-2: #00d4ff;
  --accent-text: #4da3ff;
  --accent-strong: #0068da;

  --green: #22c55e;
  --green-text: #7cf0a9;
  --amber: #f5a524;
  --amber-text: #f2c66d;
  --red-text: #ff8a8a;

  --wa: #0f7f43;
  --wa-hover: #12924d;
  --tg: #1777ad;
  --tg-hover: #1a86c3;

  --radius: 16px;
  --radius-lg: 20px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* 2. База ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #1e2c47 var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.i18n-pending body { opacity: 0; }

h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(10, 132, 255, .35); color: #fff; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.text-grad,
h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #2e95ff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 3. Компоненты ------------------------------------------------------------ */

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s, filter .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1180f5 0%, #005fcc 100%);
  box-shadow: 0 10px 30px -10px rgba(10, 132, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -10px rgba(10, 132, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(10, 132, 255, .08); border-color: rgba(10, 132, 255, .55); }

.btn-wa { color: #fff; background: var(--wa); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-tg { color: #fff; background: var(--tg); }
.btn-tg:hover { background: var(--tg-hover); }

/* Метка над заголовком */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 11px;
  border: 1px solid rgba(10, 132, 255, .28);
  border-radius: 999px;
  background: rgba(10, 132, 255, .08);
  color: #8cc4ff;
  font: 600 12px/1.3 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

/* Карточки */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008)), var(--surface);
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(10, 132, 255, .28);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(10, 132, 255, .2), rgba(10, 132, 255, .07));
  color: #6fb6ff;
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile--lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-tile--lg .icon { width: 26px; height: 26px; }

/* Поля форм */
.field { display: grid; gap: 8px; min-width: 0; }
.field-label { display: inline-flex; gap: 4px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.field-row { display: grid; gap: 14px; }
.req { color: var(--red-text); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: #070c17;
  color: var(--text);
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 96px; line-height: 1.5; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6f7d96; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #2a3b5c; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #08101e;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .22);
}
.field.has-error input,
.field.has-error select { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, .14); }
.field-error { color: var(--red-text); font-size: 13px; font-weight: 600; }

.select-wrap { position: relative; display: block; }
.select-wrap select { padding-right: 42px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.select-wrap .icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--dim);
  pointer-events: none;
}
select option { background: var(--surface); color: var(--text); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Чипы выбора */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  user-select: none;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.chip:hover span { border-color: rgba(10, 132, 255, .5); color: #fff; }
.chip input:checked + span {
  border-color: var(--accent);
  background: rgba(10, 132, 255, .16);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .14);
}
.chip input:checked + span::before {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238cc4ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.chip--muted span { border-style: dashed; color: var(--muted); }
.step.has-error .chip span { border-color: rgba(255, 107, 107, .55); }

.checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.checklist li { position: relative; padding-left: 27px; }
.checklist li::before {
  content: "";
  position: absolute;
  top: .3em;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(10, 132, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234da3ff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

.fine-print { color: var(--dim); font-size: 13px; line-height: 1.55; }

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 60;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: #0e1729;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .85);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast--error { border-color: rgba(255, 107, 107, .55); }

/* 4. Секции ---------------------------------------------------------------- */

/* Шапка */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  border-bottom-color: var(--border);
  background: rgba(5, 7, 13, .8);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(30, 144, 255, .45)); }
.brand-name { color: #fff; font-size: 21px; font-style: italic; font-weight: 800; letter-spacing: -.02em; }
.brand-name span { color: #2e95ff; }

.main-nav { display: none; gap: 2px; margin-left: 8px; }
.main-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-actions > .lang-switch { display: none; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}
.lang-switch button {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font: 600 12px/1 var(--mono);
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { background: var(--accent-strong); color: #fff; }

.header-phone { display: none; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 700; white-space: nowrap; }
.header-phone .icon { width: 18px; height: 18px; color: var(--accent-text); }
.header-phone:hover { color: var(--accent-text); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: #fff;
  cursor: pointer;
}
.menu-toggle .icon { grid-area: 1 / 1; width: 22px; height: 22px; }
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100dvh - var(--header-h));
  padding: 6px 0 22px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 13, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.mobile-nav { display: grid; }
.mobile-nav > a { padding: 14px 2px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 18px; font-weight: 700; }
.mobile-menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; }
.mobile-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.mobile-phone .icon { color: var(--accent-text); }

/* Первый экран */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 540px at 78% 40%, rgba(10, 132, 255, .2), transparent 62%),
    radial-gradient(600px 380px at 8% 8%, rgba(0, 212, 255, .08), transparent 65%),
    linear-gradient(180deg, transparent 72%, var(--bg));
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 42%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 62% 42%, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; align-items: center; gap: clamp(32px, 5vw, 56px); }
.hero-copy { display: grid; justify-items: start; gap: 24px; min-width: 0; }
.hero-title {
  font-size: clamp(1.75rem, 8.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: break-word;
}
.hero-lead { max-width: 34em; color: var(--muted); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { width: 18px; height: 18px; color: var(--green); }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 540px; aspect-ratio: 1; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 4% 2% 22%;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(10, 132, 255, .22), transparent);
}
.pc-art { position: relative; width: 100%; height: 100%; overflow: visible; }
.hero-visual.is-paused *,
.hero-visual.is-paused *::before { animation-play-state: paused !important; }

.fan-frame { fill: #0a111f; stroke: #1c2a44; stroke-width: 2; }
.fan-ring { stroke: url(#g-rgb); stroke-width: 2.5; }
.fan-hub { fill: #0f1828; stroke: url(#g-rgb); stroke-width: 2; }
.blades { fill: #15213a; stroke: #2c4170; stroke-width: 3; }
.rotor { transform-box: fill-box; transform-origin: center; animation: spin 2.2s linear infinite; }
.rotor--b { animation-duration: 2.5s; }
.rotor--c { animation-duration: 2.05s; }
.rotor--rear { animation-duration: 1.6s; }
.ram-glow { animation: ram-pulse 4s ease-in-out infinite; }
.wind path { opacity: .9; }
.wind-flow path { stroke-dasharray: 22 260; stroke-dashoffset: 282; opacity: .85; animation: flow 2.8s linear infinite; }
.wind-flow path:nth-child(2) { animation-delay: -.9s; }
.wind-flow path:nth-child(3) { animation-delay: -1.8s; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(11, 18, 32, .94);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .75);
  animation: float 6s ease-in-out infinite;
}
.float-chip .icon { width: 16px; height: 16px; }
.chip-status { top: 3%; left: 6%; }
.chip-test { top: 47%; right: 0; animation-delay: -2s; }
.chip-test .icon { color: var(--green); }
.chip-city { bottom: 3%; left: 20%; animation-delay: -4s; }
.chip-city .icon { color: var(--accent-text); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }

/* Общие секции */
.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.section--alt { border-block: 1px solid #0e1626; background: var(--bg-2); }
.section > .container { position: relative; }
.section-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(10, 132, 255, .12), transparent 70%),
    radial-gradient(500px 280px at 88% 18%, rgba(0, 212, 255, .07), transparent 70%);
}
.section-glow--bottom { background: radial-gradient(700px 320px at 50% 100%, rgba(10, 132, 255, .12), transparent 70%); }

.section-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  text-align: center;
}
.section-head--left { justify-items: start; margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); }
.section-lead { max-width: 60ch; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.125rem); }

/* Услуги */
.services-grid { display: grid; gap: 18px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-3px); border-color: rgba(10, 132, 255, .38); box-shadow: 0 24px 50px -28px rgba(10, 132, 255, .55); }
.service-card--featured {
  border-color: rgba(10, 132, 255, .32);
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(10, 132, 255, .18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)),
    var(--surface);
}
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.service-card h3 { font-size: 19px; line-height: 1.25; }
.price-tag {
  padding: 9px 12px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font: 600 14px/1 var(--mono);
  white-space: nowrap;
}
.price-tag--free { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); color: var(--green-text); }
.card-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-2);
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.card-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }
.card-note--warn { color: var(--amber-text); }
.card-note--warn .icon { color: var(--amber); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--accent-text); font-size: 15px; font-weight: 700; }
.card-note + .card-link { margin-top: 0; }
.card-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card-link:hover .icon { transform: translateX(4px); }

.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 36px;
  color: var(--muted);
  text-align: center;
}

/* Конфигуратор */
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.perks .icon { width: 20px; height: 20px; color: var(--accent-2); }

.builder { display: grid; align-items: start; gap: 20px; }
.builder-main { display: grid; gap: 28px; padding: clamp(20px, 3vw, 32px); }
.step { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.step + .step { padding-top: 28px; border-top: 1px solid var(--border); }
.step-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 14px;
  padding: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}
.step-title .req { margin-left: -6px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(10, 132, 255, .3);
  border-radius: 8px;
  background: rgba(10, 132, 255, .14);
  color: #8cc4ff;
  font: 600 13px/1 var(--mono);
}
.step-hint { color: var(--dim); font-size: 13.5px; font-weight: 500; }
.select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.builder-summary { display: grid; gap: 18px; padding: 24px; }
.summary-title { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.summary-title .icon { color: var(--accent-2); }
.summary-list { display: grid; margin: 0; }
.summary-list > div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-2);
  font-size: 14px;
}
.summary-list dt { color: var(--dim); }
.summary-list dd { margin: 0; color: var(--text); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.summary-empty {
  padding: 16px;
  border: 1px dashed var(--border-2);
  border-radius: 12px;
  color: var(--dim);
  font-size: 14.5px;
  text-align: center;
}
.send-actions { display: grid; gap: 10px; }

/* Прайс */
.pricing-grid { display: grid; gap: 18px; }
.price-group { padding: 26px; }
.price-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
}
.price-group-title .icon { color: var(--accent-2); }
.price-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.price-row { display: flex; align-items: baseline; gap: 10px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.price-row > span:first-child { min-width: 0; }
.price-dots { flex: 1 1 20px; min-width: 16px; border-bottom: 2px dotted #22314f; transform: translateY(-4px); }
.price-row b { color: #fff; font: 600 15px/1.3 var(--mono); white-space: nowrap; }
.price-row b.is-free { color: var(--green-text); }
.price-note { margin-top: 4px; color: var(--dim); font-size: 13px; }
.price-note--warn { color: var(--amber-text); }

.pricing-extra { display: grid; gap: 18px; margin-top: 24px; }
.receipt {
  --zz: 14px;
  padding: 24px 24px 38px;
  border: 1px solid var(--border-2);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #0c1424;
  color: var(--muted);
  font: 500 14px/1.5 var(--mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
}
.receipt-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--text); font: 800 16px/1.3 var(--font); }
.receipt-title .icon { color: var(--accent-2); }
.receipt-list { display: grid; gap: 10px; margin: 0; padding: 0 0 14px; list-style: none; border-bottom: 1px dashed #2a3b5c; }
.receipt-list li,
.receipt-total { display: flex; justify-content: space-between; gap: 12px; }
.receipt-list b { color: var(--text); font-weight: 600; text-align: right; }
.receipt-total { padding-top: 14px; color: var(--text); font-weight: 600; }
.receipt-total b { color: var(--green-text); text-align: right; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(10, 132, 255, .3);
  border-radius: 18px;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(0, 212, 255, .1), transparent 70%),
    linear-gradient(180deg, rgba(10, 132, 255, .1), rgba(10, 132, 255, .03));
}
.callout h3 { margin-bottom: 10px; font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); }
.callout p { max-width: 52ch; margin-bottom: 20px; color: var(--muted); }

/* О нас */
.features-grid { display: grid; gap: 18px; }
.feature { display: grid; align-content: start; gap: 12px; padding: 24px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 15px; }

.process { margin-top: clamp(72px, 9vw, 112px); }
.steps { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.step-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.step-index {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1180f5, #005fcc);
  box-shadow: 0 10px 24px -10px rgba(10, 132, 255, .8);
  color: #fff;
  font: 600 16px/1 var(--mono);
}
.step-card h3 { font-size: 18px; }
.step-card p { color: var(--muted); font-size: 15px; }

/* Галерея */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.filter {
  padding: 9px 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { color: #fff; border-color: rgba(10, 132, 255, .5); }
.filter.is-active { border-color: transparent; background: var(--accent-strong); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px 14px 12px;
  background: linear-gradient(transparent, rgba(5, 7, 13, .92));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.lightbox { max-width: min(1100px, 94vw); max-height: 92vh; padding: 0; overflow: visible; border: 0; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(3, 5, 10, .9); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox figure { display: grid; justify-items: center; gap: 12px; margin: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 14px; object-fit: contain; }
.lightbox figcaption { color: var(--text-2); font-weight: 700; text-align: center; }
.lightbox button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: rgba(11, 18, 32, .88);
  color: #fff;
  cursor: pointer;
}
.lightbox-close { position: fixed; top: 16px; right: 16px; }
.lightbox-nav { position: fixed; top: 50%; margin-top: -24px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Отзывы */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.review { display: grid; align-content: start; gap: 14px; margin: 0; padding: 24px; }
.review-stars { display: flex; gap: 3px; color: #ffc44d; }
.review-stars .icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.review-text { position: relative; color: var(--text-2); font-size: 15.5px; }
.review-meta { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1180f5, #00b8e6);
  color: #fff;
  font-weight: 800;
}
.review-name { color: var(--text); font-weight: 700; }
.review-sub { color: var(--dim); font-size: 13px; }

/* FAQ */
.faq-layout { display: grid; gap: 32px; }
.faq-contact { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-list { display: grid; align-content: start; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color .2s, background-color .2s;
}
.faq-item[open] {
  border-color: rgba(10, 132, 255, .35);
  background: linear-gradient(180deg, rgba(10, 132, 255, .06), transparent 60%), var(--surface);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--dim); transition: transform .25s var(--ease), color .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--accent-2); }
.faq-answer { padding: 0 20px 20px; color: var(--muted); font-size: 15.5px; }
.faq-item[open] .faq-answer { animation: fade-down .3s var(--ease); }

/* Контакты */
.contact-layout { display: grid; gap: 32px; }
.contact-info { display: grid; align-content: start; gap: 22px; }
.contact-info .section-head { margin-bottom: 4px; }
.contact-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.contact-label { margin-bottom: 4px; color: var(--dim); font: 600 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.contact-value { display: block; color: var(--text); font-size: 17px; font-weight: 700; }
a.contact-value:hover { color: var(--accent-text); }
.messenger-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -10px; }

.contact-form { padding: clamp(22px, 3vw, 34px); }
.form-body { display: grid; gap: 18px; }
.form-title { font-size: 20px; }
.form-success { display: grid; justify-items: center; gap: 12px; padding: 48px 10px; text-align: center; }
.form-success p { color: var(--muted); }
.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .12);
  color: var(--green);
}
.success-icon .icon { width: 32px; height: 32px; }

/* Подвал */
.site-footer { padding-top: 56px; border-top: 1px solid var(--border); background: #04060b; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-brand { grid-column: 1 / -1; }
.footer-tagline { margin-top: 16px; color: var(--text); font-weight: 700; }
.footer-desc { margin-top: 6px; color: var(--dim); font-size: 14.5px; }
.footer-title { margin-bottom: 14px; color: var(--dim); font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a,
.footer-col li > span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-col .icon { width: 16px; height: 16px; color: var(--accent-text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 14px;
}
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.to-top:hover { color: #fff; }
.to-top .icon { width: 16px; height: 16px; transform: rotate(-90deg); }

/* Панель быстрой связи (телефоны) */
.action-bar {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background: rgba(11, 18, 32, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8);
  transform: translateY(160%);
  transition: transform .35s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border-radius: 12px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
}
.action-bar a:active { background: rgba(255, 255, 255, .06); }
.action-bar a:nth-child(1) .icon { color: var(--accent-text); }
.action-bar a:nth-child(2) .icon { color: #3ddc84; }
.action-bar a:nth-child(3) .icon { color: #4fb3ea; }

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

/* 5. Адаптив --------------------------------------------------------------- */

/* Одна колонка по умолчанию; minmax(0, …) не даёт длинным словам растягивать сетку шире экрана */
.hero-grid,
.services-grid,
.builder,
.pricing-grid,
.pricing-extra,
.features-grid,
.steps,
.faq-layout,
.contact-layout { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 419px) {
  .price-group,
  .service-card,
  .feature,
  .step-card { padding: 20px; }
  .price-row b { white-space: normal; text-align: right; }
  .brand-name { font-size: 19px; }
}

@media (max-width: 559px) {
  .float-chip { padding: 7px 11px; font-size: 12px; }
  .chip-status { left: 0; }
  .chip-city { left: 8%; }
  .callout { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 560px) {
  .header-actions > .lang-switch { display: inline-flex; }
}

@media (min-width: 600px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .send-actions--row { grid-template-columns: 1fr 1fr; }
  .send-actions--row [data-send="endpoint"] { grid-column: 1 / -1; }
}

@media (min-width: 680px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card--wide { grid-column: span 2; }
  .checklist--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
}

@media (max-width: 767px) {
  .site-footer { padding-bottom: 84px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) {
  .action-bar { display: none; }
}

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-extra { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps::before {
    content: "";
    position: absolute;
    top: 48px;
    right: 10%;
    left: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(10, 132, 255, .55), rgba(0, 212, 255, .55), transparent);
  }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero-title { font-size: clamp(2rem, 4.5vw, 3.6rem); }
  .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 56px; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .contact-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 48px; }
}

@media (min-width: 1000px) {
  .builder { grid-template-columns: minmax(0, 1fr) 360px; }
  .builder-summary { position: sticky; top: calc(var(--header-h) + 20px); }
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .main-nav { display: flex; }
  .menu-toggle,
  .mobile-menu { display: none !important; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (min-width: 1320px) {
  .header-phone { display: inline-flex; }
}

/* Анимации */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: 0; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes ram-pulse { 50% { opacity: .5; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
@keyframes fade-down { from { opacity: 0; transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .wind-flow { display: none; }
}
