/* ═════════════════════════════════════════════════════════════════
   MesGam OBHOD — лендинг (страница для гостей)
   ═════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Фоновый радиальный «свет» от акцентного цвета */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, var(--accent-soft), transparent 50%),
        radial-gradient(circle at 80% 90%, var(--accent-soft), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Переключатель темы в углу ───────────────────────────────── */
.theme-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, background .15s ease;
    user-select: none;
    font-family: inherit;
}
.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

/* ── Контейнер ───────────────────────────────────────────────── */
.landing-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 18px 80px;
}

/* ── Карточка ────────────────────────────────────────────────── */
.landing-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px 32px 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.logo-block {
    margin-bottom: 26px;
}

.landing-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 22px;
    margin-bottom: 14px;
    box-shadow: 0 8px 30px var(--accent-glow);
    background: var(--bg-tertiary);
    padding: 8px;
}

.landing-card h1 {
    font-size: 30px;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.landing-card h1 .accent {
    color: var(--accent);
}

.tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0 0;
}

/* ── Список фич ──────────────────────────────────────────────── */
.features-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.features-list li {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-primary);
}

/* ── Кнопка входа ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 20px var(--accent-glow);
    width: 100%;
    margin-top: 8px;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 28px var(--accent-glow);
    color: #fff;
}
.btn-primary:active {
    transform: translateY(0);
}

.hint {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-note {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

/* ── Cookie-плашка снизу ─────────────────────────────────────── */
.cookie-plate {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    max-width: 92%;
    text-align: center;
}

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 500px) {
    .landing-card {
        padding: 30px 22px 26px;
        border-radius: 18px;
    }
    .landing-card h1 { font-size: 24px; }
    .landing-logo { width: 72px; height: 72px; }
    .features-list li { font-size: 13px; padding: 10px 12px; }
    .theme-toggle { top: 12px; right: 12px; padding: 6px 12px; font-size: 12px; }
}