/* NOVA — стиль по логотипу клуба: почти чёрный фон, шампань, антиква, разреженный капс, тонкие орбиты. */
@font-face { font-family: "Cormorant"; src: url("fonts/CormorantGaramond.woff2?v=2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope.woff2?v=2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0b0e14;
  --bg-2: #10141c;
  --card: #131824;
  --line: rgba(201, 185, 154, .16);
  --line-2: rgba(201, 185, 154, .32);
  --gold: #c9b99a;
  --gold-hi: #e8dcc2;
  --text: #e7e4dd;
  --muted: #8d919b;
  --danger: #d48b7c;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(201,185,154,.07), transparent 60%), var(--bg);
  color: var(--text);
  font: 400 15px/1.6 "Manrope", system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--gold-hi); text-decoration: none; }
a:hover { color: #fff; }

.serif { font-family: "Cormorant", Georgia, serif; }
.caps { text-transform: uppercase; letter-spacing: .26em; font-size: 11px; font-weight: 600; color: var(--gold); }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: "Cormorant", Georgia, serif; font-weight: 500; color: var(--gold-hi); margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: 44px; line-height: 1.1; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }

/* ---------- шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 36px;
  padding: 18px 40px; border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, .88); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold-hi); }
.brand svg { width: 34px; height: 34px; }
.brand b { font: 500 26px/1 "Cormorant", Georgia, serif; letter-spacing: .08em; }
.nav { display: flex; gap: 26px; flex: 1; }
.nav a { white-space: nowrap; text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a.on, .nav a:hover { color: var(--gold-hi); border-color: var(--gold); }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 44px 40px 80px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }

/* ---------- карточки и сетки */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card:hover { border-color: var(--line-2); }
.stat b { display: block; font: 500 46px/1 "Cormorant", Georgia, serif; color: var(--gold-hi); margin: 10px 0 4px; }
.stat span { color: var(--muted); font-size: 13px; }

.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font: 500 22px/1 "Cormorant", Georgia, serif; color: var(--gold-hi);
  border: 1px solid var(--line-2);
  background: radial-gradient(circle at 30% 25%, rgba(232,220,194,.18), transparent 60%), #0d1119;
  box-shadow: 0 0 0 5px rgba(201,185,154,.05);
}
.avatar.lg { width: 96px; height: 96px; font-size: 36px; }
.person { display: flex; gap: 16px; align-items: flex-start; }
.person .name { font: 500 22px/1.2 "Cormorant", Georgia, serif; color: var(--gold-hi); }
.person .co { color: var(--text); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 12px; font-size: 12px; color: var(--gold); }
.tag.dim { color: var(--muted); border-color: var(--line); }
.demo { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--danger); border: 1px solid rgba(212,139,124,.4); border-radius: 999px; padding: 1px 8px; }

.row { display: flex; gap: 14px; align-items: center; }
.between { justify-content: space-between; }
.list > * + * { border-top: 1px solid var(--line); }
.item { padding: 16px 0; }
.kind { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.kind.seek { color: #b9c7e0; }
.kind.offer { color: var(--gold); }

.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; }
.date { text-align: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 0; }
.date b { display: block; font: 500 36px/1 "Cormorant", Georgia, serif; color: var(--gold-hi); }
.date span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- формы */
label { display: block; margin: 0 0 16px; }
label > span { display: block; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: #0d1119; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold); background: linear-gradient(180deg, #d9cbad, #b9a887);
  color: #14161b; font: 700 11px/1 "Manrope", sans-serif; letter-spacing: .22em; text-transform: uppercase;
}
.btn:hover { filter: brightness(1.08); color: #14161b; }
.btn.ghost { background: transparent; color: var(--gold-hi); }
.btn.ghost:hover { background: rgba(201,185,154,.08); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 10px; }
.search { display: flex; gap: 12px; margin-bottom: 26px; }
.search input { flex: 1; }
.search select { width: 210px; }
.tabs { display: flex; gap: 8px; }
.tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--muted); }
.tabs a.on { border-color: var(--gold); color: var(--gold-hi); }

.flash { border: 1px solid var(--line-2); border-left: 3px solid var(--gold); background: rgba(201,185,154,.06); padding: 12px 16px; border-radius: 10px; margin-bottom: 22px; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 12px 0 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #b9a887, #e8dcc2); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td select, td input { padding: 7px 10px; font-size: 13px; }
td select { min-width: 190px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.copy { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; }

/* ---------- вход: орбиты и серп, как на логотипе */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; overflow: hidden; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid var(--line); left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.o1 { width: 620px; height: 620px; }
.o2 { width: 760px; height: 760px; border-color: rgba(201,185,154,.10); }
.o3 { width: 900px; height: 900px; border-color: rgba(201,185,154,.06); }
.o1::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-hi); top: -5px; left: 50%; box-shadow: 0 0 14px rgba(232,220,194,.8); }
.moon { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 12%, rgba(210,210,215,.20), rgba(120,120,130,.06) 38%, transparent 55%); pointer-events: none; }
.gate-card { position: relative; width: 100%; max-width: 380px; text-align: center; }
.gate-card .word { font: 500 88px/1 "Cormorant", Georgia, serif; letter-spacing: .06em; color: var(--gold-hi);
  background: linear-gradient(180deg, #efe4cb, #b6a584); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gate-card form { text-align: left; margin-top: 30px; }
.gate-card .btn { width: 100%; margin-top: 6px; }

@media (max-width: 900px) {
  .top { padding: 14px 18px; gap: 16px; flex-wrap: wrap; }
  .nav { order: 3; flex: 0 0 100%; overflow-x: auto; gap: 18px; padding-bottom: 2px; }
  .who > a > span:first-child { display: none; }
  .brand b { font-size: 22px; }
  .wrap { padding: 28px 18px 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .event { grid-template-columns: 72px 1fr; }
  .event > :last-child { grid-column: 1 / -1; }
  .search { flex-direction: column; }
  .search select { width: 100%; }
  h1 { font-size: 34px; }
  .gate-card .word { font-size: 66px; }
}

/* ---------- игра: орбита пути, вехи, рейтинг */
.orbit-svg { width: 100%; max-width: 280px; display: block; margin: 0 auto; }
.ms-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.ms { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.ms b { display: block; font: 500 26px/1.1 "Cormorant", Georgia, serif; color: var(--gold-hi); margin: 8px 0 2px; }
.ms span { font-size: 12px; color: var(--muted); }
.ms em { display: block; font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-top: 10px; color: var(--muted); }
.ms.taken { border-color: var(--gold); background: rgba(201,185,154,.07); }
.ms.taken em { color: var(--gold-hi); }
.up { color: #9fc79a; font-size: 13px; } .down { color: var(--danger); font-size: 13px; }
.st { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.st-done { color: #9fc79a; border-color: rgba(159,199,154,.4); } .st-review { color: var(--gold-hi); border-color: var(--gold); }
.lb { gap: 14px; padding: 12px 6px; border-radius: 10px; }
.lb:hover { background: rgba(201,185,154,.05); }
.lb.me { background: rgba(201,185,154,.08); }
.lb .place { width: 26px; text-align: center; font: 500 22px/1 "Cormorant", Georgia, serif; color: var(--gold); }
.lb .pts { font: 500 26px/1 "Cormorant", Georgia, serif; color: var(--gold-hi); }
@media (max-width: 900px) { .ms-row { grid-template-columns: 1fr 1fr; } }

/* ---------- живой космос на входе и на главной */
#space { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(201,185,154,.10), transparent 62%),
    radial-gradient(700px 480px at 8% 92%, rgba(120,140,190,.07), transparent 60%),
    radial-gradient(520px 520px at 50% 40%, rgba(232,220,194,.035), transparent 70%); }
.space-on .top, .space-on .wrap, .space-on .gate { position: relative; z-index: 1; }
.space-on .top { position: sticky; }
.space-on .card { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), rgba(19,24,36,.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.space-on .gate-card input { background: rgba(13,17,25,.82); }

/* ---------- амбассадор */
.ranks { margin-top: 14px; display: grid; gap: 10px; }
.rank { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; opacity: .6; }
.rank.on { opacity: 1; border-color: var(--gold); background: rgba(201,185,154,.06); }
.rank .star { font-size: 22px; line-height: 1; color: var(--gold-hi); width: 22px; }
.rank b { color: var(--gold-hi); font-weight: 600; }
.steps { margin: 8px 0 12px; padding-left: 20px; }
.steps li { margin: 8px 0; color: var(--text); }
.steps b { color: var(--gold-hi); font-weight: 600; }
.funnel { display: flex; gap: 4px; margin-top: 8px; }
.funnel i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.funnel i.on { background: linear-gradient(90deg, #b9a887, #e8dcc2); }
.st-declined { color: var(--danger); border-color: rgba(212,139,124,.4); }

/* ---------- форматы */
.fmt h2 { margin: 6px 0 14px; }
.fmt.res { border-color: var(--gold); background: linear-gradient(180deg, rgba(201,185,154,.08), transparent 45%), var(--card); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li.y::before { content: "✦"; position: absolute; left: 4px; color: var(--gold-hi); }
.checks li.n { color: var(--muted); }
.checks li.n::before { content: "—"; position: absolute; left: 4px; color: var(--muted); }

/* =====================================================================
   Телефон. Ориентир — iPhone 17: 402×874 точки, «островок» сверху, полоска жестов снизу.
   ===================================================================== */
.tabbar { display: none; }
@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
  /* шапка: только знак и аватар, меню уходит вниз */
  .top { padding: calc(10px + env(safe-area-inset-top)) 18px 10px; gap: 12px; flex-wrap: nowrap; }
  .top .nav { display: none; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 22px; }
  .who { margin-left: auto; }
  .who > a:last-child { display: none; }
  .wrap { padding: 22px 16px 32px; }
  .head { margin-bottom: 20px; }
  .head p { font-size: 14px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .card { padding: 18px; border-radius: 16px; }
  .stat b { font-size: 38px; }

  /* поля не мельче 16 px — иначе Safari сам приближает страницу при вводе */
  input, select, textarea { font-size: 16px !important; padding: 13px 14px; border-radius: 12px; }
  td select, td input { font-size: 16px !important; }
  /* кнопки под палец: не ниже 44 px */
  .btn { min-height: 48px; padding: 0 22px; font-size: 12px; }
  .btn.sm { min-height: 44px; padding: 0 16px; font-size: 11px; }
  .tags button.tag, button.tag { min-height: 44px; padding: 0 14px; }
  .tabs a { padding: 12px 16px; }
  .check { min-height: 44px; }
  .check input { width: 22px; height: 22px; }

  /* все сетки в одну колонку, включая заданные прямо в разметке */
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .row.between { flex-wrap: wrap; }
  .event { grid-template-columns: 64px 1fr; gap: 14px; }
  .event form { text-align: left !important; grid-column: 1 / -1; }
  .date b { font-size: 28px; }
  .ms-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ms b { font-size: 22px; }
  .orbit-svg { max-width: 230px; }
  .list form.row { flex-wrap: wrap; width: 100%; }
  .list form.row select, .list form.row input { width: 100% !important; }
  .person { gap: 14px; }
  .avatar.lg { width: 72px; height: 72px; font-size: 28px; }
  .gate { min-height: 100dvh; padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); }
  .o1 { width: 540px; height: 540px; } .o2 { width: 640px; height: 640px; } .o3 { width: 740px; height: 740px; }
  .g4 { grid-template-columns: 1fr 1fr !important; }
  .g4 .stat b { font-size: 32px; }
  .moon { width: 380px; height: 380px; }
  .gate-card .word { font-size: 64px; }
  .flash { font-size: 14px; }

  /* таблицы превращаются в карточки */
  table, tbody, tr, td { display: block; width: 100%; }
  tr:first-child:has(th) { display: none; }
  th { display: none; }
  tr { border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 12px; }
  td { border: 0; padding: 8px 0; }
  td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 10px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
  td select, td input { width: 100% !important; min-width: 0 !important; }
  td form.row { flex-wrap: wrap; }
  .card[style*="overflow-x"] { padding: 12px !important; }

  /* нижнее меню, как в приложениях iOS */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(11,14,20,.92);
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid var(--line); }
  .tabbar a, .tabbar summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 54px; color: var(--muted); font-size: 10px; letter-spacing: .04em; list-style: none; cursor: pointer; border-radius: 12px; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar svg .f { fill: currentColor; stroke: none; }
  .tabbar .on { color: var(--gold-hi); }
  .tabbar .on svg { filter: drop-shadow(0 0 6px rgba(232,220,194,.45)); }
  .more { position: static; }
  .more[open] summary { color: var(--gold-hi); }
  .more-menu { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 31;
    background: #151a26; border: 1px solid var(--line-2); border-radius: 18px; padding: 6px;
    box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
  .more-menu a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; font-size: 16px; color: var(--text);
    flex-direction: row; border-radius: 12px; }
  .more-menu a + a { border-top: 1px solid var(--line); }
  .more-menu a:active { background: rgba(201,185,154,.1); }
  .more-menu a.muted { color: var(--muted); }
}
/* узкие телефоны */
@media (max-width: 380px) {
  .ms-row { grid-template-columns: 1fr; }
  .gate-card .word { font-size: 54px; }
}

/* ---------- телефон, второй проход: ощущение приложения и компактность */
@media (max-width: 900px) {
  /* отклик на нажатие, как в iOS */
  .btn, .card, .tabbar a, .tabbar summary, .more-menu a, .tabs a, .lb { transition: transform .12s ease, background-color .12s ease; }
  .btn:active { transform: scale(.97); filter: brightness(.95); }
  a.card:active, .lb:active { transform: scale(.985); }
  .tabbar a:active, .tabbar summary:active { transform: scale(.92); }
  .tabbar, .top { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  /* затемнение под меню «Ещё»: тап мимо меню закрывает его */
  .more-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(5,7,11,.55); opacity: 0; pointer-events: none;
    transition: opacity .15s ease; }
  .more-backdrop.on { opacity: 1; pointer-events: auto; }
  .more-menu { animation: sheet-up .18s ease-out; }
  @keyframes sheet-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
  /* когда открыта клавиатура, нижнее меню не мешает */
  body:has(input:focus, textarea:focus, select:focus) .tabbar { display: none; }
  /* длинный подзаголовок — три строки, тап раскрывает */
  .head p.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
  .head p.clamped:not(.open) { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .head p.clamped.open { display: block; -webkit-line-clamp: unset; }
  /* карточки главной листаются вбок */
  .grid.snap { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .grid.snap::-webkit-scrollbar { display: none; }
  .grid.snap > * { flex: 0 0 84%; scroll-snap-align: start; scroll-margin-left: 16px; }
  /* каталог людей плотнее */
  .person .name { font-size: 20px; }
  a.card.person { padding: 16px; }
  a.card.person .avatar { width: 46px; height: 46px; font-size: 18px; }
  .tags { gap: 6px; margin-top: 8px; }
  .tag { font-size: 11px; padding: 3px 10px; }
  /* формы — кнопка на всю ширину, так проще попасть */
  form.card > .btn, form > .btn:only-of-type { width: 100%; }
  .event form .btn { width: 100%; }
}
.amb-card { border-color: var(--gold) !important; background: radial-gradient(420px 180px at 100% 0, rgba(232,220,194,.14), transparent 60%), var(--card) !important; }
.amb-card b { font-size: 34px !important; }

/* =====================================================================
   NOVA 2.0 — «от души»: созвездие, пульс, золотые кромки, живая типографика
   ===================================================================== */
/* карточки: тонкая золотая кромка, которая светлеет к углу, как край планеты на свету */
.card { border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 42%) padding-box,
              linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(140deg, rgba(232,220,194,.42), rgba(232,220,194,.06) 38%, rgba(232,220,194,.04) 62%, rgba(232,220,194,.26)) border-box;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -28px rgba(0,0,0,.8); }
.space-on .card { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 42%) padding-box,
              linear-gradient(rgba(19,24,36,.74), rgba(19,24,36,.74)) padding-box,
              linear-gradient(140deg, rgba(232,220,194,.45), rgba(232,220,194,.06) 38%, rgba(232,220,194,.04) 62%, rgba(232,220,194,.28)) border-box; }
a.card { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) { a.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(232,220,194,.18), 0 26px 50px -24px rgba(201,185,154,.35); } }
.amb-card { background: radial-gradient(420px 180px at 100% 0, rgba(232,220,194,.16), transparent 60%) padding-box,
            linear-gradient(var(--card), var(--card)) padding-box,
            linear-gradient(140deg, #e8dcc2, rgba(232,220,194,.2) 45%, #c9b99a) border-box !important; }

/* заголовки-витрины: тот же золотой перелив, что у слова NOVA на входе */
.display { font-size: 58px; line-height: 1.02; letter-spacing: .005em;
  background: linear-gradient(180deg, #f3e9d2 10%, #bfae8c 95%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 14px; }
.lead { font-size: 17px; line-height: 1.6; color: #b9bcc4; max-width: 520px; }
.caps { position: relative; }
.head .caps::after, .hero .caps::after { content: ""; display: inline-block; width: 38px; height: 1px; margin-left: 12px;
  vertical-align: middle; background: linear-gradient(90deg, var(--gold), transparent); }

/* появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- герой главной */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; margin: 4px 0 26px; }
.counters { display: flex; gap: 30px; margin-top: 26px; }
.counters b { display: block; font: 500 44px/1 "Cormorant", Georgia, serif; color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; }
.counters span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.hero-sky { position: relative; display: block; aspect-ratio: 1; max-width: 520px; justify-self: end; width: 100%; }
.hero-sky-cta { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi);
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11,14,20,.6); backdrop-filter: blur(6px); }
@media (hover: hover) { .hero-sky:hover .sky .star .core { filter: brightness(1.25); } }

/* ---------- созвездие */
.sky { width: 100%; height: auto; display: block; overflow: visible; }
.sky .ring { fill: none; stroke: rgba(201,185,154,.14); stroke-width: 1; stroke-dasharray: 2 7; }
.sky .sector { stroke: rgba(201,185,154,.06); stroke-width: 1; }
.sky .sector-label { font: 600 13px "Manrope", sans-serif; letter-spacing: .18em; text-transform: uppercase; fill: rgba(201,185,154,.55); }
.sky .ring-label { font: 500 12px "Manrope", sans-serif; letter-spacing: .22em; text-transform: uppercase; fill: rgba(201,185,154,.32); }
.sky .core-dot { fill: #e8dcc2; filter: drop-shadow(0 0 8px rgba(232,220,194,.9)); }
.sky .beam { stroke: rgba(232,220,194,.42); stroke-width: 1.3; stroke-dasharray: 6 8; animation: flow 3.5s linear infinite; }
.sky .beam.mine { stroke: #e8dcc2; stroke-width: 2; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.sky .star .core { fill: #f4ecda; transition: filter .2s; }
.sky .star .halo { animation: twinkle var(--tw) ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { from { opacity: .45; transform: scale(.85); } to { opacity: 1; transform: scale(1.1); } }
.sky .star.me .core { fill: #fff; }
.sky .me-ring { fill: none; stroke: #e8dcc2; stroke-width: 1.5; animation: pulse-ring 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse-ring { from { opacity: .9; transform: scale(.7); } to { opacity: 0; transform: scale(1.8); } }
.sky .me-label { font: 700 14px "Manrope", sans-serif; letter-spacing: .2em; fill: #e8dcc2; text-transform: uppercase; }
.sky .name-label { font: 500 17px "Cormorant", Georgia, serif; fill: rgba(232,220,194,.8); }
.sky.mini .star .halo { opacity: .8; }
.sky-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
.sky-card { padding: 10px; }
.sky-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 6px 0 12px; font-size: 12px; color: var(--muted); }
.sky-legend i { display: inline-block; vertical-align: middle; margin-right: 8px; }
.lg-star { width: 6px; height: 6px; border-radius: 50%; background: #f4ecda; box-shadow: 0 0 8px #e8dcc2; }
.lg-big { width: 12px; height: 12px; border-radius: 50%; background: #f4ecda; box-shadow: 0 0 14px #e8dcc2; }
.lg-beam { width: 22px; height: 0; border-top: 1.5px dashed #e8dcc2; }
.lg-me { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #e8dcc2; }
@media (prefers-reduced-motion: reduce) { .sky .beam, .sky .star .halo, .sky .me-ring { animation: none; } }

/* ---------- пульс клуба */
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9fc79a; margin-right: 10px;
  vertical-align: middle; box-shadow: 0 0 0 0 rgba(159,199,154,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(159,199,154,0); } 100% { box-shadow: 0 0 0 0 rgba(159,199,154,0); } }
.pulse-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 22px; margin-top: 8px; }
.sky-layout .pulse-list { grid-template-columns: 1fr; }
.pulse-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0;
  border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; }
.pulse-item b { color: var(--gold-hi); font-weight: 600; }
.pulse-item em { font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.pulse-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); transform: translateY(-1px); }
.pulse-item.k-help i, .pulse-item.k-referral i { background: #e8dcc2; box-shadow: 0 0 8px #e8dcc2; }
.pulse-item.k-milestone i { background: #9fc79a; box-shadow: 0 0 8px rgba(159,199,154,.8); }

/* ---------- вспышка сверхновой в момент достижения */
.flash.nova { border-left-color: #e8dcc2; background: linear-gradient(90deg, rgba(232,220,194,.14), rgba(232,220,194,.03)); color: #fff; }
#burst { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 8px; }
  .hero-sky { order: -1; max-width: 330px; justify-self: center; margin: -52px 0 -6px; }
  .display { font-size: 40px; }
  .lead { font-size: 15px; }
  .counters { gap: 18px; justify-content: space-between; }
  .counters b { font-size: 34px; }
  .counters span { font-size: 11px; }
  .pulse-list { grid-template-columns: 1fr; }
  .sky-layout { grid-template-columns: 1fr !important; }
  .sky .sector-label { font-size: 22px; }
  .sky .name-label { font-size: 24px; }
}
@media (max-width: 1320px) and (min-width: 901px) { .nav { gap: 18px; } .nav a { letter-spacing: .14em; } }
/* без скрипта блоки видны сразу; прячем до появления только когда скрипт точно есть */
html:not(.js) .reveal { opacity: 1; transform: none; }
.pulse-item span { display: flex; flex-direction: column; gap: 1px; }
.pulse-item small { font-size: 13px; color: var(--muted); }
.pulse-item em { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pulse-item em strong { font: 500 18px/1 "Cormorant", Georgia, serif; color: var(--gold-hi); }

/* ---------- знакомства через клуб */
.badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #e8dcc2; color: #14161b; font-size: 10px; letter-spacing: 0; text-align: center; }
.contact-card textarea { min-height: 90px; }
.admin-contacts { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.intro-in { border-color: var(--gold) !important; }
.intro-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.intro-row b { color: var(--gold-hi); }
.intro-pair { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 10px; align-items: center; margin: 14px 0; }
.intro-pair b { font: 500 22px/1.2 "Cormorant", Georgia, serif; color: var(--gold-hi); display: block; margin: 4px 0; }
.intro-pair .arrow { text-align: center; font-size: 22px; color: var(--gold); }
.intro-card.st-done, .intro-card.st-declined { opacity: .6; }
@media (max-width: 900px) {
  .intro-row { flex-direction: column; align-items: stretch; }
  .intro-row form { width: 100%; } .intro-row form .btn { flex: 1; }
  .intro-pair { grid-template-columns: 1fr; } .intro-pair .arrow { transform: rotate(90deg); }
}
/* шапка всегда над страницей, в том числе на экранах с космосом */
.space-on .top { z-index: 20; }
/* в каталоге описание не длиннее двух строк */
.person .co { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* фото профиля */
.avatar.photo { background-size: cover; background-position: center; font-size: 0; }
.photo-pick { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.btn.file { cursor: pointer; display: inline-block; }
.photo-pick .btn.file { width: auto; padding: 12px 20px; }
.photo-pick label:not(.btn) { display: flex !important; align-items: center; gap: 8px; }
.photo-pick input[type=checkbox] { width: auto; margin: 0; }
/* афиша и описание встречи */
.event-cover { display: block; width: 100%; border-radius: 16px; margin: 18px 0 4px; border: 1px solid var(--line-2); }
.event-desc { margin: 8px 0 0; white-space: pre-line; }
.event-more summary { cursor: pointer; color: var(--gold-hi); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-top: 10px; list-style: none; }
.event-more summary::-webkit-details-marker { display: none; }
.event-more summary::after { content: " ↓"; }
.event-more[open] summary::after { content: " ↑"; }
@media (max-width: 900px) {
  /* кнопка под созвездием, а не поверх нижних звёзд */
  .hero-sky-cta { position: static; transform: none; display: table; margin: -22px auto 0; }
}
/* дни рождения */
.tag.bday.soon { border-color: var(--gold); color: var(--gold-hi); }
.bday-row { display: flex; gap: 14px; overflow-x: auto; padding: 14px 2px 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.bday-item { flex: none; width: 128px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); text-decoration: none; }
.bday-item b { font-weight: 500; font-size: 14px; line-height: 1.25; }
.bday-item span { font-size: 12px; color: var(--muted); }
.bday-item.today { border-color: var(--gold); box-shadow: 0 0 24px rgba(232,220,194,.12); }
.bday-item.today span { color: var(--gold-hi); }
input.need { border-color: var(--gold); }
@media (max-width: 900px) {
  /* Safari не растягивает блок с aspect-ratio под содержимое: кнопка вылезала на текст. Квадрат — только у самой картинки */
  .hero-sky { aspect-ratio: auto; }
  .hero-sky svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
  .hero-sky-cta { margin: -22px auto 14px; }
}
/* регистрация менеджеров */
.team-gate { align-items: start; }
.gate-card.team-card { max-width: 520px; padding-top: 4vh; }
.team-lead { text-align: center; margin: 18px auto 0; max-width: 420px; color: var(--text); }
.team-steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
.team-steps li { counter-increment: s; border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px 12px; background: rgba(13,17,25,.55); }
.team-steps li::before { content: counter(s); display: block; font: 500 26px/1 "Cormorant", Georgia, serif; color: var(--gold-hi); margin-bottom: 8px; }
.team-steps b { display: block; font-weight: 500; font-size: 13px; line-height: 1.3; }
.team-steps span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.team-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-nda { margin: 8px 0 14px; font-size: 13px; line-height: 1.45; color: var(--muted); align-items: flex-start; }
.team-nda input { margin-top: 3px; }
.team-done { margin-top: 30px; }
.team-done h2 { font: 500 30px/1.15 "Cormorant", Georgia, serif; color: var(--gold-hi); margin: 18px 0 10px; }
.team-done .btn { width: auto; margin-top: 18px; display: inline-block; }
.team-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--gold); position: relative; box-shadow: 0 0 40px rgba(232,220,194,.18); }
.team-check::after { content: ""; position: absolute; left: 22px; top: 16px; width: 14px; height: 26px; border: solid var(--gold-hi); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.team-link-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.team-link-box .copy { flex: 1; min-width: 220px; }
@media (max-width: 560px) {
  .team-steps { grid-template-columns: 1fr; }
  .team-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 12px; }
  .team-steps li::before { grid-row: span 2; margin: 0; }
  .team-row { grid-template-columns: 1fr; gap: 0; }
}
.team-done .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; line-height: 1; }

/* Nova Space: название платформы на входе (26.09.2026, просьба Антона) */
.gate-name { margin-top: 26px; }
.gate-rule { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); }
.gate-rule span { width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.gate-rule span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.gate-rule i { font-style: normal; font-size: 10px; opacity: .8; }
.gate-title { margin-top: 12px; font: italic 500 34px/1 "Cormorant", Georgia, serif; letter-spacing: .04em; color: var(--gold-hi); }
.gate-sub { margin: 10px auto 0; max-width: 320px; font-size: 13px; line-height: 1.5; color: #a9a59c; }
@media (max-width: 480px) { .gate-name { margin-top: 20px; } .gate-title { font-size: 30px; } .gate-card form { margin-top: 22px; } }
