/* Сайт bball.ru: лэндинг и политика конфиденциальности. Без сборки и внешних шрифтов. */
:root {
    --bg: #0b0b0d;
    --bg-2: #141417;
    --card: #1a1a1f;
    --line: #2a2a31;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --accent: #f2612b;      /* AccentColor приложения (светлая тема) */
    --accent-2: #ff7a45;    /* AccentColor приложения (тёмная тема) */
    --radius: 18px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Свечение за первым экраном и повёрнутые телефоны выходят за край — без этого появляется горизонтальная прокрутка. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* Язык: оба текста в разметке, лишний прячется. Без JS остаётся язык по умолчанию страницы. */
html[data-lang="ru"] [lang="en"]:not(html),
html[data-lang="en"] [lang="ru"]:not(html) { display: none !important; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* --- шапка --- */
.top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 22.5%; }
.lang { display: flex; gap: 4px; font-size: 14px; }
.lang a {
    color: var(--muted); padding: 6px 10px; border-radius: 999px; border: 1px solid transparent;
}
.lang a:hover { text-decoration: none; color: var(--text); }
html[data-lang="ru"] .lang a[data-set="ru"],
html[data-lang="en"] .lang a[data-set="en"] { color: var(--text); border-color: var(--line); }

/* --- первый экран --- */
.hero {
    position: relative;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
    padding: 48px 0 72px;
}
.hero::before {
    content: ""; position: absolute; inset: -120px -20vw auto auto; width: 70vw; height: 620px; z-index: -1;
    background: radial-gradient(closest-side, rgba(242, 97, 43, 0.28), transparent 70%);
    pointer-events: none;
}
.app-icon {
    width: 112px; height: 112px; border-radius: 22.5%;
    box-shadow: 0 18px 50px rgba(242, 97, 43, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
h1 {
    margin: 28px 0 0; font-size: clamp(56px, 9vw, 104px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800;
}
h1 .a { color: var(--accent); }
.lead { margin: 20px 0 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; color: #d4d4d8; max-width: 30em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
    display: inline-flex; align-items: center; gap: 12px;
    min-width: 200px; padding: 12px 20px 12px 16px;
    border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
    transition: border-color .15s, transform .15s, background .15s;
}
.store:hover { text-decoration: none; border-color: #4a4a52; background: #1c1c21; transform: translateY(-1px); }
.store.primary { background: var(--text); color: #0b0b0d; border-color: var(--text); }
.store.primary:hover { background: #fff; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 12px; line-height: 1.2; opacity: .7; }
.store b { display: block; font-size: 19px; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* --- телефоны --- */
.phones { position: relative; height: 620px; }
.phone {
    position: absolute; width: 270px; aspect-ratio: 1284 / 2778;
    border-radius: 44px; padding: 9px; background: #000;
    box-shadow: 0 0 0 2px #2c2c31, 0 40px 80px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone.p1 { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; }
.phone.p2 { left: 0; top: 70px; transform: rotate(-6deg) scale(.88); opacity: .9; }
.phone.p3 { right: 0; top: 70px; transform: rotate(6deg) scale(.88); opacity: .9; }

/* --- возможности --- */
section h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 28px; }
.features { padding: 24px 0 80px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card .ic {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(242, 97, 43, 0.14); color: var(--accent-2); margin-bottom: 16px;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.privacy-band {
    margin: 0 0 80px; padding: 36px; border-radius: 24px;
    background: linear-gradient(135deg, #1d130f, #141417 60%); border: 1px solid #3a2419;
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.privacy-band h2 { margin: 0 0 8px; font-size: 28px; }
.privacy-band p { margin: 0; color: #d4d4d8; max-width: 40em; }

/* --- подвал --- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--text); }
footer .legal { margin-top: 16px; font-size: 13px; line-height: 1.5; max-width: 70em; color: #71717a; }

/* --- текстовая страница (политика) --- */
.doc { max-width: 760px; padding: 24px 0 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.035em; margin: 24px 0 8px; line-height: 1.05; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 20px; letter-spacing: -0.01em; margin: 32px 0 8px; }
.doc p, .doc li { color: #d4d4d8; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 8px 0; }
.doc strong { color: var(--text); }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; text-align: center; }
    .hero .app-icon { margin-inline: auto; }
    .lead { margin-inline: auto; }
    .stores { justify-content: center; }
    .phones { height: 520px; }
    .phone { width: 230px; }
    .grid { grid-template-columns: 1fr 1fr; }
    .privacy-band { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .phones { height: 440px; }
    .phone { width: 200px; border-radius: 34px; padding: 7px; }
    .phone img { border-radius: 28px; }
    .phone.p2, .phone.p3 { display: none; }
    .grid { grid-template-columns: 1fr; }
    .store { flex: 1 1 100%; justify-content: center; }
    .privacy-band { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .store { transition: none; } }
