:root {
    --bg-main: #070b16;
    --bg-card: #111726;
    --accent: #ffcc32;
    --accent-soft: rgba(255, 204, 50, 0.08);
    --accent-border: rgba(255, 204, 50, 0.35);
    --accent2: #35d49b;
    --accent2-border: rgba(53, 212, 155, 0.5);
    --text-main: #f5f7ff;
    --text-soft: #a7aec7;
    --danger: #ff4b6a;
    --success: #39d98a;
    --muted: #3b4260;
    --stroke: #20263a;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1b2140 0, #050812 55%, #02030a 100%);
    color: var(--text-main);
}

a {
    color: var(--accent);
}

/* ШАПКА */

.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(to bottom, rgba(5,8,18,0.97), rgba(5,8,18,0.94), rgba(5,8,18,0.0));
    backdrop-filter: blur(12px);
}

.site-header {
    max-width: 1160px;
    margin: 0 auto;
    padding: 10px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.site-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 0, #ffe58a 0, #ffcc32 40%, #b88b16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #201800;
    box-shadow: 0 10px 28px rgba(0,0,0,0.7);
    flex-shrink: 0;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.site-logo-text span:first-child {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.site-logo-text span:last-child {
    font-size: 11px;
    color: var(--text-soft);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-soft);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--text-main);
    border-bottom-color: rgba(255,204,50,0.6);
}

.site-nav a.is-primary {
    color: var(--accent);
}

.header-auth {
    display: flex;
    gap: 8px;
}

/* Кнопки входа/регистрации в шапке */

.btn-small {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(16,22,40,0.95);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.btn-small--accent {
    border-color: var(--accent2-border);
    background: linear-gradient(135deg, #7af2c5 0, #35d49b 45%, #21a574 100%);
    color: #02140c;
}

/* Гамбургер */

.burger {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(6,9,20,0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.burger-line {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    position: relative;
    transition: transform 0.15s ease-out, background 0.15s ease-out;
}

.burger-line::before,
.burger-line::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out, top 0.15s ease-out;
}

.burger-line::before { top: -5px; }
.burger-line::after  { top: 5px; }

.burger.is-open .burger-line {
    background: transparent;
}

.burger.is-open .burger-line::before {
    top: 0;
    transform: rotate(45deg);
}

.burger.is-open .burger-line::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Мобильное меню */

.mobile-nav-panel {
    display: none;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px 10px;
}

.mobile-nav-inner {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(6,9,20,0.98);
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    padding: 10px 12px;
}

.mobile-nav-inner a {
    display: block;
    padding: 8px 4px;
    font-size: 13px;
    color: var(--text-soft);
    text-decoration: none;
}

.mobile-nav-inner a + a {
    border-top: 1px solid rgba(255,255,255,0.04);
}

.mobile-nav-inner a:hover {
    color: var(--accent);
}

@media (max-width: 920px) {
    .site-nav { display: none; }
    .burger  { display: inline-flex; }

    .site-header {
        padding: 8px 12px 6px;
    }

    .site-logo-text span:first-child {
        font-size: 13px;
    }

    .site-logo-text span:last-child {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    header.page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px;
    }

    .badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .brand-title {
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .header-auth { display: none; }

    .site-logo-text span:last-child {
        display: none;
    }

    .site-header {
        padding-inline: 10px;
    }
}

.page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 8px 16px 72px;
}

/* Основной контент */

header.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 0, #ffe58a 0, #ffcc32 38%, #b88b16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #201800;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
}

.brand-sub {
    font-size: 13px;
    color: var(--text-soft);
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--stroke);
    background: rgba(8, 12, 26, 0.9);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.badge-dot--green  { background: var(--success); }
.badge-dot--yellow { background: var(--accent);  }
.badge-dot--red    { background: var(--danger);  }

main {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
    gap: 20px;
}

@media (max-width: 880px) {
    main { grid-template-columns: minmax(0, 1fr); }
}

.hero-card {
    background: radial-gradient(circle at 0 0, rgba(255, 204, 50, 0.16) 0, rgba(255, 204, 50, 0) 55%),
                linear-gradient(145deg, #111726 0, #070b16 60%, #05040d 100%);
    border-radius: var(--radius-lg);
    padding: 22px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(7, 11, 22, 0.75);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    font-size: 12px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.hero-title span { color: var(--accent); }

.hero-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 18px;
}

.hero-meta span {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(5, 8, 18, 0.95);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.1s ease-out, color 0.1s.ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #ffe58a 0, #ffcc32 45%, #e3a81d 100%);
    color: #1b1300;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8);
}

/* зелёная вторая кнопка */

.btn-ghost {
    background: linear-gradient(135deg, #7af2c5 0, #35d49b 45%, #21a574 100%);
    color: #02140c;
    border: 1px solid var(--accent2-border);
}

.btn-ghost:hover {
    background: linear-gradient(135deg, #8bf7cd 0, #44e0a6 50%, #26b37f 100%);
    transform: translateY(-1px);
}

.hero-note {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 10px;
}

.hero-note strong { color: var(--accent); }

.hero-visual {
    position: absolute;
    right: -24px;
    bottom: -34px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 25% 0, #ffe58a 0, #ffcc32 35%, #b88b16 70%, rgba(0, 0, 0, 0) 71%);
    opacity: 0.16;
    pointer-events: none;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-card {
    background: linear-gradient(155deg, #090d1a 0, #050812 60%, #05040d 100%);
    border-radius: var(--radius-lg);
    padding: 14px 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-text {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.6;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    font-size: 13px;
}

.rating-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.rating-label {
    font-size: 11px;
    color: var(--text-soft);
}

.rating-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: #14192a;
    overflow: hidden;
    margin-bottom: 8px;
}

.rating-bar-fill {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8f3c, #ffcc32);
    width: 92%;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pill {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(13, 18, 38, 0.9);
    border: 1px solid var(--stroke);
    font-size: 11px;
    color: var(--text-soft);
}

.pill--ok   { border-color: rgba(57, 217, 138, 0.5); color: var(--success); }
.pill--warn { border-color: rgba(255, 204, 50, 0.5); color: var(--accent); }

.section {
    margin-top: 28px;
    background: linear-gradient(155deg, #090d1a 0, #050812 60%, #05040d 100%);
    border-radius: var(--radius-lg);
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.section h2 {
    font-size: 19px;
    margin: 0 0 10px;
}

.section h3 {
    font-size: 15px;
    margin: 16px 0 6px;
}

.section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-soft);
    margin: 6px 0;
}

.section ul,
.section ol {
    margin: 6px 0 8px 18px;
    padding: 0;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
}

.section li { margin-bottom: 4px; }

.section-highlight {
    background: rgba(12, 18, 38, 0.9);
    border-radius: var(--radius-md);
    border: 1px solid var(--stroke);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-soft);
}

.section-highlight strong { color: var(--accent); }

.table-wrap {
    margin-top: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: #070b16;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    padding: 8px 10px;
    border-bottom: 1px solid #14192a;
}

th {
    color: var(--text-main);
    text-align: left;
    background: #0c1020;
    font-weight: 600;
}

td { color: var(--text-soft); }

tr:nth-child(even) td { background: #090d1a; }

.note {
    font-size: 12px;
    color: var(--text-soft);
    margin-top: 8px;
}

.faq-item {
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    background: #070b16;
    border: 1px solid #14192a;
    padding: 10px 12px;
}

.faq-q {
    font-size: 14px;
    font-weight: 600;
}

.faq-a {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 4px;
}

.disclaimer {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-soft);
    border-radius: var(--radius-md);
    background: #130c16;
    border: 1px solid rgba(255, 75, 106, 0.5);
    padding: 10px 12px;
}

.disclaimer strong { color: var(--danger); }

.updated {
    font-size: 11px;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.image-slot {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: radial-gradient(circle at top left, rgba(255, 204, 50, 0.07), transparent 55%);
    padding: 26px 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-soft);
    margin: 10px 0 6px;
}

.image-slot picture,
.image-slot img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-md);
}

.image-slot span { color: var(--accent); }

/* МОБИЛЬНЫЙ НИЖНИЙ БАР */

.mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: none;
    background: rgba(5,8,18,0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px 10px 10px;
}

.mobile-bottom-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.mobile-bottom-btn {
    flex: 1;
    border-radius: 999px;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--accent-border);
    color: #201800;
    background: linear-gradient(135deg, #ffe58a 0, #ffcc32 50%, #e3a81d 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.mobile-bottom-btn--accent {
    border-color: var(--accent-border);
    background: linear-gradient(135deg, #fff0a8 0, #ffdc55 50%, #f0b62a 100%);
    color: #201800;
}

@media (max-width: 768px) {
    .mobile-bottom-bar { display: block; }
    body { padding-bottom: 64px; }
}

/* ПОДВАЛ */

footer {
    max-width: 1160px;
    margin: 24px auto 0;
    padding: 0 16px 80px;
    font-size: 12px;
    color: var(--text-soft);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
    font-size: 11px;
    color: var(--muted);
}
