:root {
    --brand: #29c46a;
    --brand-2: #34e07d;
    --brand-ink: #06230f;
    --wa: #25d366;
    --max: #1f7bff;
    --tg: #29a9eb;

    --bg: #0c0e10;
    --bg-2: #121518;
    --panel: #1a1e22;
    --line: rgba(255, 255, 255, 0.09);
    --white: #ffffff;
    --muted: #9aa4ac;
    --muted-2: #c7ced3;

    --font-title: 'Jost', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --maxw: 1180px;
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    color: var(--white);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- Общие ---------- */
.section-title {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-lead {
    color: var(--muted);
    font-size: 17px;
    margin-top: 12px;
    max-width: 620px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 15px 30px;
    border-radius: 11px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
    text-transform: uppercase;
    white-space: nowrap;
}
.btn--lg { padding: 18px 38px; font-size: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Единственный «яркий» элемент на странице — главный CTA (эффект изоляции) */
.btn--primary {
    background: var(--brand);
    color: var(--brand-ink);
    box-shadow: 0 8px 26px -6px rgba(41, 196, 106, 0.55);
}
.btn--primary:hover { background: var(--brand-2); box-shadow: 0 12px 32px -6px rgba(52, 224, 125, 0.6); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-2); }

/* ---------- Мессенджеры ---------- */
.msg {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 11px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    transition: transform .15s ease, filter .15s ease;
}
.msg svg { width: 21px; height: 21px; flex: 0 0 auto; }
.msg:hover { transform: translateY(-2px); filter: brightness(1.08); }
.msg--max { background: var(--max); }
.msg--tg { background: var(--tg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    --hero-bg: url('../img/hero-car.jpg');
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}
/* Сплит: слева тёмная панель (текст), справа светлое премиум-фото машины.
   Фото не затемняем — чёрная машина сама контрастна на светлой студии. */
.hero__bg {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 60%;
    background-image: url('../img/hero-car.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}
/* Мягкий переход фото в тёмную панель слева и в секцию снизу */
.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(12,14,16,0.65) 0%, rgba(12,14,16,0) 15%),
        linear-gradient(90deg, var(--bg) 0%, rgba(12,14,16,0.7) 18%, rgba(12,14,16,0) 48%),
        linear-gradient(to top, var(--bg) 0%, rgba(12,14,16,0) 22%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 22px 24px 48px;
    display: flex;
    flex-direction: column;
}

.hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.hero__brand {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}
.hero__brand-dot { color: var(--brand); margin: 0 3px; }
.hero__top-right { display: flex; flex-direction: column; align-items: flex-end; }
.hero__phone {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    transition: color .2s;
}
.hero__phone:hover { color: var(--brand-2); }
.hero__hours { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; text-transform: uppercase; }

.hero__content {
    margin-top: auto;
    padding-top: 60px;
    max-width: 680px;
}
.hero__title {
    font-family: var(--font-title);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(38px, 6.4vw, 76px);
    line-height: 0.98;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero__sub {
    margin-top: 18px;
    font-size: clamp(16px, 2.2vw, 21px);
    color: var(--muted-2);
    max-width: 540px;
}
.hero__geo {
    margin-top: 14px;
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.hero__geo::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(41,196,106,0.25);
}

.hero__benefits {
    list-style: none;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
}
.hbenefit {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    color: #eef1f3;
    font-weight: 500;
}
.hbenefit svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 auto; }

.hero__cta {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero__cta-call { display: none; }

.hero__messengers {
    margin-top: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.hero__messengers-label { font-size: 14px; color: var(--muted); }

/* ============ ПОЛОСА ДОВЕРИЯ ============ */
.stats {
    background: linear-gradient(180deg, #0e1113 0%, var(--bg-2) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stats__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 30px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
    content: "";
    position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
    width: 1px; height: 42px; background: var(--line);
}
.stat__num {
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(24px, 3.4vw, 36px);
    color: var(--brand);
    line-height: 1;
}
.stat__label { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ============ КАК ЭТО РАБОТАЕТ ============ */
.how { background: var(--bg); padding: 84px 24px; }
.how__inner { max-width: var(--maxw); margin: 0 auto; }
.how__steps {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.hstep {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    position: relative;
}
.hstep__num {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(41,196,106,0.14);
    color: var(--brand);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 18px;
}
.hstep__title { font-family: var(--font-title); font-weight: 600; font-size: 21px; margin-bottom: 10px; }
.hstep__text { color: var(--muted); font-size: 15.5px; }

/* ============ КАЛЬКУЛЯТОР ============ */
.calc { background: var(--bg-2); padding: 84px 24px; text-align: center; }
.calc__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.calc .section-lead { text-align: center; }

.calc__form-wrap {
    margin-top: 40px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
    padding: 0;
    max-width: 720px;
    width: 100%;
    text-align: left;
    overflow: hidden;
}

/* Прогресс-бар (goal-gradient / Зейгарник) */
.calc__progress { height: 6px; background: #e9ecef; width: 100%; }
.calc__progress-bar {
    height: 100%;
    width: 14%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: 0 4px 4px 0;
    transition: width .35s ease;
}

.calc__form { display: flex; flex-direction: column; gap: 18px; padding: 34px; }

.calc__row { display: flex; gap: 16px; }
.calc__field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.calc__label {
    font-family: var(--font-title);
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #444;
}
.calc__input {
    font-family: var(--font-body);
    font-size: 16px; color: #111;
    background: #f5f6f7;
    border: 1.5px solid #e0e3e6;
    border-radius: 10px;
    padding: 14px 15px; width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.calc__input::placeholder { color: #aeb4b9; }
.calc__input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(41,196,106,0.18);
}
.calc__input.input-error { border-color: #e5484d; background: #fff5f5; }

.calc__step { display: none; }
.calc__step.is-active { display: flex; flex-direction: column; gap: 18px; animation: calcFade .35s ease; }
@keyframes calcFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.calc__step-count {
    font-family: var(--font-title);
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--brand-ink);
    background: rgba(41,196,106,0.13);
    border-radius: 20px;
    padding: 6px 15px;
    display: inline-block;
}
.calc__step-title { font-family: var(--font-title); font-size: 25px; font-weight: 600; line-height: 1.2; color: #14181b; }
.calc__step-sub { font-size: 15px; color: #667; margin-top: -8px; }

.calc__opts { display: grid; gap: 12px; }
.calc__opts--2 { grid-template-columns: repeat(2, 1fr); }
.calc__opts--3 { grid-template-columns: repeat(3, 1fr); }
.opt { position: relative; display: block; }
.opt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.opt__card {
    display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 66px; padding: 14px;
    background: #f5f6f7;
    border: 2px solid #e6e9eb;
    border-radius: 11px;
    font-family: var(--font-title);
    font-size: 16px; font-weight: 500; color: #333;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.opt:hover .opt__card { border-color: var(--brand); background: #f1fbf5; }
.opt input:checked + .opt__card {
    border-color: var(--brand);
    background: #eafaf0;
    color: #0e1a12;
    box-shadow: inset 0 0 0 1px var(--brand);
}
.calc__opts--error .opt__card { border-color: #e5484d; }

.calc__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.calc__nav-spacer { flex: 1; }
.calc__submit { flex: 1; }

.calc__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #556; cursor: pointer; user-select: none; }
.calc__consent input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); cursor: pointer; }
.calc__consent-text { line-height: 1.4; }
.calc__consent-text a { color: #0a7a35; text-decoration: underline; }
.calc__consent--error .calc__consent-text { color: #e5484d; }
.calc__consent--error input[type="checkbox"] { outline: 2px solid #e5484d; outline-offset: 2px; }

.calc__reassure { font-size: 12.5px; color: #8a9299; text-align: center; margin-top: 2px; }

.calc__success { text-align: center; padding: 46px 26px; }
.calc__success-icon {
    width: 66px; height: 66px; margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(41,196,106,0.13);
    display: flex; align-items: center; justify-content: center;
    color: var(--brand);
}
.calc__success-icon svg { width: 34px; height: 34px; }
.calc__success h3 { font-family: var(--font-title); font-size: 27px; text-transform: uppercase; color: #14181b; margin-bottom: 12px; }
.calc__success p { color: #556; margin-bottom: 8px; }
.calc__success-call { margin-top: 20px !important; font-weight: 600; color: #14181b !important; }
.calc__success .btn { margin-top: 14px; border-color: var(--brand); color: #0a7a35; }

/* ============ ОЦЕНЩИК ============ */
.expert { background: var(--bg); padding: 84px 24px; }
.expert__inner {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center;
}
.expert__photo-wrap { position: relative; }
.expert__photo {
    width: 100%; border-radius: 18px;
    border: 1px solid var(--line);
    filter: brightness(1.16) contrast(1.03) saturate(1.03);
    object-fit: cover;
    max-height: 320px;
    /* какую часть фото видно по вертикали: 0%=верх, 50%=центр, 100%=низ. */
    object-position: 50% 20%;
}
.expert__badge {
    position: absolute; left: 18px; bottom: 18px;
    background: var(--brand); color: var(--brand-ink);
    font-family: var(--font-title); font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 9px 16px; border-radius: 10px;
    box-shadow: 0 10px 24px -8px rgba(41,196,106,0.6);
}
.expert__tag { font-family: var(--font-title); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brand); }
.expert__title { margin: 12px 0 22px; }
.expert__quote { font-size: 18px; color: var(--muted-2); line-height: 1.6; border-left: 3px solid var(--brand); padding-left: 20px; }
.expert__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ ОТЗЫВЫ ============ */
.reviews { background: var(--bg-2); padding: 84px 24px; }
.reviews__inner { max-width: var(--maxw); margin: 0 auto; }
.reviews__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 26px; display: flex; flex-direction: column; gap: 14px;
}
.review__stars { color: #ffc531; font-size: 17px; letter-spacing: 2px; }
.review blockquote { font-size: 15.5px; color: #dfe3e6; line-height: 1.6; }
.review figcaption { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ============ FAQ ============ */
.faq { background: var(--bg); padding: 84px 24px; }
.faq__inner { max-width: 860px; margin: 0 auto; }
.faq__list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 4px 22px;
}
.faq__item summary {
    cursor: pointer; list-style: none;
    font-family: var(--font-title); font-weight: 600; font-size: 17.5px;
    padding: 18px 30px 18px 0; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 26px; color: var(--brand); font-weight: 400; line-height: 1;
    transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--muted); font-size: 15.5px; padding: 0 0 20px; }

/* ============ ФИНАЛЬНЫЙ CTA ============ */
.final {
    background:
        radial-gradient(120% 120% at 50% 0%, rgba(41,196,106,0.18) 0%, rgba(41,196,106,0) 55%),
        var(--bg-2);
    border-top: 1px solid var(--line);
    padding: 84px 24px; text-align: center;
}
.final__inner { max-width: 780px; margin: 0 auto; }
.final__title { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 4vw, 42px); }
.final__text { color: var(--muted); font-size: 17px; margin-top: 14px; }
.final__phone {
    display: inline-block; margin-top: 26px;
    font-family: var(--font-title); font-weight: 700;
    font-size: clamp(30px, 5vw, 48px); color: #fff;
    transition: color .2s;
}
.final__phone:hover { color: var(--brand-2); }
.final__msg { margin-top: 26px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ============ FOOTER ============ */
.footer { background: #08090a; border-top: 1px solid var(--line); padding: 30px 24px; }
.footer__inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.footer__brand { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.footer__geo { color: var(--muted); font-size: 13.5px; }
.footer__link { color: var(--muted); font-size: 13.5px; text-decoration: underline; }
.footer__link:hover { color: var(--brand); }

/* ============ ЛИПКАЯ ПАНЕЛЬ (моб.) ============ */
.mobar { display: none; }

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
    .hero__content { padding-top: 40px; }
    .expert__inner { grid-template-columns: 1fr; gap: 30px; }
    .expert__photo-wrap { max-width: 380px; }
}

@media (max-width: 767px) {
    .hero { min-height: auto; }
    .hero__bg { width: 100%; }
    .hero__bg::before {
        background: linear-gradient(180deg, rgba(12,14,16,0.35) 0%, rgba(12,14,16,0.45) 40%, rgba(12,14,16,0.92) 78%, var(--bg) 100%);
    }
    .hero__inner { padding: 16px 16px 40px; }
    .hero__content { min-height: 62vh; justify-content: flex-end; display: flex; flex-direction: column; max-width: 100%; }
    .hero__geo { font-size: 13px; letter-spacing: 0.5px; flex-wrap: nowrap; align-items: flex-start; }
    .hero__geo::before { margin-top: 5px; flex: 0 0 auto; }
    .hero__sub { font-size: 16px; }
    .hero__top { align-items: flex-start; gap: 10px; flex-wrap: nowrap; }
    .hero__brand { font-size: 15px; letter-spacing: 0.5px; }
    .hero__phone { font-size: 19px; }
    .hero__hours { font-size: 10px; }
    .hero__content { padding-top: 34px; margin-top: 0; }
    .hero__benefits { gap: 10px; margin-top: 22px; }
    .hbenefit { flex: 0 0 100%; }
    .hero__cta { margin-top: 26px; }
    .hero__cta .btn { width: 100%; }
    .hero__cta-call { display: inline-flex; }
    .hero__messengers { justify-content: center; }
    .hero__messengers-label { flex: 0 0 100%; text-align: center; }
    .msg { flex: 1; justify-content: center; }

    .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; padding: 26px 18px; }
    .stat:nth-child(2)::after, .stat:not(:last-child)::after { display: none; }

    .how, .calc, .expert, .reviews, .faq, .final { padding: 56px 16px; }
    .how__steps, .reviews__grid { grid-template-columns: 1fr; }
    .calc__form { padding: 24px 18px; }
    .calc__row { flex-direction: column; gap: 14px; }
    .calc__step-title { font-size: 21px; }
    .calc__opts--2, .calc__opts--3 { grid-template-columns: 1fr; }
    .calc__nav { flex-direction: column-reverse; }
    .calc__nav .btn { width: 100%; }
    .expert__cta .btn { width: 100%; }

    body { padding-bottom: 66px; }
    .mobar {
        display: flex;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        background: rgba(12,14,16,0.96);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--line);
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
        gap: 8px;
    }
    .mobar__btn {
        flex: 1;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        padding: 8px 4px; border-radius: 10px;
        font-family: var(--font-title); font-size: 12px; font-weight: 600;
        color: #fff;
    }
    .mobar__btn svg { width: 22px; height: 22px; }
    .mobar__btn--call { background: rgba(255,255,255,0.08); }
    .mobar__btn--max { background: var(--max); }
    .mobar__btn--calc { background: var(--brand); color: var(--brand-ink); }
}
