:root {
  --bg: #0f1220;
  --surface: #181c2e;
  --text: #eef0f8;
  --muted: #a4a9c0;
  --accent: #e8b545;
  --radius: 14px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
}

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

.hero {
  text-align: center;
  padding: 72px 20px 56px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #1a1405;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
}

.features,
.pricing,
.faq {
  padding: 48px 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p,
.card li {
  color: var(--muted);
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  margin-bottom: 24px;
}

.plan {
  text-align: center;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.plan-featured {
  outline: 2px solid var(--accent);
}

.price {
  font-size: 2rem;
  font-weight: 700;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.faq details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  color: var(--muted);
  margin-top: 8px;
}

.footer {
  border-top: 1px solid #262b42;
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer a {
  color: var(--muted);
}

/* Текстовые юридические страницы (политики, соглашения) */
.legal {
  max-width: 760px;
  padding: 48px 20px 64px;
}

.legal h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.25rem;
  text-align: left;
  margin: 32px 0 12px;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 10px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal .doc-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.legal a {
  color: var(--accent);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
}

.legal th,
.legal td {
  border: 1px solid #2e3452;
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
}

.legal th {
  color: var(--text);
  background: var(--surface);
}

.legal .btn {
  margin-top: 24px;
}

.email-row {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.email-row input {
  background: var(--surface);
  border: 1px solid #2e3452;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  padding: 12px 16px;
  width: min(420px, 100%);
}

.email-row input:focus {
  border-color: var(--accent);
  outline: none;
}
