/* Манифест — приложение участника. Фирстиль: графит, золото, Unbounded + Montserrat */

:root {
  --bg: #1E2124;
  --surface: #272A2E;
  --surface-2: #30343A;
  --line: rgba(205, 163, 92, .22);
  --line-soft: rgba(255, 255, 255, .07);
  --head: #F2F3F4;
  --text: #D3D8DC;
  --muted: #9AA0A6;
  --gold: #CDA35C;
  --gold-soft: rgba(205, 163, 92, .14);
  --gold-grad: linear-gradient(180deg, #FBF3DE 0%, #D9AE7C 42%, #CBA173 62%, #AC8654 86%, #8B6C47 100%);
  --btn-grad: linear-gradient(180deg, #F3DFB5 0%, #D9AE7C 55%, #C2965F 100%);
  --danger: #E08A7A;
  --live: #7FD3A0;
  --radius: 16px;
  --f-head: "Unbounded", system-ui, sans-serif;
  --f-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --f-caps: "Oswald", "Montserrat", sans-serif;
  --tabbar-h: 64px;
  --tabbar-bg: rgba(30, 33, 36, .92);
  --k-act: #8FD1C2; --k-act-bg: rgba(143, 209, 194, .12);
  --k-net: #C9B2F0; --k-net-bg: rgba(201, 178, 240, .12);
  --k-party: #F0B38E; --k-party-bg: rgba(240, 179, 142, .12);
  --heart: #E8707E;
  color-scheme: dark;
}

/* Светлая тема — «бумага» из фирстиля. Два блока одинаковые:
   выбранная вручную и «как в телефоне», когда телефон в светлом режиме. */
:root[data-theme="light"] {
  --bg: #F1EFEA; --surface: #FFFFFF; --surface-2: #E7E3DA;
  --line: rgba(150, 113, 46, .30); --line-soft: rgba(30, 34, 38, .09);
  --head: #1E2226; --text: #3F454B; --muted: #767C83;
  --gold: #96712E; --gold-soft: rgba(150, 113, 46, .10);
  --gold-grad: linear-gradient(180deg, #C39A55 0%, #96712E 60%, #6E521E 100%);
  --danger: #B4483A; --live: #2E7D57;
  --tabbar-bg: rgba(255, 255, 255, .94);
  --k-act: #2F7F6E; --k-act-bg: rgba(47, 127, 110, .10);
  --k-net: #6B4FB0; --k-net-bg: rgba(107, 79, 176, .10);
  --k-party: #B5602F; --k-party-bg: rgba(181, 96, 47, .10);
  --heart: #D2435A;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #F1EFEA; --surface: #FFFFFF; --surface-2: #E7E3DA;
    --line: rgba(150, 113, 46, .30); --line-soft: rgba(30, 34, 38, .09);
    --head: #1E2226; --text: #3F454B; --muted: #767C83;
    --gold: #96712E; --gold-soft: rgba(150, 113, 46, .10);
    --gold-grad: linear-gradient(180deg, #C39A55 0%, #96712E 60%, #6E521E 100%);
    --danger: #B4483A; --live: #2E7D57;
    --tabbar-bg: rgba(255, 255, 255, .94);
    --k-act: #2F7F6E; --k-act-bg: rgba(47, 127, 110, .10);
    --k-net: #6B4FB0; --k-net-bg: rgba(107, 79, 176, .10);
    --k-party: #B5602F; --k-party-bg: rgba(181, 96, 47, .10);
    --heart: #D2435A;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--head); margin: 0; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
.ic { flex: none; }

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px);
}

/* ── типографика ───────────────────────────────────────── */
.overline {
  font: 500 11px/1.2 var(--f-caps);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.gold-title {
  font: 700 clamp(34px, 10vw, 48px)/1 var(--f-head);
  text-transform: uppercase;
  letter-spacing: -.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-head { margin: 8px 0 18px; }
.page-head h1 { font: 600 26px/1.15 var(--f-head); }
.page-sub { color: var(--muted); margin-top: 6px; }
.muted { color: var(--muted); }
.hairline { height: 1px; width: 64px; background: var(--gold); margin: 22px 0; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }
.footnote { color: var(--muted); font-size: 13px; text-align: center; margin-top: 28px; line-height: 1.6; }
.footnote a { color: var(--gold); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); }
.brand b { font: 500 13px/1 var(--f-caps); letter-spacing: .42em; color: var(--head); }

/* ── главная ───────────────────────────────────────────── */
.hero {
  position: relative;
  margin: -16px -16px 0;
  padding: calc(env(safe-area-inset-top) + 18px) 20px 26px;
  border-radius: 0 0 24px 24px;
  color: #D3D8DC;
  background:
    linear-gradient(180deg, rgba(22, 24, 27, .40) 0%, rgba(22, 24, 27, .78) 62%, rgba(22, 24, 27, .94) 100%),
    url("/static/hero.jpg") center 40% / cover no-repeat,
    #2a2622;
}
/* внутри фото цвета фиксированные — не зависят от темы */
.hero .gold-title { background-image: linear-gradient(180deg, #FBF3DE 0%, #D9AE7C 42%, #CBA173 62%, #AC8654 86%, #8B6C47 100%); }
.hero .overline, .hero .brand { color: #CDA35C; }
.hero .brand b { color: #F2F3F4; }
.hero-actions { display: flex; align-items: center; gap: 10px; }
.theme-quick {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; color: #F2F3F4; background: rgba(255, 255, 255, .12);
}
.theme-quick .ic:last-child { display: none; }
:root[data-theme="light"] .theme-quick .ic:first-child { display: none; }
:root[data-theme="light"] .theme-quick .ic:last-child { display: block; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .theme-quick .ic:first-child { display: none; }
  :root[data-theme="auto"] .theme-quick .ic:last-child { display: block; }
}
.hero-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.hero .overline { margin-bottom: 12px; }
.hero-sub { margin-top: 12px; color: #D3D8DC; font-size: 14px; }
.countdown {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-top: 20px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(30, 33, 36, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.countdown b { font: 700 22px/1 var(--f-head); color: var(--gold); }
.countdown { border-color: rgba(205, 163, 92, .35); }
.countdown b { color: #CDA35C; }
.countdown span { font-size: 13px; color: #D3D8DC; }

.notice {
  margin-top: 20px; padding: 16px 18px;
  border-left: 2px solid var(--gold); background: var(--gold-soft); border-radius: 4px var(--radius) var(--radius) 4px;
}
.notice .overline { margin-bottom: 6px; }

.block { margin-top: 30px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.block-head a { color: var(--gold); font-size: 13px; font-weight: 600; }
.block-title { font: 600 17px/1.2 var(--f-head); margin-bottom: 14px; }
.block-head .block-title { margin-bottom: 0; }

.links { display: grid; gap: 10px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .15s;
}
.link-card:active { border-color: var(--line); }
.link-card > .ic:first-child { color: var(--gold); }
.link-card > .ic:last-child { color: var(--muted); }
.link-card span { flex: 1; min-width: 0; }
.link-card b { display: block; color: var(--head); font-weight: 600; }
.link-card small { color: var(--muted); font-size: 13px; }

/* ── слоты программы ───────────────────────────────────── */
.slots { display: grid; gap: 10px; }
.slot {
  position: relative;
  display: grid; grid-template-columns: 58px 1fr; gap: 12px;
  padding: 16px 16px 16px 14px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.slot-link { position: absolute; inset: 0; border-radius: inherit; }
.slot.is-live { border-color: rgba(127, 211, 160, .45); }
.slot.is-going { border-color: var(--line); }
.slot.is-past { opacity: .5; }
.slot-time { display: flex; flex-direction: column; padding-top: 1px; }
.slot-time b { font: 600 16px/1.2 var(--f-head); color: var(--head); }
.slot-time span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.slot-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 6px; }
.slot-day { font-size: 12px; color: var(--muted); }
.slot h3 { font: 600 15.5px/1.35 var(--f-body); margin-bottom: 6px; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.meta + .meta { margin-top: 3px; }
.meta .ic { color: var(--gold); opacity: .85; }
.slot-join {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 12px;
}
.seats { font-size: 12.5px; color: var(--muted); margin-right: auto; }
.slot-join form { margin: 0; }

.kind {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font: 500 10.5px/1.3 var(--f-caps); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-soft);
}
.kind-activity { color: var(--k-act); background: var(--k-act-bg); }
.kind-networking { color: var(--k-net); background: var(--k-net-bg); }
.kind-food, .kind-transfer { color: var(--muted); background: var(--line-soft); }
.kind-party { color: var(--k-party); background: var(--k-party-bg); }

.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--live); font-size: 12px; font-weight: 600; }
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(127, 211, 160, .6); animation: pulse 1.8s infinite;
}
.block-title .live-dot { font: inherit; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(127, 211, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 211, 160, 0); } }

/* ── дни и чипы ────────────────────────────────────────── */
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 0; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.day small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.day b { font: 600 20px/1.1 var(--f-head); color: var(--head); }
.day.on { background: var(--btn-grad); border-color: transparent; }
.day.on small, .day.on b { color: #1E2124; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips.scroll {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px 18px; padding: 0 16px;
}
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--text);
}
.chip i { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 2px; }
.chip.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.chip.on i { color: var(--gold); }

/* ── кнопки ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0;
  font: 700 15px/1 var(--f-body); cursor: pointer; text-align: center;
}
.btn-gold { background: var(--btn-grad); color: #1E2124; box-shadow: 0 6px 20px -8px rgba(217, 174, 124, .6); }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--line); }
.btn-ghost:disabled { color: var(--muted); border-color: var(--line-soft); }
.btn-icon { width: 48px; padding: 0; background: var(--surface); color: var(--gold); border: 1px solid var(--line-soft); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; background: var(--surface); color: var(--gold); border: 1px solid var(--line); }
.btn-wide { width: 100%; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  font: 700 13px/1 var(--f-body); cursor: pointer;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--line);
}
.chip-btn.on { background: var(--btn-grad); color: #1E2124; border-color: transparent; }
.chip-btn.off { color: var(--muted); background: transparent; border-color: var(--line-soft); cursor: default; }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; margin: 4px 0 18px; }

/* ── деталь пункта ─────────────────────────────────────── */
.detail h1 { font: 600 24px/1.25 var(--f-head); margin: 12px 0 20px; }
.facts { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.facts .ic { color: var(--gold); margin-top: 2px; }
.facts small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.facts span { color: var(--head); font-weight: 600; }
.prose { white-space: pre-line; line-height: 1.65; }
.join-box { margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--surface); text-align: center; }
.join-box .btn { width: 100%; }
.join-note { margin-top: 10px; color: var(--muted); font-size: 13px; }
.warn { color: var(--danger); font-size: 13.5px; margin-bottom: 12px; }

/* ── участники ─────────────────────────────────────────── */
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; margin-bottom: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.search .ic { color: var(--muted); }
.search input {
  flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none;
  color: var(--head); font: 500 16px var(--f-body);
}
.search:focus-within { border-color: var(--line); }

.people-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.person-row {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.row-link { position: absolute; inset: 0; }
.person-text { flex: 1; min-width: 0; }
.person-row b { display: block; color: var(--head); font-weight: 600; }
.person-row small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-row small.niche { color: var(--gold); font-size: 12px; margin-top: 2px; }
.person-row > .ic { color: var(--muted); opacity: .6; }
.people-list.compact .person-row { padding: 9px 0; }
.tag-speaker { font: 500 10px/1 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-style: normal; margin-left: 4px; vertical-align: 2px; }

.av { flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.av-sm { width: 38px; height: 38px; }
.av-md { width: 54px; height: 54px; }
.av-empty {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px var(--f-head); color: var(--gold); background: var(--surface-2);
}
.av-sm.av-empty { font-size: 12px; }
.hero-me .av { border: 1.5px solid var(--gold); }

/* ── профиль ───────────────────────────────────────────── */
.profile-photo {
  margin: 0 -16px; aspect-ratio: 1 / 1; max-height: 440px; overflow: hidden;
  background: var(--surface-2); position: relative;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, var(--bg)); }
.profile-photo .av-empty { display: flex; width: 100%; height: 100%; font-size: 64px; }
.profile-head { position: relative; margin-top: -48px; z-index: 1; }
.profile-head .overline { margin-bottom: 8px; }
.profile-head h1 { font: 600 26px/1.15 var(--f-head); }
.profile-job { margin: 8px 0 6px; color: var(--text); font-weight: 600; }
.contact-row { display: flex; gap: 10px; margin: 20px 0 4px; }
.contact-row .btn-gold { flex: 1; }
.qa { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); }
.qa h2 { font: 500 11px/1.2 var(--f-caps); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.qa p { white-space: pre-line; line-height: 1.6; }
.me-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.me-bar + .profile .profile-photo, .me-bar + .toast + .profile .profile-photo { border-radius: var(--radius); margin: 0; }

.install p { color: var(--muted); margin-bottom: 14px; }
.install-steps { display: grid; gap: 8px; margin-bottom: 14px; }
.install-steps div { padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.install-steps b { display: block; color: var(--head); margin-bottom: 2px; }
.install-steps .ic { vertical-align: -3px; color: var(--gold); }
.install .btn { width: 100%; }

/* ── анкета ────────────────────────────────────────────── */
.onboard { margin: 8px 0 24px; }
.onboard h1 { font: 600 28px/1.15 var(--f-head); margin: 28px 0 10px; }
.onboard p { color: var(--muted); }
.form fieldset { border: 0; margin: 0 0 8px; padding: 0; }
.form legend { font: 500 11px/1 var(--f-caps); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); padding: 18px 0 12px; }
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field-label i, .photo-pick i { color: var(--gold); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-soft); color: var(--head);
  font: 500 16px/1.4 var(--f-body); outline: none; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%23CDA35C' stroke-width='1.6'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field ::placeholder { color: #6E747B; }
.field-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field-error { display: block; font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 4px 0 8px; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }

.photo-pick { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
.photo-pick b { display: block; color: var(--head); margin-bottom: 4px; }
.photo-pick span { font-size: 13px; color: var(--muted); }
.photo-pick.has-error span { color: var(--danger); }
.photo-circle {
  position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface) center / cover no-repeat; border: 1.5px dashed var(--gold);
}
.photo-pick.has-error .photo-circle { border-color: var(--danger); }
.photo-circle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-empty { color: var(--gold); display: flex; }

.form-submit {
  position: sticky; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 5;
  padding-top: 12px; margin-top: 12px;
}
.form-submit .btn[disabled] { opacity: .6; }

/* ── уведомления ───────────────────────────────────────── */
.toast {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 0 0; padding: 12px 16px; border-radius: 12px;
  background: rgba(127, 211, 160, .12); color: var(--live); font-weight: 600; font-size: 14px;
}
.toast-error { background: rgba(224, 138, 122, .12); color: var(--danger); margin-bottom: 8px; }

/* ── нижнее меню ───────────────────────────────────────── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--tabbar-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: 11px; font-weight: 600;
}
.tabbar a.on { color: var(--gold); }

/* ── экран входа ───────────────────────────────────────── */
body.welcome .page { min-height: 100vh; display: flex; align-items: center; }
.welcome-box { width: 100%; }
.welcome-mark { color: var(--gold); margin-bottom: 28px; }
.welcome-box .overline { margin-bottom: 12px; }
.welcome-dates { margin-top: 12px; color: var(--muted); }
.welcome-box h2 { font: 600 19px/1.3 var(--f-head); margin-bottom: 10px; }
.welcome-box p:not(.overline):not(.welcome-dates) { color: var(--text); margin-bottom: 22px; }
.welcome-box .btn { width: 100%; }

@media (min-width: 600px) {
  .hero { margin: -16px 0 0; }
  .profile-photo { margin: 0; border-radius: var(--radius); }
}

/* ── лайки и метчи ─────────────────────────────────────── */
.like-form { position: relative; z-index: 1; margin: 0; }
.like {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-soft); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: transform .15s, color .15s;
}
.like:active { transform: scale(.9); }
.like.on { color: var(--heart); border-color: color-mix(in srgb, var(--heart) 40%, transparent); }
.like.on .ic { fill: currentColor; }
.like.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }
.contact-row .like { width: 48px; height: 48px; border-radius: 14px; }
.contact-row .like.like-big { flex: 1; width: auto; font: 700 15px var(--f-body); }
.people-list .like { width: 40px; height: 40px; border-color: transparent; background: none; }

.tag-match { font: 500 10px/1 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--heart); font-style: normal; margin-left: 4px; vertical-align: 2px; }
.match-banner {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px;
  border-radius: 14px; background: color-mix(in srgb, var(--heart) 12%, transparent); color: var(--heart);
}
.match-banner b { display: block; color: var(--head); }
.match-banner span { color: var(--text); font-size: 13.5px; }
.toast-match { background: color-mix(in srgb, var(--heart) 14%, transparent); color: var(--heart); }

.seg {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.seg a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 8px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.seg a i { font-style: normal; opacity: .75; }
.seg a.on { background: var(--gold-soft); color: var(--gold); }

.net-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.net-stats div { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.net-stats b { display: block; font: 600 24px/1.1 var(--f-head); color: var(--gold); }
.net-stats span { font-size: 12.5px; color: var(--muted); }
.small-note { font-size: 13.5px; line-height: 1.55; }
.small-note .ic { vertical-align: -2px; color: var(--heart); }
.toast-float {
  position: fixed; z-index: 30; left: 16px; right: 16px; top: calc(env(safe-area-inset-top) + 14px);
  max-width: 528px; margin: 0 auto; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--heart) 40%, transparent);
  animation: drop .3s ease;
}
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

/* ── запись на активности ──────────────────────────────── */
.slot-join { flex-wrap: wrap; justify-content: flex-start; row-gap: 10px; }
.slot-join form { margin-left: auto; }
.goers { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.goers .seats { margin: 0; white-space: nowrap; }
.chip-btn { white-space: nowrap; }
.stack { display: inline-flex; }
.stack .av { box-sizing: content-box; border: 2px solid var(--surface); }
.stack .av + .av { margin-left: -8px; }
.av.av-xs { width: 26px; height: 26px; }
.av-xs.av-empty { font-size: 9.5px; letter-spacing: -.02em; background: var(--surface-2); overflow: hidden; }
.join-hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.replace-box { display: grid; gap: 8px; text-align: left; }
.replace-box .btn { width: 100%; }
.replace-box p:last-of-type { margin-bottom: 6px; }

/* окно «отменить то и записаться сюда» */
.sheet-back {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease;
}
.sheet {
  width: 100%; max-width: 560px; padding: 22px 20px calc(env(safe-area-inset-bottom) + 20px);
  border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); animation: up .25s ease;
}
.sheet h3 { font: 600 18px/1.3 var(--f-head); margin-bottom: 12px; }
.sheet-item { padding: 12px 14px; border-radius: 12px; background: var(--bg); margin-bottom: 8px; }
.sheet-item b { display: block; color: var(--head); }
.sheet-item span { font-size: 13px; color: var(--muted); }
.sheet-arrow { text-align: center; color: var(--gold); margin: 2px 0 8px; font-size: 13px; font-weight: 600; }
.sheet .btn { width: 100%; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); } }

.link-card.is-soon { opacity: .55; }
.link-card.is-soon > .ic:first-child { color: var(--muted); }
.links-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--muted); }
.links-note a { color: var(--gold); font-weight: 600; }

/* ── установка на экран ────────────────────────────────── */
.install-head { display: flex; gap: 16px; align-items: center; margin: 4px 0 20px; }
.install-head h1 { font: 600 22px/1.2 var(--f-head); margin-bottom: 6px; }
.install-head p { color: var(--muted); font-size: 14px; }
.install-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
.install-card { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); margin-bottom: 12px; }
.install-card .overline { margin-bottom: 12px; }
.install-card .btn { margin-bottom: 12px; }
.warn-card { border-color: var(--line); }
.warn-card b { display: block; color: var(--head); margin-bottom: 6px; }
.warn-card p { color: var(--text); font-size: 14px; margin-bottom: 12px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.steps li { line-height: 1.5; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.steps b { color: var(--head); }
.steps small { color: var(--muted); font-size: 12.5px; }
.steps .ic { vertical-align: -3px; color: var(--gold); }
.install-banner {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px;
  padding: 12px 40px 12px 12px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--line);
}
.install-banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-banner b { display: block; color: var(--head); font-size: 14px; }
.install-banner small { color: var(--muted); font-size: 12.5px; }
.install-x {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.install-card .small-note { margin-top: 14px; color: var(--muted); }
.more-help { margin-top: 14px; font-size: 13.5px; color: var(--text); }
.more-help summary { color: var(--gold); font-weight: 600; cursor: pointer; }
.more-help p { margin-top: 8px; line-height: 1.55; }
.safari-check { padding: 14px; margin-bottom: 16px; border-radius: 12px; background: var(--gold-soft); }
.safari-check b { display: block; color: var(--head); margin-bottom: 6px; font-size: 14px; }
.safari-check p { font-size: 13.5px; line-height: 1.5; margin-bottom: 10px; }
.safari-check .btn { margin-bottom: 0; }

/* ── профиль: анкета сворачивается ─────────────────────── */
.anketa-fold { margin-top: 22px; border-top: 1px solid var(--line); }
.anketa-fold > summary {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px;
  list-style: none; cursor: pointer; font: 600 17px/1.2 var(--f-head); color: var(--head);
}
.anketa-fold > summary::-webkit-details-marker { display: none; }
.anketa-fold > summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s;
}
.anketa-fold[open] > summary::after { transform: translateY(3px) rotate(225deg); }
.anketa-fold .qa:first-of-type { border-top: 0; margin-top: 10px; }
.contacts-qa p { white-space: normal; }
