/* ===== БАЗА ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0c0b14;
  --bg-2: #13111e;
  --card: #1a1828;
  --card-2: #24213a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f2ff;
  --muted: #a39fba;
  --accent: #8b5cf6;
  --accent-light: #b79cff;
  --pink: #ec4899;
  --green: #22c55e;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 55%, #ff8a4c 100%);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lock {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.7);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(236, 72, 153, 0.9);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn--outline {
  border: 1px solid var(--line-strong);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--white {
  background: #fff;
  color: #1b1033;
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4);
}

.btn--lg {
  padding: 16px 30px;
  font-size: 16px;
}

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

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.link {
  color: var(--accent-light);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* ===== ШАПКА ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.3s;
}

/* фон шапки на псевдоэлементе, чтобы blur не ломал мобильное меню */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.3s;
}

.header.scrolled {
  padding: 12px 0;
}

.header.scrolled::before {
  opacity: 1;
}

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

.logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  flex: 1;
}

.nav > a {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

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

.nav__auth {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.burger {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 170px 0 110px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(500px 400px at 85% 60%, rgba(236, 72, 153, 0.18), transparent 70%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  margin: 22px 0 20px;
}

.hero__text {
  max-width: 520px;
  font-size: 18px;
  color: var(--muted);
}

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

.hero__stats {
  display: flex;
  gap: 44px;
}

.stat__num {
  font-family: 'Unbounded', sans-serif;
  font-size: 28px;
  font-weight: 600;
}

.stat__label {
  color: var(--muted);
  font-size: 14px;
}

/* телефон */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.phone {
  width: 300px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 38px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 8px rgba(255, 255, 255, 0.03);
  animation: floatPhone 7s ease-in-out infinite;
}

.phone__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
  line-height: 1.3;
}

.phone__top b {
  display: block;
  font-size: 14px;
}

.phone__top small {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 2px var(--pink);
}

.phone__media {
  position: relative;
  height: 320px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--grad);
  display: grid;
  place-items: center;
}

.phone__media::before,
.phone__media::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.phone__media::before {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -80px;
}

.phone__media::after {
  width: 140px;
  height: 140px;
  bottom: -40px;
  left: -30px;
}

.phone__caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.play {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

.phone__actions {
  display: flex;
  gap: 16px;
  padding: 14px 4px 8px;
}

.phone__actions svg {
  width: 24px;
  height: 24px;
}

.phone__actions .liked {
  fill: var(--pink);
  stroke: var(--pink);
}

.phone__likes {
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.phone__lines span {
  display: block;
  height: 8px;
  margin: 10px 4px 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.phone__lines span:last-child {
  width: 60%;
}

/* плавающие карточки */
.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(30, 27, 48, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.float b {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.float--1 { top: 12%; left: 0; animation: floatCard 5s ease-in-out infinite; }
.float--2 { bottom: 26%; right: -10px; animation: floatCard 6s ease-in-out infinite 1s; }
.float--3 { bottom: 0; left: 8%; animation: floatCard 5.5s ease-in-out infinite 0.5s; }

.float__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.float__icon--pink {
  background: rgba(236, 72, 153, 0.15);
  color: var(--pink);
}

.float__icon svg {
  width: 20px;
  height: 20px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}

.bars span {
  width: 6px;
  border-radius: 3px;
  background: var(--grad);
}

.bars span:nth-child(1) { height: 30%; }
.bars span:nth-child(2) { height: 50%; }
.bars span:nth-child(3) { height: 40%; }
.bars span:nth-child(4) { height: 70%; }
.bars span:nth-child(5) { height: 60%; }
.bars span:nth-child(6) { height: 100%; }

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee {
  overflow: hidden;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__track span {
  padding-right: 60px;
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.55;
  white-space: nowrap;
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 110px 0;
}

.section--alt {
  background: var(--bg-2);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-head p {
  font-size: 17px;
  color: var(--muted);
}

/* ===== УСЛУГИ ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 0 0, rgba(139, 92, 246, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
}

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

.card > * {
  position: relative;
}

.icon {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.14);
  color: var(--accent-light);
}

.icon svg {
  width: 26px;
  height: 26px;
}

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

.card p {
  font-size: 15px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.tags span {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ===== ШАГИ ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--grad);
}

.step__num {
  display: block;
  margin-bottom: 18px;
  font-family: 'Unbounded', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--muted);
}

/* ===== КЕЙСЫ ===== */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s;
}

.case:hover {
  transform: translateY(-6px);
}

.case__cover {
  position: relative;
  height: 210px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.case__cover::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  top: -60px;
  right: -60px;
  border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.12);
}

.case__cover--1 { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.case__cover--2 { background: linear-gradient(135deg, #f97316, #ec4899); }
.case__cover--3 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }

.case__cover strong {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.case__cover span {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.case__body {
  padding: 26px;
}

.case__tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.case__body h3 {
  margin: 8px 0 10px;
  font-size: 19px;
}

.case__body p {
  font-size: 15px;
  color: var(--muted);
}

.case__metrics {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.case__metrics b {
  display: block;
  font-size: 18px;
  color: var(--text);
}

/* ===== ТАРИФЫ ===== */
.billing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
  font-weight: 600;
}

.billing__label {
  color: var(--muted);
  transition: color 0.2s;
}

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

.billing__label em {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  font-size: 12px;
  font-style: normal;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  transition: background 0.3s;
}

.switch__slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
}

.switch input:checked + .switch__slider {
  background: var(--accent);
}

.switch input:checked + .switch__slider::before {
  transform: translateX(24px);
}

.switch input:focus-visible + .switch__slider {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.plan {
  position: relative;
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 30px 60px -30px rgba(236, 72, 153, 0.5);
  transform: scale(1.03);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.plan h3 {
  font-size: 22px;
}

.plan__desc {
  margin: 8px 0 22px;
  min-height: 48px;
  font-size: 14px;
  color: var(--muted);
}

.plan__price {
  margin-bottom: 26px;
  font-family: 'Unbounded', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.plan__price small {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  margin-bottom: 30px;
}

.plan li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 15px;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b79cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stars {
  margin-bottom: 16px;
  color: #fbbf24;
  letter-spacing: 3px;
}

.review blockquote {
  flex: 1;
  margin-bottom: 24px;
  font-size: 16px;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.review figcaption b {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.review__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

/* ===== FAQ ===== */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--line-strong);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.3s, background 0.3s;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__a p {
  padding-bottom: 24px;
  color: var(--muted);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 80px 48px;
  border-radius: 36px;
  background: var(--grad);
  text-align: center;
  overflow: hidden;
}

.cta::before,
.cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.1);
}

.cta::before {
  width: 320px;
  height: 320px;
  top: -140px;
  left: -100px;
}

.cta::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  right: -60px;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: clamp(26px, 4vw, 42px);
  color: #fff;
}

.cta p {
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}

/* ===== ПОДВАЛ ===== */
.footer {
  padding: 70px 0 30px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand p {
  max-width: 320px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.footer h4 {
  margin-bottom: 16px;
  font-size: 15px;
}

.footer__grid > div > a:not(.logo) {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer__grid > div > a:not(.logo):hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ===== МОДАЛКА ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 36px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s;
}

.modal.open .modal__box {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

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

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 8px 0 28px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.tab {
  padding: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: background 0.25s, color 0.25s;
}

.tab.active {
  background: var(--card-2);
  color: var(--text);
}

.form {
  display: none;
}

.form.active {
  display: block;
  animation: fadeIn 0.3s;
}

.form h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.form__sub {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}

.field {
  margin-bottom: 16px;
}

.field > label:not(.check) {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field input:not([type='checkbox']) {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: #6f6a88;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.field.error input:not([type='checkbox']) {
  border-color: #f87171;
}

.field__err {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #f87171;
}

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

.pass-wrap {
  position: relative;
}

.pass-wrap input {
  padding-right: 92px !important;
}

.pass-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
}

.form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14px;
}

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

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 13px;
  color: var(--muted);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social {
  padding: 12px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}

.social:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.form__switch {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ===== УВЕДОМЛЕНИЕ ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ===== АНИМАЦИИ ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* у карточек свой hover-transform — не перебиваем его после появления */
.card.reveal.visible:hover,
.case.reveal.visible:hover {
  transform: translateY(-6px);
}

.plan--featured.reveal.visible {
  transform: scale(1.03);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes floatPhone {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-14px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== АДАПТИВ: ПЛАНШЕТ ===== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero__content {
    text-align: center;
  }

  .hero__text {
    margin: 0 auto;
  }

  .hero__actions,
  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .plan--featured,
  .plan--featured.reveal.visible {
    transform: none;
  }

  .plan__desc {
    min-height: 0;
  }

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

/* ===== АДАПТИВ: МОБИЛЬНОЕ МЕНЮ ===== */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 90px 24px 28px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(-110%);
    transition: transform 0.4s ease;
  }

  .nav.open {
    transform: none;
  }

  .nav > a {
    padding: 14px 0;
    font-size: 18px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  .nav__auth {
    flex-direction: column;
    margin: 22px 0 0;
  }

  .nav__auth .btn {
    width: 100%;
    padding: 14px;
  }

  .nav__auth .btn--ghost {
    border: 1px solid var(--line-strong);
  }
}

/* ===== АДАПТИВ: ТЕЛЕФОН ===== */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero {
    padding: 120px 0 70px;
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    margin: 28px 0 40px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    justify-content: space-between;
    gap: 12px;
  }

  .stat__num {
    font-size: 22px;
  }

  .stat__label {
    font-size: 12px;
    line-height: 1.3;
    display: block;
  }

  .phone {
    width: 250px;
    border-radius: 32px;
  }

  .phone__media {
    height: 260px;
  }

  .float {
    padding: 9px 12px;
    font-size: 11px;
  }

  .float b {
    font-size: 14px;
  }

  .float__icon {
    width: 30px;
    height: 30px;
  }

  .float--1 { left: -4px; }
  .float--2 { right: -4px; bottom: 24%; }
  .float--3 { left: 0; }

  .services,
  .cases,
  .reviews,
  .steps {
    grid-template-columns: 1fr;
  }

  .card,
  .review {
    padding: 26px;
  }

  .marquee__track span {
    font-size: 16px;
    padding-right: 40px;
  }

  .billing {
    gap: 10px;
    font-size: 14px;
  }

  .plan {
    padding: 32px 24px;
  }

  .faq__q {
    font-size: 16px;
    padding: 20px 0;
  }

  .cta {
    padding: 56px 22px;
    border-radius: 28px;
  }

  .cta .btn {
    width: 100%;
    white-space: normal;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .modal {
    padding: 12px;
  }

  .modal__box {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .social {
    font-size: 13px;
  }
}
