* {
    box-sizing: border-box;
}

:root {
    --accent-color: #c0152a;
    --bg-dark: #000000;
    --bg-card: #1c1f21;
    --bg-option: #2a2e31;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body, html {
    margin: 0; padding: 0;
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* --- ИСПРАВЛЕННАЯ НАВИГАЦИЯ --- */
.navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 5%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-btn {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    transition: 0.3s;
    margin-left: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    min-width: 120px;
}

.navbar .nav-btn {
    margin-left: 12px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.1);
}

.nav-btn.register {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

.nav-btn.register:hover {
    background-color: #a01025;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    min-height: 620px;
    overflow: hidden;
    background: #000;
}

/* Сканирующая красная линия */
.hero-scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(192,21,42,0.0) 25%,
        rgba(192,21,42,0.55) 50%,
        rgba(192,21,42,0.0) 75%,
        transparent 100%);
    animation: heroScan 6s linear infinite;
    z-index: 5;
    pointer-events: none;
}
@keyframes heroScan {
    0%   { top: -2px; opacity: 0; }
    4%   { opacity: 1; }
    96%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-inner {
    display: flex;
    align-items: center;
    min-height: 620px;
    position: relative;
    z-index: 2;
}

/* Контент (левая часть) */
.hero-content {
    flex: 0 0 auto;
    width: 50%;
    max-width: 640px;
    padding: 72px 40px 72px 5%;
    position: relative;
    z-index: 3;
}
/* Чёрный градиент под текстом — плавный переход к фото */
.hero-content::after {
    content: '';
    position: absolute;
    top: 0; right: -120px; bottom: 0; left: -20px;
    background: linear-gradient(to right, #000 55%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

/* Фото (правая часть — абсолютное, на весь высоту) */
.hero-image-container {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 65%;
    overflow: hidden;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 18%, black 34%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 18%, black 34%);
}

/* Бровь */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 22px;
    animation: heroFadeUp 0.7s ease both;
}
.hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
    animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(192,21,42,0.8); }
    50%       { box-shadow: 0 0 0 7px rgba(192,21,42,0); }
}

/* Заголовок */
.hero-headline {
    margin: 0 0 10px;
    line-height: 1;
    animation: heroFadeUp 0.7s ease 0.1s both;
}
.hero-h-small {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.hero-h-big {
    display: block;
    font-size: 76px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 0.9;
}

/* Призовые авто */
.hero-prize-cars {
    margin-bottom: 28px;
    animation: heroFadeUp 0.7s ease 0.2s both;
}
.hero-prize-car {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Дата */
.hero-date-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    animation: heroFadeUp 0.7s ease 0.3s both;
}
.hero-date-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #555;
}
.hero-date-val {
    font-size: 14px;
    font-weight: 800;
    color: #aaa;
}

/* CTA кнопка */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 15px 36px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: heroFadeUp 0.7s ease 0.4s both;
}
.hero-cta-btn:hover {
    background: #a01025;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(192,21,42,0.45);
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Адаптив */
@media (max-width: 900px) {
    .hero { min-height: auto; }
    .hero-inner { flex-direction: column; min-height: auto; }
    .hero-content { width: 100%; padding: 40px 5% 0; }
    .hero-content::after { display: none; }
    .hero-image-container { position: relative; width: 100%; height: 300px; }
    .hero-image {
        -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    }
    .hero-h-big { font-size: 50px; letter-spacing: -1px; }
    .hero-prize-car { font-size: 24px; }
}

/* --- СЕКЦИЯ ВЫБОРА --- */
.selection-section {
    padding: 40px 15px;
}
.container { max-width: 1200px; margin: 0 auto; }
.selection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }

.car-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid #333;
    transition: 0.3s;
}

.car-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.car-card.wide {
    grid-column: 1 / -1;
    margin-bottom: 30px;
    flex-direction: row;
}
.car-card.wide .car-image {
    flex: 0 0 55%;
    max-width: 55%;
}
.car-card.wide .car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #111;
}
.car-card.wide .car-info {
    flex: 1;
    justify-content: center;
}
.car-image img { width: 100%; height: auto; display: block; }
.car-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.car-title { color: var(--accent-color); font-size: 24px; margin-bottom: 15px; font-weight: 700; }

.option-btn {
    display: flex; align-items: center; background: var(--bg-option);
    padding: 14px; border-radius: 12px; margin-bottom: 10px; cursor: pointer;
    border: 2px solid transparent; transition: 0.2s;
}
.option-btn.selected { border-color: var(--accent-color); background: #33383c; }
.option-btn input { display: none; }
.option-content { flex-grow: 1; }
.opt-title { display: block; font-size: 14px; font-weight: 700; }
.opt-desc { display: block; font-size: 11px; color: #888; }

.radio-custom { width: 18px; height: 18px; border: 2px solid #555; border-radius: 50%; margin-left: 10px; position: relative; box-sizing: border-box; }
.option-btn.selected .radio-custom { background-color: var(--accent-color); border-color: var(--accent-color); }

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--bg-option);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 2px;
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--accent-color);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.quantity-selector .manual-input {
    flex-grow: 1;
    text-align: center;
    background: transparent;
    border: none;
    margin-top: 0;
    padding: 8px;
    font-weight: 700;
    font-size: 18px;
    width: 60px;
    color: var(--text-primary);
}
/* Скрытие стрелок у number input */
.manual-input::-webkit-outer-spin-button,
.manual-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.manual-input[type=number] {
    -moz-appearance: textfield;
}
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-top: 20px; }
.total-sum { font-size: 26px; font-weight: 900; }
.btn-submit { display: block; width: 100%; background: var(--accent-color); border: none; padding: 18px; border-radius: 10px; font-weight: 700; font-size: 18px; cursor: pointer; text-transform: uppercase; transition: 0.3s; color: #ffffff; -webkit-appearance: none; appearance: none; }
.btn-submit:hover { background-color: #a01025; filter: brightness(1.1); }

/* --- БЛОК ГАРАНТИРОВАННЫХ ПОДАРКОВ --- */
.prizes-section { padding: 40px 15px 20px 15px; }
.prizes-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid #333;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}
.prizes-image { flex: 0 0 50%; max-width: 50%; }
.prizes-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prizes-info {
    flex: 1;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}
.prizes-badge {
    display: inline-block;
    background: rgba(192, 21, 42, 0.12);
    border: 1px solid rgba(192, 21, 42, 0.35);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 28px;
    width: fit-content;
}
.prizes-big-num {
    font-size: 120px;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -4px;
}
.prizes-device {
    margin-bottom: 24px;
}
.prizes-headline {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}
.prizes-more {
    color: var(--accent-color);
    font-size: 28px;
    font-weight: 900;
}
.prizes-divider {
    width: 48px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-bottom: 20px;
}
.prizes-condition {
    font-size: 16px;
    line-height: 1.6;
    color: #ccc;
    margin: 0 0 24px 0;
}
.prizes-condition strong { color: #fff; }
.prizes-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
}
.prizes-tip-icon {
    color: var(--accent-color);
    font-size: 14px;
}

/* --- БЛОК ДОПОЛНИТЕЛЬНЫХ ПОДАРКОВ --- */
.extra-prizes-section { padding: 20px 15px 80px 15px; }
.extra-wrapper {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid #333;
    overflow: hidden;
}

/* Герой-баннер — надпись снизу, матовое стекло */
.extra-hero { position: relative; overflow: hidden; }
.extra-hero-img { width: 100%; height: 520px; object-fit: cover; object-position: center 30%; display: block; }
.extra-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -4px 32px rgba(192, 21, 42, 0.18);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}
.extra-hero-overlay::before { display: none; }
.extra-hero-num {
    font-size: 72px;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    letter-spacing: -4px;
    text-shadow: 0 0 28px rgba(192, 21, 42, 0.85);
}
.extra-hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
    opacity: 0.95;
}

/* Ранжированный список призов */
.extra-ranked { padding: 32px 36px 40px 36px; }

/* ─── Award strips: топ-3 ─────────────────────────────── */
.award-strips { margin-bottom: 32px; }

.award-strip {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
    border-bottom: 1px solid #1c1c1c;
    position: relative;
    transition: background 0.2s;
}
.award-strip:first-child { border-top: 1px solid #1c1c1c; }
.award-strip:hover { background: rgba(255,255,255,0.015); }

/* Огромное ghost-число */
.award-num {
    font-size: 68px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(192,21,42,0.55);
    text-stroke: 1.5px rgba(192,21,42,0.55);
    min-width: 108px;
    flex-shrink: 0;
    transition: -webkit-text-stroke 0.25s;
    user-select: none;
}
.award-strip--1 .award-num { -webkit-text-stroke: 1.5px rgba(192,21,42,0.85); }
.award-strip:hover .award-num { -webkit-text-stroke: 1.5px rgba(192,21,42,1); }

/* Текстовый блок */
.award-body { flex: 1; }
.award-place {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
}
.award-strip--1 .award-place { color: rgba(192,21,42,0.8); }
.award-strip--2 .award-place { color: #666; }
.award-prize {
    font-size: 21px;
    font-weight: 800;
    color: #f0f0f0;
    letter-spacing: -0.2px;
    line-height: 1.2;
}
.award-strip--1 .award-prize { color: #fff; }

/* Правая цветная черта */
.award-bar {
    width: 3px;
    height: 32px;
    border-radius: 2px;
    flex-shrink: 0;
}
.award-strip--1 .award-bar { background: var(--accent-color); }
.award-strip--2 .award-bar { background: #3a3a3a; }
.award-strip--3 .award-bar { background: #2a2a2a; }

/* ─── Нумерованный список призов ─────────────────────── */
.extra-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid #1c1c1c;
    counter-reset: prize-counter 6;
}
.extra-list li {
    counter-increment: prize-counter;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #181818;
    border-right: 1px solid #181818;
    font-size: 13px;
    color: #888;
    line-height: 1.35;
    transition: color 0.15s;
}
.extra-list li:hover { color: #ccc; }
.extra-list li:nth-child(3n) { border-right: none; }
.extra-list li::before {
    content: counter(prize-counter);
    flex-shrink: 0;
    min-width: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    opacity: 0.55;
}

/* --- НАВБАР: логотип и группировка ссылок --- */
.nav-brand {
    text-decoration: none;
    margin-right: auto;
    display: flex;
    align-items: center;
}
.nav-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}
.nav-brand-text {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-left: 10px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-username {
    color: #aaa;
    font-size: 14px;
    font-weight: 600;
}

/* --- АВТОРИЗАЦИЯ --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 80px);
    padding: 60px 20px;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
}
.auth-back {
    display: inline-block;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 24px;
    transition: color 0.2s;
}
.auth-back:hover { color: var(--accent-color); }
.auth-hint { font-size: 13px; color: #888; margin: -8px 0 20px; line-height: 1.5; }
.auth-pending-notice { background: #1a1200; border: 1px solid #f3a661; border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #f3a661; margin-bottom: 20px; line-height: 1.5; }
.confirm-order-box { background: #111; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.confirm-order-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid #222; }
.confirm-order-row:last-child { border-bottom: none; }
.confirm-order-label { font-size: 13px; color: #888; }
.confirm-order-value { font-size: 15px; font-weight: 600; color: #fff; }
.confirm-order-price { font-size: 20px; color: var(--accent-color); }
.auth-title {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 28px 0;
}
.auth-error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.auth-success {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}
.form-required { color: var(--accent-color); }
.form-input, .form-control {
    background: #000;
    border: 1px solid #333;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.form-input:focus { border-color: var(--accent-color); }
.form-control:focus { border-color: var(--accent-color); }
.form-agree {
    margin-top: 4px;
}
.agree-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    line-height: 1.4;
}
.agree-checkbox { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent-color); }
.btn-auth {
    display: block;
    width: 100%;
    background: var(--accent-color);
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: inherit;
    color: #000;
    transition: 0.3s;
    margin-top: 4px;
}
.btn-auth:hover { background-color: #e2954f; filter: brightness(1.1); }
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #666;
}
.auth-link { color: var(--accent-color); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-forgot { text-align: center; margin-top: 8px; font-size: 14px; }
.auth-subtitle { color: #888; font-size: 14px; margin-bottom: 20px; line-height: 1.5; }

/* Яндекс OAuth кнопка */
.btn-yandex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: #fff;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 4px;
}
.btn-yandex:hover { background: #f0f0f0; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 16px;
    color: #555;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2a2a;
}
.auth-divider span { white-space: nowrap; }

/* --- ПОДВАЛ --- */
.footer { background-color: #0c0c0c; padding: 60px 5%; border-top: 1px solid #222; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.footer-link { color: #888; text-decoration: none; font-size: 14px; transition: 0.3s; }
.footer-link:hover { color: var(--accent-color); }
.footer-info { color: #555; font-size: 14px; line-height: 1.6; }

/* --- ЛИЧНЫЙ КАБИНЕТ --- */
.cabinet-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 5%;
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.user-welcome h1 {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
}

.user-welcome p {
    color: var(--text-secondary);
    margin: 5px 0 0 0;
}

/* Блок соцсетей в кабинете */
.cabinet-socials { margin-bottom: 32px; }
.socials-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #666; margin-bottom: 12px; }
.socials-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.social-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-card); border: 1px solid #333; border-radius: 16px; }
.social-item.social-soon { opacity: 0.55; }
.social-item.social-telegram { border-color: rgba(0,136,204,0.4); background: rgba(0,136,204,0.06); }
.social-icon { flex-shrink: 0; }
.social-info { flex: 1; min-width: 0; }
.social-name { font-size: 14px; font-weight: 700; color: #fff; }
.social-status { font-size: 11px; font-weight: 600; margin-top: 2px; }
.social-status--available { color: #0088cc; }
.social-status--soon { color: #555; }
.social-status--success { color: limegreen; }
.social-btn--connect { background: transparent; border: 1px solid #0088cc; color: #0088cc; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.social-btn--connect:hover { background: #0088cc; color: #fff; }
.social-badge-soon { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #555; border: 1px solid #333; border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
@media (max-width: 768px) { .socials-list { grid-template-columns: 1fr; } }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-color);
}

.stat-desc {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.cabinet-sections {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Блок данных пользователя */
.user-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.user-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid #272727;
    gap: 12px;
}
.user-info-row:last-of-type { border-bottom: none; }
.uinfo-label {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}
.uinfo-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: right;
    word-break: break-all;
}
.uinfo-accent {
    color: var(--accent-color);
    font-weight: 700;
}
.uinfo-edit-btn {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.uinfo-edit-btn .nav-btn {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
}

.cabinet-block {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #333;
}

.block-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--bg-option);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.order-item:hover {
    border-color: #444;
}

.order-main {
    display: flex;
    flex-direction: column;
    flex: 1; /* Занимает всё свободное место */
}

.order-info {
    text-align: right;
    min-width: 100px; /* Фиксированная область для цены */
    margin-right: 40px; /* Отступ от статуса */
    font-size: 18px;
}

.order-id {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.order-item--purchase {
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.purchase-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.purchase-btn {
    flex-shrink: 0;
    align-self: center;
}
.purchase-btn--muted {
    opacity: 0.55;
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-total {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.purchase-pools {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.purchase-pool-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-car-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: #333;
    color: #ccc;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 70px;
    text-align: center;
}

.order-car-badge--all {
    background: rgba(255, 110, 0, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(255, 110, 0, 0.3);
}

.order-tickets {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    flex: 1;
}

.pool-posts {
    flex-shrink: 0;
}

.order-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 130px;
    margin-right: 0;
    font-size: 14px;
}

.order-info strong {
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
}

.order-amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-color);
}

.order-date {
    font-size: 12px;
    color: #888;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-win { background: rgba(76, 175, 80, 0.1); color: #4caf50; }
.status-pending { background: rgba(243, 166, 97, 0.1); color: var(--accent-color); }

/* Нижний блок кнопок истории */
.orders-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.btn-all-orders {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-all-orders:hover { opacity: 0.75; }

.btn-archive {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.btn-archive:hover { color: #999; }

/* Страница всех заказов */
.orders-page { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.orders-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.orders-page-header h1 { font-size: 24px; margin: 0; }
.orders-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid #2a2a2a;
}
.orders-summary-item { display: flex; flex-direction: column; gap: 4px; }
.orders-summary-num { font-size: 22px; font-weight: 700; color: var(--accent-color); }
.orders-summary-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }

.orders-full-list { display: flex; flex-direction: column; gap: 12px; }

.order-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid #222;
    transition: border-color 0.2s;
}
.order-row:hover { border-color: #444; }
.order-row-left { display: flex; flex-direction: column; gap: 5px; }
.order-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.order-row-tickets { font-size: 15px; font-weight: 700; }
.order-row-meta { font-size: 12px; color: #777; }
.order-row-car { font-size: 13px; color: #bbb; }
.order-row-price { font-size: 16px; font-weight: 700; color: var(--accent-color); }
.order-row-posters { font-size: 12px; color: #888; }

.orders-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.orders-empty a { color: var(--accent-color); }

/* Архив */
.archive-contest-group { margin-bottom: 36px; }
.archive-contest-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #222;
}
.archive-contest-title.current { color: var(--accent-color); }

/* ================================
   Детали заказа / скачивание
   ================================ */
.order-detail-page {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}
.order-detail-header { margin-bottom: 24px; }
.order-detail-back {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.order-detail-back:hover { text-decoration: underline; }

.order-detail-status {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(243,166,97,0.08);
    border: 1px solid rgba(243,166,97,0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.order-detail-status-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #000;
    flex-shrink: 0;
}
.order-detail-status-title { font-size: 18px; font-weight: 800; }
.order-detail-status-sub { font-size: 13px; color: #888; margin-top: 2px; }

.order-detail-box {
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
}
.order-detail-box-title {
    font-size: 15px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}
.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
}
.order-detail-row:last-child { border-bottom: none; }
.order-detail-label { color: #888; font-size: 14px; }
.order-detail-value { font-weight: 600; font-size: 15px; text-align: right; }
.order-detail-price { color: var(--accent-color); font-size: 18px; font-weight: 800; }

.order-detail-congrats {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.btn-download:hover { opacity: 0.85; }

.order-detail-pending {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 0;
}
.order-detail-pending-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}

/* Кликабельные элементы в списках заказов */
.order-amount--link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(243,166,97,0.4);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 13px;
    transition: background 0.15s;
}
.order-amount--link:hover { background: rgba(243,166,97,0.12); }

.order-row--link {
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.order-row--link:hover { background: rgba(255,255,255,0.03); }

@media (max-width: 900px) {
    .car-card.wide { flex-direction: column; overflow: hidden; }
    .car-card.wide .car-image { flex: none; width: 100%; max-width: 100%; overflow: hidden; }
    .car-card.wide .car-image img { width: 100%; height: auto; display: block; }

    .navbar {
        justify-content: space-between !important;
        padding: 10px 14px !important;
        gap: 8px !important;
    }
    .nav-links {
        display: flex !important;
        gap: 6px !important;
        align-items: center !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }
    .navbar .nav-btn {
        margin: 0 !important;
        padding: 7px 10px !important;
        font-size: 11px !important;
        min-width: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    /* Скрываем имя пользователя — длинное имя ломает хедер */
    .nav-username { display: none !important; }
    /* hero адаптив уже описан в секции hero */
    .prizes-wrapper { flex-direction: column; }
    .prizes-image { max-width: 100%; flex: none; }
    .prizes-image img { height: 260px; }
    .prizes-info { padding: 30px 24px; }
    .prizes-big-num { font-size: 80px; }
    .prizes-device { font-size: 22px; }
    .extra-ranked { padding: 20px 16px 28px 16px; }
    .award-num { font-size: 44px; min-width: 70px; letter-spacing: -2px; }
    .award-prize { font-size: 17px; }
    .award-strip { gap: 16px; }
    .extra-list { grid-template-columns: 1fr; }
    .extra-list li { border-right: none; }
    .extra-hero-img { height: 300px; }
    .extra-hero-overlay { padding: 16px 22px 36px; gap: 10px; white-space: normal; text-align: left; flex-direction: row; align-items: center; }
    .extra-hero-num { font-size: 52px; letter-spacing: -2px; }
    .extra-hero-title { font-size: 13px; letter-spacing: 1.5px; }
    .selection-section { padding-top: 0; }
    .selection-grid { gap: 16px !important; }
    .car-card.wide { margin-bottom: 0 !important; }
    .cabinet-header { flex-direction: column; text-align: center; gap: 20px; }
    .stat-card { padding: 15px; }
    .stat-value { font-size: 24px; }
    .cabinet-sections { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cabinet-container .stats-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    .cabinet-container .stat-card {
        flex: 1 1 calc(50% - 4px) !important;
        min-width: calc(50% - 4px) !important;
        padding: 12px 10px !important;
    }
    .cabinet-container .stat-card:last-child {
        flex: 1 1 100% !important;
    }
    .stat-label { font-size: 9px !important; }
    .stat-value { font-size: 20px !important; }
    .stat-desc { font-size: 9px !important; }

    .cabinet-block { padding: 15px !important; }
    .order-item { padding: 10px !important; gap: 5px !important; display: flex !important; align-items: center !important; }
    .order-main { flex: 1 !important; min-width: 0 !important; }
    .order-id { font-size: 11px !important; }
    .order-date { font-size: 9px !important; }

    .order-info {
        margin-right: 5px !important;
        min-width: 65px !important;
        text-align: right !important;
        flex: 0 0 auto !important;
    }
    .order-info strong {
        font-size: 14px !important;
        text-align: right !important;
        display: block !important;
        width: 100% !important;
    }
    .order-status {
        padding: 3px 6px !important;
        font-size: 9px !important;
        min-width: 60px !important;
        text-align: center !important;
        flex: 0 0 auto !important;
    }
    .user-welcome h1 { font-size: 20px !important; }
}

/* --- СЕКЦИЯ ПЛАНОВ (заменяет старую selection-section) --- */
.plans-section {
    padding: 60px 15px 0 15px;
}
.plans-section .container {
    max-width: 1200px;
    margin: 0 auto;
}
.plans-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}
.plans-section-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}
.plans-section-hint {
    font-size: 14px;
    color: #888;
    text-align: right;
    max-width: 180px;
    line-height: 1.4;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.plan-card {
    background: var(--bg-card);
    border: 2px solid #333;
    border-radius: 16px;
    padding: 24px 20px 20px;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
    display: block;
}
.plan-card input[type="radio"] { display: none; }
.plan-card.selected { border-color: var(--accent-color); }
.plan-badge-popular {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
}
.plan-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 4px;
}
.plan-gift {
    color: var(--accent-color);
    font-size: 13px;
}
.plan-subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}
.plan-price {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 2px;
}
.plan-price sup {
    font-size: 20px;
    font-weight: 700;
    vertical-align: super;
}
.plan-count {
    font-size: 12px;
    color: #666;
}

/* Спецпредложение 1000₽ */
.plan-special {
    background: var(--bg-card);
    border: 2px solid #333;
    border-radius: 16px;
    padding: 24px 28px;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    position: relative;
}
.plan-special input[type="radio"] { display: none; }
.plan-special.selected { border-color: var(--accent-color); }
.plan-special-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.plan-special-left { flex: 1; }
.plan-special-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 6px;
}
.plan-special-desc {
    font-size: 14px;
    color: #888;
    max-width: 460px;
    line-height: 1.4;
}
.plan-special-desc strong { color: #fff; }
.plan-special-right { text-align: right; flex-shrink: 0; margin-left: 32px; }
.plan-special-price {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.plan-special-price sup { font-size: 22px; vertical-align: super; }
.plan-special-count { font-size: 13px; color: #666; margin-top: 4px; }

/* Нижний бар */
.plans-order-bar {
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 16px;
    border-radius: 16px;
}
.plans-order-bar .bar-label { color: #888; font-size: 14px; }
.plans-qty-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.plans-qty-btn {
    width: 36px; height: 36px;
    background: #1c1f21;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
    -webkit-appearance: none;
}
.plans-qty-btn:hover { background: #2a2e31; }
.plans-qty-num {
    width: 32px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.plans-total-sep { color: #666; font-size: 14px; }
.plans-total-stickers { color: #fff; font-weight: 700; font-size: 15px; }
.plans-total-num {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}
.plans-submit {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
    -webkit-appearance: none;
    white-space: nowrap;
}
.plans-submit:hover { background: #a01025; }

@media (max-width: 768px) {
    .plans-grid { grid-template-columns: 1fr; }
    .plan-special { flex-direction: column; align-items: flex-start; gap: 16px; }
    .plan-special-right { margin-left: 0; text-align: left; }
    .plans-section-header { flex-direction: column; gap: 8px; }
    .plans-section-hint { text-align: left; max-width: 100%; }
    .plans-order-bar { flex-wrap: wrap; justify-content: flex-end; border-radius: 0; }
}

/* ===== Юридические страницы ===== */
.legal-page {
    max-width: 820px;
    margin: 60px auto;
    padding: 0 24px 80px;
}
.legal-header {
    margin-bottom: 36px;
}
.legal-header h1 {
    font-size: 30px;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1.25;
    margin-bottom: 8px;
}
.legal-subtitle {
    color: #888;
    font-size: 15px;
    margin: 0;
}
.legal-body {
    background: var(--bg-card);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px 48px;
    line-height: 1.75;
    color: #ccc;
    font-size: 15px;
}
.legal-intro {
    color: #e0e0e0;
    margin-bottom: 28px;
    font-size: 15px;
}
.legal-body p {
    margin-bottom: 14px;
}
.legal-body strong {
    color: #fff;
}
.legal-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}
.legal-sub-title {
    font-size: 15px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 22px 0 10px;
}
.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}
.legal-list li {
    padding: 6px 0 6px 20px;
    position: relative;
    border-bottom: 1px solid #1e1e1e;
    color: #ccc;
}
.legal-list li:last-child {
    border-bottom: none;
}
.legal-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}
.legal-list a {
    color: var(--accent-color);
    text-decoration: none;
}
.legal-list a:hover {
    text-decoration: underline;
}
.legal-body a {
    color: var(--accent-color);
    text-decoration: none;
}
.legal-body a:hover {
    text-decoration: underline;
}
.legal-requisites {
    margin-top: 40px;
    padding: 24px;
    background: #111;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    font-size: 14px;
    color: #aaa;
}
.legal-requisites h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.legal-requisites p {
    margin: 4px 0;
}
.legal-director {
    margin-top: 12px !important;
    color: #ccc;
    font-weight: 600;
}
.legal-date {
    margin-top: 8px !important;
    color: #555;
    font-size: 13px;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}
.legal-table th, .legal-table td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
}
.legal-table th {
    background: #1a1a1a;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.legal-table td:first-child {
    white-space: nowrap;
    color: #888;
    font-size: 12px;
}
.legal-table td:last-child {
    white-space: nowrap;
    text-align: center;
    color: #aaa;
}
@media (max-width: 600px) {
    .legal-body { padding: 24px 20px; }
    .legal-header h1 { font-size: 22px; }
    .legal-section-title { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════
   СЕКЦИЯ ВЫБОРА: ТАБЫ + ПАКЕТЫ
═══════════════════════════════════════════════════ */
.picker-section { padding: 60px 15px 0; }
.picker-header { margin-bottom: 28px; }
.picker-title { font-size: 38px; font-weight: 900; color: #fff; margin: 0 0 6px; }
.picker-sub { font-size: 15px; color: #666; margin: 0; }

/* --- Табы с машинами --- */
.car-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.car-tab {
    background: var(--bg-card);
    border: 2px solid #2a2a2a;
    border-radius: 14px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: inherit;
}
.car-tab:hover { border-color: #444; transform: translateY(-2px); }
.car-tab.active { border-color: var(--accent-color); }
.car-tab-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center 60%;
    display: block;
    filter: brightness(0.92);
    transition: filter 0.2s;
}
.car-tab.active .car-tab-img { filter: brightness(1); }
.car-tab-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
    padding: 10px 8px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.car-tab.active .car-tab-label { color: var(--accent-color); }
.car-tab-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent-color);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 20px;
}

/* --- Панели с пакетами --- */
.packages-panel { animation: fadeIn 0.2s ease; }
.packages-panel.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.packages-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}
.packages-grid--3 { grid-template-columns: repeat(3, 1fr); }
.packages-grid--4 { grid-template-columns: repeat(4, 1fr); }

.pkg-card {
    background: var(--bg-card);
    border: 2px solid #2a2a2a;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
    display: block;
    overflow: hidden;
}
.pkg-card input[type="radio"] { display: none; }
.pkg-card:hover { border-color: #444; }
.pkg-card.selected { border-color: var(--accent-color); }

.pkg-popular-tag {
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    background: #aaff00;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 0 0 10px 10px;
    white-space: nowrap;
    z-index: 2;
}

.pkg-inner { padding: 22px 18px 18px; }
.pkg-poster-count {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pkg-gift {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: none;
    white-space: nowrap;
}
.pkg-price {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}
.pkg-price sup { font-size: 18px; vertical-align: super; font-weight: 700; }
.pkg-tickets { font-size: 12px; color: #555; line-height: 1.5; }

/* ─── Hero card: Коллекция 1000₽ ─────────────────────────── */
.pkg-card--hero {
    display: block;
    width: 100%;
    background: linear-gradient(120deg, #1c0a0b 0%, #180808 55%, #100404 100%);
    border: 2px solid #3a1414;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    margin-bottom: 16px;
}
/* Блик-анимация */
.pkg-card--hero::before {
    content: '';
    position: absolute;
    top: 0; left: -70%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192,21,42,0.07), transparent);
    animation: heroSheen 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroSheen {
    0%   { left: -70%; }
    100% { left: 160%; }
}
/* Радиальное свечение слева */
.pkg-card--hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 15% 50%, rgba(192,21,42,0.10) 0%, transparent 60%);
    pointer-events: none;
}
.pkg-card--hero:hover {
    border-color: #c0152a;
    box-shadow: 0 0 30px rgba(192,21,42,0.22), 0 6px 24px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}
.pkg-card--hero.selected {
    border-color: #c0152a;
    box-shadow: 0 0 44px rgba(192,21,42,0.32), 0 8px 32px rgba(0,0,0,0.6);
}

.pkg-hero-inner {
    display: flex;
    align-items: center;
    padding: 26px 36px;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Левый блок: бейдж + название + цена */
.pkg-hero-left { flex: 0 0 auto; min-width: 180px; }

.pkg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.pkg-hero-badge::before { content: '🔥'; font-size: 12px; }

.pkg-hero-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pkg-hero-price {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.pkg-hero-price sup { font-size: 22px; vertical-align: super; font-weight: 700; }

/* Разделитель */
.pkg-hero-sep {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #3a1414 40%, #3a1414 60%, transparent);
    flex-shrink: 0;
}

/* Средний блок: описание */
.pkg-hero-mid { flex: 1; min-width: 160px; max-width: 280px; }
.pkg-hero-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}
.pkg-hero-desc strong {
    color: #fff;
    font-weight: 800;
}

/* Правый блок: фото обоих авто — без отступов, до края карточки */
.pkg-hero-img-wrap {
    flex: 1;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    /* скругление только справа, совпадает с border-radius карточки */
    border-radius: 0 12px 12px 0;
    min-height: 140px;
    /* убираем правый отступ inner — фото идёт до края */
    margin: -26px -36px -26px 0;
}
.pkg-hero-car-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    /* лёгкий градиент только у левого края */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.85) 12%, #000 28%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.85) 12%, #000 28%);
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.4s;
}
.pkg-card--hero:hover .pkg-hero-car-img,
.pkg-card--hero.selected .pkg-hero-car-img {
    opacity: 1;
    transform: scale(1.03);
}

/* --- Нижний бар --- */
.picker-bar {
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 14px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.bar-label { color: #555; font-size: 14px; }
.picker-bar-qty { display: flex; align-items: center; gap: 10px; }
.bar-qty-btn {
    width: 34px; height: 34px;
    background: #1c1f21;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.15s;
    -webkit-appearance: none;
}
.bar-qty-btn:hover { background: #2a2e31; border-color: #555; }
.bar-qty-num { width: 28px; text-align: center; font-size: 18px; font-weight: 700; color: #fff; }
.picker-bar-total { display: flex; align-items: center; gap: 8px; }
.bar-total-label { color: #555; font-size: 14px; }
.bar-total-val { font-size: 28px; font-weight: 900; color: #fff; }
.bar-submit {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: 0.2s;
    -webkit-appearance: none;
    font-family: inherit;
    white-space: nowrap;
}
.bar-submit:hover { background: #a01025; }

/* --- Адаптив --- */
@media (max-width: 900px) {
    .packages-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .pkg-hero-inner { padding: 20px 24px; gap: 20px; }
    .pkg-hero-num { font-size: 48px; }
    .pkg-hero-price { font-size: 40px; }
    .pkg-hero-img-wrap { min-height: 110px; }
}
@media (max-width: 700px) {
    .packages-grid--3 { grid-template-columns: 1fr; }
    .pkg-hero-inner { flex-wrap: wrap; padding: 20px; gap: 14px; }
    .pkg-hero-img-wrap {
        flex: 1 1 100%;
        min-height: 120px;
        border-radius: 0 0 12px 12px;
        margin: 0 -20px -20px -20px;
    }
    .pkg-hero-car-img {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
    }
    .pkg-hero-sep { width: 100%; height: 1px; background: linear-gradient(to right, transparent, #3a1414, transparent); order: 10; }
    .pkg-hero-num { font-size: 40px; }
}
@media (max-width: 600px) {
    .car-tabs { grid-template-columns: repeat(2, 1fr); }
    .picker-bar { justify-content: center; }
    .picker-title { font-size: 28px; }
}
.hidden { display: none !important; }
