:root {
  --bg: #0B0B0C; --card: #151517; --card2: #1D1D20; --line: #2A2A2E;
  --text: #F5F3EC; --muted: #A9A7A0; --dim: #5F5E5A; --gold: #FFC629;
  --gold-light: #FFE27A; --gold-deep: #C98F00; --blue: #7CCBFF;
  --warm: #1A170C; --warm-line: #5C4A12;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45; }
h1, h2, h3, .num { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }
h1 { font-size: 32px; line-height: 1.15; margin: 0; }
h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: Inter, sans-serif; font-weight: 600; margin: 0 0 12px; }
a { color: var(--gold); } a:hover { color: var(--gold-light); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); } .gold { color: var(--gold); } .blue { color: var(--blue); }
.small { font-size: 13px; }

.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 1 1 220px; max-width: 260px; padding: 24px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px clamp(16px, 4vw, 48px) 64px; max-width: 1200px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: .14em; font-size: 14px; margin: 0 8px 18px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.nav a[aria-current="page"] { background: var(--card2); color: var(--gold); }
.nav a:hover { background: var(--card); }
.side .foot { margin-top: auto; padding: 12px 8px 0; }
@media (max-width: 820px) {
  .side { max-width: none; flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .brand { margin: 0 12px 0 4px; }
  .nav { display: flex; gap: 4px; flex-wrap: wrap; }
  .side .foot { margin: 0 0 0 auto; padding: 0; }
}

.card { background: var(--card); border-radius: 24px; padding: 20px; }
.card.warm { background: var(--warm); border: 1px solid var(--warm-line); }
.grid { display: grid; gap: 14px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tile .num { font-size: 30px; font-weight: 700; }
.head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--gold); color: var(--bg); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--gold-light); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { background: var(--card2); }
.btn.quiet { background: transparent; color: var(--muted); font-weight: 600; padding: 0 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.pill.gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.pill.blue { color: var(--blue); }

label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.field { display: flex; flex-direction: column; }

.list { display: flex; flex-direction: column; }
.client { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; min-height: 72px; }
.client:first-child { border-top: 0; }
.client:hover { background: var(--card2); border-radius: 14px; }
.avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 22px; background: var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.grow { flex: 1 1 auto; min-width: 0; }
.right { text-align: right; }
.flag { color: var(--blue); font-size: 13px; font-weight: 600; }
.ok { color: var(--gold); font-size: 13px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 6px; }
td { padding: 10px 6px; border-top: 1px solid var(--line); }
.scroll { overflow-x: auto; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo { aspect-ratio: 3 / 4; border-radius: 14px; background: var(--card2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.note { padding: 12px 0; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 10; }

.hero { max-width: 1100px; margin: 0 auto; padding: 48px 24px 64px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); }
.perk { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.perk:first-child { border-top: 0; }
.perk .ic { width: 40px; height: 40px; border-radius: 12px; background: #2B2410; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal h2 { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 20px; margin: 28px 0 8px; font-family: "Space Grotesk", sans-serif; }
.legal p, .legal li { color: #D6D4CD; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--gold, #FFC629); color: #0B0B0C; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #FFC629; }
.chip.check { font-weight: 500; }
