/* =========================================================
   MEGA FULL — фулфилмент для маркетплейсов
   Дизайн-система: тёмный премиум, бренд-палитра из логотипа
   ========================================================= */

/* ---------- 1. Токены ---------- */
:root {
  /* Бренд (снято с логотипа) */
  --brand-violet: #64359d;
  --brand-green: #538838;
  --brand-gold: #fedd72;

  /* Фиолетовая шкала для тёмного фона */
  --violet-100: #ede4ff;
  --violet-300: #c3a6ff;
  --violet-400: #a97dff;
  --violet-500: #8b5cf6;
  --violet-600: #7139d8;
  --violet-700: #64359d;
  --violet-900: #2a1350;

  /* Акценты */
  --magenta: #e23fa8;
  --green-400: #8bd65e;
  --green-500: #6cc23f;
  --gold-400: #fedd72;
  --gold-500: #f5c542;

  /* Поверхности */
  --ink: #07050d;
  --ink-2: #0c0916;
  --surface: #120d20;
  --surface-2: #191231;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Текст */
  --text: #f2edff;
  --text-dim: #b3a9c9;
  --text-mute: #8177a0;

  /* Градиенты */
  --grad-brand: linear-gradient(120deg, #64359d 0%, #8b5cf6 45%, #e23fa8 100%);
  --grad-glow: radial-gradient(60% 60% at 50% 0%, rgba(139, 92, 246, 0.28), transparent 70%);
  --grad-gold: linear-gradient(120deg, #fedd72, #f5a742);

  /* Типографика */
  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* Радиусы */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Тени */
  --sh-card: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --sh-glow: 0 0 40px -8px rgba(139, 92, 246, 0.55);

  /* Ритм */
  --shell: 1240px;
  --pad: clamp(18px, 4vw, 40px);
  --sec-y: clamp(72px, 11vw, 152px);

  /* Движение */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.45s;
}

/* ---------- 2. Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

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

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

img {
  height: auto;
}

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

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

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

ul,
ol {
  list-style: none;
  padding: 0;
}

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

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

/* Зерно поверх всей страницы — «дорогая» фактура */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. Утилиты ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: var(--sec-y);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-300);
  backdrop-filter: blur(10px);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 12px var(--green-400);
}

/*
 * text-wrap:balance переупорядочивает переносы строк, подгоняя их под
 * равную длину, и для этого само пересчитывает раскладку на более узкой
 * синтетической ширине. Вместе с overflow-wrap:break-word и hyphens:auto
 * это заставляло браузер резать длинные слова («маркетплейсах») ради
 * баланса строк — даже когда слово физически помещается в колонку.
 * Подтверждено измерением на реальном шрифте: слово всегда влезает,
 * поэтому принудительный разрыв не нужен — оставляем обычный перенос
 * по словам.
 */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Grid- и flex-элементы не должны распирать контейнер длинным словом */
.shell > *,
.hero__grid > *,
.about__grid > *,
.cards > *,
.plans > *,
.steps > *,
.results > *,
.contacts > *,
.calc > * {
  min-width: 0;
}

/* Кегль ограничен так, чтобы «маркетплейсах» — самое длинное слово
   заголовка — всегда влезало в строку целиком и не разрывалось.
   На мобильных колонка одна и широкая, на десктопе — узкая половина
   hero-сетки, поэтому пределы разные (десктопный ниже в брейкпоинтах). */
.h-xl {
  font-size: clamp(1.75rem, 7.4vw, 2.6rem);
}

/* Нижняя граница подобрана под самый узкий контейнер — заголовок внутри
   блока .cta, у которого есть собственные отступы поверх отступов страницы.
   Длинные слова («масштабировать») должны влезать целиком и там. */
.h-lg {
  font-size: clamp(1.5rem, 3.7vw, 3.05rem);
}

.h-md {
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.18;
}

.h-sm {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.25;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--text-dim);
  max-width: 62ch;
  text-wrap: pretty;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Вертикальный ритм для связки «плашка → заголовок → лид».
   Без него соседние блоки слипаются: у h2 и p нет своих margin. */
.stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(38px, 5.5vw, 68px);
  align-items: flex-start;
}

.sec-head--center {
  align-items: center;
  text-align: center;
}

.sec-head--center .lead {
  margin-inline: auto;
}

/* ---------- 4. Кнопки ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  box-shadow: 0 12px 30px -12px rgba(139, 92, 246, 0.8);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, #e23fa8, #8b5cf6 55%, #64359d);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(226, 63, 168, 0.7);
}

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

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.btn--ghost::before {
  background: rgba(255, 255, 255, 0.09);
}

.btn--ghost:hover {
  box-shadow: none;
  border-color: var(--violet-400);
}

.btn--lg {
  min-height: 62px;
  padding: 19px 38px;
  font-size: 16px;
}

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

.btn svg {
  flex: none;
}

/* ---------- 5. Хедер ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 18px;
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease);
}

.header.is-stuck {
  padding-block: 10px;
  background: linear-gradient(to bottom, rgba(7, 5, 13, 0.92), rgba(7, 5, 13, 0));
  backdrop-filter: blur(6px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand img {
  width: 128px;
  transition: width var(--dur) var(--ease);
}

.header.is-stuck .brand img {
  width: 108px;
}

/* Меню-таблетка (референс) */
.nav {
  display: none;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(18, 13, 32, 0.7);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: var(--sh-card);
}

.nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

@media (min-width: 1280px) {
  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 10px 17px;
  }
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header__phone {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 13px 21px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.header__phone:hover {
  border-color: var(--violet-400);
  color: var(--violet-300);
}

.header__cta .btn {
  min-height: 48px;
  padding: 13px 24px;
  font-size: 14.5px;
}

/* На узких экранах CTA живёт в бургер-меню и в плавающем доке */
@media (max-width: 599px) {
  .header__cta .btn {
    display: none;
  }

  .brand img {
    width: 108px;
  }

  .header.is-stuck .brand img {
    width: 96px;
  }
}

/* Бургер */
.burger {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.burger span + span {
  margin-top: 4px;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 100px var(--pad) 40px;
  background: rgba(7, 5, 13, 0.97);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(18px);
}

.mobile-menu.is-open a {
  animation: menuIn 0.5s var(--ease) forwards;
}

@keyframes menuIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-menu__foot {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(130px, 19vw, 190px);
  padding-bottom: clamp(60px, 9vw, 110px);
  overflow: hidden;
}

.hero > .shell + .shell {
  margin-top: clamp(38px, 6vw, 60px);
}

/* На больших мониторах hero занимает весь экран (рассчитано под 1920×1080),
   на мобильных — высота по контенту, иначе адресная строка обрежет верстку */
@media (min-width: 1280px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: grayscale(0.35) contrast(1.1);
  transform: scale(1.08);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 5, 13, 0.86) 0%, rgba(7, 5, 13, 0.94) 45%, var(--ink) 100%);
}

/* Неоновые «кляксы» из фирменного PDF */
.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

.orb--1 {
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%);
}

.orb--2 {
  bottom: -220px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(226, 63, 168, 0.35), transparent 65%);
}

.orb--3 {
  top: 32%;
  left: 42%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(108, 194, 63, 0.22), transparent 65%);
}

.hero__grid {
  display: grid;
  gap: clamp(38px, 6vw, 60px);
}

.hero__title {
  margin-block: 22px 0;
}

.hero__lead {
  margin-top: 22px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-mute);
}

.hero__note svg {
  flex: none;
  color: var(--green-400);
}

/* Плашки-офферы */
.offers {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}

.offer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(14px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.offer:hover {
  transform: translateX(5px);
  border-color: var(--violet-500);
}

.offer__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--grad-brand);
  color: #fff;
}

.offer b {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.offer span {
  font-size: 13.5px;
  color: var(--text-mute);
}

/* Статы в hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}

.hero__stat {
  padding: 26px 22px;
  background: var(--ink-2);
}

.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(150deg, #fff 25%, var(--violet-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Только прямой потомок — иначе правило съедало сам счётчик внутри <b> */
.hero__stat > span {
  display: block;
  margin-top: 11px;
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.4;
}

/* ---------- 7. Маркетплейсы (бегущая строка) ---------- */
.marquee {
  position: relative;
  padding-block: 30px;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 12vw, 180px);
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--ink-2), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--ink-2), transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-500);
}

/* ---------- 8. Секция «О нас» ---------- */
.about__grid {
  display: grid;
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(100, 53, 157, 0.4));
}

.about__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(12, 9, 22, 0.82);
  backdrop-filter: blur(18px);
}

.about__badge b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.about__badge span {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.3;
}

.about__list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.about__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text-dim);
}

.about__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--green-400);
}

/* ---------- 9. Карточки-услуги ---------- */
.cards {
  display: grid;
  gap: 16px;
}

.card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.17), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

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

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

.card__ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet-300);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.6;
}

.card__price {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: rgba(254, 221, 114, 0.11);
  border: 1px solid rgba(254, 221, 114, 0.25);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-400);
}

/* ---------- 10. Калькулятор ---------- */
.calc {
  display: grid;
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--surface-2), var(--ink-2) 65%);
  overflow: hidden;
  box-shadow: var(--sh-card);
}

.calc__form {
  padding: clamp(26px, 4vw, 46px);
  display: grid;
  gap: 24px;
  align-content: start;
}

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

.field > label,
.field > .field__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.field input[type="number"],
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23b3a9c9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 46px;
  cursor: pointer;
}

.field select option {
  background: var(--surface-2);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet-500);
  background: rgba(139, 92, 246, 0.07);
  outline: none;
}

.field input[type="range"] {
  width: 100%;
  height: 6px;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(to right, var(--violet-500) var(--pct, 20%), rgba(255, 255, 255, 0.11) var(--pct, 20%));
  appearance: none;
  cursor: pointer;
}

.field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--violet-500);
  cursor: grab;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.field input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--violet-500);
  cursor: grab;
}

.field__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field__val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Чипы-переключатели */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chip span {
  display: block;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.chip input:checked + span {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(139, 92, 246, 0.9);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--violet-400);
  outline-offset: 3px;
}

/* Результат калькулятора */
.calc__out {
  padding: clamp(26px, 4vw, 46px);
  background: linear-gradient(160deg, rgba(100, 53, 157, 0.28), rgba(226, 63, 168, 0.1));
  border-top: 1px solid var(--line-strong);
  display: grid;
  align-content: start;
  gap: 22px;
}

.calc__total {
  display: grid;
  gap: 6px;
}

.calc__total b {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.calc__total span {
  font-size: 13.5px;
  color: var(--text-dim);
}

.calc__rows {
  display: grid;
  gap: 1px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  background: rgba(12, 9, 22, 0.72);
  font-size: 14px;
}

.calc__row span {
  color: var(--text-dim);
}

.calc__row b {
  font-weight: 700;
  white-space: nowrap;
}

.calc__row--sum {
  background: rgba(12, 9, 22, 0.94);
}

.calc__row--sum b {
  color: var(--gold-400);
}

.calc__hint {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* Группы полей внутри калькулятора */
.calc__group {
  display: grid;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.calc__gtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.calc__mini {
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
}

/* Зелёный чип — для скидки */
.chip--green input:checked + span {
  background: linear-gradient(120deg, var(--brand-green), var(--green-500));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(108, 194, 63, 0.9);
}

.calc__row--off {
  color: var(--green-400);
}

.calc__row--off span,
.calc__row--off b {
  color: var(--green-400);
}

/* ---------- 11. Прайс ---------- */
/* На мобильных четыре вкладки не помещаются в строку. Раньше они
   переносились и контейнер со скруглением-таблеткой превращался
   в высокий овал с заметной светлой обводкой — выглядело плохо.
   Теперь это горизонтальная лента с прокруткой и обычным скруглением;
   на широких экранах возвращается прежняя таблетка по ширине контента. */
.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  padding: 7px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-2);
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

@media (min-width: 760px) {
  .tabs {
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    border-radius: var(--r-pill);
    overflow-x: visible;
  }
}

.tab {
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-mute);
  white-space: nowrap;
  min-height: 44px;
  transition: all 0.3s var(--ease);
}

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

.tab.is-active {
  background: var(--grad-brand);
  color: #fff;
}

.tabpanel[hidden] {
  display: none;
}

.price-grid {
  display: grid;
  gap: 16px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  overflow: hidden;
}

.price-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 24px;
  background: linear-gradient(100deg, rgba(100, 53, 157, 0.5), rgba(100, 53, 157, 0.14));
  border-bottom: 1px solid var(--line);
}

.price-card__head h3 {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.price-card__head svg {
  flex: none;
  color: var(--violet-300);
}

.price-card ul {
  padding: 8px 0;
}

.price-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 24px;
  font-size: 14.5px;
  transition: background 0.25s var(--ease);
}

.price-card li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.price-card li span {
  color: var(--text-dim);
  line-height: 1.45;
}

.price-card li b {
  flex: none;
  font-weight: 800;
  color: var(--gold-400);
  white-space: nowrap;
}

.price-card li b.is-free {
  color: var(--green-400);
}

.price-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
}

.price-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--gold-400);
}

/* ---------- 12. Тарифы ведения кабинета ---------- */
.plans {
  display: grid;
  gap: 18px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface), var(--ink-2));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.plan:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.plan--hot {
  border-color: var(--violet-500);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 30px 70px -30px rgba(139, 92, 246, 0.75);
}

.plan__tag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 6px 15px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plan__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet-400);
  margin-bottom: 12px;
}

.plan h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.plan__desc {
  font-size: 14.5px;
  color: var(--text-mute);
  margin-bottom: 24px;
  line-height: 1.6;
}

.plan__price {
  padding-block: 20px;
  border-block: 1px solid var(--line);
  margin-bottom: 24px;
}

.plan__price b {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan__price i {
  font-style: normal;
  font-size: 14px;
  color: var(--text-mute);
}

.plan__price span {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  color: var(--text-mute);
}

.plan ul {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
  flex: 1;
}

.plan li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.plan li svg {
  flex: none;
  margin-top: 3px;
  color: var(--green-400);
}

/* ---------- 13. Результаты ---------- */
.results {
  display: grid;
  gap: 16px;
}

.result {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.result:hover {
  transform: translateY(-4px);
  border-color: var(--violet-500);
}

.result__top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  padding: 22px 24px 18px;
}

.result__kpi b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.result__kpi span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-mute);
}

.result__kpi--up b {
  color: var(--green-400);
}

.result__img {
  border-top: 1px solid var(--line);
  background: #fff;
}

.result__img img {
  width: 100%;
}

/* ---------- 14. Этапы ---------- */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  counter-increment: step;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.step::before {
  content: "0" counter(step);
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 11px;
  padding-right: 54px;
}

.step p {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.6;
}

.step__time {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--violet-300);
}

/* ---------- 14.1 Блок «Работаем по договору» ---------- */
.contract {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(100, 53, 157, 0.3), rgba(108, 194, 63, 0.09) 70%, var(--ink-2));
}

.contract__ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--green-400);
}

.contract__text h3 {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  margin-bottom: 10px;
}

.contract__text p {
  font-size: 14.8px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 66ch;
}

.contract__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contract__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(108, 194, 63, 0.35);
  border-radius: var(--r-pill);
  background: rgba(108, 194, 63, 0.12);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-400);
  white-space: nowrap;
}

.contract__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

@media (min-width: 860px) {
  .contract {
    grid-template-columns: auto 1fr auto;
    gap: 26px;
  }
}

/* ---------- 15. Преимущества ---------- */
.adv {
  display: grid;
  gap: 16px;
}

.adv__box {
  padding: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
}

.adv__box h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.adv__box ul {
  display: grid;
  gap: 15px;
}

.adv__box li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
}

.adv__box li svg {
  flex: none;
  margin-top: 3px;
}

.adv__box--a li svg {
  color: var(--violet-400);
}

.adv__box--b li svg {
  color: var(--green-400);
}

/* ---------- 14а. Шапка внутренней страницы ---------- */
.pagehead {
  position: relative;
  padding-top: clamp(120px, 16vw, 170px);
  padding-bottom: clamp(48px, 7vw, 84px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(100, 53, 157, 0.14), transparent 70%);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-size: 13.5px;
  color: var(--text-mute);
}

.crumbs a {
  color: var(--violet-300);
  transition: color 0.3s var(--ease);
}

.crumbs a:hover {
  color: var(--text);
}

/* ---------- 14б. Блоки услуг ---------- */
.svc__grid {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.svc__num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--grad-brand);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.svc__need {
  padding: 18px 22px;
  border-left: 3px solid var(--violet-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(139, 92, 246, 0.09);
}

.svc__need b {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.svc__need p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.svc__list {
  display: grid;
  gap: 13px;
  width: 100%;
}

.svc__list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.55;
}

.svc__list li svg {
  flex: none;
  margin-top: 3px;
  color: var(--green-400);
}

.svc__list b {
  color: var(--gold-400);
  font-weight: 800;
  white-space: nowrap;
}

.svc__list b.free {
  color: var(--green-400);
}

.svc__media {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
}

.svc__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.svc__media:hover img {
  transform: scale(1.04);
}

.svc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 45%, rgba(100, 53, 157, 0.42));
  pointer-events: none;
}

/* ---------- 14в. Почему мы ---------- */
.why {
  display: grid;
  gap: 16px;
}

.why__item {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.why__item h3 {
  font-size: 1.12rem;
  margin-bottom: 12px;
}

.why__item p {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.65;
}

/* ---------- 14г. Юридический документ ---------- */
.doc {
  max-width: 860px;
  margin-inline: auto;
}

.doc__upd {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 28px;
}

.doc__tldr {
  padding: 24px 26px;
  margin-bottom: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(100, 53, 157, 0.28), rgba(12, 9, 22, 0.9));
}

.doc__tldr b {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.doc__tldr ul {
  display: grid;
  gap: 10px;
}

.doc__tldr li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

.doc__tldr li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
}

.doc h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin-top: 38px;
  margin-bottom: 14px;
}

.doc h2:first-of-type {
  margin-top: 0;
}

.doc p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 14px;
}

.doc ul:not(.doc__tldr ul) {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}

.doc ul:not(.doc__tldr ul) li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

.doc ul:not(.doc__tldr ul) li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-400);
}

.doc b {
  color: var(--text);
  font-weight: 700;
}

.doc a {
  color: var(--violet-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.doc a:hover {
  color: var(--text);
}

.doc__note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

.doc__note svg {
  flex: none;
  margin-top: 3px;
  color: var(--gold-400);
}

/* ---------- 15а. Отзывы ---------- */
.reviews-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(100, 53, 157, 0.32), rgba(12, 9, 22, 0.9));
}

.reviews-score {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.35;
}

.reviews-score b {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reviews-stars {
  color: var(--gold-400);
  font-size: 15px;
  letter-spacing: 2px;
}

.reviews {
  display: grid;
  gap: 16px;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

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

.review__head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.review__ava {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--grad-brand);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.review__head b {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
}

.review__head span {
  font-size: 12.5px;
  color: var(--text-mute);
}

.review__rate {
  color: var(--gold-400);
  font-size: 15px;
  letter-spacing: 2px;
}

.review blockquote {
  margin: 0;
  display: grid;
  gap: 11px;
}

.review blockquote p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.65;
}

.review blockquote p:first-child {
  font-weight: 700;
  color: var(--text);
}

/* ---------- 16. Галерея ---------- */
.gallery {
  display: grid;
  gap: 14px;
}

.gallery figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

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

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 20px 18px;
  background: linear-gradient(to top, rgba(7, 5, 13, 0.92), transparent);
  font-size: 13.5px;
  font-weight: 600;
}

/* ---------- 17. FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ink-2);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq details[open] {
  border-color: var(--violet-600);
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  min-height: 62px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none'%3E%3Cpath d='M11 4v14M4 11h14' stroke='%23a97dff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq__body {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ---------- 18. Финальный CTA ---------- */
.cta {
  position: relative;
  padding: clamp(38px, 6vw, 76px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(100, 53, 157, 0.55), rgba(226, 63, 168, 0.22) 55%, rgba(12, 9, 22, 0.9));
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 60%);
  pointer-events: none;
}

.cta .lead {
  margin-inline: auto;
  margin-top: 18px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
  position: relative;
}

/* ---------- 18b. Контакты ---------- */
/* Страница контактов: слева карточки со способами связи, справа форма */
.contacts {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.contacts__info {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

a.contact-card:hover {
  transform: translateX(5px);
  border-color: var(--violet-500);
}

.contact-card__ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid var(--line-strong);
  color: var(--violet-300);
}

.contact-card span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.contact-card b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  font-size: 13.5px;
  color: var(--text-mute);
  line-height: 1.55;
}

.contact-note svg {
  flex: none;
  margin-top: 2px;
  color: var(--gold-400);
}

.contacts__form {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--surface-2), var(--ink-2) 70%);
  box-shadow: var(--sh-card);
}

/* Экран «спасибо» переиспользует стили модалки */
.contacts__form.is-sent .form {
  display: none;
}

.contacts__form.is-sent .form__ok {
  display: block;
}

.map {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

@media (min-width: 900px) {
  .contacts {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ---------- 19. Футер ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: clamp(46px, 6vw, 72px) 30px;
}

.footer__grid {
  display: grid;
  gap: 38px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer__brand img {
  width: 148px;
  margin-bottom: 18px;
}

.footer__brand p {
  font-size: 14.5px;
  color: var(--text-mute);
  max-width: 40ch;
  line-height: 1.6;
}

.footer h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.footer__col ul {
  display: grid;
  gap: 11px;
}

.footer__col a {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.footer__col a:hover {
  color: var(--violet-300);
}

.footer__contacts a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 600;
}

.footer__contacts svg {
  flex: none;
  color: var(--violet-400);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}

.socials a:hover {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  color: var(--text-mute);
}

.footer__bottom a:hover {
  color: var(--violet-300);
}

/* ---------- 20. Модальная форма ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: rgba(3, 2, 7, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  overflow-y: auto;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__box {
  position: relative;
  width: min(880px, 100%);
  margin-block: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--surface-2), var(--ink-2) 70%);
  box-shadow: 0 40px 90px -30px #000;
  transform: translateY(26px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
  overflow: hidden;
}

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

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  transition: all 0.3s var(--ease);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  transform: rotate(90deg);
}

.modal__grid {
  display: grid;
}

.modal__aside {
  display: none;
  padding: 40px 32px;
  background: linear-gradient(165deg, rgba(100, 53, 157, 0.5), rgba(226, 63, 168, 0.15));
  border-right: 1px solid var(--line);
  align-content: center;
  gap: 22px;
}

.modal__aside ul {
  display: grid;
  gap: 14px;
}

.modal__aside li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.modal__aside li svg {
  flex: none;
  margin-top: 3px;
  color: var(--green-400);
}

.modal__main {
  padding: clamp(30px, 4vw, 44px);
}

.modal__main > p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-mute);
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form__row {
  display: grid;
  gap: 18px;
}

.field__err {
  display: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #ff8fb0;
}

.field.has-error input,
.field.has-error select {
  border-color: #ff5c85;
  background: rgba(255, 92, 133, 0.07);
}

.field.has-error .field__err {
  display: block;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-mute);
  line-height: 1.5;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s var(--ease);
}

.checkbox__box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s var(--ease);
}

.checkbox input:checked + .checkbox__box {
  background: var(--grad-brand);
  border-color: transparent;
}

.checkbox input:checked + .checkbox__box svg {
  opacity: 1;
  transform: none;
}

.checkbox input:focus-visible + .checkbox__box {
  outline: 2px solid var(--violet-400);
  outline-offset: 3px;
}

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

.form__ok {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.form__ok svg {
  margin: 0 auto 20px;
  color: var(--green-400);
}

.form__ok h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.form__ok p {
  font-size: 15px;
  color: var(--text-dim);
}

.is-sent .form {
  display: none;
}

.is-sent .form__ok {
  display: block;
}

/* ---------- 21. Плавающие кнопки связи ---------- */
.dock {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.dock.is-on {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.dock a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s var(--ease);
}

.dock a:hover {
  transform: scale(1.09);
}

.dock__tg {
  background: linear-gradient(140deg, #2ea6df, #1c8bc4);
}

.dock__call {
  background: var(--grad-brand);
}

/* ---------- 22. Scroll-reveal ---------- */
[data-rv] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--rv-d, 0ms);
}

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

/* ---------- 23. Брейкпоинты ---------- */
@media (min-width: 600px) {
  .offers {
    gap: 14px;
  }

  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery figure:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .gallery figure {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .adv {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .results {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews {
    grid-template-columns: repeat(2, 1fr);
  }

  .why {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  /* Чётные блоки услуг — картинка слева, текст справа */
  .svc__grid--rev .svc__media {
    order: -1;
  }

  .calc {
    grid-template-columns: 1.15fr 0.85fr;
  }

  /* Форма калькулятора длинная — держим итог в поле зрения при прокрутке */
  .calc__out {
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }

  .modal__grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .modal__aside {
    display: grid;
  }

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

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

  .gallery figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .header__phone {
    display: flex;
  }

  /* На узких ноутбуках (1024–1199px) семи пунктам меню, номеру и кнопке
     не хватает места — номер сжимается до иконки, но остаётся кликабельным */
  .header__phone span {
    display: none;
  }

  .header__phone {
    padding: 13px;
    width: 48px;
    height: 48px;
    justify-content: center;
  }

  .burger {
    display: none;
  }

  /* Hero делится на две колонки — заголовку достаётся ~55% ширины,
     поэтому предел кегля здесь ниже мобильного */
  .h-xl {
    font-size: clamp(2.6rem, 4.5vw, 3.75rem);
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

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

  .footer__grid {
    grid-template-columns: 1.7fr 1fr 1fr 1.1fr;
  }
}

/* Четыре колонки — только когда карточке хватает ширины на длинные
   слова вроде «переупаковка». Ниже остаются две. */
@media (min-width: 1200px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* От 1280px шапке снова хватает места — возвращаем номер телефона текстом.
   Блок обязан стоять ПОСЛЕ правил 1024px, иначе тот перебьёт его по каскаду:
   специфичность одинаковая, побеждает то, что ниже в файле. */
@media (min-width: 1280px) {
  .header__phone {
    width: auto;
    height: auto;
    padding: 13px 21px;
  }

  .header__phone span {
    display: inline;
  }
}

/* ---------- 24. Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-rv] {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }
}

/* ---------- 25. Печать ---------- */
@media print {
  .header,
  .dock,
  .modal,
  .mobile-menu,
  .orb,
  body::after {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
