:root {
    --af-bg: #f4f7fb;
    --af-card: #ffffff;
    --af-text: #0b1424;
    --af-muted: #68778d;
    --af-line: #dce4ee;
    --af-green: #e31722;
    --af-green-dark: #b80f18;
    --af-red: #e31722;
    --af-red-dark: #b80f18;
    --af-navy: #061326;
    --af-navy-2: #0b203a;
    --af-blue: #0f2b4a;
    --af-soft: #fff1f2;
    --af-shadow: 0 18px 46px rgba(6, 19, 38, .13);
    --af-shadow-red: 0 14px 30px rgba(227, 23, 34, .24);
    --af-radius: 22px;
    --af-radius-sm: 14px;
    --af-container: 1420px;
}

* {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--af-bg);
    color: var(--af-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.af-container { width: min(var(--af-container), calc(100% - 40px)); margin: 0 auto; }
.af-main { overflow: hidden; background: var(--af-bg); }

.af-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 17, 34, .94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.af-header__inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.af-logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .02em; color:#fff; }
.af-logo img, .custom-logo { max-height: 82px; width: auto; }
.af-logo__mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    outline: 3px solid var(--af-red);
    border-radius: 50%;
    color: var(--af-red);
    background: #fff;
    transform: none;
    box-shadow: 0 8px 24px rgba(227, 23, 34, .28);
}
.af-logo strong { display:block; line-height:1; color:#fff; }
.af-logo small { display:block; margin-top:3px; font-size:11px; color:#cbd5e1; line-height:1; letter-spacing: .08em; text-transform: uppercase; }
.af-nav { margin-left: auto; }
.af-nav__list { display:flex; align-items:center; gap: 30px; list-style:none; padding:0; margin:0; font-size:14px; font-weight:750; }
.af-nav__list a { color: rgba(255,255,255,.82); position:relative; padding: 8px 0; }
.af-nav__list a::after { content:''; position:absolute; left:0; right:0; bottom:0; height:2px; border-radius:99px; background:var(--af-red); transform:scaleX(0); transform-origin:left; transition:.2s; }
.af-nav__list a:hover, .current-menu-item > a { color: #fff; }
.af-nav__list a:hover::after, .current-menu-item > a::after { transform:scaleX(1); }
.af-burger { display:none; color:#fff; }
.af-nav__mobile-head,
.af-mobile-menu-overlay {
    display: none;
}

body.af-menu-open {
    overflow: hidden;
}
.af-header__mobile-phone {
    display: none;
}

.af-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:48px;
    padding: 0 24px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    color:#fff;
    background: linear-gradient(180deg, #ef2330, var(--af-red-dark));
    font-weight:850;
    box-shadow: var(--af-shadow-red);
    cursor:pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.af-button:hover { background: linear-gradient(180deg, #ff333d, #c8101b); color:#fff; transform: translateY(-1px); box-shadow: 0 18px 38px rgba(227, 23, 34, .33); }
.af-button--outline { color:#fff; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.45); box-shadow:none; }
.af-button--outline:hover { background: rgba(255,255,255,.12); box-shadow:none; }
.af-button--full { width:100%; border:none; }
.af-button--ghost { color: var(--af-red); background:#fff; border-color:#d7dee8; box-shadow:none; }
.af-button--ghost:hover { color:#fff; background:var(--af-red); border-color:var(--af-red); }

.af-breadcrumbs { padding: 22px 0 0; color: #8da0bb; font-size:14px; display:flex; gap:10px; }
.af-breadcrumbs a { color: #5d6d82; }
.af-breadcrumbs + .af-hero { margin-top: 0; }

.af-hero {
    position:relative;
    padding: 58px 0 70px;
	background-image: url(../images/hero.webp);
	background-position: center -110px;
    color:#fff;
    overflow:hidden;
}
.af-hero::before {
    content:'';
    position:absolute;
    inset:0;
    opacity:1;
    pointer-events:none;
}
.af-hero::after {
    content:'';
    position:absolute;
    right:-12%; bottom:8%;
    width:70%; height:5px;
    background: linear-gradient(90deg, transparent, rgba(47,135,238,.65), rgba(227,23,34,.9), transparent);
    box-shadow: 0 22px 0 rgba(227,23,34,.28), 0 -24px 0 rgba(47,135,238,.2), 0 0 34px rgba(227,23,34,.65);
    transform: skewY(-8deg);
    pointer-events:none;
}
.af-hero--compact { padding: 48px 0 58px; }
.af-hero__grid { position:relative; z-index:1; display:grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items:center; }
.af-kicker { color: #fff; font-weight:900; text-transform:uppercase; letter-spacing:.14em; font-size:12px; opacity:.78; }
.af-hero h1, .af-page-title { font-size: clamp(42px, 6vw, 68px); line-height: .96; margin: 12px 0 24px; letter-spacing:-.045em; color:#fff; }
.af-hero h1 span, .af-page-title span {
    color:#fff;
    display:inline-block;
    padding: 2px 16px 8px;
    background: linear-gradient(90deg, var(--af-red), #b70d17);
    transform: skewX(-10deg);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.af-hero h1 span::first-letter, .af-page-title span::first-letter { }
.af-hero p { color: #dbe6f3; max-width: 520px; font-size: 18px; }
.af-hero__actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:28px; }
.af-checks { display:grid; gap: 10px; margin-top: 24px; padding:0; list-style:none; color:#f8fafc; font-weight:750; }
.af-checks li::before {
    content:'✓'; display:inline-grid; place-items:center; width:22px; height:22px; margin-right:10px; border-radius:50%;
    background: rgba(227,23,34,.18); color:#ff4b54; font-size:13px; border:1px solid rgba(227,23,34,.36);
}
.af-hero__visual {
    min-height: 380px;
    overflow:hidden;
}
.af-hero__visual::before {
    content:''; position:absolute; inset:0;
    opacity:.52;
}
.af-hero__visual::after {
    content:''; position:absolute; left:10%; right:2%; bottom:58px; height:2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), rgba(227,23,34,.95), transparent);
    box-shadow: 0 18px 0 rgba(227,23,34,.35), 0 -18px 0 rgba(45,139,240,.28), 0 0 28px rgba(227,23,34,.55);
    transform: skewY(-6deg);
}
.af-nav__social-block {
    display: none;
}
.af-hero__car { position:absolute; right: 4%; bottom: 18px; width: 76%; min-height: 260px; object-fit:contain; z-index:1; }
.af-floating-card {
    position:absolute; right: 0px; bottom: -36px; width: 410px; background:#fff; border:1px solid rgba(255,255,255,.72); border-radius:18px; padding:20px; box-shadow: 0 22px 50px rgba(0,0,0,.22); z-index:3; color:var(--af-navy-2);
}
.af-floating-card strong { display:block; margin-bottom:12px; }
.af-floating-card p { display:flex; justify-content:space-between; gap:16px; margin:10px 0; font-size:14px; color:var(--af-muted); }
.af-floating-card b { color:var(--af-text); white-space:nowrap; }
.af-floating-card .af-green { color:var(--af-red); font-size: 18px;}

.af-section { padding: 62px 0; background: var(--af-bg); }
.af-section:nth-of-type(odd) { background:#fff; }
.af-section--soft { background: #eef3f8; }
.af-section__head { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:28px; }
.af-section h2 { font-size: clamp(28px, 4vw, 46px); line-height:1.05; margin:0; letter-spacing:-.035em; color:var(--af-text); }
.af-section__lead { color: var(--af-muted); max-width: 620px; margin: 12px 0 0; }

.af-benefits { display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
.af-card {
    background:var(--af-card);
    border:1px solid var(--af-line);
    border-radius: var(--af-radius);
    padding:24px;
    box-shadow:0 12px 34px rgba(7, 20, 40, .07);
}
.af-card:hover { box-shadow: var(--af-shadow); }
.af-icon-car {
    width:79px; height:79px; display:grid; place-items:center; border-radius:50%;
    background-image: url(../images/car.png); color:var(--af-red); font-size:23px; font-weight:900; margin-bottom:16px;
    border:1px solid rgba(227,23,34,.18);
}
.af-icon-condition {
    width:79px; height:79px; display:grid; place-items:center; border-radius:50%;
    background-image: url(../images/condition.png); color:var(--af-red); font-size:23px; font-weight:900; margin-bottom:16px;
    border:1px solid rgba(227,23,34,.18);
}
.af-icon-approval {
    width:79px; height:79px; display:grid; place-items:center; border-radius:50%;
    background-image: url(../images/approval.png); color:var(--af-red); font-size:23px; font-weight:900; margin-bottom:16px;
    border:1px solid rgba(227,23,34,.18);
}
.af-icon-support {
    width:79px; height:79px; display:grid; place-items:center; border-radius:50%;
    background-image: url(../images/support.png); color:var(--af-red); font-size:23px; font-weight:900; margin-bottom:16px;
    border:1px solid rgba(227,23,34,.18);
}
.af-card h3 { margin: 0 0 8px; font-size: 18px; }
.af-card p { margin:0; color:var(--af-muted); font-size:14px; }

.af-filter { background: linear-gradient(135deg, #061326, #0b203a); border:1px solid rgba(255,255,255,.08); border-radius: var(--af-radius); padding:22px; box-shadow:var(--af-shadow); }
.af-filter__grid { display:grid; grid-template-columns: repeat(6, 1fr) auto; gap:14px; align-items:end; }
.af-filter label { color:#e5edf7; }
.af-filter label, .af-form label { display:grid; gap:7px; font-weight:750; font-size:13px; }
.af-filter input, .af-filter select, .af-form input, .af-form select, .af-form textarea {
    width:100%; min-height:48px; border:1px solid #d6e0ea; border-radius:10px; padding:0 14px; background:#fff; color:var(--af-text); font:inherit;
}
.af-filter input:focus, .af-filter select:focus, .af-form input:focus, .af-form select:focus, .af-form textarea:focus { outline:2px solid rgba(227,23,34,.22); border-color:var(--af-red); }
.af-form textarea { padding-top:12px; resize:vertical; }

.af-cars-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.af-cars-grid--six { grid-template-columns: repeat(6, 1fr); gap:16px; }
.af-car-card { overflow:hidden; padding:0; display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease; }
.af-car-card:hover { transform: translateY(-2px); }
.af-car-card__image { height: 190px; background: linear-gradient(135deg, #eef3f8, #fff); border-bottom:1px solid var(--af-line); }
.af-cars-grid--six .af-car-card__image { height: 116px; }
.af-car-card__image img { width:100%; height:100%; object-fit:cover; }
.af-car-card__body { padding:18px; display:grid; gap:10px; flex:1; }
.af-car-card h3 { font-size:18px; margin:0; }
.af-cars-grid--six .af-car-card h3 { font-size:15px; }
.af-car-card__meta { color:var(--af-muted); font-size:14px; }
.af-car-card__price { font-size:20px; font-weight:950; color:var(--af-text); }
.af-car-card__payment { color:var(--af-red); font-weight:950; }
.af-tags { display:flex; gap:8px; flex-wrap:wrap; }
.af-tag { display:inline-flex; padding:5px 9px; background:#fff1f2; color:var(--af-red); border-radius:999px; font-size:12px; font-weight:850; }
.af-car-card__actions { display:grid; grid-template-columns: 1fr 1fr; gap:8px; margin-top:auto; }
.af-cars-grid--six .af-car-card__actions { grid-template-columns:1fr; }

.af-split { display:grid; grid-template-columns: .95fr 1.05fr; gap:30px; align-items:center; }
.af-image-box { min-height: 270px; border-radius: var(--af-radius); background: linear-gradient(135deg, #eef3f8, #fff); overflow:hidden; border:1px solid var(--af-line); box-shadow: var(--af-shadow); }
.af-image-box img { width:100%; height:100%; object-fit:cover; }
.af-specs { display:grid; grid-template-columns:repeat(2, 1fr); border:1px solid var(--af-line); border-radius:var(--af-radius); overflow:hidden; background:#fff; box-shadow:0 10px 26px rgba(7,20,40,.06); }
.af-spec { padding:18px; border-right:1px solid var(--af-line); border-bottom:1px solid var(--af-line); }
.af-spec:nth-child(2n) { border-right:0; }
.af-spec span { display:block; color:var(--af-muted); font-size:13px; }
.af-spec strong { display:block; margin-top:4px; }

.af-section-steps { padding:24px; border-radius:var(--af-radius); background: linear-gradient(135deg, #061326, #0b203a); color:#fff; box-shadow:var(--af-shadow); }
.af-step { position:relative; }
.af-step:not(:last-child)::after { content:'→'; position:absolute; right:8px; top:20px; color:rgba(255,255,255,.45); }
.af-step__num { width:54px; height:54px; border-radius:50%; background:var(--af-red); border:1px solid rgba(255,255,255,.16); display:grid; place-items:center; color:#fff; font-weight:950; box-shadow:var(--af-shadow-red); }
.af-step h3 { font-size:16px; margin:14px 0 6px; color:#fff; }
.af-step p { color:#cbd5e1; margin:0; font-size:14px; }

.af-form-card, .af-form { background:#fff; border:1px solid var(--af-line); border-radius:var(--af-radius); padding:24px; box-shadow:var(--af-shadow); }
.af-form__grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.af-form__wide { grid-column:1 / -1; }
.af-form__heading h3 { margin:0 0 6px; font-size:24px; }
.af-form__heading p, .af-form__note { color:var(--af-muted); }
.af-form__note { font-size:13px; margin:12px 0 0; }
.af-form .af-button { margin-top:16px; }
.af-lead-strip { display:grid; grid-template-columns:.85fr 1.15fr; gap:24px; align-items:center; }

.af-cta-dark { padding:32px; border-radius: var(--af-radius); background-image: url(../images/car-banner.webp); background-position: center -260px; color:#fff; display:grid; grid-template-columns: 1fr auto; gap:20px; align-items:center; overflow:hidden; box-shadow:var(--af-shadow); }
.af-cta-dark h2 { color:#fff; }
.af-cta-dark p { color:#cbd5e1; }

.af-faq { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.af-faq details { background:#fff; border:1px solid var(--af-line); border-radius:14px; padding:16px 18px; box-shadow:0 6px 18px rgba(7,20,40,.04); }
.af-faq summary { cursor:pointer; font-weight:850; list-style:none; }
.af-faq summary::-webkit-details-marker { display:none; }
.af-faq summary::after { content:'+'; float:right; color:var(--af-red); font-size:20px; line-height:1; }
.af-faq details[open] summary::after { content:'–'; }
.af-faq p { color:var(--af-muted); }

.af-contact-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.af-contact-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:28px; align-items:start; }
.af-contact-layout > div:first-child { padding:26px; border-radius:var(--af-radius); background:linear-gradient(135deg,#061326,#0b203a); color:#fff; box-shadow:var(--af-shadow); }
.af-contact-layout > div:first-child h2 { color:#fff; }
.af-contact-layout > div:first-child .af-section__lead { color:#cbd5e1; }
.af-map { min-height:420px; border-radius:var(--af-radius); border:1px solid var(--af-line); background: #eef3f8 url('../img/map-placeholder.jpg') center/cover no-repeat; position:relative; overflow:hidden; box-shadow:var(--af-shadow); }
.af-map::after { content:'●'; position:absolute; left:52%; top:48%; color:var(--af-red); font-size:78px; line-height:1; text-shadow:0 8px 24px rgba(227,23,34,.25); }
.af-mini-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:16px; }

.af-footer { background:linear-gradient(135deg,#061326,#0b203a); color:#fff; padding:48px 0 18px; }
.af-footer__grid { display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap:34px; }
.af-footer p, .af-footer a { color:#cbd5e1; }
.af-footer h3 { margin:0 0 14px; color:#fff; }
.af-logo--footer { color:#fff; margin-bottom:12px; }
.af-logo--footer small { color:#cbd5e1; }
.af-socials { display:flex; gap:10px; margin-top:16px; }
.af-socials a { width:36px; height:36px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.08); color:#fff; font-size:24px; border:1px solid rgba(255,255,255,.12); }
.af-socials a:hover { background:var(--af-red); }
.af-footer__bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:36px; padding-top:18px; display:flex; justify-content:space-between; gap:16px; color:#94a3b8; font-size:13px; }

.af-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.af-lead-modal.is-open {
    display: flex;
}

.af-lead-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 12, 28, 0.72);
    backdrop-filter: blur(6px);
}

.af-lead-modal__box {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 34px 30px 30px;
    border-radius: 28px;
    background: #fff;
    text-align: center;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.af-lead-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--af-navy);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.af-lead-modal__close:hover {
    background: #e2e8f0;
}

.af-lead-modal__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--af-red), #ff3344);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 16px 34px rgba(227, 23, 34, 0.32);
}

.af-lead-modal__box h2 {
    margin: 0 0 10px;
    color: var(--af-navy);
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
}

.af-lead-modal__box p {
    margin: 0 0 22px;
    color: var(--af-muted);
    font-size: 16px;
    line-height: 1.55;
}

.af-lead-modal__box .af-button {
    min-width: 160px;
    justify-content: center;
}

@media (max-width: 1100px) {
    .af-cars-grid--six { grid-template-columns: repeat(3, 1fr); }
    .af-cars-grid--six .af-car-card__image { height:160px; }
    .af-filter__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {

    .af-mobile-menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 998;

        background: rgba(2, 10, 20, .68);
        backdrop-filter: blur(3px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity .3s ease,
            visibility .3s ease;
    }

    .af-mobile-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .af-nav {
        display: flex;
        flex-direction: column;

        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        z-index: 999;

        width: min(88vw, 380px);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;

        margin: 0;
        padding: 0 24px 32px;

        box-sizing: border-box;

        background:
            linear-gradient(
                180deg,
                #071426 0%,
                #061326 100%
            );

        border-left: 1px solid rgba(255, 255, 255, .09);
        box-shadow: -18px 0 45px rgba(0, 0, 0, .35);

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        will-change: transform;

        transition:
            transform .34s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear .34s;
    }

    .af-nav.is-open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;

        transition:
            transform .34s cubic-bezier(.22, 1, .36, 1),
            visibility 0s linear 0s;
    }

    .af-nav__mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;

        min-height: 78px;
        margin: 0 -24px 12px;
        padding: 0 24px;

        border-bottom: 1px solid rgba(255, 255, 255, .09);
        color: #fff;
    }

    .af-nav__mobile-head strong {
        font-size: 18px;
        font-weight: 900;
    }

    .af-nav__close {
        display: inline-grid;
        place-items: center;

        width: 44px;
        height: 44px;
        padding: 0;

        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 10px;

        background: rgba(255, 255, 255, .05);
        color: #fff;

        font-family: Arial, sans-serif;
        font-size: 32px;
        font-weight: 300;
        line-height: 1;

        cursor: pointer;

        transition:
            color .2s ease,
            background .2s ease,
            border-color .2s ease;
    }

    .af-nav__close:hover {
        color: var(--af-red);
        background: rgba(255, 255, 255, .1);
        border-color: rgba(255, 255, 255, .3);
    }

    .af-nav__list {
        display: grid;
        gap: 0;

        width: 100%;
        margin: 0;
        padding: 0;

        list-style: none;
    }

    .af-nav__list li {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .af-nav__list a {
        display: flex;
        align-items: center;

        min-height: 58px;
        padding: 10px 0;

        color: rgba(255, 255, 255, .84);

        font-size: 16px;
        font-weight: 800;

        transition:
            color .2s ease,
            padding-left .2s ease;
    }

    .af-nav__list a:hover,
    .af-nav__list .current-menu-item > a {
        padding-left: 8px;
        color: #fff;
    }

    .af-nav__list a::after {
        display: none;
    }

    .af-header__mobile-phone {
        display: inline-flex;
        align-items: center;
        gap: 7px;

        margin-left: auto;

        color: #fff;

        font-size: 14px;
        line-height: 1;
        font-weight: 800;
        white-space: nowrap;

        transition: color .2s ease;
    }

    .af-header__mobile-phone:hover {
        color: var(--af-red);
    }

    .af-header__mobile-phone i {
        color: var(--af-red);
        font-size: 15px;
    }

    .af-burger {
        display: inline-grid;
        place-items: center;

        width: 44px;
        height: 44px;
        margin-left: 0;

        border: 1px solid rgba(255,255,255,.18);
        border-radius: 10px;

        background: rgba(255,255,255,.05);
        color: #fff;

        font-size: 22px;
        cursor: pointer;
    }

    .af-header__cta {
        display: none;
    }

    .af-hero__grid,
    .af-split,
    .af-lead-strip,
    .af-contact-layout {
        grid-template-columns: 1fr;
    }

    .af-benefits,
    .af-contact-cards,
    .af-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .af-filter__grid,
    .af-form__grid,
    .af-cars-grid {
        grid-template-columns: 1fr 1fr;
    }

    .af-cta-dark {
        grid-template-columns: 1fr;
    }

    .af-steps {
        grid-template-columns: 1fr 1fr;
    }

    .af-step:not(:last-child)::after {
        display: none;
    }
    .af-nav__social-block {
    display: block;
    margin-top: 24px;
    padding-top: 26px;
    }

    .af-nav__social-title {
        margin-bottom: 13px;
        color: rgba(255, 255, 255, .58);
        font-size: 12px;
        line-height: 1.3;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .af-nav__socials {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .af-nav__socials a {
        display: inline-grid;
        place-items: center;
        flex: 0 0 auto;

        width: 44px;
        height: 44px;
        padding: 0;

        color: #fff;
        background: rgba(255, 255, 255, .07);
        border: 1px solid rgba(255, 255, 255, .13);
        border-radius: 50%;

        font-size: 20px;
        line-height: 1;

        transition:
            color .2s ease,
            background .2s ease,
            border-color .2s ease,
            transform .2s ease;
    }

    .af-nav__socials a:hover {
        color: #fff;
        background: var(--af-red);
        border-color: var(--af-red);
        transform: translateY(-2px);
    }

    .af-nav__socials a::after {
        display: none;
    }

    .af-nav__socials .fa-telegram,
    .af-nav__socials .fa-whatsapp {
        font-size: 20px;
    }

    .af-nav__social--max img {
        display: block;
        width: 21px;
        height: 21px;
        object-fit: contain;
    }
}

@media (max-width: 640px) {
    .af-container { width:min(100% - 24px, var(--af-container)); }
    .af-header__inner { min-height:72px; gap:12px; }
    .af-logo img, .custom-logo { max-height:46px; }
    .af-logo__mark { width:44px; height:44px; }
    .af-logo strong { font-size:14px; }
    .af-logo small { font-size:9px; }
    .af-hero { padding: 34px 0 42px; background: linear-gradient(135deg, #061326, #0b203a); border:1px solid rgba(255,255,255,.08); border-radius: var(--af-radius); padding:22px; box-shadow:var(--af-shadow); }
    .af-hero h1, .af-page-title { font-size:38px; }
    .af-hero p { font-size:16px; }
    .af-hero__actions { display:grid; }
    .af-hero__actions .af-button { width:100%; }
    .af-hero__visual { min-height:310px; }
    .af-hero__car { width:86%; right:-6%; bottom:70px; }
    .af-floating-card { position:relative; right:auto; bottom:auto; width:auto; margin:176px 12px 12px; }
    .af-section { padding:42px 0; }
    .af-section__head { display:block; }
    .af-benefits, .af-contact-cards, .af-steps, .af-footer__grid, .af-filter__grid, .af-form__grid, .af-cars-grid, .af-cars-grid--six, .af-faq, .af-mini-grid { grid-template-columns:1fr; }
    .af-cars-grid--six { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:12px; }
    .af-cars-grid--six .af-car-card { min-width:78%; scroll-snap-align:start; }
    .af-car-card__actions { grid-template-columns:1fr; }
    .af-specs { grid-template-columns:1fr; }
    .af-spec, .af-spec:nth-child(2n) { border-right:0; }
    .af-footer__bottom { display:block; }
	.af-section-main{display:none;}
}

@media (max-width: 500px) {
    .af-container { width: calc(100% - 20px); }
    .af-logo span:not(.af-logo__mark) { display:none; }
    .af-header__inner { min-height:66px; }
    .af-burger { width:42px; height:42px; font-size:20px; }
    .af-hero h1, .af-page-title { font-size:34px; line-height:1.02; }
    .af-hero h1 span, .af-page-title span { padding:0 10px 5px; }
    .af-hero__visual { display:none;}
    .af-floating-card { display:none;}
    .af-floating-card p { font-size:13px; }
    .af-card, .af-form-card, .af-form { padding:18px; border-radius:18px; }
    .af-benefits { grid-template-columns:1fr 1fr; gap:12px; }
    .af-benefits .af-card { padding:16px; }
    .af-benefits .af-icon { width:46px; height:46px; font-size:19px; }
    .af-benefits .af-card h3 { font-size:15px; }
    .af-benefits .af-card p { font-size:12px; }
    .af-steps { padding:14px; gap:10px; }
    .af-step { display:grid; grid-template-columns:42px 1fr; column-gap:12px; align-items:start; padding:12px; border-radius:14px; background:rgba(255,255,255,.05); }
    .af-step__num { width:38px; height:38px; grid-row:1 / span 2; }
    .af-step h3 { margin:0 0 4px; }
    .af-cta-dark { padding:20px; }
    .af-contact-layout > div:first-child { padding:20px; }
}

.single-auto_car .af-page-title {
    color: var(--af-navy);
}
.af-car-intro {
    margin: 18px 0 24px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f6f8fb;
    border-left: 4px solid var(--af-red);
}

.af-car-intro p {
    margin: 0;
    color: var(--af-muted);
    font-size: 17px;
    line-height: 1.65;
}
.af-empty-cars {
    grid-column: 1 / -1;
    padding: 36px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(15, 30, 52, .08);
    box-shadow: 0 18px 45px rgba(10, 25, 50, .08);
    text-align: center;
}

.af-empty-cars h3 {
    margin: 0 0 10px;
    font-size: 26px;
    color: var(--af-navy);
}

.af-empty-cars p {
    margin: 0 0 22px;
    color: var(--af-muted);
}

.af-benefit-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 22px;
}

.af-benefit-card__content h3 {
    margin: 0 0 8px;
}

.af-benefit-card__content p {
    margin: 0;
}

.fa-brands{font-size: 20px;}
.fa-telegram{font-size: 32px;}
.fa-whatsapp{font-size: 32px;}
/* Brand refinements: Твоё Авто Сибирь */
.af-link-red {
    color: var(--af-red);
    font-weight: 850;
}

.af-link-red:hover {
    color: var(--af-red-dark);
}

.af-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin-bottom: 16px;
    color: var(--af-red);
    background: #fff1f2;
    border: 1px solid rgba(227, 23, 34, .18);
    font-size: 24px;
}

.af-benefit-card__icon,
.af-icon-car,
.af-icon-condition,
.af-icon-approval,
.af-icon-support {
    width: 79px;
    height: 79px;
    margin-bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
}

.af-map {
    display: grid;
    place-items: center;
    min-height: 420px;
    background:
        radial-gradient(circle at 50% 45%, rgba(227, 23, 34, .16), transparent 22%),
        linear-gradient(135deg, #eef3f8, #ffffff);
}

.af-map span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--af-navy);
    font-weight: 850;
    box-shadow: 0 10px 26px rgba(7, 20, 40, .08);
}

.af-car-title {
    font-size: clamp(34px, 4.5vw, 52px);
}

.af-form__grid label:has(textarea) {
    grid-column: 1 / -1;
}

@media (max-width: 500px) {
    .af-benefits {
        grid-template-columns: 1fr;
    }

    .af-benefit-card {
        grid-template-columns: 64px 1fr;
        gap: 14px;
    }

    .af-benefit-card__icon,
    .af-icon-car,
    .af-icon-condition,
    .af-icon-approval,
    .af-icon-support {
        width: 58px;
        height: 58px;
    }
}

.af-section--steps {
    position: relative;
    overflow: hidden;
    padding: 18px 0 34px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.06), transparent 26%),
        linear-gradient(135deg, #06162f 0%, #071f42 48%, #031124 100%);
}

.af-section--steps::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.22;
    pointer-events: none;
}

.af-section--steps .af-container {
    position: relative;
    z-index: 1;
}

.af-section--steps .af-section__head {
    margin-bottom: 14px;
    text-align: center;
}

.af-section--steps .af-section__head h2 {
    margin: 0 auto;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

.af-section--steps .af-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px;
    align-items: start;
}

.af-section--steps .af-step {
    position: relative;
    text-align: center;
    color: #fff;
}

.af-section--steps .af-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 33px;
    right: -46px;
    width: 92px;
    border-top: 3px dotted rgba(255, 255, 255, 0.58);
}

.af-section--steps .af-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 28px;
    right: -52px;
    width: 0;
    height: 0;
    border-left: 9px solid rgba(255, 255, 255, 0.75);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.af-step__visual {
    position: relative;
    width: 78px;
    height: 62px;
    margin: 0 auto 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-step__icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 25px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.22);
}

.af-step__num {
    position: absolute;
    top: 14px;
    left: 0;
    z-index: 2;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e30613;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(227, 6, 19, 0.36);
}

.af-section--steps .af-step h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
}

.af-section--steps .af-step p {
    max-width: 210px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .af-section--steps {
        padding: 28px 0;
    }

    .af-section--steps .af-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 34px;
    }

    .af-section--steps .af-step::before,
    .af-section--steps .af-step::after {
        display: none;
    }
}

@media (max-width: 560px) {
    .af-section--steps .af-section__head h2 {
        font-size: 24px;
    }

    .af-section--steps .af-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .af-section--steps .af-step {
        padding: 0 12px;
    }

    .af-section--steps .af-step p {
        max-width: 280px;
    }
}
.af-form__agreements {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--af-line);
    border-radius: 14px;
    background: #f8fafc;
}

.af-form label.af-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
    color: var(--af-muted);
}

.af-form .af-checkbox input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--af-red);
}
/* Варианты приобретения автомобиля */

.af-car-options {
    background: #fff;
}

.af-car-options__heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.af-car-options__heading .af-section__lead {
    max-width: 720px;
}

.af-car-options__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.af-car-option {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    box-shadow: 0 14px 38px rgba(7, 20, 40, 0.08);
}

.af-car-option__header {
    margin-bottom: 18px;
}

.af-car-option__header h3 {
    margin: 0;
    color: var(--af-navy);
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.af-car-option__header span {
    display: block;
    margin-top: 6px;
    color: var(--af-red);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.af-car-option__lead {
    margin: 0 0 14px;
    color: #28384e;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.55;
}

.af-car-option__text {
    margin: 0;
    color: var(--af-muted);
    font-size: 16px;
    line-height: 1.65;
}

.af-car-option__note {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 24px;
    padding: 17px 18px;
    background: #f4f6f9;
    border-radius: 15px;
}

.af-car-option__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--af-red);
    background: #fff;
    border: 1px solid rgba(227, 23, 34, 0.18);
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(7, 20, 40, 0.06);
}

.af-car-option__icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.af-car-option__note p {
    margin: 0;
    color: #657286;
    font-size: 13px;
    line-height: 1.45;
}

.af-car-option__note strong {
    display: block;
    margin-bottom: 2px;
    color: var(--af-navy);
    font-size: 14px;
    line-height: 1.35;
}
@media (max-width: 780px) {
    .af-car-options__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .af-car-options__heading {
        margin-bottom: 22px;
    }

    .af-car-option {
        padding: 20px;
        border-radius: 18px;
    }

    .af-car-option__header h3 {
        font-size: 25px;
    }

    .af-car-option__lead {
        font-size: 16px;
    }

    .af-car-option__text {
        font-size: 15px;
    }

    .af-car-option__note {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .af-car-option__icon {
        width: 42px;
        height: 42px;
    }
}

.af-car-options__disclaimer {
    max-width: 900px;
    margin: 22px 0 0;
    color: var(--af-muted);
    font-size: 13px;
    line-height: 1.55;
}

.af-car-option__text + .af-car-option__text {
    margin-top: 14px;
}
/* =========================================================
   Страница «Отзывы»
   ========================================================= */

.af-reviews-intro {
    max-width: 760px;
    margin-top: 12px;
    color: var(--af-muted);
    font-size: 16px;
    line-height: 1.7;
}

.af-reviews-intro p {
    margin: 0;
}

.af-reviews-intro p + p {
    margin-top: 12px;
}

.af-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.af-review-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    box-shadow: 0 14px 38px rgba(7, 20, 40, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.af-review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--af-shadow);
}

.af-review-card__video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(
            circle at center,
            rgba(227, 23, 34, 0.22),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--af-navy),
            var(--af-navy-2)
        );
}

.af-review-card__video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.af-review-card__content {
    padding: 22px 24px 24px;
}

.af-review-card__meta {
    margin-bottom: 10px;
}

.af-review-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: var(--af-red);
    background: var(--af-soft);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.af-review-card__meta i {
    font-size: 10px;
}

.af-review-card h3 {
    margin: 0;
    color: var(--af-navy);
    font-size: 21px;
    line-height: 1.3;
}

.af-review-card p {
    margin: 11px 0 0;
    color: var(--af-muted);
    font-size: 15px;
    line-height: 1.65;
}

.af-reviews-empty {
    max-width: 760px;
    margin: 0 auto;
    padding: 42px;
    background: #ffffff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    box-shadow: 0 14px 38px rgba(7, 20, 40, 0.08);
    text-align: center;
}

.af-reviews-empty__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    color: var(--af-red);
    background: var(--af-soft);
    border: 1px solid rgba(227, 23, 34, 0.18);
    border-radius: 50%;
    font-size: 27px;
}

.af-reviews-empty h3 {
    margin: 0 0 10px;
    color: var(--af-navy);
    font-size: 26px;
    line-height: 1.2;
}

.af-reviews-empty p {
    max-width: 580px;
    margin: 0 auto 22px;
    color: var(--af-muted);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .af-reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .af-reviews-grid {
        gap: 18px;
    }

    .af-review-card {
        border-radius: 18px;
    }

    .af-review-card__content {
        padding: 18px;
    }

    .af-review-card h3 {
        font-size: 19px;
    }

    .af-review-card p {
        font-size: 14px;
    }

    .af-reviews-empty {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .af-reviews-empty h3 {
        font-size: 22px;
    }
}

/* =========================================================
   Базовый шаблон обычной страницы
   ========================================================= */

.af-page-section {
    background: #eef3f8;
}

.af-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

/* Основная карточка страницы */

.af-page-article {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    box-shadow: 0 14px 38px rgba(7, 20, 40, 0.08);
}

.af-page-featured {
    position: relative;
    width: 100%;
    max-height: 480px;
    margin: 0;
    overflow: hidden;
    background: #e9eef4;
    border-bottom: 1px solid var(--af-line);
}

.af-page-featured img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

/* Содержимое из редактора WordPress */

.af-page-content {
    padding: 38px 42px 42px;
    color: #334155;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.af-page-content > :first-child {
    margin-top: 0;
}

.af-page-content > :last-child {
    margin-bottom: 0;
}

.af-page-content p {
    margin: 0 0 20px;
}

.af-page-content h2,
.af-page-content h3,
.af-page-content h4,
.af-page-content h5,
.af-page-content h6 {
    color: var(--af-navy);
    letter-spacing: -0.025em;
    scroll-margin-top: 110px;
}

.af-page-content h2 {
    margin: 42px 0 18px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.15;
}

.af-page-content h3 {
    margin: 34px 0 14px;
    font-size: 25px;
    line-height: 1.25;
}

.af-page-content h4 {
    margin: 28px 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.af-page-content h5,
.af-page-content h6 {
    margin: 24px 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

.af-page-content ul,
.af-page-content ol {
    margin: 0 0 22px;
    padding-left: 26px;
}

.af-page-content li {
    padding-left: 4px;
}

.af-page-content li + li {
    margin-top: 9px;
}

.af-page-content ul li::marker {
    color: var(--af-red);
}

.af-page-content ol li::marker {
    color: var(--af-red);
    font-weight: 850;
}

.af-page-content a {
    color: var(--af-red);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.af-page-content a:hover {
    color: #b70d17;
}

.af-page-content strong {
    color: var(--af-navy);
}

.af-page-content blockquote {
    margin: 28px 0;
    padding: 20px 22px;
    color: #334155;
    background: #f5f7fa;
    border-left: 4px solid var(--af-red);
    border-radius: 0 14px 14px 0;
}

.af-page-content blockquote p:last-child {
    margin-bottom: 0;
}

.af-page-content hr {
    height: 1px;
    margin: 36px 0;
    border: 0;
    background: var(--af-line);
}

.af-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.af-page-content figure {
    max-width: 100%;
    margin: 28px 0;
}

.af-page-content figcaption,
.af-page-content .wp-caption-text {
    margin-top: 8px;
    color: var(--af-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.af-page-content .aligncenter {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.af-page-content .alignleft {
    float: left;
    margin: 8px 24px 18px 0;
}

.af-page-content .alignright {
    float: right;
    margin: 8px 0 18px 24px;
}

/* Таблицы */

.af-page-content table {
    display: block;
    width: 100%;
    margin: 26px 0;
    overflow-x: auto;
    border-collapse: collapse;
    border: 1px solid var(--af-line);
    border-radius: 14px;
}

.af-page-content th,
.af-page-content td {
    min-width: 140px;
    padding: 13px 15px;
    border: 1px solid var(--af-line);
    text-align: left;
    vertical-align: top;
}

.af-page-content th {
    color: var(--af-navy);
    background: #f3f6f9;
    font-weight: 850;
}

.af-page-content tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* Постраничная навигация внутри контента */

.af-page-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--af-line);
}

.af-page-pagination > span:first-child {
    margin-right: 5px;
    color: var(--af-muted);
    font-weight: 700;
}

.af-page-pagination a span,
.af-page-pagination > span:not(:first-child) {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--af-line);
    border-radius: 10px;
    text-decoration: none;
}

/* Боковая колонка */

.af-page-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 18px;
}

.af-page-sidebar__card,
.af-page-links {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    box-shadow: 0 12px 34px rgba(7, 20, 40, 0.07);
}

.af-page-sidebar__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 17px;
    color: var(--af-red);
    background: #fff1f2;
    border: 1px solid rgba(227, 23, 34, 0.18);
    border-radius: 16px;
    font-size: 23px;
}

.af-page-sidebar__card h2,
.af-page-links h2 {
    margin: 0 0 12px;
    color: var(--af-navy);
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.af-page-sidebar__card p {
    margin: 0 0 18px;
    color: var(--af-muted);
    font-size: 14px;
    line-height: 1.65;
}

.af-page-sidebar__phone {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--af-navy);
    font-size: 17px;
    font-weight: 900;
}

.af-page-sidebar__phone i {
    color: var(--af-red);
}

.af-page-links ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.af-page-links li {
    margin: 0;
}

.af-page-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    color: var(--af-navy);
    border-bottom: 1px solid var(--af-line);
    font-size: 14px;
    font-weight: 750;
}

.af-page-links li:last-child a {
    padding-bottom: 0;
    border-bottom: 0;
}

.af-page-links a > span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.af-page-links a > span i {
    width: 20px;
    color: var(--af-red);
    text-align: center;
}

.af-page-links a > i {
    color: #94a3b8;
    font-size: 12px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.af-page-links a:hover {
    color: var(--af-red);
}

.af-page-links a:hover > i {
    color: var(--af-red);
    transform: translateX(3px);
}

/* Адаптивность */

@media (max-width: 980px) {
    .af-page-layout {
        grid-template-columns: 1fr;
    }

    .af-page-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .af-page-content {
        padding: 28px 24px 30px;
        font-size: 15px;
    }

    .af-page-content h2 {
        margin-top: 34px;
        font-size: 28px;
    }

    .af-page-content h3 {
        margin-top: 28px;
        font-size: 22px;
    }

    .af-page-content .alignleft,
    .af-page-content .alignright {
        float: none;
        display: block;
        margin: 22px auto;
    }

    .af-page-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .af-page-article,
    .af-page-sidebar__card,
    .af-page-links {
        border-radius: 18px;
    }

    .af-page-content {
        padding: 24px 18px 26px;
    }

    .af-page-content p {
        margin-bottom: 17px;
    }

    .af-page-content ul,
    .af-page-content ol {
        padding-left: 22px;
    }

    .af-page-sidebar__card,
    .af-page-links {
        padding: 20px;
    }
}
/* =========================================================
   Страница «О компании»
   ========================================================= */

.af-section.af-about-soft {
    background: #eef3f8;
}

/* Первый блок с информацией о компании */

.af-about-story {
    align-items: stretch;
}

.af-about-image {
    position: relative;
    min-height: 470px;
}

.af-about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(6, 19, 38, 0.72) 100%
        );
    pointer-events: none;
}

.af-about-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-about-image__badge {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    color: #ffffff;
    background: rgba(6, 19, 38, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
}

.af-about-image__badge > i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: var(--af-red);
    border-radius: 14px;
    font-size: 20px;
}

.af-about-image__badge span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.45;
}

.af-about-image__badge strong {
    display: block;
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 15px;
}

.af-about-story__content {
    min-width: 0;
}

.af-about-kicker {
    margin-bottom: 10px;
    color: var(--af-red);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.af-about-copy {
    margin-top: 20px;
    color: var(--af-muted);
    font-size: 16px;
    line-height: 1.75;
}

.af-about-copy > :first-child {
    margin-top: 0;
}

.af-about-copy > :last-child {
    margin-bottom: 0;
}

.af-about-copy p {
    margin: 0 0 16px;
}

.af-about-copy ul,
.af-about-copy ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.af-about-copy li + li {
    margin-top: 7px;
}

.af-about-copy li::marker {
    color: var(--af-red);
}

.af-about-copy strong {
    color: var(--af-navy);
}

.af-about-note {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 24px;
    padding: 17px 18px;
    background: #ffffff;
    border: 1px solid var(--af-line);
    border-left: 4px solid var(--af-red);
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(7, 20, 40, 0.06);
}

.af-about-note > i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--af-red);
    background: var(--af-soft);
    border-radius: 14px;
    font-size: 21px;
}

.af-about-note p {
    margin: 0;
    color: var(--af-muted);
    font-size: 14px;
    line-height: 1.55;
}

.af-about-note strong {
    display: block;
    margin-bottom: 2px;
    color: var(--af-navy);
    font-size: 15px;
}

.af-about-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.af-about-point {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--af-line);
    border-radius: 14px;
}

.af-about-point > i {
    flex: 0 0 auto;
    color: var(--af-red);
    font-size: 18px;
}

.af-about-point span {
    min-width: 0;
    color: var(--af-muted);
    font-size: 12px;
    line-height: 1.35;
}

.af-about-point strong {
    display: block;
    color: var(--af-navy);
    font-size: 13px;
}

/* Форматы приобретения */

.af-about-formats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.af-about-format {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 20px;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.af-about-format::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--af-red),
        #ff4650
    );
}

.af-about-format:hover {
    transform: translateY(-2px);
}

.af-about-format__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--af-red),
            var(--af-red-dark)
        );
    border-radius: 18px;
    box-shadow: var(--af-shadow-red);
    font-size: 25px;
}

.af-about-format__label {
    display: block;
    margin-bottom: 5px;
    color: var(--af-red);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.af-about-format h3 {
    margin: 0 0 10px;
    color: var(--af-navy);
    font-size: 25px;
    line-height: 1.2;
}

.af-about-format p {
    margin: 0 0 17px;
    color: var(--af-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* Список рядом с формой */

.af-about-list {
    display: grid;
    gap: 10px;
    max-width: 620px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.af-about-list li {
    position: relative;
    padding-left: 32px;
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.af-about-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    background: var(--af-red);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.af-about-phone {
    display: grid;
    gap: 4px;
    margin-top: 24px;
}

.af-about-phone span {
    color: var(--af-muted);
    font-size: 13px;
}

.af-about-phone a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: var(--af-navy);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 950;
}

.af-about-phone a i {
    color: var(--af-red);
    font-size: 17px;
}

.af-about-phone a:hover {
    color: var(--af-red);
}

/* Адаптивность */

@media (max-width: 980px) {
    .af-about-image {
        min-height: 400px;
    }

    .af-about-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .af-about-formats {
        grid-template-columns: 1fr;
    }

    .af-about-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .af-about-image {
        min-height: 320px;
    }

    .af-about-image__badge {
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 14px;
    }

    .af-about-image__badge > i {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .af-about-copy {
        font-size: 15px;
    }

    .af-about-note {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 15px;
    }

    .af-about-note > i {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .af-about-format {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 15px;
    }

    .af-about-format__icon {
        width: 54px;
        height: 54px;
        border-radius: 15px;
        font-size: 21px;
    }

    .af-about-format h3 {
        font-size: 21px;
    }

    .af-about-format p {
        font-size: 14px;
    }

    .af-about-phone a {
        font-size: 18px;
    }
}

.af-hero__grid > div:first-child {
    position: relative;
    z-index: 4;
}

.af-hero__actions {
    position: relative;
    z-index: 5;
}

.af-hero__visual::before,
.af-hero__visual::after,
.af-hero__car {
    pointer-events: none;
}
/* =========================================================
   Contacts application page
   ========================================================= */

.af-contact-request {
    display: grid;
    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(480px, 1.08fr);
    gap: 32px;
    align-items: stretch;
}

.af-contact-request__info,
.af-contact-request__form {
    border-radius: 28px;
}

.af-contact-request__info {
    position: relative;
    padding: 42px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(230, 34, 44, 0.2),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #071a33 0%,
            #102c50 100%
        );
    box-shadow: 0 24px 55px rgba(7, 26, 51, 0.2);
    color: #fff;
}

.af-contact-request__info::before {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -150px;
    width: 360px;
    height: 360px;
    border: 75px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    pointer-events: none;
}

.af-contact-request__info > * {
    position: relative;
    z-index: 1;
}

.af-contact-request__kicker,
.af-contact-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #e5222c;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.af-contact-request__kicker {
    color: #ff6b72;
}

.af-contact-request__kicker::before,
.af-contact-section-kicker::before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 20px;
    background: currentColor;
}

.af-contact-request__heading h2 {
    max-width: 500px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.af-contact-request__heading p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.65;
}

.af-contact-request__contacts {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.af-contact-line {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 72px;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.af-contact-line:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.af-contact-line__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: #e5222c;
    font-size: 19px;
}

.af-contact-line__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.af-contact-line__content small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.af-contact-line__content strong {
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 15px;
}

.af-contact-line__arrow {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.af-contact-socials {
    margin-top: 32px;
}

.af-contact-socials h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 18px;
}

.af-contact-socials__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.af-contact-social {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.af-contact-social:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.27);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.af-contact-social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: #fff;
    color: #071a33;
    font-size: 21px;
}

.af-contact-social--telegram .af-contact-social__icon {
    color: #229ed9;
}

.af-contact-social--whatsapp .af-contact-social__icon {
    color: #25d366;
}

.af-contact-social--vk .af-contact-social__icon {
    color: #0077ff;
}

.af-contact-social__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.af-contact-social__content strong {
    color: #fff;
    font-size: 14px;
}

.af-contact-social__content small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
}

.af-contact-social__arrow {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.af-contact-request__notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 28px;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.07);
}

.af-contact-request__notice-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e5222c;
    color: #fff;
    font-size: 14px;
}

.af-contact-request__notice strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 15px;
}

.af-contact-request__notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1.55;
}

/* Правая карточка с формой */

.af-contact-request__form {
    padding: 38px;
    border: 1px solid #dce2e9;
    background: #fff;
    box-shadow: 0 24px 55px rgba(7, 26, 51, 0.1);
}

.af-contact-request__form-heading {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e7ed;
}

.af-contact-request__form-number {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: #e5222c;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.af-contact-request__form-heading h2 {
    margin: 0 0 7px;
    color: #071a33;
    font-size: 28px;
    line-height: 1.15;
}

.af-contact-request__form-heading p {
    margin: 0;
    color: #687487;
    font-size: 14px;
    line-height: 1.5;
}

/*
 * Сбрасываем лишнее оформление внутренней карточки формы,
 * если auto_finance_lead_form() добавляет собственную обёртку.
 */
.af-contact-request__form .af-form-card,
.af-contact-request__form .af-lead-form,
.af-contact-request__form .af-form-box {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.af-contact-request__form form {
    width: 100%;
}

.af-contact-request__form form input:not([type="checkbox"]):not([type="radio"]),
.af-contact-request__form form select,
.af-contact-request__form form textarea {
    width: 100%;
    min-height: 55px;
    border: 1px solid #ccd4df;
    border-radius: 13px;
    outline: none;
    background: #f8fafc;
    color: #122033;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.af-contact-request__form form textarea {
    min-height: 115px;
}

.af-contact-request__form form input:focus,
.af-contact-request__form form select:focus,
.af-contact-request__form form textarea:focus {
    border-color: #174b8f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 75, 143, 0.1);
}

.af-contact-request__form form button[type="submit"],
.af-contact-request__form form input[type="submit"] {
    width: 100%;
    min-height: 60px;
    border: 0;
    border-radius: 14px;
    background: #e5222c;
    box-shadow: 0 12px 25px rgba(229, 34, 44, 0.23);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.af-contact-request__form form button[type="submit"]:hover,
.af-contact-request__form form input[type="submit"]:hover {
    transform: translateY(-2px);
    background: #c91c25;
    box-shadow: 0 16px 30px rgba(229, 34, 44, 0.28);
}

/* Карта */

.af-contact-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(480px, 1.22fr);
    gap: 35px;
    align-items: stretch;
}

.af-contact-map-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.af-contact-map-content h2 {
    margin-top: 0;
}

.af-contact-map-details {
    display: grid;
    gap: 13px;
    width: 100%;
    margin: 26px 0;
}

.af-contact-map-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 17px;
    border: 1px solid #dce2e9;
    border-radius: 16px;
    background: #fff;
}

.af-contact-map-detail > i {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(229, 34, 44, 0.1);
    color: #e5222c;
}

.af-contact-map-detail div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.af-contact-map-detail strong {
    color: #071a33;
    font-size: 14px;
}

.af-contact-map-detail span {
    color: #687487;
    font-size: 14px;
    line-height: 1.5;
}

/* Адаптив */

@media (max-width: 1080px) {
    .af-contact-request {
        grid-template-columns: 1fr;
    }

    .af-contact-map-layout {
        grid-template-columns: 1fr;
    }

    .af-contact-map-layout .af-map {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    .af-contact-request__info,
    .af-contact-request__form {
        padding: 25px 20px;
        border-radius: 22px;
    }

    .af-contact-socials__list {
        grid-template-columns: 1fr;
    }

    .af-contact-request__form-heading {
        gap: 13px;
    }

    .af-contact-request__form-number {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
    }

    .af-contact-request__form-heading h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .af-contact-line {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .af-contact-line__icon {
        width: 44px;
        height: 44px;
    }

    .af-contact-line__arrow {
        display: none;
    }

    .af-contact-request__heading h2 {
        font-size: 30px;
    }
}
.af-social-link--max img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .af-step {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 14px;
        row-gap: 6px;
        align-items: start;

        padding: 18px;
        text-align: left;
    }

    .af-step__visual {
        grid-column: 1;
        grid-row: 1 / span 2;

        position: relative;
        width: 64px;
        height: 56px;
        margin: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .af-step__visual img,
    .af-step__visual svg {
        max-width: 42px;
        max-height: 42px;
    }

    .af-step h3,
    .af-step__title {
        grid-column: 2;
        margin: 2px 0 4px;

        font-size: 17px;
        line-height: 1.25;
        text-align: left;
    }

    .af-step p,
    .af-step__text {
        grid-column: 2;
        margin: 0;
        max-width: none;

        font-size: 14px;
        line-height: 1.45;
        text-align: left;
    }

    .af-step__number {
        display:none;
    }
}
.af-tradein-page {
    overflow: hidden;
}

.af-tradein-kicker {
    margin-bottom: 10px;
    color: var(--af-red);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* Первый информационный блок */

.af-tradein-intro {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 34px;
    align-items: stretch;
}

.af-tradein-intro__image {
    position: relative;
    min-height: 470px;
}

.af-tradein-intro__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 42%,
        rgba(6, 19, 38, .76) 100%
    );
    pointer-events: none;
}

.af-tradein-intro__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-tradein-intro__badge {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    color: #fff;
    background: rgba(6, 19, 38, .86);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
    backdrop-filter: blur(10px);
}

.af-tradein-intro__badge > i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--af-red);
    border-radius: 14px;
    font-size: 20px;
}

.af-tradein-intro__badge span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.45;
}

.af-tradein-intro__badge strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 15px;
}

.af-tradein-intro__content {
    min-width: 0;
    align-self: center;
}

.af-tradein-intro__content h2,
.af-tradein-evaluation__content h2,
.af-tradein-documents h2,
.af-tradein-form-layout__content h2 {
    margin: 0;
    color: var(--af-navy);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.af-tradein-copy {
    margin-top: 20px;
    color: var(--af-muted);
    font-size: 16px;
    line-height: 1.75;
}

.af-tradein-copy > :first-child {
    margin-top: 0;
}

.af-tradein-copy > :last-child {
    margin-bottom: 0;
}

.af-tradein-copy p {
    margin: 0 0 16px;
}

.af-tradein-intro__note {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-top: 24px;
    padding: 17px 18px;
    background: #fff;
    border: 1px solid var(--af-line);
    border-left: 4px solid var(--af-red);
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(7, 20, 40, .06);
}

.af-tradein-intro__note > i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--af-red);
    background: var(--af-soft);
    border-radius: 14px;
    font-size: 20px;
}

.af-tradein-intro__note p {
    margin: 0;
    color: var(--af-muted);
    font-size: 14px;
    line-height: 1.55;
}

.af-tradein-intro__note strong {
    display: block;
    margin-bottom: 2px;
    color: var(--af-navy);
    font-size: 15px;
}

/* Преимущества */

.af-tradein-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.af-tradein-benefit {
    position: relative;
    min-width: 0;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.af-tradein-benefit::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--af-red), #ff4650);
}

.af-tradein-benefit:hover {
    transform: translateY(-3px);
}

.af-tradein-benefit__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--af-red), var(--af-red-dark));
    border-radius: 17px;
    box-shadow: var(--af-shadow-red);
    font-size: 23px;
}

.af-tradein-benefit h3 {
    margin: 0 0 9px;
    color: var(--af-navy);
    font-size: 19px;
    line-height: 1.25;
}

.af-tradein-benefit p {
    margin: 0;
    color: var(--af-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Этапы */

.af-section.af-tradein-process-section {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 15% 0,
            rgba(227, 23, 34, .2),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 100%,
            rgba(15, 76, 138, .28),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #061326 0%,
            #0b203a 100%
        );
}

.af-tradein-process-section .af-section__head h2 {
    color: #fff;
}

.af-tradein-process-section .af-section__lead {
    color: #cbd5e1;
}

.af-tradein-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.af-tradein-step {
    position: relative;
    min-width: 0;
    padding: 22px 18px 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.af-tradein-step__number {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    color: #fff;
    background: var(--af-red);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    box-shadow: var(--af-shadow-red);
}

.af-tradein-step__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 15px;
    font-size: 21px;
}

.af-tradein-step h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
}

.af-tradein-step p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.55;
}

/* Факторы оценки */

.af-tradein-evaluation {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 32px;
    align-items: center;
}

.af-tradein-evaluation__content .af-section__lead {
    margin-top: 14px;
}

.af-tradein-factors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.af-tradein-factor {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: 15px;
}

.af-tradein-factor > i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--af-red);
    background: var(--af-soft);
    border-radius: 13px;
    font-size: 18px;
}

.af-tradein-factor span {
    min-width: 0;
    color: var(--af-muted);
    font-size: 12px;
    line-height: 1.4;
}

.af-tradein-factor strong {
    display: block;
    margin-bottom: 2px;
    color: var(--af-navy);
    font-size: 14px;
}

.af-tradein-evaluation__card {
    padding: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(227, 23, 34, .24), transparent 32%),
        linear-gradient(145deg, #071a33 0%, #102c50 100%);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    box-shadow: var(--af-shadow);
}

.af-tradein-evaluation__card-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    color: #fff;
    background: var(--af-red);
    border-radius: 17px;
    box-shadow: var(--af-shadow-red);
    font-size: 23px;
}

.af-tradein-evaluation__card h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.af-tradein-evaluation__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.af-tradein-evaluation__row span {
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

.af-tradein-evaluation__row strong {
    color: #fff;
    font-size: 14px;
    text-align: right;
}

.af-tradein-evaluation__card p {
    margin: 18px 0 22px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.55;
}

/* Документы */

.af-tradein-documents {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: start;
}

.af-tradein-documents__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.af-tradein-document {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(7, 20, 40, .05);
}

.af-tradein-document > i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: var(--af-red);
    background: var(--af-soft);
    border-radius: 13px;
    font-size: 18px;
}

.af-tradein-document span {
    min-width: 0;
    color: var(--af-muted);
    font-size: 12px;
    line-height: 1.4;
}

.af-tradein-document strong {
    display: block;
    margin-bottom: 2px;
    color: var(--af-navy);
    font-size: 14px;
}

.af-tradein-documents__notice {
    grid-column: 1 / -1;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 17px 18px;
    color: #6b2730;
    background: #fff4f5;
    border: 1px solid rgba(227, 23, 34, .16);
    border-radius: 15px;
}

.af-tradein-documents__notice > i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--af-red);
}

.af-tradein-documents__notice p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

/* Форма */

.af-tradein-form-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
    gap: 34px;
    align-items: center;
}

.af-tradein-form-layout__content .af-section__lead {
    margin-top: 16px;
}

.af-tradein-form-points {
    display: grid;
    gap: 11px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.af-tradein-form-points li {
    position: relative;
    padding-left: 32px;
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.af-tradein-form-points li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #fff;
    background: var(--af-red);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.af-tradein-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    color: var(--af-navy);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 950;
}

.af-tradein-phone i {
    color: var(--af-red);
    font-size: 17px;
}

.af-tradein-phone:hover {
    color: var(--af-red);
}

.af-tradein-form {
    min-width: 0;
}

.af-tradein-form .af-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.af-tradein-form textarea {
    min-height: 132px;
}

.af-tradein-form .af-button {
    min-height: 56px;
}

/* FAQ */

.af-tradein-faq details {
    align-self: start;
}

/* Адаптив */

@media (max-width: 1100px) {
    .af-tradein-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .af-tradein-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .af-tradein-form-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .af-tradein-intro,
    .af-tradein-evaluation,
    .af-tradein-documents {
        grid-template-columns: 1fr;
    }

    .af-tradein-intro__image {
        min-height: 400px;
    }

    .af-tradein-documents__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .af-tradein-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .af-tradein-factors,
    .af-tradein-documents__list,
    .af-tradein-form .af-form__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .af-tradein-intro__image {
        min-height: 320px;
    }

    .af-tradein-intro__badge {
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 14px;
    }

    .af-tradein-intro__badge > i {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .af-tradein-intro__note {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 15px;
    }

    .af-tradein-intro__note > i {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .af-tradein-benefits,
    .af-tradein-steps {
        grid-template-columns: 1fr;
    }

    .af-tradein-step {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
    }

    .af-tradein-step__icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .af-tradein-step h3,
    .af-tradein-step p {
        grid-column: 2;
    }

    .af-tradein-step h3 {
        padding-right: 36px;
    }

    .af-tradein-evaluation__card {
        padding: 23px 20px;
        border-radius: 20px;
    }

    .af-tradein-evaluation__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .af-tradein-evaluation__row strong {
        text-align: left;
    }

    .af-tradein-document {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 14px;
    }

    .af-tradein-document > i {
        width: 42px;
        height: 42px;
    }
}

/* =========================================================
   Страница «Подбор автомобиля»
   Добавить в конец assets/css/main.css
   ========================================================= */

.af-selection-page {
    overflow: hidden;
}

.af-selection-kicker {
    margin-bottom: 10px;
    color: var(--af-red);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* Главная форма */

.af-selection-form-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(560px, 1.18fr);
    gap: 34px;
    align-items: start;
}

.af-selection-form-layout__content {
    position: sticky;
    top: 112px;
    min-width: 0;
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(227, 23, 34, .22), transparent 32%),
        linear-gradient(145deg, #071a33 0%, #102c50 100%);
    border-radius: 28px;
    box-shadow: 0 24px 55px rgba(7, 26, 51, .2);
}

.af-selection-form-layout__content .af-selection-kicker {
    color: #ff737a;
}

.af-selection-form-layout__content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.af-selection-copy {
    margin-top: 20px;
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    line-height: 1.72;
}

.af-selection-copy > :first-child {
    margin-top: 0;
}

.af-selection-copy > :last-child {
    margin-bottom: 0;
}

.af-selection-copy p {
    margin: 0 0 15px;
}

.af-selection-form-points {
    display: grid;
    gap: 11px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.af-selection-form-points li {
    position: relative;
    padding-left: 31px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.af-selection-form-points li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    color: #fff;
    background: var(--af-red);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.af-selection-contact-note {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    margin-top: 26px;
    padding: 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
}

.af-selection-contact-note > i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--af-red);
    border-radius: 13px;
    font-size: 18px;
}

.af-selection-contact-note p {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    line-height: 1.5;
}

.af-selection-contact-note strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 14px;
}

.af-selection-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 23px;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 950;
}

.af-selection-phone i {
    color: #ff5d65;
    font-size: 17px;
}

.af-selection-phone:hover {
    color: #ff737a;
}

.af-selection-form {
    padding: 30px;
    border-radius: 28px;
}

.af-selection-form .af-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.af-selection-form__group-title {
    margin-top: 8px;
    padding: 13px 15px;
    color: var(--af-navy);
    background: #f3f6f9;
    border-left: 4px solid var(--af-red);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.af-selection-form .af-button {
    min-height: 58px;
}

/* С чего начинается подбор */

.af-selection-start-grid,
.af-selection-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.af-selection-start-card,
.af-selection-result-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.af-selection-start-card::before,
.af-selection-result-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--af-red), #ff4650);
}

.af-selection-start-card:hover,
.af-selection-result-card:hover {
    transform: translateY(-3px);
}

.af-selection-start-card__icon,
.af-selection-result-card__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--af-red), var(--af-red-dark));
    border-radius: 17px;
    box-shadow: var(--af-shadow-red);
    font-size: 22px;
}

.af-selection-start-card h3,
.af-selection-result-card h3 {
    margin: 0 0 9px;
    color: var(--af-navy);
    font-size: 19px;
    line-height: 1.25;
}

.af-selection-start-card p,
.af-selection-result-card p {
    margin: 0;
    color: var(--af-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Этапы */

.af-section.af-selection-process {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 0, rgba(227, 23, 34, .2), transparent 29%),
        radial-gradient(circle at 90% 100%, rgba(15, 76, 138, .3), transparent 36%),
        linear-gradient(135deg, #061326 0%, #0b203a 100%);
}

.af-section.af-selection-process::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.af-selection-process .af-container {
    position: relative;
    z-index: 1;
}

.af-selection-process .af-section__head h2 {
    color: #fff;
}

.af-selection-process .af-section__lead {
    color: rgba(255, 255, 255, .72);
}

.af-selection-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.af-selection-process-card {
    position: relative;
    min-width: 0;
    padding: 24px 20px 22px;
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .15);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.af-selection-process-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
}

.af-selection-process-card__number {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #fff;
    background: var(--af-red);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 900;
    box-shadow: var(--af-shadow-red);
}

.af-selection-process-card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 19px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 15px;
    font-size: 21px;
}

.af-selection-process-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
}

.af-selection-process-card p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.58;
}

/* Критерии */

.af-selection-criteria {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 34px;
    align-items: stretch;
}

.af-selection-criteria__content {
    min-width: 0;
    align-self: center;
}

.af-selection-criteria__content h2 {
    margin: 0;
    color: var(--af-navy);
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.af-selection-criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 25px;
}

.af-selection-criteria-grid > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 14px;
    color: #334155;
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: 13px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;
}

.af-selection-criteria-grid i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    color: #fff;
    background: var(--af-red);
    border-radius: 50%;
    font-size: 11px;
}

.af-selection-criteria__image {
    position: relative;
    min-height: 470px;
}

.af-selection-criteria__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(6, 19, 38, .76) 100%);
    pointer-events: none;
}

.af-selection-criteria__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.af-selection-criteria__badge {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    color: #fff;
    background: rgba(6, 19, 38, .86);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
    backdrop-filter: blur(10px);
}

.af-selection-criteria__badge > i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--af-red);
    border-radius: 14px;
    font-size: 20px;
}

.af-selection-criteria__badge span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.45;
}

.af-selection-criteria__badge strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 15px;
}

/* Автомобили */

.af-selection-cars-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Варианты приобретения */

.af-selection-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.af-selection-method {
    position: relative;
    min-width: 0;
    padding: 28px;
    overflow: hidden;
}

.af-selection-method::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--af-red), #ff4650);
}

.af-selection-method__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--af-red), var(--af-red-dark));
    border-radius: 18px;
    box-shadow: var(--af-shadow-red);
    font-size: 23px;
}

.af-selection-method > span {
    display: block;
    margin-bottom: 6px;
    color: var(--af-red);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.af-selection-method h3 {
    margin: 0 0 10px;
    color: var(--af-navy);
    font-size: 26px;
    line-height: 1.18;
}

.af-selection-method p {
    margin: 0 0 18px;
    color: var(--af-muted);
    font-size: 15px;
    line-height: 1.65;
}

.af-selection-method a {
    display: inline-flex;
    align-items: center;
    color: var(--af-red);
    font-size: 14px;
    font-weight: 850;
}

.af-selection-method a::after {
    content: "→";
    margin-left: 8px;
    transition: transform .2s ease;
}

.af-selection-method a:hover::after {
    transform: translateX(4px);
}

/* FAQ */

.af-selection-faq details {
    min-width: 0;
}

/* Адаптивность */

@media (max-width: 1180px) {
    .af-selection-form-layout {
        grid-template-columns: minmax(0, .85fr) minmax(500px, 1.15fr);
    }

    .af-selection-start-grid,
    .af-selection-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .af-selection-cars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .af-selection-form-layout,
    .af-selection-criteria {
        grid-template-columns: 1fr;
    }

    .af-selection-form-layout__content {
        position: static;
    }

    .af-selection-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .af-selection-form .af-form__grid,
    .af-selection-start-grid,
    .af-selection-result-grid,
    .af-selection-process-grid,
    .af-selection-methods {
        grid-template-columns: 1fr;
    }

    .af-selection-criteria-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .af-selection-form-layout__content,
    .af-selection-form,
    .af-selection-method {
        padding: 22px;
        border-radius: 20px;
    }

    .af-selection-form-layout {
        gap: 22px;
    }

    .af-selection-criteria__image {
        min-height: 340px;
    }

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

@media (max-width: 500px) {
    .af-selection-form-layout__content h2,
    .af-selection-criteria__content h2 {
        font-size: 30px;
    }

    .af-selection-form-layout__content,
    .af-selection-form {
        padding: 19px;
    }

    .af-selection-contact-note {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 14px;
    }

    .af-selection-contact-note > i {
        width: 40px;
        height: 40px;
    }

    .af-selection-phone {
        font-size: 18px;
    }

    .af-selection-start-card,
    .af-selection-result-card,
    .af-selection-process-card {
        padding: 20px;
    }

    .af-selection-criteria__badge {
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 14px;
    }
}

/* =========================================================
   Мобильная выплывающая панель контактов
   ========================================================= */

.af-mobile-contact-trigger,
.af-mobile-contact-sheet {
    display: none;
}

body.af-contact-sheet-open {
    overflow: hidden;
}

@media (max-width: 767px) {

    .af-mobile-contact-trigger {
        position: fixed;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        z-index: 1450;

        display: inline-grid;
        place-items: center;

        width: 58px;
        height: 58px;
        padding: 0;

        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 50%;

        background:
            linear-gradient(
                145deg,
                #f22935,
                var(--af-red-dark)
            );

        color: #fff;

        box-shadow:
            0 14px 34px rgba(227, 23, 34, .38),
            0 0 0 7px rgba(227, 23, 34, .1);

        font-size: 23px;
        line-height: 1;

        cursor: pointer;

        transition:
            transform .2s ease,
            box-shadow .2s ease;
    }

    .af-mobile-contact-trigger:hover,
    .af-mobile-contact-trigger:active {
        transform: translateY(-2px) scale(1.03);
        box-shadow:
            0 18px 38px rgba(227, 23, 34, .46),
            0 0 0 8px rgba(227, 23, 34, .12);
    }

    .af-mobile-contact-sheet {
        position: fixed;
        inset: 0;
        z-index: 1600;

        display: block;

        visibility: hidden;
        pointer-events: none;
    }

    .af-mobile-contact-sheet.is-open {
        visibility: visible;
        pointer-events: auto;
    }

    .af-mobile-contact-sheet__overlay {
        position: absolute;
        inset: 0;

        width: 100%;
        height: 100%;
        padding: 0;

        border: 0;
        background: rgba(2, 10, 20, .72);
        backdrop-filter: blur(4px);

        opacity: 0;
        cursor: pointer;

        transition: opacity .3s ease;
    }

    .af-mobile-contact-sheet.is-open
    .af-mobile-contact-sheet__overlay {
        opacity: 1;
    }

    .af-mobile-contact-sheet__panel {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;

        max-height: min(82vh, 680px);
        max-height: min(82dvh, 680px);

        padding:
            12px
            18px
            calc(22px + env(safe-area-inset-bottom));

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #f5f7fa 100%
            );

        border-radius: 26px 26px 0 0;

        box-shadow:
            0 -24px 65px rgba(0, 0, 0, .3);

        transform: translate3d(0, 105%, 0);
        will-change: transform;

        transition:
            transform .36s cubic-bezier(.22, 1, .36, 1);
    }

    .af-mobile-contact-sheet.is-open
    .af-mobile-contact-sheet__panel {
        transform: translate3d(0, 0, 0);
    }

    .af-mobile-contact-sheet__handle {
        width: 46px;
        height: 5px;
        margin: 0 auto 17px;

        background: #ccd4df;
        border-radius: 999px;
    }

    .af-mobile-contact-sheet__header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
    }

    .af-mobile-contact-sheet__kicker {
        display: block;
        margin-bottom: 4px;

        color: var(--af-red);

        font-size: 11px;
        line-height: 1.3;
        font-weight: 900;
        letter-spacing: .11em;
        text-transform: uppercase;
    }

    .af-mobile-contact-sheet__header h2 {
        margin: 0;

        color: var(--af-navy);

        font-size: 26px;
        line-height: 1.15;
        letter-spacing: -.025em;
    }

    .af-mobile-contact-sheet__close {
        flex: 0 0 auto;

        display: inline-grid;
        place-items: center;

        width: 42px;
        height: 42px;
        padding: 0;

        border: 1px solid var(--af-line);
        border-radius: 12px;

        background: #fff;
        color: var(--af-navy);

        font-family: Arial, sans-serif;
        font-size: 29px;
        font-weight: 300;
        line-height: 1;

        cursor: pointer;
    }

    .af-mobile-contact-sheet__text {
        margin: 11px 0 18px;

        color: var(--af-muted);

        font-size: 14px;
        line-height: 1.55;
    }

    .af-mobile-contact-sheet__contacts {
        display: grid;
        gap: 10px;
    }

    .af-mobile-contact-item {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 13px;
        align-items: center;

        min-width: 0;
        min-height: 68px;
        padding: 10px 13px;

        background: #fff;
        border: 1px solid var(--af-line);
        border-radius: 16px;

        box-shadow:
            0 8px 22px rgba(7, 20, 40, .06);
    }

    .af-mobile-contact-item__icon {
        display: grid;
        place-items: center;

        width: 48px;
        height: 48px;

        color: #fff;
        background:
            linear-gradient(
                145deg,
                var(--af-red),
                var(--af-red-dark)
            );

        border-radius: 14px;

        font-size: 18px;
    }

    .af-mobile-contact-item__content {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 2px;
    }

    .af-mobile-contact-item__content small {
        color: var(--af-muted);
        font-size: 11px;
        line-height: 1.3;
    }

    .af-mobile-contact-item__content strong {
        overflow: hidden;

        color: var(--af-navy);

        font-size: 14px;
        line-height: 1.35;
        font-weight: 850;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .af-mobile-contact-item > .fa-chevron-right {
        color: #9aa7b8;
        font-size: 11px;
    }

    .af-mobile-contact-sheet__socials {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;

        margin-top: 14px;
    }

    .af-mobile-contact-social {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;

        min-height: 52px;
        padding: 8px 12px;

        background: #fff;
        color: var(--af-navy);

        border: 1px solid var(--af-line);
        border-radius: 14px;

        font-size: 13px;
        line-height: 1;
        font-weight: 800;

        box-shadow:
            0 7px 18px rgba(7, 20, 40, .05);
    }

    .af-mobile-contact-social i {
        font-size: 21px;
    }

    .af-mobile-contact-social--telegram i {
        color: #229ed9;
    }

    .af-mobile-contact-social--whatsapp i {
        color: #25d366;
    }

    .af-mobile-contact-social--vk i {
        color: #0077ff;
    }

    .af-mobile-contact-social--max img {
        display: block;
        width: 23px;
        height: 23px;
        object-fit: contain;
    }

    .af-mobile-contact-sheet__application {
        margin-top: 16px;
        min-height: 54px;
    }
}