:root {
    --bg: #0d1117;
    --bg-soft: #161b22;
    --bg-card: #1c2330;
    --border: #2a3140;
    --text: #e6edf3;
    --text-muted: #9aa7b8;
    --accent: #ff8a3d;
    --accent-2: #ffb877;
    --green: #3fb950;
    --green-soft: rgba(63, 185, 80, 0.12);
    --red: #f85149;
    --red-soft: rgba(248, 81, 73, 0.10);
    --radius: 16px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(13, 17, 23, 0.8);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo-mark { font-size: 24px; }
.logo-text { letter-spacing: -0.02em; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 15px; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1a1206;
    box-shadow: 0 10px 30px rgba(255, 138, 61, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 138, 61, 0.42); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 90px 0 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 138, 61, 0.18), transparent 65%);
    pointer-events: none;
}
.hero-inner { position: relative; }
.hero-content { max-width: 760px; }
.hero-badge {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-2);
    background: rgba(255, 138, 61, 0.08);
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}
.accent { color: var(--accent); }
.hero-lead {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 32px;
}
.hero-lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 680px;
}
.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.stat-num { font-size: 22px; font-weight: 800; color: var(--accent-2); letter-spacing: -0.02em; }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 40px;
}

/* ===== COMPARE (Авито vs ATI) ===== */
.how { padding: 80px 0; border-top: 1px solid var(--border); }
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.compare-card {
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
}
.compare-bad { background: var(--red-soft); border-color: rgba(248, 81, 73, 0.3); }
.compare-good { background: var(--green-soft); border-color: rgba(63, 185, 80, 0.3); }
.compare-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.compare-icon { font-size: 26px; }
.compare-head h3 { font-size: 21px; font-weight: 700; }
.compare-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-muted);
    font-size: 16px;
}
.compare-list li strong { color: var(--text); }
.compare-bad .compare-list li::before { content: '✕'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.compare-good .compare-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ===== CALC ===== */
.calc { padding: 80px 0; border-top: 1px solid var(--border); }
.calc-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}
.field { flex: 1; min-width: 220px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.field-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.15);
}
.field-icon { font-size: 18px; }
.field-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 16px;
    padding: 15px 0;
    font-family: inherit;
}
.field-input input::placeholder { color: #5d6b7d; }
.route-arrow {
    font-size: 26px;
    color: var(--accent);
    padding-bottom: 14px;
    font-weight: 700;
}
.btn-calc { padding: 16px 30px; height: 54px; }

/* ===== ABOUT ===== */
.about { padding: 80px 0; border-top: 1px solid var(--border); }
.about-inner { display: flex; gap: 36px; align-items: flex-start; }
.about-avatar {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #1a1206;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 900;
}
.about-text { max-width: 720px; }
.about-text p { color: var(--text-muted); font-size: 17px; margin-top: 14px; }
.about-text p strong { color: var(--text); }
.about-text .section-title { margin-bottom: 6px; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}
.footer-muted { color: #5d6b7d; }

/* ===== ВЫДАЧА ПО AJAX ===== */
.quotes { margin-top: 36px; }
.quotes[hidden] { display: none; }

.results-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.results-head h3 { font-size: 20px; font-weight: 700; }
.results-note { font-size: 14px; color: var(--text-muted); }

/* Иконки транспорта */
.veh { width: 58px; height: 30px; color: var(--accent); flex-shrink: 0; }

/* Журнал отправок — карточки */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.jcard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: transform 0.15s, border-color 0.2s;
}
.jcard:hover { transform: translateY(-3px); border-color: var(--accent); }
.jcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.jcard-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-2);
    background: rgba(255, 138, 61, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.jcard-vehicle { font-size: 18px; font-weight: 700; }
.jcard-spec { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.jcard-price {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 14px 0 8px;
}
.jcard-note { font-size: 13px; color: var(--text-muted); }

/* Доска заявок */
.board-total {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 16px;
}
.board-num {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--accent-2);
}
.board-list { list-style: none; }
.board-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}
.board-row:first-child { border-top: none; }
.board-icon { display: flex; }
.board-vehicle { flex: 1; font-size: 16px; font-weight: 600; }
.board-vehicle em { display: block; font-style: normal; font-size: 13px; font-weight: 400; color: var(--text-muted); }
.board-count {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text);
}
.board-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.log {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 18px;
}
.log-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 14px;
}
/* Итоговая вилка */
.range {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--green-soft);
    border: 1px solid rgba(63, 185, 80, 0.3);
}
.range-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.range-label { font-size: 15px; color: var(--text-muted); flex: 1; min-width: 260px; }

.quotes-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 16px;
}

/* Форма заявки под ценами */
.lead-form {
    margin-top: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.lead-form[hidden] { display: none; }
.lead-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.lead-note { margin-top: 12px; font-size: 14px; color: var(--red); }
.lead-note[hidden] { display: none; }

/* Выбор способа связи */
.lead-ways { margin-bottom: 20px; }
.way-list { display: flex; gap: 10px; flex-wrap: wrap; }
.way input { position: absolute; opacity: 0; width: 0; height: 0; }
.way span {
    display: inline-block;
    padding: 11px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.way:hover span { border-color: var(--accent); color: var(--text); }
.way input:checked + span {
    border-color: var(--accent);
    background: rgba(255, 138, 61, 0.14);
    color: var(--accent-2);
}
.way input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.25); }

.thanks {
    margin-top: 16px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--green-soft);
    border: 1px solid rgba(63, 185, 80, 0.3);
}
.thanks-title { font-size: 20px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.thanks p { color: var(--text-muted); font-size: 16px; }
.thanks-note { margin-top: 12px; font-size: 14px; color: #7c8898; }

/* Скелетон на время загрузки */
.jcard.is-skeleton { pointer-events: none; }
.jcard.is-skeleton:hover { transform: none; border-color: var(--border); }
.sk {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #222a37 25%, #2d3646 37%, #222a37 63%);
    background-size: 400% 100%;
    animation: sk-shimmer 1.3s ease infinite;
    margin-bottom: 12px;
}
.sk-icon { width: 58px; height: 30px; border-radius: 8px; margin-bottom: 16px; }
.sk-sm { width: 45%; }
.sk-lg { height: 26px; width: 70%; margin-bottom: 14px; }
@keyframes sk-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ===== ОТКУДА ДАННЫЕ ===== */
.benefit { padding: 80px 0; border-top: 1px solid var(--border); }
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.15s;
}
.benefit-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.benefit-icon { font-size: 28px; display: block; margin-bottom: 14px; }
.benefit-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.benefit-card p { color: var(--text-muted); font-size: 15px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
    .nav { display: none; }
    .hero-stats { grid-template-columns: 1fr; }
    .compare { grid-template-columns: 1fr; }
    .route-arrow { display: none; }
    .about-inner { flex-direction: column; align-items: center; text-align: center; }
    .quotes-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
    .log { padding: 18px; }
    .board-row { gap: 12px; }
    .veh { width: 46px; height: 24px; }
    .board-num { font-size: 28px; }
    .jcard { padding: 18px 20px; }
    .jcard-price { font-size: 24px; }
}
