/* FootballCards — лендинг. Палитра/типографика из DESIGN_LANGUAGE.md (тёмная, blue→purple). */
:root {
    --bg: #181f3f;
    --bg-2: #232b54;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.10);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f2f4fd;
    --text-dim: #9aa3c5;
    --text-faint: #6a7296;
    --accent: #3b82f6;
    --accent-2: #8b5cf6;
    --accent-3: #22d3ee;
    --gold: #fbbf24;
    --grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, system-ui, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

/* ambient свечение по углам */
.ambient {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}
.ambient-tr { top: -20vw; right: -15vw; background: radial-gradient(circle, rgba(59,130,246,0.22), transparent 60%); }
.ambient-bl { bottom: -20vw; left: -15vw; background: radial-gradient(circle, rgba(139,92,246,0.20), transparent 60%); }

.wrap { width: min(1080px, 92%); margin: 0 auto; position: relative; z-index: 1; }

/* переключатель языка */
.lang-switch {
    position: fixed; top: 14px; right: 16px; z-index: 20;
    display: flex; gap: 3px; padding: 3px;
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: 999px; backdrop-filter: blur(8px);
}
.lang-switch button {
    background: none; border: 0; cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: 700; color: var(--text-dim);
    padding: 5px 11px; border-radius: 999px; transition: color .12s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--grad); color: #fff; }

/* секции с цветовым разделением блоков */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-2); }

.section-title {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    margin-bottom: 36px;
    text-align: center;
}

/* ===== HERO ===== */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-glow {
    position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 80%; height: 360px;
    background: radial-gradient(60% 60% at 50% 0%, rgba(59,130,246,0.35), transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero-inner { display: flex; justify-content: center; }
.hero-copy {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    max-width: 680px;
}
.hero-logo {
    width: min(360px, 82%); height: auto; margin-bottom: 14px;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.45));
}
.hero-title {
    font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; line-height: 1.15;
    color: var(--text); letter-spacing: -0.01em; margin-bottom: 16px;
}
.lead { font-size: 18px; color: var(--text-dim); max-width: 30em; margin-bottom: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.hero-meta { font-size: 13px; color: var(--text-faint); }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 600; font-family: inherit; text-decoration: none;
    padding: 13px 26px; border-radius: 12px; transition: transform .12s ease, filter .12s ease;
    /* сброс нативных стилей <button> — иначе у кнопки-элемента (Поддержать) вылезает рамка/чужой
       шрифт/iOS-обводка, в отличие от <a>. Рамку .btn-ghost задаёт после и не теряет. */
    border: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(59,130,246,0.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }

/* placeholder под скриншот (пока нет реальных) */
.shot-ph {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 10; border-radius: var(--radius);
    background: var(--surface); border: 1px dashed var(--border-strong);
    color: var(--text-faint); font-size: 14px;
}
.hero-shot .shot-ph { box-shadow: 0 24px 60px rgba(0,0,0,0.45); }

/* ===== FEATURES ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card-ico { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); }

/* ===== SCREENSHOTS ===== */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shot { margin: 0; }
.shot img {
    width: 100%; height: auto; display: block;
    border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}
.shot figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--text-dim); }

/* ===== DOWNLOAD ===== */
.dl-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.dl-card {
    width: 230px; text-align: center; text-decoration: none; color: var(--text);
    background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius); padding: 26px 18px; transition: transform .12s ease, border-color .15s ease;
}
.dl-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.dl-ico { font-size: 38px; margin-bottom: 10px; }
.dl-name { font-size: 18px; font-weight: 700; }
.dl-sub { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.dl-soon { opacity: .55; pointer-events: none; }
.dl-featured { border-color: var(--accent); box-shadow: 0 0 24px rgba(59, 130, 246, .20); }
.dl-ver { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 6px; min-height: 14px; }

.apk-note {
    max-width: 620px; margin: 0 auto; text-align: center;
    font-size: 14px; color: var(--text-dim);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 18px;
}
.apk-note strong { color: var(--text); }

/* ===== ДРУЗЬЯ ===== */
.friends-intro { text-align: center; color: var(--text-dim); font-size: 16px; margin: -22px auto 34px; max-width: 36em; }
.friend {
    display: flex; gap: 26px; align-items: center;
    max-width: 760px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px;
    transition: border-color .15s ease, transform .15s ease;
}
.friend:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.friend-logo {
    width: 96px; height: 96px; flex-shrink: 0;
    border-radius: 18px; object-fit: cover;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.friend-body { flex: 1; min-width: 0; }
.friend-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.friend-desc { font-size: 14.5px; color: var(--text-dim); margin-bottom: 16px; }
.friend-btn { font-size: 15px; padding: 11px 22px; }
@media (max-width: 560px) {
    .friend { flex-direction: column; text-align: center; padding: 24px 18px; }
}

/* ===== ПОДДЕРЖАТЬ ===== */
.support-intro { text-align: center; color: var(--text-dim); font-size: 16px; margin: -22px auto 30px; max-width: 38em; }
.support-box {
    max-width: 620px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px;
}
.support-presets { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.support-presets .btn { padding: 10px 18px; font-size: 15px; }
.support-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.support-row input {
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: 12px;
    padding: 11px 14px; font-size: 15px; font-family: inherit;
}
.support-row input:focus { outline: none; border-color: var(--accent); }
#support-amount { width: 110px; }
#support-email { flex: 1; min-width: 200px; }
.support-status { text-align: center; min-height: 20px; margin-top: 14px; font-size: 14px; }
.support-status.ok { color: var(--accent-3); }
.support-status.err { color: #f87171; }

/* ===== FOOTER ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent-3); }
.footer-copy { color: var(--text-faint); font-size: 13px; }

/* ===== адаптив ===== */
@media (max-width: 860px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .shots { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
}
@media (max-width: 480px) {
    .cards { grid-template-columns: 1fr; }
}

/* ===== легальные страницы (оферта/политика/соглашение/контакты) ===== */
.legal-head { padding: 18px 0; border-bottom: 1px solid var(--border); }
.legal-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; }
.legal-logo img { height: 34px; width: auto; }
.legal { max-width: 820px; margin: 0 auto; padding: 40px 0 72px; }
.legal h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; margin-bottom: 8px; }
.legal .meta { color: var(--text-faint); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.legal p, .legal ul { color: var(--text-dim); margin-bottom: 14px; font-size: 15px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent-3); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; color: var(--text-dim); }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.legal th { background: var(--surface); color: var(--text); }
.req-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.req-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.req-row:last-child { border-bottom: 0; }
.req-row .k { color: var(--text-dim); }
.req-row .v { color: var(--text); font-weight: 600; text-align: right; }
