/* ==========================================================================
   АВТОЭКСПЕРТ PRO - ДИЗАЙН-СИСТЕМА (CARVERTICAL & AUTO.RU PRO)
   ========================================================================== */

:root, [data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;
    --bg-surface-hover: #e2e8f0;
    --bg-highlight: #eff6ff;
    
    --border-color: #e2e8f0;
    --border-subtle: #cbd5e1;
    --border-active: #2563eb;
    
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.08);
    
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
    
    --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-head: 'Unbounded', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-nav: rgba(15, 23, 42, 0.92);
    --bg-card: #131b2e;
    --bg-surface: #1e293b;
    --bg-surface-hover: #27354f;
    --bg-highlight: rgba(37, 99, 235, 0.12);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.14);
    --border-active: #3b82f6;
    
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.15);
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -0.6px;
}

/* ШАПКА */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    background: var(--bg-nav);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

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

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

.logo-symbol {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.logo-info h2 {
    font-size: 18px;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-info span {
    font-size: 11px;
    color: var(--primary);
    display: block;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

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

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary);
}

.phone-badge {
    text-decoration: none;
    text-align: right;
}

.phone-badge span:first-child {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    display: block;
}

.phone-badge span:last-child {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--primary);
}

/* HERO СЕКЦИЯ */
.hero-block {
    padding-top: 125px;
    padding-bottom: 50px;
}

.hero-columns {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.trust-badge-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.trust-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.hero-heading {
    font-size: 38px;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-lead {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 26px;
    max-width: 540px;
}

.hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.stat-box-val {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.stat-box-lbl {
    font-size: 12px;
    color: var(--text-muted);
}

/* КАРТОЧКА ОТЧЕТА HERO */
.hero-report-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.report-photo {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    display: block;
    margin-bottom: 16px;
}

.check-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.check-item span:first-child {
    color: var(--text-muted);
}

.check-status-ok {
    color: var(--success);
    font-weight: 800;
}

/* СЕКЦИИ */
section {
    padding: 60px 0;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}

.section-title {
    font-size: 34px;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
}

/* ПОДВАЛ */
.site-footer {
    background: #090d16;
    color: #ffffff;
    padding: 45px 0 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-desc {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 10px;
    max-width: 320px;
}

.footer-col-title {
    font-size: 14px;
    margin-bottom: 14px;
    color: #ffffff;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.footer-list a, .footer-list span {
    color: #94a3b8;
    text-decoration: none;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 10px;
}

/* МОДАЛЬНЫЕ ОКНА */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg-surface);
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-box {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: 13px;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

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

@media (max-width: 1024px) {
    .hero-columns { grid-template-columns: 1fr; gap: 30px; }
    .hero-stats-strip { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-header { padding: 10px 0; }
    .phone-badge span:last-child { display: none; }
    .phone-badge span:first-child { font-size: 14px; }
    .btn { padding: 11px 20px; font-size: 13px; }
    
    .hero-block { padding-top: 85px; padding-bottom: 35px; }
    .hero-heading { font-size: 26px; letter-spacing: -0.5px; }
    .hero-lead { font-size: 14px; margin-bottom: 20px; }
    
    .hero-stats-strip { grid-template-columns: 1fr; gap: 10px; }
    .stat-box { padding: 12px; }
    .stat-box-val { font-size: 20px; }
    
    section { padding: 45px 0; }
    .section-title { font-size: 22px; letter-spacing: -0.4px; }
    .section-desc { font-size: 13px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
    
    .modal-card {
        padding: 22px 18px;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .hero-heading { font-size: 23px; }
    .logo-info h2 { font-size: 15px; }
    .logo-info span { font-size: 9px; }
    .logo-symbol { width: 36px; height: 36px; }
    .theme-toggle-btn { width: 34px; height: 34px; font-size: 15px; }
}
