/*
 * Общий вид посадочных страниц — тот же язык, что на главной.
 *
 * Главная (LandingPage.tsx) живёт в React и собирается Vite: её стили лежат в
 * src/styles/liquid-glass.css и в статику не попадают. Посадочные — обычные
 * HTML-файлы в public/, и раньше они подключали seo.css: голый белый лист,
 * который выглядел чужим рядом с главной. Здесь повторён тот же набор
 * примитивов — цветная подложка, стекло, кнопки, шапка-пилюля, — чтобы человек,
 * перейдя с главной, не думал, что попал на другой сайт.
 *
 * ⚠️ Правишь liquid-glass.css — загляни сюда: значения продублированы, потому
 * что общий файл на React и на статику один сделать нечем.
 */

:root {
  --ink:        oklch(0.18 0.02 150);
  --ink-soft:   oklch(0.32 0.015 150);
  --muted:      oklch(0.48 0.012 150);
  --accent:     oklch(0.42 0.07 135);
  --accent-lit: oklch(0.55 0.11 135);
  --line:       oklch(0.2 0.02 150 / 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Onest', 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Та же цветная подложка, что под главной: четыре мягких пятна на тёплом
     фоне. Без неё стекло превращается в серые прямоугольники. */
  background:
    radial-gradient(at 18% 22%, oklch(0.88 0.08 135 / 0.55), transparent 55%),
    radial-gradient(at 82% 8%,  oklch(0.86 0.1 65 / 0.5),   transparent 55%),
    radial-gradient(at 95% 75%, oklch(0.82 0.09 200 / 0.45), transparent 60%),
    radial-gradient(at 25% 92%, oklch(0.88 0.06 320 / 0.4), transparent 55%),
    oklch(0.97 0.012 95);
  background-attachment: fixed;
}

/* Зерно поверх подложки — чтобы стекло не выглядело нарисованным. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .5; mix-blend-mode: overlay; pointer-events: none;
}
body > * { position: relative; z-index: 1; }

/* ── Стекло ─────────────────────────────────────────────────────────────── */

.glass {
  background: oklch(1 0 0 / 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid oklch(1 0 0 / 0.7);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.8),
    inset 0 0 0 1px oklch(1 0 0 / 0.25),
    0 1px 1px oklch(0.2 0.02 150 / 0.04),
    0 8px 32px -8px oklch(0.2 0.02 150 / 0.12);
}
.glass-strong {
  background: oklch(1 0 0 / 0.72);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid oklch(1 0 0 / 0.8);
}

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  background: oklch(1 0 0 / 0.5);
  border: 1px solid oklch(1 0 0 / 0.7);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.8);
  backdrop-filter: blur(8px);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, filter .15s;
}
.btn:hover { background: oklch(1 0 0 / 0.8); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-lit), var(--accent));
  color: #fff;
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.3), 0 2px 8px -2px oklch(0.42 0.07 135 / 0.4);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-lit), var(--accent)); filter: brightness(1.08); }
.btn-lg { padding: 14px 24px; font-size: 16px; font-weight: 600; border-radius: 13px; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.nav-wrap { position: sticky; top: 16px; z-index: 100; margin: 12px 20px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 20px; border-radius: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; letter-spacing: -.02em;
  color: var(--accent); text-decoration: none;
}
.nav-mark {
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-lit), var(--accent));
  color: #fff;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: oklch(0.4 0.015 150); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); }

/* ── Каркас ─────────────────────────────────────────────────────────────── */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.3; }
p  { margin: 0; line-height: 1.65; color: var(--ink-soft); }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }
.small { font-size: 14px; color: var(--muted); }
.accent { color: var(--accent); }

.crumbs { font-size: 13px; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }

/* ── Появление при прокрутке ────────────────────────────────────────────── */

[data-a] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-a].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-a] { opacity: 1; transform: none; transition: none; }
}

/* ── Подвал ─────────────────────────────────────────────────────────────── */

.foot { padding: 44px 0 56px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 12px; }
.foot-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 18px; }
}
