/* Velour — лендинг. Тёмная велюровая палитра. */

:root {
  --bg: #16101c;
  --bg-section: #1d1526;
  --bg-card: #221a2b;
  --accent: #e91e8c;
  --accent-ink: #1d0e16;
  --text: #efe7f0;
  --text-muted: #a596ad;
  --border: #2a1f33;
  --border-strong: #3a2c45;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container: 1100px;
  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 500; line-height: 1.25; }
p { margin: 0 0 1em; color: var(--text-muted); }

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

/* ── Доступность ──────────────────────────────────────────── */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  font-weight: 500;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ── RU/EN переключатель видимости ────────────────────────── */

html[lang="ru"] [data-lang="en"] { display: none; }
html[lang="en"] [data-lang="ru"] { display: none; }

/* ── Шапка ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 16, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.logo {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  padding: 6px 12px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ── Кнопки ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #f23d9b; }

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-pending {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  cursor: default;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
}

.hero .lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Секции общие ─────────────────────────────────────────── */

section { padding: 72px 0; }

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

.section-head h2 { font-size: 28px; }
.section-head p { margin: 0; }

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

/* ── Демо ─────────────────────────────────────────────────── */

.demo-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.demo-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.demo-shots figure { margin: 0; }

.demo-shots img,
.demo-video img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.demo-shots figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Возможности ──────────────────────────────────────────── */

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

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

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #3a1f2c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 16px; color: var(--text); }
.feature-card p { font-size: 13.5px; margin: 0; }

/* ── Версии ───────────────────────────────────────────────── */

.edition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.edition-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.edition-card.is-featured {
  border: 2px solid var(--accent);
}

.edition-name {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
}

.edition-card p { flex: 1; }

.edition-card .btn { align-self: flex-start; }

.edition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-table th, .compare-table td {
  padding: 13px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  color: var(--text-muted);
}

.compare-table thead th {
  color: var(--text);
  font-weight: 500;
  background: var(--bg-section);
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.yes { color: var(--accent); font-weight: 600; }
.no { color: var(--text-muted); }

/* ── Установка ────────────────────────────────────────────── */

.install-steps {
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.install-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-help {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
}

/* ── Поддержка / FAQ ──────────────────────────────────────── */

.support-cta {
  text-align: center;
  margin-bottom: 48px;
}

.faq {
  max-width: 680px;
  margin: 0 auto;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
  padding-bottom: 16px;
  margin: 0;
  font-size: 14px;
}

/* ── Футер ─────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-disclaimer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ── Privacy page ─────────────────────────────────────────── */

.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.policy h1 { font-size: 28px; }
.policy .effective-date { color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.policy h2 { font-size: 18px; margin-top: 32px; color: var(--text); }
.policy p { font-size: 15px; }
.policy blockquote {
  margin: 0;
  padding: 0;
  border: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.back-link:hover { color: var(--text); }

/* ── Адаптив ───────────────────────────────────────────────── */

@media (max-width: 760px) {
  .main-nav { display: none; }
  .edition-grid { grid-template-columns: 1fr; }
  .demo-shots { grid-template-columns: 1fr; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
  section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}
