/* ==========================================================================
   Blogger Analyzer — тёмная тема (CreaMetrix)
   ========================================================================== */
:root {
    --bg: #0e0f1a;
    --bg-2: #14162a;
    --bg-3: #1b1e38;
    --surface: #191b33;
    --surface-2: #20233f;
    --border: #2b2f52;
    --text: #eef0ff;
    --text-dim: #a7abcf;
    --text-mut: #7b80a8;
    --primary: #7c5cff;
    --primary-2: #a78bff;
    --primary-dk: #5a3fe0;
    --accent: #22d3ee;
    --danger: #ff5c7c;
    --danger-bg: #2a1626;
    --success: #34d399;
    --success-bg: #10241f;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(124, 92, 255, .18), transparent 60%),
        radial-gradient(900px 600px at -10% 10%, rgba(34, 211, 238, .10), transparent 55%),
        var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: #c9b8ff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(14, 15, 26, .72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-icon { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: .2px; }
.brand-name sup { color: var(--primary-2); font-size: .6em; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--text-dim); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-user { color: var(--text-mut); font-size: .88rem; padding: 0 8px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Гамбургер (виден только на мобильных) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle-bar { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 92, 255, .35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(124, 92, 255, .5); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); background: var(--surface); border-color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Main / flash ---------- */
.site-main { flex: 1; width: 100%; }
.flash-wrap { max-width: var(--maxw); margin: 16px auto 0; padding: 0 20px; }
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: .92rem;
    border: 1px solid var(--border);
}
.flash-error { background: var(--danger-bg); border-color: #57223a; color: #ffb3c4; }
.flash-success { background: var(--success-bg); border-color: #1c4a3c; color: #8ff0cf; }

/* ---------- Hero ---------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 90px 20px 70px; text-align: center; }
.hero-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary-2);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 20%, var(--primary-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title sup { font-size: .35em; -webkit-text-fill-color: var(--primary-2); }
.hero-sub { max-width: 680px; margin: 0 auto 30px; color: var(--text-dim); font-size: 1.15rem; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin: 16px 0 0; color: var(--text-mut); font-size: .9rem; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 54px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 1.7rem; font-weight: 800; color: var(--primary-2); }
.stat-label { color: var(--text-mut); font-size: .9rem; }
.hero-media { margin-top: 56px; }
.hero-media img { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 70px 20px; }
.section-alt { max-width: none; background: linear-gradient(180deg, transparent, rgba(27, 30, 56, .5), transparent); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title { text-align: center; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; margin: 0 auto 10px; }
.section-sub { text-align: center; color: var(--text-dim); margin: 0 auto 44px; max-width: 620px; font-size: 1.05rem; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .15s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-ico { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--text-dim); line-height: 1.55; font-size: .95rem; }

/* ---------- Examples ---------- */
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.example { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.example img { width: 100%; display: block; background: #fff; }
.example figcaption { padding: 14px 18px; color: var(--text-dim); font-size: .92rem; }
/* Кнопка под блоком секции (например, «Посмотреть пример отчёта») */
.section-actions { margin-top: 30px; text-align: center; }

/* CAPTCHA-картинка в формах и невидимое поле-ловушка для ботов */
.captcha-img { display: inline-block; vertical-align: middle; margin-left: 8px; border-radius: 6px; border: 1px solid var(--border); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- AI report quote ---------- */
.report-quote { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: var(--radius); padding: 22px 26px; }
.report-quote-label { display: block; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mut); margin-bottom: 10px; }
.report-quote p { margin: 0; color: var(--text-dim); line-height: 1.6; font-style: italic; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step-num {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    color: #fff; font-weight: 800;
}
.step p { margin: 0; color: var(--text-dim); line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band {
    max-width: var(--maxw);
    margin: 20px auto 80px;
    padding: 56px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .10));
    border: 1px solid var(--border);
    border-radius: 20px;
}
.cta-band h2 { margin: 0 0 10px; font-size: 1.8rem; }
.cta-band p { margin: 0 0 24px; color: var(--text-dim); }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 60px 20px 90px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
.auth-card-center { text-align: center; }
.auth-title { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; }
.auth-sub { margin: 0 0 26px; color: var(--text-dim); }
.auth-hint { color: var(--text-mut); font-size: .88rem; margin: -10px 0 18px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field-label { font-size: .88rem; color: var(--text-dim); font-weight: 500; }
.field input {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-size: .98rem;
    font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-size: .98rem;
    font-family: inherit;
    min-height: 130px;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.captcha-code { display: inline-block; letter-spacing: 5px; font-weight: 800; font-size: 1.15rem; color: var(--primary-2); background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 12px; user-select: none; }
.contact-info { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-mut); font-size: .9rem; line-height: 1.7; }
.contact-info a { color: var(--text-dim); }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; color: var(--text-dim); font-size: .9rem; line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.auth-alt { text-align: center; margin: 22px 0 0; color: var(--text-dim); font-size: .92rem; }
.resend-form { margin-top: 12px; }
.notice-ico { font-size: 2.6rem; margin-bottom: 12px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 24px 90px; color: var(--text-dim); line-height: 1.7; }
.legal h1 { color: var(--text); font-size: 2rem; margin: 0 0 24px; }
.legal h2 { color: var(--text); font-size: 1.3rem; margin: 34px 0 12px; }
.legal h3 { color: var(--text); font-size: 1.08rem; margin: 22px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal b { color: var(--text); }

/* ---------- Analyzer ---------- */
.analyzer-wrap { max-width: 720px; margin: 0 auto; padding: 50px 20px 90px; }
.analyzer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.analyzer-title { margin: 0 0 18px; font-size: 1.7rem; font-weight: 800; }
.analyzer-desc { color: var(--text-dim); line-height: 1.6; margin-bottom: 24px; }
.analyzer-desc ul { margin: 12px 0 0; padding-left: 22px; }
.analyzer-desc li { margin-bottom: 5px; }
.trial-banner { margin: 0 0 18px; padding: 11px 15px; border-radius: var(--radius-sm); background: var(--bg-3); border: 1px solid var(--border); color: var(--text-dim); font-size: .9rem; }
.trial-banner b { color: var(--primary-2); }
.trial-ended { text-align: center; padding: 16px 0 8px; }
.trial-ended h2 { margin: 8px 0 10px; font-size: 1.4rem; }
.trial-ended p { color: var(--text-dim); line-height: 1.6; margin: 0 auto 24px; max-width: 460px; }
.analyzer-form { display: flex; flex-direction: column; gap: 16px; }
.file-input {
    background: var(--bg-2);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: var(--text-dim);
    width: 100%;
    font-family: inherit;
}
.file-input::file-selector-button {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    margin-right: 12px;
    cursor: pointer;
    font-family: inherit;
}
.analyzer-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
#videoPreview { width: 100%; margin-top: 18px; border-radius: var(--radius-sm); background: #000; max-height: 60vh; }

/* progress bar */
#progressBar { margin-top: 18px; }
.progress { width: 100%; height: 22px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dk));
    color: #fff;
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width .2s ease;
}

/* messages */
.message { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .93rem; }
.message-error { background: var(--danger-bg); border: 1px solid #57223a; color: #ffb3c4; }
.message-info { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-dim); }

/* loader */
#processingAnimation { display: flex; justify-content: center; margin-top: 20px; }
.loader {
    width: 42px; height: 42px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(10, 11, 20, .6); margin-top: auto; }
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 54px 20px 30px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 34px;
}
.footer-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-desc { color: var(--text-mut); line-height: 1.6; font-size: .9rem; margin: 0 0 12px; }
.footer-parent { color: var(--text-mut); font-size: .9rem; margin: 0; }
.footer-title { color: var(--text); font-weight: 700; margin-bottom: 14px; font-size: .95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--text-dim); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-legal p { color: var(--text-mut); font-size: .85rem; line-height: 1.55; margin: 0 0 6px; }
.footer-legal a { color: var(--text-dim); }
.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 20px;
    color: var(--text-mut);
    font-size: .85rem;
}

/* ---------- Results ---------- */
.results-wrap { max-width: 1500px; margin: 0 auto; padding: 26px 16px 40px; }
.results-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.results-title { margin: 0 0 4px; font-size: 1.5rem; font-weight: 800; }
.results-sub { margin: 0 0 16px; color: var(--text-dim); word-break: break-word; }
.result-figure { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.result-figure img { display: block; margin: 0 auto; max-width: 100%; max-height: calc(100vh - 300px); width: auto; height: auto; border-radius: 4px; }
.results-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ai-report { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 22px; }
.ai-report-title { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px; }
.ai-report-hint { margin: 0 0 14px; color: var(--text-mut); font-size: .92rem; }
.ai-report-status { margin-top: 12px; color: var(--text-mut); font-size: .9rem; }
.ai-report-body { white-space: pre-wrap; line-height: 1.65; color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; font-size: .95rem; }
.ai-report-actions { margin-top: 16px; }
.settings-status { margin-top: 12px; font-size: .92rem; color: var(--text-mut); min-height: 1.2em; }
.settings-status.status-ok { color: #8ff0cf; }
.settings-status.status-err { color: #ffb3c4; }

/* ---------- Admin ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 30px; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.admin-stat-num { display: block; font-size: 1.9rem; font-weight: 800; color: var(--primary-2); }
.admin-stat-label { color: var(--text-mut); font-size: .85rem; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { color: var(--text-dim); font-weight: 600; background: var(--bg-2); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-email { color: var(--text); font-weight: 500; }
.admin-empty { text-align: center; color: var(--text-mut); padding: 24px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.badge-ok { background: var(--success-bg); color: #8ff0cf; border: 1px solid #1c4a3c; }
.badge-no { background: var(--danger-bg); color: #ffb3c4; border: 1px solid #57223a; }
.badge-mut { background: var(--bg-3); color: var(--text-mut); border: 1px solid var(--border); }
.admin-note { color: var(--text-mut); font-size: .82rem; margin-top: 14px; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); font-size: .9rem; font-weight: 600; }
.admin-tab:hover { color: var(--text); border-color: var(--primary); }
.admin-tab-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-tab-active:hover { color: #fff; }
.admin-actions a, .admin-actions .link-btn { color: var(--primary-2); font-size: .88rem; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.admin-actions a:hover, .admin-actions .link-btn:hover { color: var(--text); }
.admin-actions .link-btn-danger { color: var(--danger); }
.inline-form { display: inline; }
.admin-blog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.auth-alt-muted { margin-top: 10px; font-size: .85rem; }
.auth-alt-muted a { color: var(--text-mut); }

/* ---------- Blog ---------- */
.blog-section, .post-section { max-width: var(--maxw); margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.blog-card-title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.blog-card-announce { margin: 0; color: var(--text-dim); line-height: 1.6; font-size: .93rem; flex-grow: 1; }
.blog-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.blog-card-date { color: var(--text-mut); font-size: .85rem; }
.blog-empty { color: var(--text-mut); text-align: center; padding: 40px 0; }
.post-views { white-space: nowrap; }
.post-section { max-width: 820px; }
.post-back { margin: 0 0 18px; }
.post-back a { color: var(--text-dim); font-size: .92rem; }
.post-back a:hover { color: var(--text); }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 38px; box-shadow: var(--shadow); }
.post-title { margin: 0 0 8px; font-size: 1.9rem; font-weight: 800; line-height: 1.25; }
.post-date { margin: 0 0 24px; color: var(--text-mut); font-size: .88rem; }
.post-body { color: var(--text-dim); line-height: 1.7; font-size: 1rem; }
.post-body h2 { color: var(--text); font-size: 1.25rem; margin: 28px 0 10px; }
.post-body p { margin: 0 0 14px; }
.post-body strong { color: var(--text); }
.post-bullet { padding-left: 18px; position: relative; margin-bottom: 6px; }
.post-bullet::before { content: none; }

/* ---------- Admin blog forms ---------- */
.post-form { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.post-form .field-hint { color: var(--text-mut); font-weight: 400; }
.field-inline { flex-direction: row; align-items: center; gap: 10px; color: var(--text-dim); font-size: .95rem; cursor: pointer; }
.field-inline input { width: 17px; height: 17px; accent-color: var(--primary); }
.post-form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Мобильная навигация: меню скрывается за гамбургер и выпадает списком */
@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px 16px 16px;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav .nav-link,
    .site-nav .btn { width: 100%; text-align: center; padding: 12px 14px; }
    .site-nav .nav-link { border-radius: 10px; }
    .nav-user {
        display: block;
        max-width: none;
        text-align: center;
        padding: 10px 8px 4px;
        border-top: 1px solid var(--border);
        margin-top: 4px;
    }
}

@media (max-width: 560px) {
    .header-inner { padding: 12px 16px; }
    .brand-name { font-size: .95rem; }
    .hero { padding: 60px 18px 50px; }
    .hero-stats { gap: 26px; }
    .footer-inner { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
}
