/* Qadam — публичный сайт. Палитра та же, что в приложении (tokens.dart). */
:root {
  --bg: #071433;
  --bg-deep: #050e25;
  --panel: #0d1e4a;
  --panel-2: #10245a;
  --line: #1b2d63;
  --text: #f2f6fc;
  --muted: #9fb0d4;
  --accent: #f2cd13;
  --on-accent: #0a1a44;
  --brand-blue: #0a2a78;
  --pink: #eb3e9c;
  --green: #32c99a;
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, #0f2a6e 0, var(--bg) 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── шапка ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 20, 51, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand span { font-weight: 800; letter-spacing: .28em; font-size: 18px; }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 14px;
  font: inherit; font-weight: 750; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ffd92a; }
.btn-ghost { background: transparent; color: var(--text); border-color: #2a3f80; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 12px; }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 9px 18px 9px 14px; border-radius: 14px;
  background: #000; border: 1px solid #2a3f80; color: #fff;
  text-align: left; text-decoration: none;
}
.store:hover { border-color: var(--accent); }
.store.is-soon { opacity: .55; cursor: not-allowed; }
.store.is-soon:hover { border-color: #2a3f80; }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store small { display: block; font-size: 11px; color: #c9d3ec; line-height: 1.2; }
.store b { display: block; font-size: 17px; line-height: 1.2; }
.store .soon {
  margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .1em;
  color: var(--accent); border: 1px solid #6b5b16; border-radius: 999px; padding: 3px 8px;
}

/* ── первый экран ── */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.06; margin: 0 0 20px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; scroll-margin-top: 90px; }
.hero .note { color: var(--muted); font-size: 13px; margin-top: 14px; }

.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 34px; overflow: hidden;
  border: 6px solid #13254f; background: #050e25;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.phone img { width: 100%; height: auto; }
.phone.back { right: 0; top: 40px; transform: rotate(6deg); opacity: .9; }
.phone.front { left: 10px; top: 0; transform: rotate(-4deg); }

/* ── секции ── */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.card:before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px;
  background: var(--c, var(--accent));
}
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; background: #142a63; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag {
  position: absolute; top: 20px; right: 20px; font-size: 10px; font-weight: 800; letter-spacing: .1em;
  color: var(--accent); border: 1px solid #6b5b16; border-radius: 999px; padding: 3px 8px;
}

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg)); }
.step:before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.band {
  background: var(--panel); border: 1px solid var(--line); border-radius: 28px;
  padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.band p { margin: 0; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { border-top: 2px solid var(--accent); padding-top: 14px; }
.fact b { display: block; font-size: 17px; margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 14px; }

/* ── подвал ── */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: start; }
.foot-links { justify-items: end; }
.foot h4 { color: var(--text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .brand { margin-bottom: 12px; }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }

/* ── юридические страницы ── */
.doc { padding: 40px 0 24px; }
.doc .wrap { max-width: calc(72ch + 40px); }
.doc .back { display: inline-block; margin-bottom: 20px; font-size: 14px; text-decoration: none; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 10px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; padding-top: 8px; scroll-margin-top: 80px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: #dbe3f3; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); }
.doc .box {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 14px; padding: 16px 18px; margin: 20px 0;
}
.doc .box p { margin: 0; }
.doc .box p + p { margin-top: 8px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 12px; }
.toc b { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--panel); color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 600; }

.doc .howto, .howto { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; counter-reset: h; }
.howto li {
  counter-increment: h; position: relative; margin: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 58px;
}
.howto li:before {
  content: counter(h); position: absolute; left: 16px; top: 13px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px;
}

/* Реквизиты, которые владелец ещё не прислал. Убрать класс после заполнения. */
.todo {
  background: var(--accent); color: var(--on-accent);
  padding: 1px 6px; border-radius: 5px; font-weight: 700; white-space: nowrap;
}

/* ── адаптив ── */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .phones { height: 470px; max-width: 440px; width: 100%; margin: 0 auto; }
  .phone { width: 210px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 36px 0 16px; }
  .hero .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .stores { display: grid; grid-template-columns: 1fr; }
  .store { width: 100%; }
  .phones { height: 400px; }
  .phone { width: 180px; border-radius: 26px; border-width: 5px; }
  .phone.front { left: 0; }
  section { padding: 40px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 18px 18px 18px 20px; }
  .card .ico { grid-row: span 2; margin: 0; }
  .card h3 { margin-top: 2px; padding-right: 60px; }
  .card .tag { top: 18px; right: 18px; }
  .card:before { top: 18px; bottom: 18px; }
  .band { grid-template-columns: 1fr; padding: 26px 20px; }
  .band .btn { width: 100%; }
  .foot .wrap { grid-template-columns: 1fr; gap: 18px; }
  .foot-links { justify-items: start; }
  .toc ol { columns: 1; }
  .todo { white-space: normal; }
  th, td { padding: 10px; }
}
