/* Shared styles for Kveno public pages (landing, about, privacy, terms).
   Mobile-first, fully responsive. */
:root {
  --brand1: #7c5cff;
  --brand2: #b14cff;
  --bg: #06060c;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #a9b0c4;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.grad { background: linear-gradient(135deg, var(--brand1), var(--brand2)); }
.gradtext { background: linear-gradient(135deg, #a78bff, #e090ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { font-family: "Clash Display", "Plus Jakarta Sans", sans-serif; line-height: 1.12; letter-spacing: -0.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; padding: 13px 22px; font-weight: 600; font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--brand1), var(--brand2)); color: #fff; box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(124, 92, 255, 0.5); }
.btn-ghost { border: 1px solid var(--line); color: #fff; background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.glow { position: fixed; border-radius: 50%; filter: blur(120px); opacity: 0.5; z-index: 0; pointer-events: none; }

header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(6, 6, 12, 0.6); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Clash Display", sans-serif; font-weight: 700; font-size: 20px; }
.logo-tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }

section { position: relative; z-index: 1; }
.hero { padding: 92px 0 64px; text-align: center; }
.badge { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 13px; margin-bottom: 24px; }
.hero h1 { font-size: clamp(34px, 7vw, 72px); margin-bottom: 18px; }
.hero p { font-size: clamp(15px, 2.4vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }
.pad { padding: 72px 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); border-radius: 22px; padding: 26px; transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.06); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font-size: 24px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.bench { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.bench .n { font-family: "Clash Display", sans-serif; font-size: clamp(22px, 3.5vw, 34px); font-weight: 700; }
.bench .l { color: var(--muted); font-size: 14px; }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); border-radius: 16px; padding: 18px 22px; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--brand1); font-size: 22px; font-weight: 700; flex: none; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin-top: 12px; }

.cta-final { text-align: center; border: 1px solid var(--line); border-radius: 28px; padding: 56px 22px; background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.18), transparent 70%); }
.cta-final h2 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 14px; }
.cta-final p { color: var(--muted); margin-bottom: 26px; }

/* Article / content pages */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.prose h1 { font-size: clamp(30px, 6vw, 48px); margin-bottom: 10px; }
.prose .lead { color: var(--muted); font-size: 18px; margin-bottom: 8px; }
.prose .updated { color: #6b7280; font-size: 13px; margin-bottom: 28px; }
.prose h2 { font-size: clamp(21px, 3.4vw, 28px); margin: 34px 0 12px; }
.prose p, .prose li { color: #d6dae6; font-size: 16px; }
.prose ul { margin: 8px 0 8px 22px; display: flex; flex-direction: column; gap: 6px; }
.prose a { color: #a78bff; }
.prose a:hover { text-decoration: underline; }

footer { border-top: 1px solid var(--line); padding: 32px 0; margin-top: 72px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a:hover { color: #fff; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .bench { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .pad { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 10px; }
  .nav .btn-primary { display: none; } /* keep just "Войти" in the header on phones */
  .btn { padding: 12px 18px; font-size: 14px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .foot { flex-direction: column; text-align: center; }
}
