/* Качок v3f Split Glow — SSOT токенов. Канон: web/design-system.md */
/* Outfit с Google — variable, латиница. Кириллица: system-ui (у семейства нет кир. среза). */
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0b0b12;
  --ink: #f8fafc;
  --muted: #a1a1aa;
  --lime: #c8f542;
  --pink: #ff4ecd;
  --card: #14141f;
  --field: #101018;
  --lime-glow: rgba(200, 245, 66, 0.15);
  --pink-glow: rgba(255, 78, 205, 0.2);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.22);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.fold,
.below {
  padding: 24px 24px 20px;
  background: radial-gradient(circle at 30% 20%, var(--lime-glow), transparent 45%), var(--bg);
}
.below { padding: 8px 24px 110px; }
.right {
  padding: 24px 20px 110px;
  background:
    radial-gradient(circle at 70% 20%, var(--pink-glow), transparent 45%),
    linear-gradient(180deg, #120a14, #0b0b12 55%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
  order: 2;
}
.fold { order: 1; }
.below { order: 3; }
@media (min-width: 960px) {
  .shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto 1fr;
  }
  .fold { grid-column: 1; grid-row: 1; order: unset; padding-bottom: 8px; }
  .below { grid-column: 1; grid-row: 2; order: unset; }
  .right {
    grid-column: 2;
    grid-row: 1 / span 2;
    order: unset;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 100vh;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--lime), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-links a,
.btn-outline,
.nav-cta {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  border: 1px solid var(--line-strong);
}
.nav-cta { font-size: 0.85rem; }
.nav-links a:hover,
.btn-outline:hover,
.nav-links a.active,
.nav-cta:hover {
  border-color: rgba(200, 245, 66, 0.5);
  color: var(--lime);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 0 0 14px;
  max-width: 16ch;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lime), #fff, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 18px;
  font-size: 1.02rem;
}
.body {
  color: var(--muted);
  line-height: 1.6;
  max-width: 48ch;
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.body p { margin: 0 0 12px; }
.body a { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.body a:hover { color: var(--lime); }

.search-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.search-row { display: flex; gap: 8px; }
.search-row input {
  flex: 1;
  min-width: 0;
  background: var(--field);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 14px 16px;
  outline: none;
}
.search-row input:focus {
  border-color: rgba(200, 245, 66, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.12);
}
.search-row button {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}
.search-row button:hover { border-color: rgba(200, 245, 66, 0.5); color: var(--lime); }
.search-hint { margin: 10px 0 18px; font-size: 0.82rem; color: var(--muted); }
.search-hint strong { color: var(--lime); }

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: #0b0b12;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 12px 28px rgba(200, 245, 66, 0.16);
  border: 0;
}
.btn-main:hover { filter: brightness(1.04); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
}

.steps { display: grid; gap: 10px; margin: 18px 0 24px; }
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.step b { color: var(--lime); font-size: 0.78rem; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

.limits { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin: 0 0 18px; }
.limits b { color: var(--ink); }

.right-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.right h2 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.count { font-size: 0.8rem; color: var(--muted); }
.count b { color: var(--lime); }

.plist { display: grid; gap: 8px; overflow: auto; flex: 1; }
@media (min-width: 960px) {
  .plist { max-height: calc(100vh - 120px); }
}
.plist a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.plist a:hover {
  border-color: var(--pink);
  transform: translateX(3px);
  background: rgba(255, 78, 205, 0.06);
}
.plist a.hidden { display: none; }
.plist .name { font-weight: 800; font-size: 0.98rem; align-self: center; }
.plist .formats {
  grid-column: 1 / -1;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.plist .arrow { color: var(--pink); font-weight: 800; opacity: 0.7; align-self: center; }

.empty {
  display: none;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}
.empty.show { display: block; }

footer {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
footer a { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }

.sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: rgba(11, 11, 18, 0.94);
  border-top: 1px solid var(--line);
  z-index: 5;
}
@media (min-width: 960px) {
  .sticky { display: none; }
}
.sticky a {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
}

.legal { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 48ch; }
.legal h2 { color: var(--ink); font-size: 1.1rem; margin: 20px 0 8px; }
.legal p { margin: 0 0 12px; }

.nav-links a:focus-visible,
.nav-cta:focus-visible,
.btn-main:focus-visible,
.plist a:focus-visible,
.sticky a:focus-visible,
footer a:focus-visible,
.search-row button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .plist a { transition: none; }
  .plist a:hover { transform: none; }
}
