/* Вынесенные стили для лендинга вокалонлайн.рф */

/* ===== БАЗА ===== */

:root {
  --bg: #0f0f12;
  --card: #17171c;
  --text: #f5f6fa;
  --muted: #a9afc3;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  opacity: .85;
}

a.muted {
  color: var(--muted);
}

a.btn {
  color: #fff;
}

/* Контейнер */

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ===== HEADER / NAV ===== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15,15,18,.9), rgba(15,15,18,.6));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand span.logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 600;
  white-space: nowrap;
  background: transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.btn.ghost {
  color: var(--text);
}

/* Адаптив для меню – чтобы кнопки не вылазили на мобиле */

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }

  nav a.btn,
  nav a.muted {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* ===== HERO ===== */

.hero {
  position: relative;
  padding: 64px 0 34px;
  overflow: hidden;
}

.hero .bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(900px 600px at 20% 20%, rgba(139,92,246,.25), transparent 60%),
    radial-gradient(800px 500px at 80% 10%, rgba(236,72,153,.22), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.05;
  margin: 14px 0 10px;
}

.lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 60ch;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.note {
  font-size: 13px;
  color: var(--muted);
}

/* Карточка справа в hero */

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */

section {
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  margin: 0 0 16px;
}

.section-lead {
  color: var(--muted);
  max-width: 70ch;
  margin: 0 0 22px;
}

/* Сетки */

.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Карточки */

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card .title {
  font-weight: 700;
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
}

/* Цены */

.price {
  font-size: 28px;
  font-weight: 800;
}

.price small {
  font-weight: 600;
  color: var(--muted);
}

/* Отзывы */

.quote {
  display: flex;
  gap: 14px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Форма */

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: #0c0c10;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 120px;
}

.status {
  margin-top: 10px;
  font-size: 14px;
}

.status-ok {
  color: #22c55e;
}

.status-err {
  color: #ef4444;
}

/* FOOTER */

footer {
  padding: 30px 0;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.foot a {
  color: var(--muted);
}

/* Анимация появления */

.fade {
  opacity: 0;
  transform: translateY(8px);
  transition: .5s ease;
}

.fade.show {
  opacity: 1;
  transform: none;
}

/* Доп. отступы для main */

main {
  /* чтобы не прилипало к шапке визуально */
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.captcha-field {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 10px 0;
}

.agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.main-article .article-cover {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0 28px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}