:root {
    /* Основной фон сайта */
    --bg: #0B0D10;

    /* Фон карточек */
    --card: #161A20;

    /* Основной текст */
    --ink: #F5F7FA;

    /* Второстепенный текст */
    --mute: #A7AFBA;

    /* Линии, границы */
    --line: #292F38;

    /* Основной акцент / кнопки */
    --acc: #3B82F6;

    /* Текст на акцентных кнопках */
    --acc-ink: #FFFFFF;

    /* Дополнительный тёмный цвет */
    --sea: #101318;

    /* Текст на дополнительном фоне */
    --sea-ink: #F5F7FA;

    /* Статусы */
    --success: #22C55E;
    /* В наличии */
    --warning: #F59E0B;
    /* В пути */
    --danger: #EF4444;
    /* Продано */

    --faq-bg: #101318;          /* фон секции */
    --faq-card: #161A20;        /* карточка вопроса */
    --faq-card-hover: #1C2129;  /* при наведении */
    --faq-title: #F5F7FA;       /* вопрос */
    --faq-text: #A7AFBA;        /* ответ */
    --faq-line: #292F38;        /* граница */
    --faq-icon: #3B82F6; 


    --modal-bg: #101318;          /* основной фон окна */
    --modal-card: #161A20;        /* блоки характеристик */
    --modal-border: #292F38;      /* границы */
    
    --modal-title: #F5F7FA;       /* BMW / M440 */
    --modal-text: #A7AFBA;        /* описание и подписи */
    --modal-value: #F5F7FA;       /* значения характеристик */
    
    --modal-accent: #3B82F6;      /* акцент */
    --modal-price: #F5F7FA;       /* цена */

    box-sizing: border-box;

    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
    touch-action: manipulation;
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.55 Onest, system-ui, sans-serif
}

h1,
h2,
h3 {
    font-family: Unbounded, Onest, system-ui, sans-serif;
    line-height: 1.15;
    margin: 0
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--acc);
    outline-offset: 2px
}

.cars-section {
    padding: 10px;
}

.cars {
    display: block;
}

.auto-cards {
    position: relative;
    padding: 10px;
    align-items: center;
    justify-content: center;
    ;
}

.auto-cards img {
    width: 80%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0
}

.logo {
    font: 700 18px Unbounded, sans-serif;
    text-decoration: none
}

nav {
    display: flex;
    gap: 22px;
    align-items: center;
    font-weight: 500
}

nav a {
    text-decoration: none;
    color: var(--mute)
}

nav a:hover {
    color: var(--ink)
}

.btn {
    display: inline-block;
    background: var(--acc);
    color: var(--acc-ink);
    border: 0;
    border-radius: 8px;
    padding: 13px 22px;
    font: 600 16px Onest, sans-serif;
    text-decoration: none;
    cursor: pointer
}

.btn:hover {
    filter: brightness(1.08)
}

.btn {
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin: 0 10px;
    user-select: none;
    margin-bottom: 10px;
}

.btn.primary {
    background-color: #ffc727;
    color: #222;
    box-shadow: 0 4px 12px rgba(255, 199, 39, 0.4);
}

.btn.primary:hover {
    background-color: #ffb400;
    box-shadow: 0 6px 16px rgba(255, 180, 0, 0.5);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: #ffc727;
    border: 2px solid #ffc727;
}

.btn.secondary:hover {
    background-color: #fff8e1;
    color: #222;
    border-color: #ffb400;
    transform: translateY(-2px);
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
}


@media(max-width:768px) {
    .slider {
        width: 100%;
        height: 500px;
    }

    .slider {
        border-radius: 10px;
    }

    .btn {
        margin: 5px;
    }

    .bottom-center {
        width: 80%;
        border-radius: 10px;
    }

    .bottom-center::before {
        left: -20px;
        bottom: -20px;
        mask: radial-gradient(20px at top left, #0000 98%, #000);
    }

    .bottom-center::after {
        right: -20px;
        bottom: -20px;
        mask: radial-gradient(20px at top right, #0000 98%, #000);
    }
}

@media(max-width:414px) {
    .bottom-center {
        border-radius: 10px 10px 0 0;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    .bottom-center::before,
    .bottom-center::after {
        display: none;
    }

}

.map-text-div {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
}

.map-photo img {
    width: 600px;
    height: 400px;
    border-radius: 15px;
    margin: 20px;
}

.text {
    display: block;
}

.text h1 {
    text-align: center;
}

.text p {
    font-weight: 900;
    font-size: 30px;
}

@media(max-width:414px) {
    .text p {
        font-size: 20px;
    }
}

@media(max-width:760px) {
    .text p {
        font-size: 20px;
    }
}

.reviews {
  position: relative;
  overflow: hidden;

  padding: 120px 8%;
  min-height: 700px;

  background: var(--bg);
  color: #fff;
}

/* Контент */
.reviews__content {
  position: relative;
  z-index: 2;

  max-width: 1100px;
  margin: 0 auto;
}

.reviews__label {
  font-size: 12px;
  letter-spacing: .2em;
  opacity: .6;
}

.reviews h2 {
  margin: 20px 0 15px;

  font-size: clamp(36px, 4vw, 70px);
  line-height: .95;
  letter-spacing: -.04em;
}

.reviews__subtitle {
  max-width: 500px;

  color: rgba(255,255,255,.6);
}

/* Отзывы */
.reviews__cards {
  display: flex;
  gap: 20px;

  margin-top: 60px;
}

.review {
  position: relative;

  width: 320px;
  padding: 28px;

  background-image: url(anim-TRX.PNG);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;

  backdrop-filter: blur(15px);
}

.review__stars {
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.review p {
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}

.review__author {
  display: flex;
  flex-direction: column;

  margin-top: 30px;
}

.review__author span {
  margin-top: 5px;

  font-size: 13px;
  color: rgba(255,255,255,.45);
}


/* Телефон */
@media (max-width: 768px) {

  .reviews {
    padding: 80px 20px;
  }

  .reviews__cards {
    flex-direction: column;
  }

  .review {
    width: 100%;
  }
}

.delivery-her-section {
    padding: 10px;
}

.delivery-her {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
    padding: 36px 0 64px
}

.delivery-her h1 {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 700
}

.delivery-her p {
    color: var(--mute);
    font-size: 18px;
    max-width: 46ch;
    margin: 18px 0 26px
}

.trk {
    background: var(--sea);
    color: var(--sea-ink);
    border-radius: 14px;
    padding: 24px
}

.trk small {
    opacity: .7
}

.trk h3 {
    font-size: 17px;
    margin: 4px 0 20px
}

.st {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    position: relative
}

.st:before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, .2)
}

.st li {
    position: relative;
    padding: 7px 0;
    opacity: .6
}

.st li:before {
    content: "";
    position: absolute;
    left: -22px;
    top: 13px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sea);
    border: 2px solid rgba(255, 255, 255, .4)
}

.st li.done {
    opacity: 1
}

.st li.done:before {
    background: #5BC29B;
    border-color: #5BC29B
}

.st li.now {
    opacity: 1;
    font-weight: 600
}

.st li.now:before {
    background: var(--acc);
    border-color: var(--acc);
    animation: p 1.8s infinite
}

.st span {
    float: right;
    font-size: 14px;
    opacity: .75
}

@keyframes p {
    50% {
        box-shadow: 0 0 0 7px rgba(228, 87, 46, .25)
    }
}

@media (prefers-reduced-motion:reduce) {
    .st li.now:before {
        animation: none
    }

    html {
        scroll-behavior: auto
    }
}

.car-cards {
    width: 100%;
    max-width: 350px;
    perspective: 1000px;
    -webkit-tap-highlight-color: transparent;
}

.car-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* ===== КАРТОЧКИ АВТОМОБИЛЕЙ ===== */

/* Компьютер и большой экран */
section#cars .car-cards {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;


width: 100%;
max-width: 1200px;
margin: 30px auto;
padding: 0 24px;
box-sizing: border-box;


}

/* Каждая карточка */
section#cars .car-card {
width: 100%;
min-width: 0;
box-sizing: border-box;
overflow: hidden;
}

/* Фотографии автомобилей */
section#cars .car-card img {
display: block;
width: 100%;
height: 250px;
object-fit: cover;
}

/* Планшеты */
@media (max-width: 900px) {
section#cars .car-cards {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
padding: 0 20px;
}
}

/* Телефоны */
@media (max-width: 600px) {
section#cars .car-cards {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 20px;


    width: 100%;
    margin: 20px auto;
    padding: 0 16px;
}

section#cars .car-card {
    width: 100%;
    min-width: 0;
}

section#cars .car-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}


}


.car-image {
    position: relative;
    width: 100px;
    height: 220px;
    overflow: hidden;
}

.car-img img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
}

.bage-card {
    position: absolute;
    top: 14px;
    right: 14px;

    background: var(--success);
    border-radius: 20px;
    padding: 7px 11px;

    backdrop-filter: blur(10px);

    font-size: 11px;
    font-weight: 700;
}

.car-body {
    position: relative;
    padding: 18px;
    z-index: 2;
}

.body-top {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 10px;
}

.car-company {
    display: block;
    color: #888;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
}

.car-cards h3 {
    margin: 5px 0 0;
    font-size: 24px;
    color: white;
    line-height: 1.2;
}

.car-year {
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    color: #aaa;
    font-size: 12px;
}

.car-spaces {
    position: relative;
    padding: 15px 5px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.car-spaces span {
    background: rgba(255, 255, 255, .07);
    gap: 5px;
    padding: 7px 9px;
    color: #aaa;
    border-radius: 20px;
    font-size: 15px;
}

.card-bottom {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 50px;
}

.card-bottom small {
    font-weight: 500;
    font-size: 20px;
    padding: 10px;
}

.card-bottom button {
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    padding: 7px 5px;
    background: var(--acc);
    color: var(--ink);
}

section {
    padding: 52px 0
}





.bd.way {
    background: #2F6FDB
}

.bd.stock {
    background: #1E9E6A
}

.bd.sold {
    background: #7C8A90
}



.flt {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: -6px 0 20px;
    font-size: 15px
}

.flt button {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--mute);
    padding: 4px 0;
    font: 500 15px Onest, sans-serif;
    cursor: pointer
}

.flt button[aria-pressed="true"] {
    color: var(--ink);
    border-color: var(--acc)
}

label {
    display: block;
    font-size: 14px;
    color: var(--mute);
    margin-bottom: 6px
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px Onest, sans-serif;
    margin-bottom: 14px
}

.wrap h2 {
    font-size: 36px;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    counter-reset: s;
    padding: 10px;
    list-style: none
}

.steps li {
    border-top: 3px solid var(--acc);
    padding-top: 12px;
    counter-increment: s
}

.steps li:before {
    content: counter(s);
    font: 700 22px Unbounded, sans-serif;
    color: var(--acc)
}

.steps b {
    display: block;
    margin: 6px 0 4px
}

.steps span {
    color: var(--mute);
    font-size: 15px
}

.cta {
    background: var(--sea);
    color: var(--sea-ink);
    border-radius: 16px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.cta h2 {
    font-size: 26px
}

.cta p {
    opacity: .75
}

.cta input {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    color: inherit
}

.cta input::placeholder {
    color: rgba(255, 255, 255, .5)
}

#ok {
    margin-top: 10px;
    color: #5BC29B;
    min-height: 24px
}

.faq {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px;
    background: var(--faq-card);
}

.faq-section {
    background: var(--faq-bg);
}

details.qa {
    border-bottom: 1px solid var(--line)
}

details.qa summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 4px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--faq-title)
}

details.qa summary::-webkit-details-marker {
    display: none
}

details.qa .pl {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1.5px solid var(--faq-line);
    background: rgba(22, 163, 74, .1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faq-icon);
    font-weight: 800;
    transition: transform .25s, background .25s, color .25s;
    font-size: 16px
}

details.qa[open] summary {
    color: #6C4CF1
}

details.qa[open] .pl {
    transform: rotate(45deg);
    background: linear-gradient(120deg, #6C4CF1, #8B6CF6);
    border-color: transparent;
    color: #fff
}

details.qa .ans {
    padding: 0 4px 24px;
    color: var(--faq-text);
    line-height: 1.65;
    max-width: 760px
}

.pl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.pl svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

footer {
    padding: 30px 0 40px;
    color: var(--mute);
    font-size: 14px
}

@media (max-width:760px) {

    .delivery-her,
    .map-text-div,
    .cta {
        grid-template-columns: 1fr
    }

    .map-photo img {
        width: 350px;
        height: 200px;
    }

    .steps {
        grid-template-columns: 1fr 1fr
    }

    nav a:not(.btn) {
        display: none
    }
}

/* ========================================
   RESET
======================================== */

/* =========================================================
   STRADA RENTAL HERO
   ========================================================= */

/* =========================================================
   ANIMATED HERO
   ========================================================= */

.anim-hero {
    position: relative;
    width: 100%;
    min-height: 760px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 45%,
            rgba(190, 235, 60, 0.10),
            transparent 30%),
        radial-gradient(circle at 50% 100%,
            rgba(255, 255, 255, 0.03),
            transparent 35%),
        #070907;
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.anim-hero .hero-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 760px;
    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(280px, 0.9fr) minmax(350px, 1.2fr) minmax(220px, 0.6fr);

    grid-template-rows:
        1fr auto;

    grid-template-areas:
        "text car info"
        "booking booking booking";

    gap: 20px;
    align-items: center;
}


/* =========================================================
   TEXT
   ========================================================= */

.anim-hero .hero-text {
    grid-area: text;
    position: relative;
    z-index: 5;

    width: 100%;
    padding: 0;
}

.anim-hero .eyebrow {
    color: #858a82;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 700;
}

.anim-hero .hero-text h1 {
    margin-top: 20px;

    max-width: 600px;

    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.95;
    letter-spacing: -4px;
    font-weight: 800;
}

.anim-hero .hero-description {
    max-width: 390px;
    margin-top: 28px;

    color: #858a85;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   CAR TYPE BUTTONS
   ========================================================= */

.anim-hero .car-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 32px;
}

.anim-hero .car-type {
    height: 38px;

    padding: 0 16px;

    border: 1px solid #292e28;
    border-radius: 8px;

    background: #101310;
    color: #747a73;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .2s ease;
}

.anim-hero .car-type:hover {
    color: white;
    border-color: #50574d;
}

.anim-hero .car-type.active {
    background: #c9f542;
    color: #101210;
    border-color: #c9f542;
}


/* =========================================================
   CAR STAGE
   ========================================================= */

.anim-hero .car-stage {
    grid-area: car;

    position: relative;

    width: 100%;
    min-width: 0;
    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.anim-hero .car-glow {
    position: absolute;

    width: 480px;
    height: 220px;

    border-radius: 50%;

    background:
        radial-gradient(ellipse,
            rgba(190, 235, 60, .14),
            transparent 70%);

    filter: blur(25px);

    pointer-events: none;
}

.anim-hero .car-image {
    position: relative;

    width: 100%;
    max-width: 650px;
    height: 430px;

    object-fit: contain;

    z-index: 3;

    user-select: none;
    pointer-events: none;

    opacity: 1;

    transform: translateX(0) scale(1);

    filter:
        drop-shadow(0 35px 35px rgba(0, 0, 0, .65));

    transition:
        transform .75s cubic-bezier(.77, 0, .18, 1),
        opacity .45s ease,
        filter .55s ease;
}


/* Старая машина */

.anim-hero .car-image.exit {
    transform:
        translateX(120%) scale(.72);

    opacity: 0;


}


/* Новая машина */

.anim-hero .car-image.enter {
    transform:
        translateX(-120%) scale(.72);

    opacity: 0;


}


/* Активная машина */

.anim-hero .car-image.active {
    transform:
        translateX(0) scale(1);

    opacity: 1;


}


/* =========================================================
   CAR SHADOW
   ========================================================= */

.anim-hero .car-shadow {
    position: absolute;

    z-index: 1;

    bottom: 55px;

    width: 65%;
    height: 35px;

    border-radius: 50%;

    background: rgba(0, 0, 0, .8);

    filter: blur(20px);
}


/* =========================================================
   CAR INFO
   ========================================================= */

.anim-hero .car-info {
    grid-area: info;

    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 260px;

    align-self: center;
}

.anim-hero .car-info-top {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

.anim-hero .car-label {
    color: #c9f542;

    font-size: 8px;
    letter-spacing: 2px;
}

.anim-hero .car-number {
    color: #41463e;

    font-size: 28px;
    font-weight: 800;
}

.anim-hero .car-info h2 {
    margin-top: 5px;

    font-size: 22px;
    letter-spacing: -.5px;
}

.anim-hero .car-info p {
    margin-top: 8px;

    color: #777d76;

    font-size: 11px;
    line-height: 1.5;
}

.anim-hero .car-specs {
    display: flex;

    gap: 25px;

    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid #252a24;
}

.anim-hero .car-specs div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.anim-hero .car-specs strong {
    font-size: 14px;
}

.anim-hero .car-specs span {
    color: #656b64;

    font-size: 7px;
    letter-spacing: 1px;
}


/* =========================================================
   BOOKING
   ========================================================= */

.anim-hero .booking {
    grid-area: booking;

    width: min(720px, 100%);

    margin: 0 auto 35px;

    padding: 12px;

    display: grid;

    grid-template-columns:
        1fr 1fr 150px;

    gap: 10px;
    backdrop-filter: blur(20px);

    position: relative;
    z-index: 10;
}

.anim-hero .book-btn {
    width: 100%;
    height: 40px;

    border: 0;
    border-radius: 10px;

    background: #c9f542;
    color: #11150d;

    font-size: 17px;
    font-weight: 900;
    text-decoration: none;
    text-align: center;

    cursor: pointer;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .anim-hero .hero-content {
        width: calc(100% - 40px);

        grid-template-columns:
            1fr 1fr;

        grid-template-areas:
            "text car"
            "info info"
            "booking booking";
    }

    .anim-hero .car-info {
        max-width: 100%;
    }

    .anim-hero .car-stage {
        height: 430px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .anim-hero {
        min-height: 0;
        padding: 30px 0;
    }

    .anim-hero .hero-content {
        width: calc(100% - 28px);
        min-height: 0;

        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .anim-hero .hero-text {
        order: 1;
        width: 100%;
    }

    .anim-hero .hero-text h1 {
        max-width: 100%;

        font-size: 39px;
        line-height: .95;
        letter-spacing: -2px;
    }

    .anim-hero .hero-description {
        max-width: 100%;
        font-size: 12px;
    }

    .anim-hero .car-types {
        overflow-x: auto;
        flex-wrap: nowrap;

        padding-bottom: 5px;

        scrollbar-width: none;
    }

    .anim-hero .car-type {
        flex: 0 0 auto;
    }

    .anim-hero .car-stage {
        order: 2;

        width: 100%;
        height: 250px;
        min-height: 250px;

        margin-top: 10px;
    }

    .anim-hero .car-image {
        width: 100%;
        height: 350px;
    }

    .anim-hero .car-glow {
        width: 350px;
        height: 180px;
    }

    .anim-hero .car-shadow {
        bottom: 20px;
    }

    .anim-hero .car-info {
        order: 3;

        width: 100%;
        max-width: none;

        margin-top: 5px;
    }

    .anim-hero .booking {
        order: 4;

        width: 100%;

        margin-top: 25px;
        margin-bottom: 0;

        grid-template-columns: 1fr 1fr;
    }

    .anim-hero .book-btn {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .anim-hero .hero-text h1 {
        font-size: 34px;
    }

    .anim-hero .car-stage {
        height: 220px;
        min-height: 220px;
    }

    .anim-hero .car-image {
        height: 350px;
    }

    .anim-hero .booking {
        grid-template-columns: 1fr;
    }

    .anim-hero .book-btn {
        grid-column: auto;
    }
}

/* Текст верхнего блока */
.hero-text,
.car-info {
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* Когда старый текст исчезает */
.hero-text.text-exit,
.car-info.text-exit {
    opacity: 0;
    transform: translateY(15px);
}

/* Когда новый текст появляется */
.hero-text.text-enter,
.car-info.text-enter {
    opacity: 0;
    transform: translateY(-15px);
}

/* После появления */
.hero-text.text-active,
.car-info.text-active {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация текста при смене автомобиля */
.hero-text,
.car-info {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.hero-text.text-exit,
.car-info.text-exit {
    opacity: 0;
    transform: translateY(20px);
}

.hero-text.text-enter,
.car-info.text-enter {
    opacity: 0;
    transform: translateY(-20px);
}


/* Отдельно для телефонов */
@media (max-width: 760px) {
    .hero-text,
    .car-info {
        opacity: 1;
        transform: translateY(0);
        transition:
            opacity 0.4s ease,
            transform 0.4s ease;
    }

    .hero-text.text-exit,
    .car-info.text-exit {
        opacity: 0;
        transform: translateY(15px);
    }

    .hero-text.text-enter,
    .car-info.text-enter {
        opacity: 0;
        transform: translateY(-15px);
    }
}

.coffee {
    position: relative;

    width: 1200px;
    height: 720px;

    margin: 0 auto;

    overflow: hidden;

    background: var(--bg);
}

/* Заголовок */

.coffee > h1 {
    position: absolute;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    color: var(--ink);

    font-size: 32px;
    font-weight: 700;
}

/* Информационные блоки */

.info {
    position: absolute;

    width: 390px;

    color: var(--ink);
}

.info h2 {
    position: relative;
    z-index: 2;

    margin-bottom: 12px;

    font-size: 28px;
    line-height: 1.35;
    font-weight: 400;
}

.info p {
    position: relative;
    z-index: 2;

    width: 280px;

    margin-left: 80px;

    color: var(--ink);

    font-size: 15px;
    line-height: 1.55;
}

/* Большие цифры */

.big-number {
    position: absolute;

    left: -25px;
    top: -30px;

    font-size: 190px;
    line-height: 1;

    color: rgb(47, 0, 134);

    font-weight: 700;

    z-index: 0;
}

.info-1 {
    top: 105px;
    left: 60px;
}

.info-2 {
    top: 105px;
    right: 60px;
}

.info-3 {
    top: 405px;
    left: 60px;
}

.info-4 {
    top: 405px;
    right: 60px;
}

@media (max-width: 768px) {

    .coffee {
        width: 100%;
        height: auto;
        min-height: 100vh;

        margin: 0;

        padding: 100px 25px 50px;

        overflow: hidden;
    }

    /* Заголовок */

    .coffee > h1 {
        position: relative;

        top: auto;
        left: auto;

        transform: none;

        text-align: center;

        font-size: 28px;

        margin-bottom: 80px;
    }

    /* Все 4 блока */

    .info {
        position: relative;

        width: 100%;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        margin: 0 0 80px 0;
    }

    /* На всякий случай сбрасываем
       позиционирование каждого блока */

    .info-1,
    .info-2,
    .info-3,
    .info-4 {
        position: relative;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }

    /* Заголовки */

    .info h2 {
        font-size: 24px;
        line-height: 1.3;

        margin-bottom: 15px;
    }

    /* Текст */

    .info p {
        width: 100%;

        margin-left: 0;

        font-size: 14px;
        line-height: 1.6;
    }

    /* Большие цифры */

    .big-number {
        left: -10px;
        top: -40px;

        font-size: 130px;
    }
}

.footer {
  text-align: center;

  padding: 30px 20px;

  color: #888;

  font-size: 14px;
}

footer {
  background: var(--bg2);
  padding: 20px;
  margin: 0 auto;
}

.f-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.f-top h4 {
  font-size: .85rem;
  color: var(--mute);
  font-weight: 600;
  margin-bottom: .8rem
}

.f-top ul {
  list-style: none;
  display: grid;
  gap: .4rem
}

.f-top a:hover {
  text-decoration: underline
}

.f-big {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .85;
  font-size: clamp(4rem, 16vw, 17rem);
  margin: clamp(2rem, 6vw, 4.5rem) 0 1rem;
  white-space: nowrap;
  overflow: hidden;
  opacity: .92;
  font-family:
  -apple-system,
  BlinkMacSystemFont,
  "SF Pro Display",
  "SF Pro Text",
  "Helvetica Neue",
  Arial,
  sans-serif;
}

.f-bot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--mute);
  font-size: .88rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem
}

.f-top a {
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: var();
}

.f-top a:hover {
    text-decoration: none;
}

@media(max-width:860px) {
  .f-top {
    grid-template-columns: 1fr 1fr
  }

  .f-top>:first-child {
    grid-column: 1/-1
  }
}

@media(max-width:463px) {
    .f-top {
        grid-template-columns: none;
    }
}

/* =========================================
   МОДАЛЬНОЕ ОКНО
========================================= */

.car-modal {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 9999;

    padding: 30px 20px;

    background: rgba(0, 0, 0, 0.72);

    align-items: center;
    justify-content: center;

    overflow-y: auto;
}


/* =========================================
   ОСНОВНОЕ ОКНО
========================================= */

.car-modal-box {
    position: relative;

    width: 520px;
    max-width: 100%;

    max-height: 78vh;

    background: #fff;

    border-radius: 18px;

    overflow-y: auto;
    overflow-x: hidden;



    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.3);

    animation: carModalOpen 0.25s ease;
}


@keyframes carModalOpen {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================
   ФОТО
========================================= */

.car-modal-photo {
    position: relative;

    width: 100%;

    height: 390px;

    background: #111;

    overflow: hidden;
}


.car-modal-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================
   КНОПКА ЗАКРЫТИЯ
========================================= */

.car-modal-close {

    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 20;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.6);

    color: #fff;

    font-size: 27px;

    line-height: 1;

    cursor: pointer;

    transition: 0.2s;
}


.car-modal-close:hover {
    background: #000;
}


/* =========================================
   СТРЕЛКИ ФОТО
========================================= */

.modal-arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 44px;
    height: 44px;

    border: none;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);

    color: #fff;

    font-size: 34px;

    line-height: 35px;

    cursor: pointer;

    transition: 0.2s;
}


.modal-arrow:hover {
    background: rgba(0, 0, 0, 0.85);
}


.modal-arrow-left {
    left: 15px;
}


.modal-arrow-right {
    right: 15px;
}


/* =========================================
   ИНФОРМАЦИЯ
========================================= */

.car-modal-info {
    background: var(--modal-bg);
    padding: 24px 28px 28px;
}


.car-modal-info > span {

    display: block;

    margin-bottom: 3px;

    color: #888;

    font-size: 13px;

    font-weight: 500;
}


.car-modal-info h2 {

    margin: 0 0 8px;

    font-size: 30px;

    line-height: 1.2;
}


.car-modal-info p {

    margin: 0 0 20px;

    color: #666;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================
   ХАРАКТЕРИСТИКИ
========================================= */

.modal-car-specs {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 8px;
}


.modal-car-specs div {

    padding: 11px 12px;

    background: var(--modal-card);

    border-radius: 10px;
}


.modal-car-specs small {

    display: block;

    margin-bottom: 4px;

    color: #888;

    font-size: 11px;
}


.modal-car-specs strong {

    display: block;

    font-size: 14px;

    font-weight: 600;
}


/* =========================================
   ЦЕНА
========================================= */

.modal-car-price {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 18px;

    padding-top: 16px;

    border-top: 1px solid #eee;
}


.modal-car-price small {

    color: #888;

    font-size: 13px;
}


.modal-car-price strong {

    font-size: 24px;
}


/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ
========================================= */

@media (max-width: 700px) {
    .car-modal {
        padding: 10px;
    }

    .car-modal-box {
        width: 70%;
        max-height: 72vh;
        border-radius: 15px;
        overflow-y: auto;
    }

    .car-modal-photo {
        height: 260px;
        flex-shrink: 0;
    }

    .car-modal-info {
        padding: 20px;
    }

    .car-modal-info h2 {
        font-size: 25px;
    }

    .modal-car-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-car-price strong {
        font-size: 21px;
    }
}

@media (max-width: 460px) {

    .car-modal {

        padding: 15px;
    }


    .car-modal-box {

        width: 100%;

        max-height: 72vh;

        border-radius: 15px;
    }


    .car-modal-photo {

        height: 260px;
    }


    .car-modal-info {

        padding: 20px;
    }


    .car-modal-info h2 {

        font-size: 25px;
    }


    .modal-car-specs {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .modal-car-price strong {

        font-size: 21px;
    }

}

.car-modal-photo img {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.car-modal-photo img.photo-changing {
    opacity: 0;
    transform: scale(0.98);
}

/* ===== КАТЕГОРИИ АВТОМОБИЛЕЙ ===== */

.car-categories {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 12px;
max-width: 1200px;
margin: 30px auto;
padding: 0 24px;
box-sizing: border-box;
}

.car-category {
padding: 12px 24px;
border: 1px solid #333;
border-radius: 8px;
background: transparent;
color: inherit;
font: inherit;
cursor: pointer;
transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.car-category:hover,
.car-category.active {
background: #c8a96a;
color: #111;
border-color: #c8a96a;
}

.car-card[hidden] {
display: none !important;
}

@media (max-width: 600px) {
.car-categories {
gap: 8px;
padding: 0 16px;
}


.car-category {
    padding: 10px 16px;
}


}