/* ============================================================
   НЬЮ-ССТ — базовая дизайн-система (стиль экосистемы ВЫШКА Cloud)
   Dark-first · cyan #00E5FF → violet #8B5CFF · glass surfaces
   ============================================================ */

:root {
  /* Background ladder */
  --bg-0: #08090D;
  --bg-1: #0B0D14;
  --bg-2: #10131D;
  --bg-3: #151827;

  /* Accents */
  --cyan: #00E5FF;
  --cyan-soft: rgba(0, 229, 255, 0.12);
  --violet: #8B5CFF;
  --magenta: #C724FF;
  --grad-accent: linear-gradient(120deg, var(--cyan) 0%, #4D7CFF 45%, var(--violet) 100%);
  --grad-cta: linear-gradient(120deg, #00C6FF 0%, #6D5CFF 55%, #A855F7 100%);

  /* Text */
  --text: #E8EBF4;
  --text-dim: #9AA3B8;
  --text-faint: #7B859C; /* S3 P3: 4.5+ контраст на #08090D и карточках */

  /* Surfaces */
  --glass: rgba(21, 24, 39, 0.62);
  --glass-strong: rgba(16, 19, 29, 0.86);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Effects */
  --glow-cyan: 0 0 40px rgba(0, 229, 255, 0.18);
  --glow-violet: 0 0 40px rgba(139, 92, 255, 0.2);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;

  /* Layout */
  --container: 1180px;
  --nav-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background: мягкое пространство вместо чёрного */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(139, 92, 255, 0.16), transparent 60%),
    radial-gradient(800px 480px at -10% 12%, rgba(0, 229, 255, 0.1), transparent 55%),
    radial-gradient(1000px 600px at 50% 110%, rgba(77, 124, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-0) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

::selection { background: rgba(0, 229, 255, 0.28); color: #fff; }

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #7DF3FF; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------- Header / Nav ---------------- */
.v-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--nav-h);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 9, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.v-nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.v-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.v-logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #04121a;
  box-shadow: var(--glow-cyan);
  flex: none;
}
.v-logo small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.v-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}
.v-nav__links a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 9px;
  transition: color .18s, background .18s;
}
.v-nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.v-nav__links a.is-active { color: var(--cyan); background: var(--cyan-soft); }
.v-nav__cta { margin-left: 14px; }
.v-burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

/* ---------------- Buttons ---------------- */
.v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: transform .18s, box-shadow .18s, filter .18s;
  white-space: nowrap;
}
.v-btn--cta {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 8px 28px rgba(109, 92, 255, 0.35);
}
.v-btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 198, 255, 0.4);
  color: #fff;
  filter: brightness(1.06);
}
.v-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.v-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); transform: translateY(-1px); }
.v-btn--lg { padding: 16px 34px; font-size: 16.5px; border-radius: 14px; }

/* ---------------- Sections ---------------- */
.v-section { padding: 92px 0; position: relative; }
.v-section--tight { padding: 64px 0; }
.v-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 229, 255, 0.22);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.v-kicker--violet { color: #B79CFF; background: rgba(139, 92, 255, 0.12); border-color: rgba(139, 92, 255, 0.3); }
.v-h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.v-h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.16;
  font-weight: 750;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.v-h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.v-lead {
  font-size: clamp(16.5px, 1.6vw, 19.5px);
  color: var(--text-dim);
  max-width: 760px;
}
.v-grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.v-section-head { max-width: 820px; margin-bottom: 48px; }
.v-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.v-section-head.center .v-lead { margin-left: auto; margin-right: auto; }

/* ---------------- Glass cards & grids ---------------- */
.v-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: transform .22s, border-color .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
}
.v-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: var(--shadow-card), var(--glow-cyan);
}
.v-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(139, 92, 255, 0.16));
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin-bottom: 18px;
}
.v-grid { display: grid; gap: 20px; }
.v-grid--2 { grid-template-columns: repeat(2, 1fr); }
.v-grid--3 { grid-template-columns: repeat(3, 1fr); }
.v-grid--4 { grid-template-columns: repeat(4, 1fr); }

.v-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.v-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  row-gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  padding: 8px 15px;
  border-radius: 999px;
}
.v-badge b { color: var(--text); }

/* ---------------- Lists / checks ---------------- */
.v-checks { list-style: none; display: grid; gap: 12px; }
.v-checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-dim);
}
.v-checks li::before {
  content: "✓";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #052027;
  background: linear-gradient(135deg, var(--cyan), #4D7CFF);
  margin-top: 2px;
}

/* ---------------- Tables ---------------- */
.v-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--glass);
}
.v-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.v-table th {
  text-align: left;
  padding: 16px 22px;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--border);
}
.v-table td { padding: 17px 22px; border-bottom: 1px solid var(--border); vertical-align: top; }
.v-table tr:last-child td { border-bottom: none; }
.v-table tr:hover td { background: rgba(255, 255, 255, 0.025); }
.v-price { font-weight: 750; color: var(--cyan); white-space: nowrap; }

/* ---------------- Forms ---------------- */
.v-field { display: grid; gap: 7px; margin-bottom: 16px; }
.v-field label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.v-field input,
.v-field textarea,
.v-field select {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: rgba(8, 9, 13, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.v-field input:focus,
.v-field textarea:focus,
.v-field select:focus {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}
.v-field input::placeholder, .v-field textarea::placeholder { color: var(--text-faint); }
.v-form-note { font-size: 12.5px; color: var(--text-faint); }

/* ---------------- CTA band ---------------- */
.v-cta-band {
  position: relative;
  border-radius: 26px;
  padding: 56px 48px;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(0, 229, 255, 0.16), transparent 60%),
    radial-gradient(600px 340px at 92% 100%, rgba(139, 92, 255, 0.2), transparent 60%),
    var(--glass);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.v-cta-band .v-h2 { margin-bottom: 10px; }

/* ---------------- Reveal animation ---------------- */
.v-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.v-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .v-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Footer ---------------- */
.v-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 9, 13, 0.6);
  margin-top: 60px;
}
.v-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.v-footer h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 700;
}
.v-footer ul { list-style: none; display: grid; gap: 9px; }
.v-footer ul a { color: var(--text-dim); font-size: 14.5px; }
.v-footer ul a:hover { color: var(--cyan); }
.v-footer__about { color: var(--text-dim); font-size: 14px; max-width: 300px; margin-top: 14px; }
.v-footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .v-grid--3, .v-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .v-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .v-nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 13, 20, 0.97); /* S3: непрозрачнее — при нерендере blur пункты читаемы */
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px 20px;
    gap: 6px;
  }
  .v-nav__links.is-open { display: flex; }
  .v-nav__links a { padding: 13px 14px; font-size: 16px; }
  .v-nav__cta { margin: 8px 0 0; }
  .v-burger { display: grid; place-items: center; }
  .v-section { padding: 64px 0; }
  /* S3 P2: 16px в полях — iOS Safari не авто-зумит страницу при фокусе */
  .v-field input, .v-field textarea, .v-field select,
  .mini-form input, .mini-form textarea { font-size: 16px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .v-grid--2, .v-grid--3, .v-grid--4 { grid-template-columns: 1fr; }
  .v-cta-band { padding: 38px 24px; }
  .v-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .v-card { padding: 22px; }
}

/* ============================================================
   Полировка доступности и формы (аудит 2026-09-05) — только добавления
   ============================================================ */

/* 1. Нативный select в тёмной теме: своя стрелка вместо системной */
.v-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300E5FF' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.v-field select option { background: #10131D; color: #E8EBF4; }

/* 2. Focus-visible по всему сайту (клавиатурная навигация) */
a:focus-visible,
button:focus-visible,
.faq__q:focus-visible,
.quiz__opt:focus-visible,
.v-field input:focus-visible,
.v-field textarea:focus-visible,
.v-field select:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.7);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 3. Карточки в grid-ряду одной высоты (мягкий вариант, без flex для всех .v-card) */
.v-grid .v-card { height: 100%; }

/* 5. Мелочи читаемости */
.v-form-note { line-height: 1.5; }
::placeholder { color: var(--text-faint); opacity: 1; }
