:root {
  --bg: #0f1116;
  --bg-soft: #161a22;
  --card: #1b2029;
  --line: #272e3a;
  --text: #eef1f6;
  --muted: #9aa4b5;
  --accent: #ff5a7a;
  --accent-2: #ffa24b;
  --ok: #4ade80;
  --warn: #fbbf24;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* --- Шапка --- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 17, 22, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .inner { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 14px;
}
nav.main { display: flex; gap: 16px; margin-left: auto; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--muted); font-size: 15px; }
nav.main a.active, nav.main a:hover { color: var(--text); text-decoration: none; }
.lang { display: flex; gap: 6px; font-size: 13px; }
.lang a { color: var(--muted); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
.lang a.on { color: var(--text); border-color: var(--accent); }

/* --- Блоки --- */
main { padding: 28px 0 64px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.card.tight { padding: 16px 18px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* --- Главная --- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: center; margin-bottom: 26px; }
.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0 0; }
.stat b { display: block; font-size: 26px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.city-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.city-row:last-child { border-bottom: 0; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn.secondary { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); padding: 10px 12px; }
.btn.danger { background: transparent; border-color: #5a2233; color: #ff8ba3; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* --- Формы --- */
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=file], textarea, select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
  color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 11px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 92px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.radio-row { display: flex; gap: 10px; }
.radio-row label {
  flex: 1; margin: 0; padding: 11px; text-align: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; color: var(--text);
}
.radio-row input { display: none; }
.radio-row input:checked + span { color: var(--accent); font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* --- Сообщения --- */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.flash.ok { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .35); }
.flash.err { background: rgba(255, 90, 122, .12); border: 1px solid rgba(255, 90, 122, .4); }

/* --- Значки --- */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; border: 1px solid var(--line); color: var(--muted);
}
.badge.premium { color: var(--warn); border-color: rgba(251, 191, 36, .45); }
.badge.ok { color: var(--ok); border-color: rgba(74, 222, 128, .4); }

/* --- Участники --- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.person { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.person img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.person .no-photo { aspect-ratio: 1; display: grid; place-items: center; font-size: 34px; color: var(--muted); }
.person .body { padding: 9px 11px; }
.person .body b { font-size: 15px; }

/* --- Ход встречи --- */
.live { text-align: center; padding: 26px; }
.live .round-num { font-size: 46px; font-weight: 700; line-height: 1; }
.live .timer { font-size: 60px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 10px 0; }
.live .timer.soon { color: var(--accent); }
.progress { height: 7px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }

/* --- Список --- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); }

footer.site { border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--muted); font-size: 14px; }
footer.site .inner { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .hero-img img { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  h1 { font-size: 25px; }
  nav.main { gap: 12px; }
}
