:root {
  --bg: #0b0f17;
  --bg-2: #111827;
  --card: #151c2b;
  --line: #243049;
  --text: #e8edf6;
  --muted: #9aa8c1;
  --accent: #34d399;
  --accent-2: #38bdf8;
  --accent-ink: #04130d;
  --radius: 14px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f9fc; --bg-2: #eef2f8; --card: #ffffff; --line: #d9e1ee;
    --text: #0f172a; --muted: #52607a; --accent: #059669; --accent-2: #0369a1; --accent-ink: #ffffff;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-2); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 99; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; color: var(--text); text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 22px; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.main a:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 13px; }
.lang a { padding: 5px 12px; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 16px; font-family: inherit;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }

/* hero */
.hero { padding: 84px 0 64px; background:
  radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
  radial-gradient(700px 380px at 0% 0%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(32px, 5.2vw, 56px); line-height: 1.12; margin: 14px 0 18px; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: var(--muted); }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 0 0 8px; }
.sub { color: var(--muted); max-width: 760px; margin: 0 0 36px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 4px 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; list-style: none; }
.tags li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 14px; }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--card); }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
th { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--muted); }

/* contact */
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.note { font-size: 13px; color: var(--muted); }
footer.site { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }

@media (max-width: 860px) {
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 10px 0; width: 100%; }
  .menu-btn { display: block; }
  .bar { gap: 10px; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4, .row { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* telegram buttons */
.btn.tg { background: #229ed9; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn.tg:hover { filter: brightness(1.1); }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn.sm { padding: 6px 14px; font-size: 14px; }
nav.main a.btn.tg, nav.main a.btn.tg:hover { color: #fff; }
@media (max-width: 860px) { nav.main a.btn.sm { width: auto; margin: 6px 0; } }


.logo img { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px var(--line); }


@media (min-width: 601px) and (max-width: 860px) { .g3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.btn.lg { padding: 14px 30px; font-size: 18px; }
@media (max-width: 860px) { nav.main .lang { margin-top: 8px; } nav.main .lang a { width: auto; padding: 5px 14px; } }

/* cookie notice */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px;
  display: flex; align-items: center; gap: 14px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease;
}
.cookie[hidden] { display: none; }
.cookie.show { opacity: 1; transform: none; }
.cookie p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cookie .btn { flex: none; }
@media (max-width: 600px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
