/* Nova Studio — тестовый одностраничник. Стили без внешних зависимостей. */

:root {
  --bg: #0e1020;
  --bg-alt: #14172b;
  --surface: #1b1f38;
  --surface-2: #232848;
  --text: #eceffb;
  --muted: #a6accd;
  --line: #2b3157;
  --primary: #6c5ce7;
  --primary-2: #8b7cf6;
  --accent: #22d3a6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .35);
  --container: 1140px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p  { margin: 0 0 1rem; color: var(--muted); }

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: #b9b0ff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(108, 92, 231, .42);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 32px rgba(108, 92, 231, .55); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary-2); color: var(--text); background: rgba(139, 124, 246, .1); }

.btn-block { width: 100%; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(14, 16, 32, .78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800;
}
.brand-name { letter-spacing: .02em; }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav a { color: var(--muted); font-weight: 550; }
.primary-nav a:hover { color: var(--text); }
.primary-nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  padding: .5rem 1rem;
  border-radius: 999px;
}
.primary-nav .nav-cta:hover { border-color: var(--primary-2); background: rgba(139, 124, 246, .12); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(45% 45% at 20% 20%, rgba(108, 92, 231, .38), transparent 70%),
    radial-gradient(40% 40% at 80% 10%, rgba(34, 211, 166, .22), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-2);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero .lead { font-size: 1.1rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1.4rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin: 0; padding: 0; list-style: none;
  color: var(--muted); font-size: .95rem;
}
.hero-points li { position: relative; padding-left: 1.5rem; }
.hero-points li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 166, .18);
}

.hero-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-bar {
  display: flex; gap: 7px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.card-bar span { width: 11px; height: 11px; border-radius: 50%; background: #4b5182; }
.card-bar span:nth-child(1) { background: #ff5f57; }
.card-bar span:nth-child(2) { background: #febc2e; }
.card-bar span:nth-child(3) { background: #28c840; }
.code {
  margin: 0;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: .88rem;
  line-height: 1.7;
  color: #c8d0ff;
  overflow-x: auto;
}
.card-foot {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.dot-live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 166, .2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 211, 166, .14); }
  50% { box-shadow: 0 0 0 7px rgba(34, 211, 166, .06); }
}

/* ---------- Секции ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin: 0 0 2.4rem; }
.section-head p { font-size: 1.05rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Возможности ---------- */
.feature {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--primary-2);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(108, 92, 231, .16);
  border: 1px solid var(--line);
}
.feature p { margin: 0; font-size: .97rem; }

/* ---------- Статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.stat {
  text-align: center;
  padding: 1.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-num {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 750;
  color: var(--text);
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { display: block; margin-top: .4rem; color: var(--muted); font-size: .92rem; }

/* ---------- Тарифы ---------- */
.pricing { align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan h3 { margin-bottom: .3rem; }
.price { font-size: 2.1rem; font-weight: 700; color: var(--text); margin: .3rem 0 1.2rem; }
.price span { font-size: 1.4rem; }
.plan ul { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.plan li {
  position: relative;
  padding: .4rem 0 .4rem 1.7rem;
  color: var(--muted);
  font-size: .96rem;
}
.plan li::before {
  content: "";
  position: absolute; left: 0; top: .85em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-featured {
  border-color: var(--primary-2);
  background: linear-gradient(180deg, rgba(108, 92, 231, .16), var(--surface));
  box-shadow: var(--shadow);
}
.badge {
  position: absolute;
  top: -12px; right: 1.6rem;
  padding: .25rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 999px;
}

/* ---------- Контакты ---------- */
.contact-inner { max-width: 640px; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  font-size: .95rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #6f76a0; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(139, 124, 246, .25);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { margin: 1rem 0 0; font-size: .95rem; min-height: 1.2em; }
.form-note.is-error { color: #ff8b8b; }
.form-note.is-ok { color: var(--accent); }

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.6rem 20px;
}
.footer-inner p { margin: 0; font-size: .92rem; }
.to-top { font-size: .92rem; font-weight: 600; }

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 20px 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .primary-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .primary-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-cta { border: none; border-radius: 0; padding: .85rem 0; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}



