/* =========================================================
   МОЛНИЯ — одностраничный сайт (index.html)
   Цвета — только переменные из themes.css.
   Листовки (single/dual/remote.html) этот файл не используют.
========================================================= */

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

:root {
  --header-h: 68px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --radius: 18px;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

html.is-locked {
  overflow: hidden;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
}

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

.wrap {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* =========================================================
   НЕБО: фон, сетка, вспышки молний
========================================================= */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-page);
}

.sky__glow {
  position: absolute;
  inset: 0;
  background:
    var(--storm-glow),
    radial-gradient(ellipse 50% 40% at 85% 110%, rgba(253, 224, 71, 0.06), transparent 70%);
}

.sky__grid {
  position: absolute;
  inset: -48px 0 0;
  background:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 10%, black 10%, transparent 75%);
  transform: translateY(calc(var(--scroll-y, 0) * -0.08px));
}

.sky__flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse 70% 55% at var(--flash-x, 50%) 0%, rgba(186, 230, 253, 0.32), transparent 70%);
}

.sky__flash.is-on {
  animation: sky-flash 0.9s ease-out;
}

@keyframes sky-flash {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  16%  { opacity: 0.15; }
  24%  { opacity: 0.8; }
  100% { opacity: 0; }
}

main {
  position: relative;
  z-index: 1;
}

/* =========================================================
   ШАПКА
========================================================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.topbar.is-scrolled {
  background: rgba(6, 10, 20, 0.72);
  border-bottom-color: var(--border-subtle);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent));
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__bolt {
  width: 26px;
  height: 26px;
  color: var(--accent-hot);
  filter: drop-shadow(0 0 8px var(--accent-hot-glow));
  transition: transform 0.4s var(--ease-spring);
}

.brand:hover .brand__bolt {
  transform: rotate(-12deg) scale(1.15);
}

.brand__name {
  font-family: "Russo One", sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  position: relative;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav__link {
  position: relative;
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.25s, background 0.25s;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link.is-active {
  color: var(--text);
}

.nav__indicator {
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 2px;
  width: var(--ind-w, 0);
  transform: translateX(var(--ind-x, 0));
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent));
  box-shadow: 0 0 10px var(--accent-hot-glow);
  opacity: var(--ind-o, 0);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s;
  pointer-events: none;
}

/* =========================================================
   ОБЩИЕ ЭЛЕМЕНТЫ
========================================================= */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  box-shadow: 0 0 22px var(--accent-glow);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 8px var(--accent-hot);
  animation: tag-blink 2.4s ease-in-out infinite;
}

@keyframes tag-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.title {
  font-family: "Russo One", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(var(--title-shadow));
}

.title__sub {
  display: block;
  margin-top: 0.12em;
  font-size: 0.5em;
  letter-spacing: 0.32em;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
}

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

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}

.btn:active {
  transform: scale(0.97);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  color: #0b0f1a;
  background: linear-gradient(120deg, #fde047, #fbbf24 45%, #7dd3fc);
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.5), 0 8px 30px rgba(253, 224, 71, 0.22);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(253, 224, 71, 0.8), 0 12px 40px rgba(253, 224, 71, 0.35), 0 0 30px var(--accent-glow);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--ghost {
  color: var(--accent-bright);
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.04);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ---------- молния-коннектор (как в листовках) ---------- */

.bolt-link {
  overflow: visible;
  animation: bolt-pulse 3.2s ease-in-out infinite;
}

@keyframes bolt-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.45)) drop-shadow(0 0 14px rgba(56, 189, 248, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.75)) drop-shadow(0 0 22px rgba(56, 189, 248, 0.55));
  }
}

/* =========================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   [data-reveal] прячется только при работающем JS (класс html.js)
========================================================= */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   ГЛАВНЫЙ ЭКРАН
========================================================= */

.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 96px;
  overflow: hidden;
}

.intro__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro__title {
  margin-top: 28px;
  font-size: clamp(64px, 17vw, 210px);
  line-height: 0.9;
}

.title__letters {
  display: inline-block;
}

/* градиент на каждой букве: у букв с transform/filter Chrome не рисует фон родителя через background-clip */
.title__letters .ch {
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.js .title__letters .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em) skewX(-12deg);
  filter: blur(12px);
  animation: letter-in 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.55s + var(--i) * 0.07s);
}

@keyframes letter-in {
  60% { filter: blur(0); }
  to  { opacity: 1; transform: none; filter: blur(0); }
}

.intro__title::after {
  content: "";
  position: absolute;
  inset: 20% 10%;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--accent-hot-glow), transparent 70%);
  opacity: 0;
  animation: title-glow 1.6s ease-out 1s forwards;
}

.intro__title {
  position: relative;
}

@keyframes title-glow {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0.45; }
}

.intro__lead {
  margin-top: 24px;
  text-align: center;
}

/* ---------- удар молнии на загрузке ---------- */

.strike {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(360px, 60vw);
  height: 78%;
  transform: translateX(-62%);
  pointer-events: none;
  overflow: visible;
}

.strike path {
  fill: none;
  stroke: url(#strike-gradient);
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: url(#bolt-glow);
}

.strike__path {
  stroke-width: 3.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation:
    strike-draw 0.45s cubic-bezier(0.6, 0, 0.9, 0.4) 0.15s forwards,
    strike-fade 2.4s ease-out 0.6s forwards;
}

.strike__branch {
  stroke-width: 2;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation:
    strike-draw 0.3s ease-in 0.3s forwards,
    strike-fade 1.6s ease-out 0.6s forwards;
}

.strike__branch--2 {
  animation-delay: 0.42s, 0.7s;
}

@keyframes strike-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes strike-fade {
  0%   { opacity: 1; }
  10%  { opacity: 0.2; }
  18%  { opacity: 0.9; }
  100% { opacity: 0.07; }
}

/* ---------- выбор продукта ---------- */

.picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1120px;
  margin-top: 48px;
}

.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 22px 44px 24px 22px;
  border-radius: var(--radius);
  text-align: left;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.85), rgba(12, 18, 32, 0.85));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0s),
    transform 0.5s var(--ease-out),
    border-color 0.4s,
    box-shadow 0.4s;
}

.pick::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.pick:hover,
.pick:focus-visible {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.pick:hover::before {
  opacity: 1;
}

.pick__img {
  align-self: center;
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
  filter: var(--image-glow);
  transition: transform 0.6s var(--ease-spring);
}

.pick:hover .pick__img {
  transform: scale(1.08) rotate(-2deg);
}

.pick__kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.pick__name {
  font-family: "Russo One", sans-serif;
  font-size: 20px;
  color: var(--text);
}

.pick__text {
  font-size: 13px;
  color: var(--text-muted);
}

.pick__go {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 18px;
  color: var(--accent-hot);
  transition: transform 0.35s var(--ease-spring);
}

.pick:hover .pick__go {
  transform: translateX(6px);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--border);
  border-radius: 14px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-hot);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* =========================================================
   РАЗДЕЛ ПРОДУКТА
========================================================= */

.product {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
}

.product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(900px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hot), var(--accent), transparent);
  opacity: 0.5;
}

.product__watermark {
  position: absolute;
  top: 40px;
  left: 50%;
  font-family: "Russo One", sans-serif;
  font-size: clamp(120px, 26vw, 360px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 189, 248, 0.12);
  transform: translateX(calc(-50% + var(--p, 0) * -18vw));
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.product__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.product__head .title {
  margin-top: 4px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  margin-top: 6px;
}

.stat {
  flex: 1 1 170px;
  position: relative;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hot), var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) calc(var(--d, 0s) + 0.2s);
}

.stat.is-in::before {
  transform: scaleX(1);
}

.stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat__value {
  margin-top: 6px;
  font-family: "Russo One", sans-serif;
  font-size: 28px;
  color: var(--stat-value-color);
  text-shadow: 0 0 20px var(--accent-hot-glow);
  font-variant-numeric: tabular-nums;
}

/* ---------- позиции (TX / RX …) ---------- */

.items {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 72px;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.item--flip .item__info  { order: 3; }
.item--flip .item__link  { order: 2; transform: scaleX(-1); }
.item--flip .item__photo { order: 1; }

.item__info {
  position: relative;
  padding: 30px 30px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 24, 40, 0.92), rgba(10, 15, 27, 0.92));
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.item__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.item__name {
  margin-top: 4px;
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  color: var(--text);
}

.features {
  margin: 18px 0 0;
  list-style: none;
}

.features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.features li + li {
  margin-top: 8px;
}

.features li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  color: var(--bullet-color);
}

.item__info .btn {
  margin-top: 24px;
}

.item__link {
  justify-self: center;
  width: 80px;
  height: 40px;
}

.item__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  perspective: 900px;
}

.item__photo img {
  max-height: 340px;
  width: auto;
  object-fit: contain;
  filter: var(--image-glow);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.4s var(--ease-out);
  animation: float 6s ease-in-out infinite;
}

.item:nth-child(2n) .item__photo img {
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

/* выезд половинок навстречу друг другу */

.js .item[data-reveal] {
  opacity: 1;
  transform: none;
}

.js .item[data-reveal] .item__info,
.js .item[data-reveal] .item__photo,
.js .item[data-reveal] .item__link {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
}

.js .item[data-reveal] .item__info  { transform: translateX(-60px); }
.js .item[data-reveal] .item__photo { transform: translateX(60px) scale(0.92); }
.js .item--flip[data-reveal] .item__info  { transform: translateX(60px); }
.js .item--flip[data-reveal] .item__photo { transform: translateX(-60px) scale(0.92); }

.js .item[data-reveal] .item__link {
  transition-delay: 0.35s;
}

.js .item[data-reveal].is-in .item__info,
.js .item[data-reveal].is-in .item__photo {
  opacity: 1;
  transform: none;
}

.js .item[data-reveal].is-in .item__link {
  opacity: 1;
}

.js .item--flip[data-reveal].is-in .item__link {
  transform: scaleX(-1);
}

/* ---------- карточки технологий ---------- */

.tech {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 72px;
}

.tech-card {
  position: relative;
  padding: 20px 20px 22px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.3s, transform 0.4s var(--ease-out), box-shadow 0.3s;
}

.tech-card:hover {
  border-color: var(--border);
  box-shadow: 0 0 26px var(--accent-glow);
}

.tech-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-bright);
}

.tech-card__text {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.tech-card--accent {
  border-color: var(--border);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* ---------- схема подключения ---------- */

.chain {
  margin-top: 72px;
}

.chain__title {
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.chain__row {
  display: grid;
  grid-template-columns: 1fr 64px 1.3fr 64px 1fr;
  align-items: center;
  gap: 10px;
}

.chain__link {
  justify-self: center;
  width: 56px;
  height: 28px;
}

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

.outro {
  position: relative;
  padding-top: 120px;
}

.outro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(900px, 90%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hot), var(--accent), transparent);
  opacity: 0.5;
}

.outro__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
}

.outro__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.outro__title {
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contacts {
  padding: 28px 30px;
  border-radius: var(--radius);
  font-style: normal;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px var(--accent-glow);
}

.contacts__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 24px;
  align-items: baseline;
}

.contacts__list dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts__list dd {
  font-size: 17px;
  font-weight: 600;
}

.contacts__list a {
  text-decoration: none;
  background: linear-gradient(var(--accent-hot), var(--accent-hot)) 0 100% / 0 1px no-repeat;
  transition: color 0.25s, background-size 0.35s var(--ease-out);
}

.contacts__list a:hover {
  color: var(--accent-hot);
  background-size: 100% 1px;
}

.footer {
  margin-top: 110px;
  padding: 26px 0 120px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}

.footer .brand__name {
  font-size: 18px;
}

/* =========================================================
   ПЛАВАЮЩИЕ КНОПКИ: ВВЕРХ + ЗАКАЗ
========================================================= */

.dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-spring);
}

.dock.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.dock__up,
.dock__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
}

.dock__up {
  color: var(--accent-bright);
  background: rgba(10, 15, 27, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dock__up svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-spring);
}

.dock__up:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.dock__up:hover svg {
  transform: translateY(-3px);
}

.dock__order {
  position: relative;
  color: #0b0f1a;
  background: linear-gradient(120deg, #fde047, #fbbf24 50%, #7dd3fc);
  box-shadow: 0 10px 30px rgba(253, 224, 71, 0.28), 0 0 0 1px rgba(253, 224, 71, 0.6);
}

.dock__order::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(253, 224, 71, 0.6);
  opacity: 0;
  animation: ring 2.8s ease-out infinite;
}

@keyframes ring {
  0%   { opacity: 0.8; transform: scale(0.95); }
  70%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; }
}

.dock__order:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(253, 224, 71, 0.4), 0 0 0 1px #fde047;
}

.dock__ctx {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(11, 15, 26, 0.85);
  color: var(--accent-hot);
}

.dock__ctx:empty {
  display: none;
}

.dock__ctx.is-swap {
  animation: ctx-swap 0.45s var(--ease-spring);
}

@keyframes ctx-swap {
  from { opacity: 0; transform: translateY(8px) scale(0.8); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   ФОРМА ЗАКАЗА
========================================================= */

.order {
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: min(92vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--text);
  overflow: visible;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-spring);
}

.order.is-open {
  opacity: 1;
  transform: none;
}

.order::backdrop {
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}

.order.is-open::backdrop {
  opacity: 1;
}

.order__panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  border-radius: inherit;
  background: linear-gradient(170deg, #0f1828, #090e1a 60%);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px var(--accent-glow);
  overflow: hidden;
}

.order__panel::before {
  content: "";
  height: 2px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--accent-hot), var(--accent), transparent);
}

.order__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 6px;
}

.order__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.order__title {
  margin-top: 2px;
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
}

.order__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease-spring);
}

.order__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.order__close:hover {
  color: var(--text);
  border-color: var(--border);
  transform: rotate(90deg);
}

.order__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 14px 26px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 6, 12, 0.5);
}

.order__actions .btn {
  min-height: 46px;
  padding: 10px 18px;
}

.order__actions .btn--primary {
  flex: 1 1 200px;
}

.field {
  border: 0;
  min-width: 0;
}

.field__label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field__error {
  margin-top: 8px;
  font-size: 13px;
  color: #fca5a5;
}

.field__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.is-shake {
  animation: shake 0.4s;
}

@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---------- переключатель системы ---------- */

.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
}

.seg__opt {
  position: relative;
}

.seg__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg__opt span {
  display: block;
  padding: 10px 8px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.seg__opt span:hover {
  color: var(--text);
}

.seg__opt input:checked + span {
  color: #0b0f1a;
  background: linear-gradient(120deg, #fde047, #7dd3fc);
  box-shadow: 0 0 18px var(--accent-hot-glow);
}

.seg__opt input:focus-visible + span {
  outline: 2px solid var(--accent-hot);
  outline-offset: 2px;
}

/* ---------- количество ---------- */

.qty-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border-radius: 12px;
  background: rgba(12, 18, 32, 0.8);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s, background 0.25s;
  animation: row-in 0.4s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(8px); }
}

.qty.is-picked {
  border-color: var(--border);
  background: rgba(56, 189, 248, 0.06);
}

.qty__name {
  font-size: 14px;
  font-weight: 600;
}

.stepper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
}

.stepper button {
  width: 38px;
  height: 38px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-bright);
  border-radius: 9px;
  transition: background 0.2s, color 0.2s;
}

.stepper button:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
}

.stepper input {
  width: 56px;
  height: 38px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.stepper input:focus-visible {
  outline-offset: -2px;
}

/* ---------- поля ввода ---------- */

.input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.input__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.input input,
.input textarea,
.input select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input textarea {
  resize: vertical;
}

.input select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.input select option {
  background: #0c1220;
}

.input input:focus,
.input textarea:focus,
.input select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.input input:disabled {
  opacity: 0.4;
}

.input input.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.input input::placeholder,
.input textarea::placeholder {
  color: rgba(139, 156, 184, 0.55);
}

.freq {
  display: grid;
  gap: 12px;
  animation: row-in 0.4s var(--ease-out);
}

.freq__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: #fde047;
}

.note {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-muted);
  background: rgba(56, 189, 248, 0.05);
  border: 1px dashed var(--border);
}

/* ---------- предпросмотр сообщения ---------- */

.preview__text {
  max-height: 200px;
  overflow: auto;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
}

/* ---------- всплывающее уведомление ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0b0f1a;
  background: linear-gradient(120deg, #fde047, #7dd3fc);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-spring);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   АНТЕННЫ: замеры КСВ
========================================================= */

.antenna {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.antenna + .antenna {
  margin-top: 40px;
}

.swr {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  margin: 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s),
    border-color 0.3s;
}

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

.swr__chart {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px 14px 10px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 70%),
    rgba(4, 6, 12, 0.55);
  border-right: 1px solid var(--border-subtle);
  cursor: crosshair;
  touch-action: pan-y;
}

.swr--flip .swr__chart {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--border-subtle);
}

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

/* ---------- SVG графика ---------- */

.swr-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Inter", system-ui, sans-serif;
  user-select: none;
}

.swr-grid {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.swr-grid--x {
  stroke: rgba(255, 255, 255, 0.035);
}

.swr-axis {
  fill: var(--text-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.swr-axis--title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.swr-zones {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.swr-zone--good { fill: rgba(253, 224, 71, 0.08); }
.swr-zone--ok   { fill: rgba(56, 189, 248, 0.06); }

.swr-zone-label {
  fill: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.swr-band-g {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}

.swr-band {
  fill: rgba(56, 189, 248, 0.08);
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out);
}

.swr-bracket {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.swr-band-label {
  fill: var(--accent-bright);
  font-size: 11px;
  font-weight: 600;
}

.swr-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.35)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.3));
}

.swr-head {
  fill: #fff;
  opacity: 0;
  filter: drop-shadow(0 0 5px #fde047) drop-shadow(0 0 12px #38bdf8);
  transition: opacity 0.4s;
}

.swr-marker {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: translateY(6px) scale(0.4);
  transition: opacity 0.3s, transform 0.55s var(--ease-spring);
}

.swr-marker.is-on {
  opacity: 1;
  transform: none;
}

.swr-marker circle {
  fill: var(--accent-hot);
  stroke: #0c1220;
  stroke-width: 2;
  transition: r 0.2s;
}

.swr-marker text {
  fill: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
}

.swr-marker.is-best text {
  fill: var(--text);
}

.swr-marker.is-hot circle {
  r: 7px;
}

.swr-cross {
  stroke: rgba(240, 244, 255, 0.4);
  stroke-dasharray: 3 3;
  opacity: 0;
}

.swr-dot {
  fill: var(--text);
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
}

.swr-svg.is-drawing .swr-zones,
.swr-svg.is-drawn .swr-zones { opacity: 1; }
.swr-svg.is-drawing .swr-head { opacity: 1; }
.swr-svg.is-drawn .swr-band-g { opacity: 1; }
.swr-svg.is-drawn .swr-band { transform: none; }
.swr-svg.is-hover .swr-cross,
.swr-svg.is-hover .swr-dot { opacity: 1; }

/* ---------- подсказка ---------- */

.swr-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--text);
  background: rgba(4, 6, 12, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity 0.15s;
}

.swr-tip.is-on {
  opacity: 1;
}

.swr-tip__val {
  font-family: "Russo One", sans-serif;
  color: var(--accent-hot);
}

.swr-tip__sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.swr__table tbody tr {
  transition: background 0.2s;
}

.swr__table tbody tr.is-hover td {
  background: rgba(56, 189, 248, 0.08);
}

.swr__photo {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 5px 14px 5px 5px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: zoom-in;
  transition: border-color 0.25s, color 0.25s;
}

.swr__photo img {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
}

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

.swr__data {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
}

.swr__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.swr__range {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.swr__table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.swr__table th {
  padding: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.swr__table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.swr__table th:last-child,
.swr__table td:last-child {
  text-align: right;
}

.swr__table td:first-child {
  color: var(--text-muted);
}

.swr__table td:last-child {
  font-family: "Russo One", sans-serif;
  color: var(--stat-value-color);
}

.swr__table tr.is-best td {
  color: var(--text);
}

.swr__table tr.is-best td:last-child {
  color: var(--accent-hot);
  text-shadow: 0 0 14px var(--accent-hot-glow);
}

.swr__table tr.is-best td:first-child::after {
  content: "лучший";
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b0f1a;
  background: var(--accent-hot);
}

.swr__note {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- замер крупно ---------- */

.lightbox {
  max-width: 96vw;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  cursor: zoom-out;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-spring);
}

.lightbox.is-open {
  opacity: 1;
  transform: none;
}

.lightbox::backdrop {
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s;
}

.lightbox.is-open::backdrop {
  opacity: 1;
}

.lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: 90vh;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px var(--accent-glow);
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(4, 6, 12, 0.8);
  border: 1px solid var(--border);
}

.lightbox__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

@media (max-width: 1100px) {
  .picker {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

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

  .swr__chart,
  .swr--flip .swr__chart {
    order: 0;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .swr__data {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .seg {
    grid-template-columns: repeat(2, 1fr);
  }

  .antenna + .antenna {
    margin-top: 24px;
  }
}

/* =========================================================
   АДАПТИВ
========================================================= */

@media (max-width: 960px) {
  .tech {
    grid-template-columns: repeat(2, 1fr);
  }

  .outro__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .picker {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 12px;
  }

  .pick {
    display: grid;
    grid-template-columns: 96px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    padding: 16px 44px 16px 16px;
  }

  .pick__img {
    grid-row: 1 / 4;
    height: 72px;
    margin: 0;
  }

  .pick__go {
    top: 50%;
    bottom: auto;
    margin-top: -12px;
  }

  .item,
  .item--flip {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .item .item__photo,
  .item--flip .item__photo {
    order: 1;
    min-height: 0;
    padding-bottom: 8px;
  }

  .item .item__link,
  .item--flip .item__link {
    order: 2;
    transform: rotate(90deg);
    margin: 4px 0 10px;
  }

  .js .item--flip[data-reveal].is-in .item__link {
    transform: rotate(90deg);
  }

  .item .item__info,
  .item--flip .item__info {
    order: 3;
  }

  .js .item[data-reveal] .item__info,
  .js .item--flip[data-reveal] .item__info {
    transform: translateY(40px);
  }

  .js .item[data-reveal] .item__photo,
  .js .item--flip[data-reveal] .item__photo {
    transform: scale(0.9);
  }

  .item__photo img {
    max-height: 240px;
  }

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

  .chain__link {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .js .chain__link[data-reveal].is-in {
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .wrap,
  .topbar__inner {
    padding: 0 16px;
  }

  .topbar__inner {
    gap: 12px;
  }

  .nav__link {
    padding: 10px 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .brand__name {
    font-size: 17px;
  }

  .lead {
    font-size: 15px;
  }

  .product {
    padding: 88px 0 80px;
  }

  .items,
  .tech,
  .chain {
    margin-top: 48px;
  }

  .item__info {
    padding: 22px 20px;
  }

  .item__info .btn,
  .product__head .btn {
    width: 100%;
  }

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

  .stat {
    flex-basis: 130px;
    padding: 14px 16px;
  }

  .stat__value {
    font-size: 22px;
  }

  .contacts {
    padding: 22px 20px;
  }

  .contacts__list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contacts__list dd + dt {
    margin-top: 12px;
  }

  .dock {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .dock__up {
    padding: 0 18px;
  }

  .dock__up-label {
    display: none;
  }

  .dock__order {
    flex: 1;
  }

  /* форма — шторка снизу */
  .order {
    width: 100%;
    max-height: 94vh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.5s var(--ease-out);
  }

  .order__head,
  .order__body,
  .order__actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .order__actions {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .order__actions .btn {
    flex: 1 1 0;
  }

  .order__actions .btn--primary {
    flex-basis: 100%;
  }

  .field--row,
  .freq__pair {
    grid-template-columns: 1fr;
  }

  .seg__opt span {
    padding: 10px 4px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .topbar .brand__name {
    display: none;
  }

  .nav__link {
    padding: 10px 8px;
  }
}

/* =========================================================
   МЕНЬШЕ ДВИЖЕНИЯ
========================================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .product__watermark {
    transform: translateX(-50%);
  }

  .sky__grid {
    transform: none;
  }
}
