/* ============================================================================
   [AI-AGENT] STYLE.CSS v3 — современный дизайн "Такси Стар"
   ----------------------------------------------------------------------------
   УЛУЧШЕНИЯ v3:
   1. Фоновые картинки в hero с overlay
   2. Увеличенные отступы между секциями (breathing space)
   3. Градиенты и стекломорфизм
   4. Современные тени и hover-эффекты
   5. Разделители секций через background + padding
   6. Займ: "деньги без процентов до зарплаты"
   7. Улучшенная типографика (больше line-height, letter-spacing)
   8. Breadcrumbs для внутренних страниц
   ========================================================================== */

/* ============ [BLOCK] TOKENS ============ */
:root {
    --yellow:      #FFD400;
    --yellow-dark: #F2B705;
    --yellow-soft: #FFF7CC;
    --yellow-glow: rgba(255, 212, 0, .25);
    
    --black:       #0A0A0A;
    --black-soft:  #1A1A1A;
    --white:       #FFFFFF;
    --gray-bg:     #F8F9FA;
    --gray-dark:   #E9ECEF;
    --border:      #E7E7E3;
    
    --text:        #111111;
    --text-light:  #6C757D;
    --muted:       #6B6B66;

    --radius-2xl: 32px;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow-xs: 0 1px 3px rgba(10, 10, 10, .04);
    --shadow-sm: 0 4px 12px rgba(10, 10, 10, .08);
    --shadow-md: 0 8px 28px rgba(10, 10, 10, .12);
    --shadow-lg: 0 16px 48px rgba(10, 10, 10, .16);
    --shadow-xl: 0 24px 64px rgba(10, 10, 10, .20);
    
    --shadow-yellow: 0 8px 28px rgba(255, 212, 0, .35);
    
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --header-h: 70px;
    --section-pad: 64px;
}

/* ============ [BLOCK] BASE ============ */
* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { 
    margin-top: 0; 
    line-height: 1.2; 
    letter-spacing: -.025em;
    font-weight: 800;
}

h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; }
h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 16px; }
h3 { font-size: clamp(20px, 3vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }

::selection { background: var(--yellow); color: var(--black); }

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* Увеличенные отступы между секциями */
.section { 
    padding: var(--section-pad) 0;
    scroll-margin-top: calc(var(--header-h) + 20px);
    position: relative;
}

.section--gray { 
    background: var(--gray-bg);
    border-top: 1px solid var(--gray-dark);
    border-bottom: 1px solid var(--gray-dark);
}

.section--black { 
    background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
    color: var(--white);
}

.section--yellow {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
    color: var(--black);
}

.section__head { 
    margin-bottom: 40px;
    max-width: 700px;
}

.section__head p { 
    color: var(--text-light); 
    font-size: 17px;
    line-height: 1.6;
}

.section--black .section__head p { 
    color: rgba(255, 255, 255, .75); 
}

/* Жёлтый маркер под заголовками */
.section__title { 
    position: relative; 
    display: inline-block; 
    padding-bottom: 16px;
}

.section__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 6px;
    background: var(--yellow);
    border-radius: 999px;
}

/* Фирменная шашка */
.taxi-stripe {
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        var(--black) 0 12px,
        var(--yellow) 12px 24px
    );
}

/* ============ [BLOCK] BUTTONS (обновлённые) ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    box-shadow: var(--shadow-xs);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active { 
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-sm { 
    min-height: 44px; 
    padding: 10px 20px; 
    font-size: 15px; 
}

.btn-lg {
    min-height: 60px;
    padding: 16px 32px;
    font-size: 17px;
}

.btn-black { 
    background: var(--black); 
    color: var(--yellow);
    box-shadow: var(--shadow-md);
}

.btn-black:hover { 
    background: var(--black-soft);
    box-shadow: var(--shadow-lg);
}

.btn-yellow { 
    background: var(--yellow); 
    color: var(--black);
    box-shadow: var(--shadow-yellow);
}

.btn-yellow:hover { 
    background: var(--yellow-dark);
    box-shadow: 0 12px 36px rgba(255, 212, 0, .45);
}

.btn-outline { 
    background: transparent; 
    border-color: var(--black); 
    color: var(--black);
}

.btn-outline:hover { 
    background: var(--black); 
    color: var(--yellow);
    border-color: var(--black);
}

.btn-ghost { 
    background: var(--white); 
    border-color: var(--border); 
    color: var(--black);
}

.btn-ghost:hover { 
    border-color: var(--black);
    box-shadow: var(--shadow-md);
}

.btn-white { 
    background: var(--white); 
    color: var(--black);
    box-shadow: var(--shadow-md);
}

/* ============ [BLOCK] HEADER (обновлённый) ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.header.is-scrolled { 
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -.03em;
    flex: 0 0 auto;
    transition: transform .2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo__badge {
    background: var(--yellow);
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
}

/* Desktop nav */
.nav { 
    display: none; 
    margin-left: auto;
    margin-right: 24px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__item { position: relative; }

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.nav__link:hover { 
    background: var(--gray-bg);
    color: var(--black);
}

.nav__link.active { 
    background: var(--yellow-soft);
    color: var(--black);
}

.caret { 
    transition: transform .3s ease;
    width: 12px;
    height: 8px;
}

.nav__item.open .caret,
.nav__item:hover .caret { 
    transform: rotate(180deg);
}

/* Dropdown desktop */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 50;
}

.nav__item:hover .dropdown,
.nav__item.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.dropdown a:hover { 
    background: var(--yellow-soft);
    padding-left: 20px;
}

.header__cta { 
    display: none; 
    flex: 0 0 auto;
}

/* Бургер */
.burger {
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--yellow);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: var(--shadow-sm);
}

.burger:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.burger:active { 
    transform: scale(.95);
}

.burger span {
    width: 22px;
    height: 2.5px;
    background: var(--black);
    border-radius: 999px;
    transition: all .3s ease;
}

.burger.is-open span:nth-child(1) { 
    transform: translateY(8.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) { 
    opacity: 0;
}

.burger.is-open span:nth-child(3) { 
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============ [BLOCK] BREADCRUMBS ============ */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs__item:not(:last-child)::after {
    content: '›';
    color: var(--muted);
    font-weight: 600;
}

.breadcrumbs__link {
    color: var(--text-light);
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumbs__link:hover {
    color: var(--black);
}

.breadcrumbs__current {
    color: var(--text);
    font-weight: 600;
}

/* ============ [BLOCK] MOBILE MENU ============ */
.mobile-menu {
    position: fixed;
    inset: 0;
    top: calc(var(--header-h) + 8px);
    background: var(--white);
    z-index: 900;
    padding: 24px 20px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    visibility: hidden;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.is-open { 
    transform: translateX(0);
    visibility: visible;
}

.m-link,
.m-acc__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 8px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: all .2s ease;
}

.m-link:hover,
.m-acc__btn:hover {
    color: var(--black);
    padding-left: 12px;
}

.m-acc__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
}

.m-acc.is-open .m-acc__body { 
    max-height: 320px;
}

.m-acc.is-open .caret { 
    transform: rotate(180deg);
}

.m-acc__body a {
    display: block;
    padding: 14px 8px 14px 24px;
    border-bottom: 1px dashed var(--border);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    text-decoration: none;
    transition: all .2s ease;
}

.m-acc__body a:last-child { 
    border-bottom: 0;
}

.m-acc__body a:hover { 
    color: var(--black);
    padding-left: 32px;
}

.mobile-menu__cta { 
    margin-top: 32px;
}

.mobile-menu__cta .btn { 
    width: 100%;
}

/* ============ [BLOCK] HERO (с фоновой картинкой) ============ */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Фоновая картинка с overlay */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, .85) 0%, rgba(10, 10, 10, .7) 100%),
        url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?w=1600&q=80') center/cover no-repeat;
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero__content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero__grid { 
    display: grid;
    gap: 48px;
    align-items: center;
    grid-template-columns: 1fr;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--yellow);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    animation: fadeUp .6s ease both;
    box-shadow: var(--shadow-yellow);
}

.hero__badge::before {
    content: '⚡';
    font-size: 16px;
}

.hero h1 { 
    color: var(--white);
    animation: fadeUp .6s .1s ease both;
}

.hero__text {
    font-size: 19px;
    color: rgba(255, 255, 255, .9);
    max-width: 600px;
    line-height: 1.7;
    animation: fadeUp .6s .2s ease both;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
    animation: fadeUp .6s .3s ease both;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    animation: fadeUp .6s .4s ease both;
}

.hero__badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

/* Визуальная карточка героя */
.hero__visual {
    position: relative;
    border-radius: var(--radius-2xl);
    background: linear-gradient(160deg, var(--yellow) 0%, #FFE566 100%);
    padding: 40px;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: fadeUp .7s .3s ease both;
    border: 4px solid var(--white);
}

.hero__visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    background: repeating-linear-gradient(
        45deg,
        var(--black) 0 14px,
        transparent 14px 28px
    );
}

.hero__car { 
    font-size: 120px;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .25));
    animation: float 3s ease-in-out infinite;
}

/* Плавающие чипы на карточке */
.float-chip {
    position: absolute;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.float-chip--1 { 
    top: 32px;
    left: 24px;
    animation-delay: 0s;
}

.float-chip--2 { 
    bottom: 40px;
    right: 24px;
    animation-delay: 1.5s;
}

.float-chip--3 { 
    top: 50%;
    right: -8px;
    animation-delay: 2.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes fadeUp {
    from { 
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ [BLOCK] BADGES / CHIPS ============ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.badge:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-sm);
}

.chips { 
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

.chip:hover { 
    background: var(--yellow);
    border-color: var(--yellow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============ [BLOCK] CARDS ============ */
.cards { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card__title { 
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.card__price { 
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--black);
}

.card p { 
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ============ [BLOCK] TABS ============ */
.tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 8px;
    background: var(--gray-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-dark);
}

.tabs__btn {
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all .25s ease;
    flex: 1;
    min-width: 140px;
}

.tabs__btn:hover { 
    background: var(--white);
    border-color: var(--border);
}

.tabs__btn.is-active {
    background: var(--black);
    border-color: var(--black);
    color: var(--yellow);
    box-shadow: var(--shadow-md);
}

.tab-panel { 
    display: none;
    animation: fadeUp .4s ease both;
}

.tab-panel.is-active { 
    display: block;
}

/* ============ [BLOCK] CAR CARDS ============ */
.cars-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cars-scroll::-webkit-scrollbar {
    height: 8px;
}

.cars-scroll::-webkit-scrollbar-track {
    background: var(--gray-bg);
    border-radius: 999px;
}

.cars-scroll::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 999px;
}

.car-card {
    scroll-snap-align: start;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.car-card:hover { 
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}

.car-card__image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    background: linear-gradient(150deg, var(--yellow) 0%, #FFE566 100%);
    position: relative;
    overflow: hidden;
}

.car-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .1) 100%);
}

.car-card__body { 
    padding: 24px;
}

.car-card__title { 
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.car-card__class { 
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.car-card__price { 
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--black);
}

.car-card__badges { 
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.car-card__btn { 
    width: 100%;
}

/* ============ [BLOCK] LOAN BOX (обновлённый: "деньги до зарплаты") ============ */
.loan-box {
    background: var(--white);
    border: 2px solid var(--border);
    border-left: 6px solid var(--yellow);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 680px;
    box-shadow: var(--shadow-sm);
}

.loan-box__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--yellow-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.loan-box__tag::before {
    content: '💰';
    font-size: 16px;
}

.loan-box__title { 
    font-size: 24px;
    margin-bottom: 12px;
}

.loan-box__text { 
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.loan-box__controls {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.loan-box__row { 
    display: grid;
    gap: 12px;
}

.loan-box__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
}

.loan-box__label strong {
    color: var(--black);
    font-size: 18px;
    background: var(--yellow-soft);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

.loan-box input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--gray-dark);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.loan-box input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
    transition: all .2s ease;
}

.loan-box input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-yellow);
}

.loan-box input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
}

.loan-box__result {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--gray-bg);
    border: 2px solid var(--gray-dark);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.loan-box__result-item {
    display: grid;
    gap: 4px;
}

.loan-box__result-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.loan-box__result-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
}

.loan-box__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-dark);
}

.loan-box__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.loan-box__feature::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--yellow);
    border-radius: 50%;
    font-weight: 800;
    font-size: 14px;
}

.disclaimer { 
    font-size: 13px;
    color: var(--text-light);
    margin: 16px 0 0;
    line-height: 1.5;
}

/* ============ [BLOCK] STEPS ============ */
.steps { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all .3s ease;
}

.step:hover { 
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--yellow);
}

.step__num {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow);
    border-radius: 50%;
    font-weight: 800;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.step__content h4 {
    margin-bottom: 6px;
}

.step__content p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
}

/* ============ [BLOCK] FAQ ============ */
.faq-item {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    transition: all .3s ease;
}

.faq-item:hover {
    border-color: var(--yellow);
    box-shadow: var(--shadow-sm);
}

.faq-item[open] { 
    border-color: var(--yellow);
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 20px 56px 20px 24px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.5;
}

.faq-item summary::-webkit-details-marker { 
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 800;
    color: var(--yellow);
    background: var(--yellow-soft);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .3s ease;
}

.faq-item[open] summary::after { 
    content: '–';
    background: var(--yellow);
    color: var(--black);
}

.faq-item__answer { 
    padding: 0 24px 24px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ============ [BLOCK] GEO ============ */
.geo-subtitle { 
    margin: 28px 0 14px;
    font-size: 18px;
    font-weight: 700;
}

/* ============ [BLOCK] RELATED LINKS (перелинковка) ============ */
.related {
    padding: 48px 0;
    background: var(--gray-bg);
    border-top: 1px solid var(--gray-dark);
    border-bottom: 1px solid var(--gray-dark);
}

.related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.related__card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    transition: all .3s ease;
}

.related__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--yellow);
}

.related__card h4 {
    margin-bottom: 8px;
    color: var(--black);
}

.related__card p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* ============ [BLOCK] FINAL CTA ============ */
.final-cta { 
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.final-cta h2 { 
    color: var(--yellow);
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
}

.final-cta p { 
    color: rgba(255, 255, 255, .85);
    font-size: 18px;
    margin-bottom: 32px;
}

.final-cta .hero__actions { 
    justify-content: center;
    margin-top: 32px;
}

/* ============ [BLOCK] FOOTER ============ */
.footer {
    background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
    color: var(--white);
    padding: 64px 0 120px;
}

.footer__top { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer__logo { 
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer p { 
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    line-height: 1.7;
}

.footer h3 { 
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--yellow);
    font-weight: 700;
}

.footer a { 
    display: block;
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 15px;
    transition: all .2s ease;
}

.footer a:hover { 
    color: var(--yellow);
    padding-left: 6px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .15);
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.6;
}

/* ============ [BLOCK] STICKY CTA ============ */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    border-top: 2px solid var(--border);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, .12);
}

/* ============ [BLOCK] SCROLL REVEAL ============ */
.reveal { 
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible { 
    opacity: 1;
    transform: none;
}

/* ============ [BLOCK] RESPONSIVE ============ */
@media (min-width: 768px) {
    :root {
        --section-pad: 80px;
    }
    
    .hero {
        padding: 120px 0 140px;
        min-height: 700px;
    }
    
    .hero__grid { 
        grid-template-columns: 1.1fr .9fr;
        gap: 64px;
    }
    
    .cards { 
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cards--3 { 
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps { 
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__top { 
        grid-template-columns: repeat(3, 1fr);
    }
    
    .loan-box__controls {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    :root {
        --section-pad: 96px;
    }
    
    .hero {
        padding: 160px 0 180px;
        min-height: 800px;
    }
    
    .burger { 
        display: none;
    }
    
    .mobile-menu { 
        display: none;
    }
    
    .nav { 
        display: block;
    }
    
    .header__cta { 
        display: inline-flex;
    }
    
    .cards { 
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cards--3 { 
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cars-scroll {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
    }
    
    .steps { 
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer__top { 
        grid-template-columns: 1.4fr .9fr .9fr 1.1fr;
        gap: 48px;
    }
    
    .sticky-cta { 
        display: none;
    }
    
    .loan-box {
        padding: 40px;
    }
}

/* ============ [BLOCK] A11Y / MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    
    html { 
        scroll-behavior: auto;
    }
    
    .hero__bg {
        animation: none;
    }
}
/* ============================================================================
   [PATCH v3.1] — исправления по скринам + стили внутренних страниц
   [AI-AGENT] Не удалять. Новые правки добавлять новыми блоками [PATCH vN].
   ========================================================================== */

/* --- Карточки авто: ОДИНАКОВАЯ высота, кнопка прижата к низу --- */
.cars-scroll { align-items: stretch; }

.car-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.car-card__badges { margin-bottom: 18px; }

.car-card__btn { margin-top: auto; }

/* --- Компактные бейджи преимуществ (были огромные) --- */
.badge {
    min-height: 26px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-width: 1px;
    gap: 4px;
}

/* --- Hero БЕЗ визуальной карточки (убрана по ТЗ) --- */
.hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 860px;
}

.hero__visual,
.float-chip { display: none !important; }

/* --- Hero внутренних страниц --- */
.page-hero {
    padding: 56px 0 48px;
    background: linear-gradient(180deg, var(--gray-bg) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-dark);
}

.page-hero h1 {
    font-size: clamp(28px, 4.5vw, 46px);
    margin-bottom: 16px;
}

.page-hero p {
    color: var(--text-light);
    font-size: 17px;
    max-width: 760px;
}

.page-hero .hero__actions { margin-top: 28px; }

/* --- Ссылка-карточка (для хабов и перелинковки) --- */
a.card { text-decoration: none; display: block; }