/* Сайт padelada.com — тема «Festa». Имена переменных — как роли в src/theme (docs/DESIGN.md). */

:root {
  --brand-coral: #FF5E5B; --brand-mango: #FFA62B; --brand-mint: #3DDBB0; --brand-night: #24123A; --avatar4: #C9B3F5;
  --bg: #FFF1EA; --surface: #FFFFFF; --surface-sunk: #FBE3D8; --surface-night: #24123A;
  --inverse: #24123A; --on-inverse: #FFF1EA;
  --ink: #24123A; --ink-muted: #6E5E7A; --ink-on-night: #FFF1EA; --ink-on-night-muted: #CDBFD6; --on-brand: #24123A; --ink-accent: #C03237;
  --line: #BD7E61; --focus-ring: #24123A;
  --ui-coral: #FF4A47; --ui-mango: #C37100; --ui-mint: #1E9F7C;
  --shadow: 0 20px 50px rgba(36, 18, 58, 0.25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-coral: #FF6F6C; --brand-mint: #4BE3BA;
    --bg: #1B0E2C; --surface: #2A1844; --surface-sunk: #140A22; --surface-night: #352052;
    --inverse: #FFF1EA; --on-inverse: #24123A;
    --ink: #FFF1EA; --ink-muted: #C9B8D6; --ink-accent: #FF8A87;
    --line: #7F59B3; --focus-ring: #FFA62B;
    --ui-coral: var(--brand-coral); --ui-mango: var(--brand-mango); --ui-mint: var(--brand-mint);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-coral: #FF6F6C; --brand-mint: #4BE3BA;
  --bg: #1B0E2C; --surface: #2A1844; --surface-sunk: #140A22; --surface-night: #352052;
  --inverse: #FFF1EA; --on-inverse: #24123A;
  --ink: #FFF1EA; --ink-muted: #C9B8D6; --ink-accent: #FF8A87;
  --line: #7F59B3; --focus-ring: #FFA62B;
  --ui-coral: var(--brand-coral); --ui-mango: var(--brand-mango); --ui-mint: var(--brand-mint);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Golos Text', system-ui, sans-serif; font-size: 16px; line-height: 1.5; overflow-x: hidden; }
img { display: block; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 12px; }
.band :focus-visible { outline-color: var(--brand-mango); }
.muted { color: var(--ink-muted); }

/* Логотип и иконка темы — свой вариант для каждой темы. */
.only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline-flex; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline-flex; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
img.only-light, img.only-dark { width: auto; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
h1, h2, h3 { font-family: 'Montserrat Alternates', sans-serif; font-weight: 800; margin: 0; }

/* Шапка */
.top { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.logo { display: inline-flex; min-height: 44px; align-items: center; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.anchors { display: flex; gap: 4px; }
.anchors a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 15px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-sunk); }
.langs a { min-width: 44px; height: 40px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 13px; }
.langs a[aria-current="page"] { background: var(--inverse); color: var(--on-inverse); }
.theme { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--inverse); color: var(--on-inverse); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.theme span { display: none; }
.theme span.only-light { display: inline-flex; }
:root[data-theme="dark"] .theme span.only-light { display: none; }
:root[data-theme="dark"] .theme span.only-dark { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme span.only-light { display: none; }
  :root:not([data-theme="light"]) .theme span.only-dark { display: inline-flex; }
}

/* Первый экран */
.hero { padding-top: 40px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.kicker { font-weight: 700; font-size: 12px; letter-spacing: 1.44px; color: var(--ink-accent); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; }
.lead { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink-muted); max-width: 560px; }
.lead-s { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-muted); }
.free { font-size: 15px; }

/* Композиция: солнца в своей зоне, поверх — телефон с мини-чатом. */
.hero-art { flex: 1 1 380px; min-width: 0; position: relative; height: 560px; display: flex; justify-content: center; }
.sun { position: absolute; border-radius: 50%; }
.sun-coral { width: 300px; height: 300px; background: var(--brand-coral); right: 0; top: 10px; }
.sun-mango { width: 96px; height: 96px; background: var(--brand-mango); left: 6%; top: 40px; }
.sun-mint { width: 56px; height: 56px; background: var(--brand-mint); left: 14%; bottom: 40px; }
.phone { position: relative; margin-top: 60px; width: 290px; height: 480px; border-radius: 40px; background: var(--surface-night); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.phone-head { padding: 10px 8px 6px; display: flex; align-items: center; gap: 10px; color: var(--ink-on-night); font-family: 'Montserrat Alternates', sans-serif; font-weight: 800; font-size: 16px; }
.chip-lj { width: 34px; height: 34px; border-radius: 12px; background: var(--brand-mango); color: var(--on-brand); display: flex; align-items: center; justify-content: center; font-family: 'Golos Text', sans-serif; font-weight: 700; font-size: 12px; }
.phone-screen { flex-grow: 1; border-radius: 28px; background: var(--bg); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 9px 12px; font-size: 15px; line-height: 20px; display: flex; flex-direction: column; gap: 3px; }
.bubble.other { align-self: flex-start; background: var(--surface); color: var(--ink); border-radius: 16px 16px 16px 6px; }
.bubble.other b { font-size: 12px; }
.bubble.other small { font-size: 11px; color: var(--ink-muted); }
.bubble.own { align-self: flex-end; max-width: 85%; background: var(--surface-night); color: var(--ink-on-night); border-radius: 16px 16px 6px 16px; }
/* Мокап группы: шапка с числом участников, карточка Falta uno как в приложении (рамка mango), плашка «Матч создан». */
.ph-title { display: flex; flex-direction: column; line-height: 1.15; }
.ph-title small { font-family: 'Golos Text', sans-serif; font-weight: 400; font-size: 12px; color: var(--ink-on-night-muted); }
.falta { border: 2px solid var(--ui-mango); border-radius: 20px; background: var(--surface); color: var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.falta-top { display: flex; align-items: center; gap: 8px; }
.falta-top b { flex: 1; font-family: 'Montserrat Alternates', sans-serif; font-weight: 800; font-size: 15px; line-height: 1.2; }
.pill { flex: none; border-radius: 999px; padding: 3px 9px; background: var(--brand-mango); color: var(--on-brand); font-weight: 700; font-size: 11px; }
.falta-row { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.falta-row svg { width: 15px; height: 15px; color: var(--ink-muted); }
.falta-meta { font-size: 12px; color: var(--ink-muted); }
.falta-people { display: flex; gap: 6px; }
.av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: var(--on-brand); }
.av.a1 { background: var(--brand-coral); } .av.a2 { background: var(--brand-mint); } .av.a3 { background: var(--avatar4); }
.av.free { border: 2px dashed var(--ink-muted); opacity: 0.6; }
.falta-btn { margin-top: 2px; height: 42px; border-radius: 999px; background: var(--brand-coral); color: var(--on-brand); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.toast { position: absolute; bottom: -18px; left: 50%; transform: translateX(-46%); white-space: nowrap; border-radius: 999px; background: var(--brand-mint); color: var(--on-brand); padding: 10px 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.toast svg { width: 18px; height: 18px; }
.qr-card { margin-top: auto; border-radius: 22px; background: var(--surface-night); color: var(--ink-on-night); padding: 12px; display: flex; align-items: center; gap: 12px; font-family: 'Montserrat Alternates', sans-serif; font-weight: 800; font-size: 15px; line-height: 19px; }
.qr { width: 64px; height: 64px; flex: none; border-radius: 12px; background: #FFFFFF; padding: 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.qr i.on { background: var(--brand-night); }

/* Возможности */
.features { padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.features > *, .hero-text > *, .card > * { min-width: 0; max-width: 100%; }
.features h2, .band h2, .cta h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.card { min-width: 0; background: var(--surface); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card-link { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.card-link:hover { color: var(--ink-accent); }
.card h3 { font-size: 21px; line-height: 1.2; }
.card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-muted); }
.ico { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--on-brand); }
.ico.coral { background: var(--brand-coral); } .ico.mango { background: var(--brand-mango); } .ico.mint { background: var(--brand-mint); } .ico.lav { background: var(--avatar4); }

/* Тёмная полоса (для организаторов) */
.band-pad { padding: 0 16px; }
.band { max-width: 1200px; margin: 0 auto; border-radius: 36px; background: var(--surface-night); color: var(--ink-on-night); padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.band-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.band p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-on-night-muted); }

/* Призыв */
.cta { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.cta-art { flex: 0 0 220px; height: 180px; position: relative; }
.cta-art .c1 { width: 160px; height: 160px; background: var(--brand-coral); right: 0; top: 0; }
.cta-art .c2 { width: 72px; height: 72px; background: var(--brand-mango); left: 0; bottom: 0; }

/* Две кнопки на первом экране: «Открыть Padelada» и «Я веду группу» (якорь на блок организаторов) */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ghost { min-height: 64px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.ghost svg { width: 22px; height: 22px; }
.ghost:hover { background: var(--surface); }
.phone-shot { padding: 10px; }
.phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; display: block; }

/* Как это работает: 3 шага */
.how, .compare { padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.how h2, .compare h2, .faq h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; }
.how-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.how-steps li { position: relative; background: var(--surface); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.how-steps h3 { font-size: 21px; line-height: 1.2; }
.how-steps p { margin: 0; color: var(--ink-muted); line-height: 1.5; }
.num { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-sunk); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat Alternates', sans-serif; font-weight: 800; }

/* WhatsApp против Padelada */
.vs { display: flex; flex-direction: column; gap: 10px; }
.vs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs-row > span { border-radius: 22px; padding: 18px 20px; font-size: 17px; line-height: 1.4; }
.vs-head > span { padding: 0 20px; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
.vs-wa { background: var(--surface-sunk); color: var(--ink-muted); }
.vs-pa { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: inset 4px 0 0 var(--ui-mint); }
@media (max-width: 640px) {
  .vs { gap: 18px; }
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; gap: 0; }
  .vs-wa { border-radius: 22px 22px 0 0; padding-bottom: 12px; }
  .vs-pa { border-radius: 0 0 22px 22px; }
  .vs-row > span::before { content: attr(data-l); display: block; margin-bottom: 4px; font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-muted); }
}

/* Для организаторов: тёмная полоса со списком */
.kicker.on-night { color: var(--brand-mango); }
.org .open-big { align-self: flex-start; margin-top: 8px; }
.org-list { flex: 1 1 360px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.org-list li { border-radius: 22px; background: rgba(255, 241, 234, 0.1); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.org-list svg { flex: none; width: 24px; height: 24px; color: var(--brand-mango); margin-top: 1px; }

/* Доверие */
.trust { padding-top: 64px; padding-bottom: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust-item { border-top: 3px solid var(--ui-coral); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.trust-item:nth-child(2) { border-color: var(--ui-mango); } .trust-item:nth-child(3) { border-color: var(--ui-mint); }
.trust-item b { font-family: 'Montserrat Alternates', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.2; }
.trust-item span { color: var(--ink-muted); }

/* Вопросы */
.faq { padding-top: 64px; display: flex; flex-direction: column; gap: 10px; }
.faq > * { max-width: 860px; }
.faq h2 { margin-bottom: 18px; }
.faq details { background: var(--surface); border-radius: 22px; }
.faq summary { min-height: 60px; padding: 16px 56px 16px 22px; position: relative; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; line-height: 1.35; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--ui-coral); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-muted); font-size: 17px; line-height: 1.55; }

/* Подвал */
.foot { border-top: 1px solid var(--line); }
.foot-in { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* Две фразы не разрываются. Точка между ними только на широком экране, где они стоят в одной строке. */
.foot-credit { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.45em; row-gap: 2px; margin: 0; min-width: 0; max-width: 100%; flex: 1 1 12rem; }
.foot-made, .foot-copy { white-space: nowrap; }
.foot-sep { display: none; }
@media (min-width: 640px) { .foot-sep { display: inline; } }
.foot-links { display: flex; gap: 4px; flex-wrap: wrap; }
.foot-links a { min-height: 44px; padding: 0 10px; display: flex; align-items: center; font-weight: 700; }

/* Страницы «Условия» и «Конфиденциальность» — заглушки */
.legal { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; min-height: 50vh; }
.legal h1 { font-size: clamp(22px, 4vw, 48px); line-height: 1.2; overflow-wrap: normal; hyphens: none; text-wrap: balance; }
.back { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; align-self: flex-start; }

/* Padelada Club (/club, #109 п. 6): цвета уровней — как в приложении (src/features/pclub/colors.ts), без лиловых. */
.club { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; --gold: #FFC963; --gold-deep: #94590A; --blue: #3A81F6; --teal: #279393; --emerald: #1C9675; --ui-gold: #B77700; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .club { --blue: #3B82F6; --teal: #2BA3A3; --emerald: #3DDBB0; --ui-gold: var(--gold); }
}
:root[data-theme="dark"] .club { --blue: #3B82F6; --teal: #2BA3A3; --emerald: #3DDBB0; --ui-gold: var(--gold); }
.club-head { display: flex; flex-direction: column; gap: 12px; }
.club h1 { margin: 0; font-family: 'Montserrat Alternates', sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.club h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.club-sec { display: flex; flex-direction: column; gap: 12px; }
.club-sec > p { margin: 0; }
.club-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.count { background: var(--surface); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.count b { font-size: clamp(30px, 4vw, 44px); line-height: 1; font-variant-numeric: tabular-nums; }
.count span { color: var(--ink-muted); line-height: 1.35; }
.wall { list-style: none; margin: 0; padding: 0; max-width: 720px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.seat { aspect-ratio: 1; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.seat .no { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-muted); font-size: clamp(11px, 2.6vw, 15px); }
.seat.taken { background: #2A1A04; box-shadow: inset 0 0 0 2px var(--gold); }
.seat.taken .no { color: var(--gold); }
.seat.named { background: var(--gold); box-shadow: none; }
.seat.named .no { color: #2A1A04; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-muted); font-size: 15px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.legend i.taken { background: #2A1A04; box-shadow: inset 0 0 0 2px var(--gold); }
.legend i.named { background: var(--gold); box-shadow: none; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.person { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 20px; padding: 12px 14px; min-height: 56px; }
.person img, .person .ini { flex: none; width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 3px var(--teal); }
.person .ini { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-sunk); font-weight: 700; }
.person.r-fundador img, .person.r-fundador .ini { box-shadow: 0 0 0 3px var(--ui-gold); }
.person.r-pionero img, .person.r-pionero .ini { box-shadow: 0 0 0 3px var(--blue); }
.person.r-embajador img, .person.r-embajador .ini { box-shadow: 0 0 0 3px var(--emerald); }
.person .who { display: flex; flex-direction: column; min-width: 0; }
.person .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .who .muted { font-size: 14px; }
.club-search input { width: 100%; max-width: 420px; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 18px; font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.club-updated { margin: 0; font-size: 14px; }
.ctable { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 720px; }
.crow { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 20px; padding: 10px 16px; min-height: 64px; }
.crow .cpl { width: 22px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.crow img, .crow .ini { flex: none; width: 44px; height: 44px; border-radius: 50%; }
.crow .ini { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-sunk); font-weight: 700; }
.crow .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crow .who b { overflow-wrap: anywhere; line-height: 1.25; }
.crow.anon .who b { color: var(--ink-muted); font-weight: 600; }
.crow .cw { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.crow .cw b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.crow .cw span { font-size: 13px; color: var(--ink-muted); }
.crow:nth-child(-n+3) .cpl { color: #94590A; }
:root[data-theme="dark"] .crow:nth-child(-n+3) .cpl { color: #FFC963; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crow:nth-child(-n+3) .cpl { color: #FFC963; } }
@media (max-width: 480px) {
  .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .seat .no { font-size: 15px; }
}
@media (max-width: 720px) {
  .club-counts { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-art { height: 520px; }
  .sun-coral { width: 220px; height: 220px; }
  .phone { width: 260px; }
  .cta-art { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Юридические страницы */
.updated { margin: -8px 0 0; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.6; }
.prose h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 12px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ui-coral); }
.prose a { overflow-wrap: anywhere; }

/* «Открыть Padelada» → app.padelada.com: первый экран, шапка, низ страницы */
.open { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; background: var(--brand-coral); color: var(--on-brand); font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(255, 94, 91, 0.35); }
.open:hover { filter: brightness(1.05); }
.open svg { flex: none; }
.open-big { min-height: 64px; padding: 0 30px; font-size: 20px; align-self: flex-start; }
.open-big svg { width: 24px; height: 24px; }
.open-top { min-height: 46px; padding: 0 18px; font-size: 16px; gap: 8px; box-shadow: none; }
.open-top svg { width: 20px; height: 20px; }
.open-row { display: flex; flex-direction: column; gap: 12px; }
.open-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-muted); max-width: 460px; }
@media (max-width: 720px) {
  .top { gap: 12px 10px; }
  .top .logo { order: 1; }
  .top .logo img { height: 32px; width: auto; }
  .open-top { order: 2; margin-left: auto; min-height: 44px; padding: 0 14px; font-size: 15px; }
  .controls { order: 3; flex-basis: 100%; margin-left: 0; }
  .open-big { align-self: stretch; }
}
@media (max-width: 420px) {
  .top .logo img { height: 28px; }
  .open-top { padding: 0 12px; font-size: 14px; gap: 6px; }
  .open-top svg { width: 18px; height: 18px; }
}
@media (max-width: 720px) {
  .btn-row > a { flex: 1 1 100%; justify-content: center; }
  .ghost { min-height: 56px; font-size: 17px; }
  .org .open-big { align-self: stretch; }
}

/* W#3: readable names and article lists at 320 px; native controls, no patterns. */
.person .who b { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.person.paused { filter: grayscale(1); }
.seat.paused { border-color: var(--line); background: var(--surface-sunk); color: var(--ink-muted); }
.seat-history { border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.seat-history summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.seat-history ul { padding-left: 20px; line-height: 1.6; }
.preview-note { margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.help-list a { display: block; background: var(--surface); border-radius: 18px; padding: 16px; min-height: 48px; line-height: 1.45; overflow-wrap: anywhere; }
.help-list small { display: block; color: var(--ink-muted); margin-top: 6px; font-size: 14px; }
.help-search input, .circuito-filters select, .circuito-filters input { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; min-height: 48px; padding: 10px 12px; width: 100%; min-width: 0; }
.help-search { display: grid; gap: 8px; }
.circuito-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.circuito-filters label { display: grid; gap: 8px; flex: 1 1 180px; min-width: 0; }
.circuito-filters button { font: inherit; padding: 12px 20px; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); cursor: pointer; }
.club h1, .club h2, .help-list a { text-wrap: balance; }
[hidden] { display: none !important; }

/* Balanced headings and comfortable final lines; particles are kept together by the builder. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Long localized help titles must fit even when particles are kept together. */
.help h1 { font-size: clamp(28px, 4vw, 48px); hyphens: none; overflow-wrap: normal; word-break: normal; }
.help-list a { overflow-wrap: normal; hyphens: none; }

.help-content { max-width: 720px; font-size: 17px; line-height: 1.65; }
.help-content h2 { font-size: 24px; margin: 36px 0 16px; }
.help-steps, .help-notes { padding-left: 26px; }
.help-steps > li, .help-notes > li { padding-left: 6px; margin: 20px 0; text-wrap: pretty; }
.help-steps > li::marker { font-weight: 700; color: var(--ink-accent); }
.help-shot { margin: 20px 0 28px; max-width: 440px; }
.help-shot-frame { border: 1px solid var(--line); border-radius: 18px; min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ink-muted); font-size: 15px; background: var(--surface); }
.help-shot figcaption { font-size: 14px; line-height: 1.5; margin-top: 10px; color: var(--ink-muted); text-wrap: pretty; }
.help-shot figcaption small { display: block; margin-top: 4px; }

/* Launch pages: Festa color and type, no ornaments. App Store href comes from store.json. */
.launch-nav { display:flex; flex-wrap:wrap; gap:8px; padding-block:16px; }
.launch-nav a { display:flex; align-items:center; min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:16px; text-decoration:none; font-size:16px; }
.launch-nav a[aria-current=page] { background:var(--brand-mint); color:var(--on-brand); border-color:#9A5C40; }
.launch-hero { display:block; padding-block:32px 8px; }
.launch-hero .hero-text { max-width:800px; }
.launch-hero h1 { font-size:clamp(28px, 8vw, 64px); line-height:1.08; text-wrap:balance; }
.launch-block { padding-bottom:48px; }
.launch-store { max-width:520px; }
.rules { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.rules li { background:var(--surface); border-radius:20px; padding:16px 18px; font-size:17px; line-height:1.5; }
.launch-help { margin-top:8px; }
.launch-help a { min-height:44px; display:inline-flex; align-items:center; font-weight:700; }
@media (max-width:720px) {
  .top { position:relative; }
  .top .theme { position:absolute; top:20px; right:24px; }
}
@media (max-width:420px) { .top .theme { right:16px; } }
