/* ═══════════════════════════════════════════════
   Авангард Таксопарк — Glassmorphism & Glow
   ═══════════════════════════════════════════════ */

:root {
    --bg-dark: #0a0e1a;
    --bg-card: rgba(22, 28, 45, 0.65);
    --bg-card-solid: #161c2d;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(251, 191, 36, 0.4);
    --text-white: #f1f5f9;
    --text-gray: #8892a8;
    --text-input: #e2e8f0;
    --text-placeholder: #4a5568;

    --accent: #fbbf24;
    --accent-hover: #f59e0b;
    --accent-glow: rgba(251, 191, 36, 0.15);
    --accent-glow-strong: rgba(251, 191, 36, 0.3);
    --text-on-accent: #0a0e1a;

    --gradient-gold: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    --gradient-hero: linear-gradient(160deg, #0a0e1a 0%, #111827 40%, #0f172a 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.accent-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

p { color: var(--text-gray); }

/* ── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--gradient-gold);
    color: var(--text-on-accent);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    padding: 10px 20px;
    font-size: 14px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.btn-full { width: 100%; }

/* ── Glass Cards ───────────────────────────── */
.content-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.content-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.content-card:hover::before { opacity: 1; }

/* ── Navbar ────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 42px; height: 42px;
    background: var(--gradient-gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-on-accent);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 24px; height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 8px 0;
    transition: var(--transition);
}

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

/* ── Hero Section ──────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(251, 191, 36, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
}

/* Floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 70%);
    top: -10%; right: -5%;
}

.hero-orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
    bottom: 10%; left: -5%;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 70%);
    top: 40%; right: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.12rem;
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Scroll Reveal ─────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero animations */
.animate-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Stats ─────────────────────────────────── */
.stats {
    padding: 0 0 20px;
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 32px 20px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* ── Features ──────────────────────────────── */
.features {
    padding: 100px 0;
    position: relative;
}

.section-divider {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 80px;
    background: linear-gradient(to bottom, transparent, var(--border-hover), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--accent-glow-strong);
    border-color: rgba(251, 191, 36, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

.feature-card h3 {
    font-size: 1.12rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── Cars ──────────────────────────────────── */
.cars {
    padding: 100px 0;
    position: relative;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.car-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.car-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 1px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity 0.4s, width 0.4s;
}

.car-card:hover::after {
    opacity: 0.5;
    width: 90%;
}

.car-class {
    display: inline-block;
    color: var(--text-on-accent);
    background: var(--gradient-gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.car-info h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.car-desc {
    margin-bottom: 24px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.car-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.car-feature-tag {
    font-size: 0.78rem;
    padding: 5px 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 100px;
    color: var(--text-gray);
    font-weight: 500;
}

.car-price {
    font-weight: 700;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-val {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ── How It Works ──────────────────────────── */
.how-it-works {
    padding: 100px 0;
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-glow), var(--border-hover), var(--accent-glow));
    z-index: 0;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--text-on-accent);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.step-card p { font-size: 0.88rem; }

/* ── Contacts ──────────────────────────────── */
.contacts {
    padding: 100px 0 120px;
    position: relative;
}

.contact-box {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.contact-box::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.06), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.contact-box h2 { font-size: 1.8rem; }

.contact-box > p {
    margin: 16px 0 32px;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 auto 32px;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-input);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(10, 14, 26, 0.8);
}

.form-group input::placeholder { color: var(--text-placeholder); }

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
}

.contact-method {
    color: var(--text-gray);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(30, 41, 59, 0.3);
    transition: var(--transition);
}

.contact-method:hover {
    color: var(--accent);
    border-color: var(--border-hover);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* ── Footer ────────────────────────────────── */
footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: rgba(10, 14, 26, 0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo-footer {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-gray);
    opacity: 0.4;
}

/* ── Toast ─────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 30px; right: 30px;
    padding: 16px 24px;
    background: rgba(22, 28, 45, 0.95);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--radius-sm);
    color: #4ade80;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ── Auth Button (Navbar) ─────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
}

/* Плашка баланса в шапке (видна при авторизации, между аватаркой и багом) */
.nav-balance {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    color: var(--accent);
    background: rgba(245, 133, 41, 0.12);
    border: 1px solid rgba(245, 133, 41, 0.3);
    transition: background 0.3s;
}
.nav-balance:hover { background: rgba(245, 133, 41, 0.2); }
.nav-balance-neg {
    color: #da3633;
    background: rgba(218, 54, 51, 0.12);
    border-color: rgba(218, 54, 51, 0.3);
}

.bug-report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}
.bug-report-btn:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.bug-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bug-modal {
    background: var(--bg-card-solid, #1e2330);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.bug-modal h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.bug-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.bug-modal-close:hover {
    color: var(--text-white);
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    color: var(--text-on-accent);
    background: var(--gradient-gold);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.2);
    white-space: nowrap;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

/* ── Auth Avatar ─────────────────────────────── */
.auth-avatar-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.auth-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4) border-box;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(221, 42, 123, 0.3);
}

.auth-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(221, 42, 123, 0.5);
}

/* ── Hero Compact ─────────────────────────── */
.hero-compact {
    min-height: auto;
    padding: 140px 0 80px;
}

/* ── Car Catalog ──────────────────────────── */
.catalog-section {
    padding: 80px 0;
    position: relative;
}

/* ── Календарь бронирования ── */
.calendar-wrap {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
}

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

.cal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
}

.cal-nav {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.cal-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
    padding: 4px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border: 2px solid transparent;
}

.cal-day-empty {
    cursor: default;
}

.cal-num {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
}

.cal-badge {
    font-size: 10px;
    font-weight: 700;
    color: #00d68f;
    margin-top: 2px;
}

.cal-day-free {
    background: rgba(0, 214, 143, 0.08);
    border-color: rgba(0, 214, 143, 0.2);
}

.cal-day-free:hover {
    background: rgba(0, 214, 143, 0.15);
    border-color: rgba(0, 214, 143, 0.5);
    transform: scale(1.05);
}

.cal-day-busy {
    opacity: 0.35;
    cursor: default;
}

.cal-day-busy .cal-num {
    color: var(--text-gray);
}

.cal-day-past {
    opacity: 0.2;
    cursor: default;
}

.cal-day-today {
    border-color: var(--accent) !important;
}

.cal-day-today .cal-num {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cal-day-selected {
    border-color: var(--accent) !important;
    background: rgba(251, 191, 36, 0.1) !important;
    box-shadow: var(--shadow-glow);
}

/* ── Авто на выбранный день ── */
.day-cars-wrap {
    max-width: 700px;
    margin: 32px auto 0;
}

.day-cars-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.car-catalog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Вариант C: Модель в рамке + госномер ── */
.car-cell {
    background: #0f1923;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.car-cell:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.car-cell:active {
    transform: scale(0.97);
}

.car-cell-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.car-cell-plate {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.car-cell-tags {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.car-cell-tag {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.12);
    border-radius: 100px;
    color: var(--text-gray);
    font-weight: 500;
}

.car-cell-price {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.car-cell-price-sub {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.car-cell-photo-btn {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.car-cell-photo-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: var(--accent);
}

.car-cell-photo-btn-disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── Модалка фото ── */
.photo-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.photo-modal-content {
    position: relative;
    text-align: center;
    max-width: 90vw;
}

.gallery-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    image-orientation: from-image;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.gallery-arrow:hover {
    background: rgba(251, 191, 36, 0.4);
    border-color: var(--accent);
}

.gallery-prev { left: -24px; }
.gallery-next { right: -24px; }

.gallery-counter {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.photo-modal-title {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.photo-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ── Админ-панель галереи ── */
.gallery-admin-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.gallery-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(22, 28, 45, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    color: #fbbf24;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-admin-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
    transform: scale(1.1);
}

.gallery-admin-btn:active { transform: scale(0.95); }

.gallery-admin-btn-danger { border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }
.gallery-admin-btn-danger:hover { background: rgba(239, 68, 68, 0.15); border-color: #ef4444; }

.car-cell-upload-btn {
    border-color: rgba(74, 222, 128, 0.3) !important;
    color: #4ade80 !important;
    background: rgba(74, 222, 128, 0.08) !important;
}

.car-cell-upload-btn:hover {
    background: rgba(74, 222, 128, 0.2) !important;
    border-color: #4ade80 !important;
}

.car-catalog-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-catalog-info h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.car-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.catalog-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
    color: var(--text-gray);
    font-size: 1rem;
}

/* ── Profile ──────────────────────────────── */
.profile-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* сетка 3×2 — 6 этапов влезают и на телефоне */
    gap: 18px 8px;
    align-items: start;
    justify-items: center;
    counter-reset: stepnum;                  /* нумерация этапов 1..6 */
}

.profile-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-gray);
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    counter-increment: stepnum;              /* +1 за каждый шаг (линии-разделители не считаются) */
}

/* Маленькая цифра-номер над кружком */
.profile-step::before {
    content: counter(stepnum);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-gray);
    opacity: 0.7;
}

.profile-step span {
    display: block;
    width: 100%;
}

/* Разделители-линии не нужны в сетке (display:none убирает их из grid и из счётчика) */
.profile-steps .profile-step-line {
    display: none;
}

.profile-step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-gray);
}

.profile-step-done .profile-step-icon {
    background: rgba(74, 222, 128, 0.15);
    border-color: #4ade80;
    color: #4ade80;
}

.profile-step-done span {
    color: var(--text-white);
}

.profile-step-line {
    width: 12px;
    height: 2px;
    background: var(--border-color);
    margin-top: 13px;   /* по центру кружка (28px) при align-items:flex-start */
    flex: none;
}

/* Кликабельные этапы-табы на странице профиля (модификатор — модалку бронирования не задевает) */
.profile-step-clickable {
    cursor: pointer;
    transition: var(--transition);
}

.profile-step-clickable:hover .profile-step-icon {
    border-color: var(--accent);
}

.profile-step-active .profile-step-icon {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 133, 41, 0.3);
}

.profile-step-active span {
    color: var(--accent);
}

.profile-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    text-decoration: none;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.profile-action-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ── Document Upload ──────────────────────── */
.doc-upload-card {
    padding: 24px;
    text-align: center;
}

.doc-upload-card h3 {
    font-size: 1rem;
    margin: 8px 0 4px;
}

.doc-upload-card > p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.doc-upload-icon { margin-bottom: 4px; }

.doc-upload-zone {
    border: 2px dashed rgba(251, 191, 36, 0.25);
    border-radius: var(--radius-sm);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-upload-zone:hover,
.doc-upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(251, 191, 36, 0.04);
}

.doc-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 13px;
}

.doc-upload-gallery {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.doc-thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: visible;
}

.doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.doc-add-more-btn {
    border: 2px dashed rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
}

.doc-add-more-btn span {
    font-size: 28px;
    color: var(--accent);
    font-weight: 300;
}

.doc-add-more-btn:hover {
    border-color: var(--accent);
    background: rgba(251, 191, 36, 0.05);
}

.doc-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.doc-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ── App Page (SPA) ───────────────────────── */
.app-page {
    min-height: 80vh;
    padding-bottom: 60px;
}

/* ── Status Progress ──────────────────────── */
.status-progress {
    width: 100%;
    height: 8px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.status-progress-bar {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .car-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-phone { display: none; }

    .hamburger { display: flex; }

    .auth-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 100px;
    }

    .hero-compact { padding: 120px 0 60px; }

    .hero-title { font-size: clamp(2rem, 6vw, 2.5rem); }

    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { text-align: center; }

    .features-grid { grid-template-columns: 1fr; }

    .stats { margin-top: -40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-number { font-size: 2rem; }
    .stat-card { padding: 24px 16px; }

    .cars-grid { grid-template-columns: 1fr; }

    .car-catalog-grid { grid-template-columns: 1fr; }
    .catalog-section { padding: 60px 0; }

    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .step-card { padding: 24px 16px; }

    .section-title { font-size: 1.6rem; }
    .container { padding: 0 16px; }

    .features, .cars, .how-it-works, .contacts { padding: 60px 0; }

    .contact-methods { gap: 8px; }
    .contact-method { font-size: 12px; padding: 8px 12px; }

    .toast { left: 16px; right: 16px; bottom: 16px; }
}

/* ── Виджеты сторов (приложение «Авангард») — todo/437 ───────────── */
.app-promo { padding: 56px 0; }
.app-promo .app-band {
    background: linear-gradient(160deg, #111827, #0f172a);
    border: 1px solid rgba(251, 191, 36, 0.25); border-radius: 24px;
    padding: 32px; display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.app-promo .app-phone {
    width: 124px; height: 240px; border-radius: 26px; border: 6px solid #1f2937;
    flex: 0 0 auto; background: linear-gradient(160deg, #0a0e1a, #1a2236);
    position: relative; box-shadow: var(--shadow-glow);
}
.app-promo .app-phone::before {
    content: "A"; position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; font-size: 58px; font-weight: 800; color: var(--accent);
}
.app-promo .app-band-text { flex: 1; min-width: 260px; }
.app-promo .app-band-text h2 { font-size: 28px; margin: 0 0 8px; }
.app-promo .app-band-text p { color: var(--text-gray); margin: 0 0 20px; max-width: 480px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.sb {
    display: inline-flex; align-items: center; gap: 10px; min-width: 162px;
    padding: 9px 16px; border-radius: 12px; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14); background: #11151f; position: relative;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
a.sb:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.sb svg, .sb .rs-glyph { width: 26px; height: 26px; flex: 0 0 26px; }
.sb .sb-txt { line-height: 1.15; text-align: left; }
.sb .sb-txt small { display: block; font-size: 10px; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.4px; }
.sb .sb-txt b { display: block; font-size: 15px; color: #fff; font-weight: 700; }
.rs-glyph {
    border-radius: 7px; background: linear-gradient(135deg, #19c1ff, #0077ff);
    display: flex; align-items: center; justify-content: center; color: #fff;
    font-weight: 800; font-size: 14px;
}
.sb-soon { opacity: 0.55; cursor: default; }
.sb-soon .soon-tag {
    position: absolute; top: -8px; right: 8px; background: var(--gradient-gold);
    color: var(--text-on-accent); font-size: 9px; font-weight: 800; padding: 1px 7px;
    border-radius: 6px; text-transform: uppercase; letter-spacing: 0.3px;
}

/* компактные иконки сторов — шапка и подвал */
.store-icons { display: inline-flex; align-items: center; gap: 8px; }
.store-icons .si {
    width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center;
    justify-content: center; border: 1px solid rgba(255, 255, 255, 0.14); background: #11151f;
    position: relative; transition: border-color 0.18s, transform 0.18s;
}
.store-icons a.si:hover { border-color: var(--accent); transform: translateY(-1px); }
.store-icons .si svg, .store-icons .si .rs-glyph { width: 18px; height: 18px; }
.store-icons .si .rs-glyph { border-radius: 5px; font-size: 9px; }
.store-icons .si.soon { opacity: 0.5; cursor: default; }
.nav-stores { margin-right: 6px; }
.footer-stores { margin: 14px 0 6px; justify-content: center; }
@media (max-width: 980px) { .nav-stores { display: none; } }

/* готовые иконки сторов (PNG из apps/logos) — todo/437 */
.sb .sb-ico { width: 28px; height: 28px; border-radius: 6px; flex: 0 0 28px; object-fit: contain; }
.store-icons .si img { width: 22px; height: 22px; border-radius: 5px; display: block; }
