:root {
    --bg-main: #ffffff;
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --road-green: #15803d;
    --border: #cbd5e1;
    --radius: 14px;
    --shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.18rem;
}

.logo-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--road-green);
    color: #fff;
    border-radius: 8px;
}

.nav {
    display: flex;
    gap: 26px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.94rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.86rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Hero */
.hero {
    padding: 48px 0 72px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

/* Дорожный указатель из креатива */
.road-sign-banner {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--road-green);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 14px;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.25);
    margin-bottom: 22px;
}

.sign-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    flex-shrink: 0;
}

.sign-text {
    display: flex;
    flex-direction: column;
}

.sign-text span {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    opacity: 0.9;
    font-weight: 600;
}

.sign-text strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.hero h1 {
    font-size: 2.45rem;
    line-height: 1.18;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.compliance-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f8fafc;
    border-left: 3px solid var(--road-green);
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
}

/* Виджет карты-навигатора */
.nav-widget {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.nav-widget-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.nav-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}

/* Знак ограничения из креатива */
.speed-limit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #dc2626;
    background: #ffffff;
    line-height: 1;
}

.speed-limit strong {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
}

.speed-limit small {
    font-size: 0.55rem;
    color: #475569;
    font-weight: 600;
}

.map-canvas {
    position: relative;
    background: #dbeafe;
    border-bottom: 1px solid #e2e8f0;
}

.route-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Выноски маршрутов поверх карты */
.callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.75rem;
    line-height: 1.25;
    max-width: 215px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.callout-gray {
    top: 14px;
    left: 14px;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #94a3b8;
}

.callout-blue {
    bottom: 14px;
    right: 14px;
    background: #1d4ed8;
    color: #ffffff;
}

.callout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
}

.callout-icon.warn {
    background: #dc2626;
    color: #fff;
}

.callout-icon.ok {
    background: #16a34a;
    color: #fff;
}

/* Калькулятор под картой */
.calculator-box {
    padding: 20px;
}

.calc-row {
    margin-bottom: 14px;
}

.calc-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    margin-bottom: 6px;
    color: #334155;
}

.range-slider {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.route-compare-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.rc-card {
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rc-gray {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.rc-blue {
    background: #eff6ff;
    border: 1.5px solid #2563eb;
}

.rc-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
}

.rc-blue .rc-title {
    color: #1d4ed8;
}

.rc-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.rc-card small {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.3;
}

/* Sections */
.section {
    padding: 72px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

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

.section-head h2 {
    font-size: 1.95rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* Compare Grid */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.compare-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    padding: 28px;
}

.featured-card {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
}

.compare-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.tag-gray {
    background: #e2e8f0;
    color: #334155;
}

.tag-blue {
    background: #dbeafe;
    color: var(--primary);
}

.compare-card h3 {
    font-size: 1.22rem;
    margin-bottom: 16px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.94rem;
}

.check-list li {
    padding-left: 24px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--road-green);
    font-weight: 800;
}

.muted-list li::before {
    content: '•';
    color: #94a3b8;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    padding: 26px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background: #ffffff;
}

.step-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--road-green);
    margin-bottom: 10px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.contact-info h2 {
    font-size: 1.95rem;
    margin-bottom: 14px;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 22px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.94rem;
}

.contact-form-wrapper {
    background: #ffffff;
    color: var(--text-main);
    padding: 30px;
    border-radius: var(--radius);
}

.lead-form h3 {
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 0.94rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.form-check input {
    margin-top: 3px;
}

.form-feedback {
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 500;
}

.form-feedback.success {
    color: var(--road-green);
}

.form-feedback.error {
    color: #dc2626;
}

/* Footer */
.footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 40px 0 28px;
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #1e293b;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.footer-brand p {
    margin-top: 6px;
    max-width: 380px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.link-btn {
    background: none;
    border: none;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.footer-links .link-btn:hover {
    color: #ffffff;
}

.footer-disclaimer {
    padding-top: 18px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #64748b;
}

.footer-disclaimer .copyright {
    margin-top: 10px;
    color: #94a3b8;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-box {
    background: #ffffff;
    max-width: 600px;
    width: 100%;
    border-radius: var(--radius);
    padding: 26px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.modal-body p {
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 920px) {
    .hero-grid,
    .compare-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.05rem;
    }
}

@media (max-width: 720px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid #e2e8f0;
        gap: 16px;
    }

    .nav.open {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .steps-grid,
    .route-compare-cards {
        grid-template-columns: 1fr;
    }

    .callout {
        position: static;
        max-width: 100%;
        margin: 8px 12px;
    }
}
