/* Сайт 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: #C93A37;
  --line: #EBD8CF; --focus-ring: #24123A;
  --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: #3F2A5C; --focus-ring: #FFA62B;
    --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: #3F2A5C; --focus-ring: #FFA62B;
  --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; }
.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; justify-content: space-between; gap: 14px; }
.logo { display: inline-flex; min-height: 44px; align-items: center; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.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(40px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.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; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { height: 56px; padding: 0 20px 0 10px; border-radius: 999px; background: var(--inverse); color: var(--on-inverse); display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.soon { height: 32px; padding: 0 10px; border-radius: 999px; background: var(--brand-mango); color: var(--on-brand); font-size: 13px; display: inline-flex; align-items: center; }

/* Композиция: солнца в своей зоне, поверх — телефон с мини-чатом. */
.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; }
.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 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(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.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); }
.autonyms { flex: 1 1 360px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.autonyms li { height: 52px; padding: 0 20px; border-radius: 999px; background: rgba(255, 241, 234, 0.12); display: flex; align-items: center; font-weight: 700; font-size: 18px; }

/* Призыв */
.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; }

/* Подвал */
.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-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(30px, 4vw, 48px); line-height: 1.1; overflow-wrap: break-word; hyphens: auto; }
.back { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; align-self: flex-start; }

@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 { flex-basis: 100%; }
}
@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(--brand-coral); }
.prose a { overflow-wrap: anywhere; }
