/* ============================================================
   Прокат авто Став
   Система: navy #1a2b3c + один акцент #3a6ea5, Montserrat.
   Радиусы: кнопки и чипы pill, карты 20px, поля 14px.
   Движение: только transform/opacity, сильный ease-out.
   ============================================================ */

:root {
    --navy: #1a2b3c;
    --navy-2: #223549;
    --accent: #3a6ea5;
    --accent-deep: #2c5a8c;
    --ink: #22303e;
    --ink-2: #566b7b;
    --line: #e2e8ee;
    --bg: #f4f6f9;
    --white: #ffffff;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --header-h: 72px;
    --r-card: 20px;
    --r-field: 14px;
    --shadow-1: 0 1px 2px rgba(26, 43, 60, 0.06), 0 8px 24px -12px rgba(26, 43, 60, 0.12);
    --shadow-2: 0 2px 4px rgba(26, 43, 60, 0.06), 0 16px 36px -14px rgba(26, 43, 60, 0.18);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* fallback для старых браузеров */
    overflow-x: clip;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 8px);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

:focus-visible {
    outline: 3px solid rgba(58, 110, 165, 0.55);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Типографика */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
}

.section-title {
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 44px;
}

/* Кнопки */
.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 15px 34px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02rem;
    border: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
    box-shadow: 0 6px 16px -6px rgba(44, 90, 140, 0.45);
}

.btn:active {
    transform: scale(0.97);
}

.btn-small {
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent-deep);
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.93rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.16s var(--ease-out);
}

.btn-small:active {
    transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: var(--accent-deep);
        transform: translateY(-1px);
        box-shadow: 0 10px 22px -8px rgba(44, 90, 140, 0.55);
    }
    .btn-small:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: var(--white);
    }
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 43, 60, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.25s, box-shadow 0.25s;
}

.header.is-scrolled {
    background: rgba(21, 35, 50, 0.98);
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.4);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}

.header__logo-img {
    height: 46px;
    width: auto;
    display: block;
    border-radius: 6px;
}

/* Логотип-номер: свёрстан кодом, чтобы текст был точным и чётким */
.plate-logo {
    display: inline-flex;
    align-items: stretch;
    height: 44px;
    background: #fff;
    border: 2px solid #10192a;
    border-radius: 7px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s var(--ease-out);
}

.plate-logo:hover {
    transform: translateY(-1px);
}

.plate-logo__text {
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: #10192a;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.plate-logo__region {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-left: 2px solid #10192a;
    line-height: 1;
}

.plate-logo__region b {
    font-size: 1rem;
    font-weight: 800;
    color: #10192a;
}

.plate-logo__region > span {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.52rem;
    font-weight: 700;
    color: #10192a;
    margin-top: 3px;
    letter-spacing: 0.03em;
}

.plate-logo__region i {
    display: inline-block;
    width: 11px;
    height: 7px;
    border-radius: 1px;
    background: linear-gradient(180deg, #fff 0 33%, #0039a6 33% 66%, #d52b1e 66% 100%);
    outline: 1px solid rgba(16, 25, 42, 0.35);
}

.header__toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.header__toggle span {
    width: 26px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.header__toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.header__toggle.active span:nth-child(2) { opacity: 0; }
.header__toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav__list {
    display: flex;
    list-style: none;
    gap: 6px;
}

.nav__list a {
    color: #cfdbe7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 9px 14px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
}

.nav__list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Hero */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: var(--header-h);
    background: var(--navy);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-bg) center / cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 30, 44, 0.92) 0%, rgba(18, 30, 44, 0.72) 45%, rgba(18, 30, 44, 0.35) 100%);
}

.hero__container {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
    margin-right: 24px;
    padding: 48px 0 96px;
}

.hero__title {
    color: #fff;
    font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 18px;
    animation: heroIn 0.8s var(--ease-out) both;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
    color: #c4d3e2;
    font-weight: 500;
    max-width: 34ch;
    margin-bottom: 34px;
    animation: heroIn 0.8s var(--ease-out) 0.12s both;
}

.hero__btn {
    animation: heroIn 0.8s var(--ease-out) 0.24s both;
    padding: 17px 42px;
    font-size: 1.08rem;
}

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

/* Условия аренды: строка под hero */
.hero-facts {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.hero-facts__row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-facts__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 40px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
}

.hero-facts__item + .hero-facts__item {
    border-left: 1px solid var(--line);
}

.hero-facts__item i {
    color: var(--accent);
    font-size: 1.15rem;
}

/* Секции */
.transfer {
    padding: 96px 0;
    background: var(--bg);
}

.transfer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.transfer__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), opacity 0.6s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .transfer__card:hover {
        border-color: #c4d4e4;
        box-shadow: var(--shadow-2);
        transform: translateY(-4px);
    }
}

.transfer__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.transfer__head i {
    color: var(--accent);
    font-size: 1.25rem;
    width: 26px;
    text-align: center;
}

.transfer__title {
    font-size: 1.08rem;
    font-weight: 700;
}

.transfer__badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-deep);
    background: rgba(58, 110, 165, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.transfer__list {
    list-style: none;
    margin-bottom: 22px;
}

.transfer__list li {
    padding: 8px 0;
    font-size: 0.94rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.transfer__list li + li {
    border-top: 1px solid #eef2f6;
}

.transfer__list i {
    color: var(--accent);
    font-size: 0.85rem;
    width: 18px;
}

.transfer__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    margin-top: auto;
}

.transfer__price span {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    display: block;
}

.transfer__btn {
    text-align: center;
}

.transfer__info {
    display: flex;
    justify-content: center;
    column-gap: 56px;
    row-gap: 10px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.transfer__info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #47586a;
}

.transfer__info-item i {
    color: var(--accent);
    font-size: 1.05rem;
}

/* Каталог */
.cars {
    padding: 96px 0;
    background: var(--white);
}

.cars__filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--white);
    border: 1.5px solid var(--line);
    color: #47586a;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.14s var(--ease-out);
    font-size: 0.94rem;
}

.filter-btn:active {
    transform: scale(0.95);
}

.filter-btn:hover {
    border-color: #b9cbdd;
    color: var(--navy);
}

.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.cars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.car-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.2s, opacity 0.45s var(--ease-out);
}

.car-card.reveal {
    opacity: 0;
    transform: translateY(22px);
}

.car-card.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cars__grid.is-switching .car-card {
    opacity: 0;
    transform: translateY(5px);
    transition-duration: 0.15s;
    transition-delay: 0ms !important;
}

@media (hover: hover) and (pointer: fine) {
    .car-card:hover {
        transform: translateY(-5px);
        border-color: #c4d4e4;
        box-shadow: var(--shadow-2);
    }
    .car-card:hover .car-card__img {
        transform: scale(1.045);
    }
}

.car-card:active {
    transform: scale(0.99);
}

.car-card__badge {
    display: none;
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(26, 43, 60, 0.82);
    color: #dbe7f2;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

body.show-badges .car-card__badge {
    display: block;
}

.car-card__media {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #edf1f6;
}

.car-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.car-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-card__title {
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.car-card__specs {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 0.88rem;
}

.car-card__specs i {
    color: #8aa5c0;
    margin-right: 5px;
}

.car-card__price {
    font-weight: 800;
    color: var(--navy);
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.car-card__price small {
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}

.car-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.car-card__deposit {
    font-size: 0.84rem;
    color: #64748b;
}

/* Форма заявки */
.order-new {
    padding: 96px 0;
    background: var(--bg);
}

.order-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.order-card__header {
    background: var(--navy);
    color: #fff;
    padding: 28px 36px;
}

.order-card__header h3 {
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.order-card__body {
    padding: 34px 36px 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 7px;
    color: var(--navy);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-field);
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fbfcfe;
    font-family: inherit;
    color: var(--ink);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233a6ea5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 46px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(58, 110, 165, 0.12);
}

.form-consent {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-consent input {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-consent label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.9rem;
    color: #47586a;
    cursor: pointer;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.features-list {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    margin: 26px 0;
    list-style: none;
}

.features-list li {
    padding: 8px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
    color: var(--ink);
}

.features-list li i {
    color: var(--accent);
    font-size: 0.95rem;
    width: 20px;
}

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    padding: 16px;
    font-size: 1.06rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s var(--ease-out), box-shadow 0.18s, opacity 0.18s;
    margin-top: 14px;
    position: relative;
    box-shadow: 0 6px 16px -6px rgba(44, 90, 140, 0.45);
}

.btn-submit:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.75;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn-submit.is-loading .btn-submit__label {
    opacity: 0.65;
}

.btn-submit.is-loading::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.form-result {
    margin-top: 20px;
    padding: 13px 18px;
    border-radius: var(--r-field);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
}

.form-result.success { background: #e5f3ea; color: #14532d; display: block; }
.form-result.error { background: #fbe9e7; color: #8c2f24; display: block; }
.form-result.loading { background: #e8f0f9; color: #1e4976; display: block; }

/* Прайс-лист */
.price {
    padding: 96px 0;
    background: var(--white);
}

.price__table-wrapper {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
}

.price__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.price__table th {
    background: var(--navy);
    color: #dbe7f2;
    padding: 15px 18px;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: left;
    letter-spacing: 0.03em;
}

.price__table td {
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    font-size: 0.95rem;
}

.price__table tr:last-child td {
    border-bottom: none;
}

.price__table tbody tr {
    transition: background 0.12s;
}

.price__table tbody tr:hover {
    background: #f7f9fc;
}

.price__table .btn-small {
    padding: 7px 16px;
    font-size: 0.86rem;
}

.price-accent {
    color: var(--navy);
    font-weight: 700;
}

.modal__price-accent {
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 800;
    display: block;
}

.modal__price-accent small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

.modal__deposit {
    display: block;
    margin-top: 3px;
    font-size: 0.92rem;
    color: #64748b;
}

/* Почему выбирают нас */
.features {
    padding: 96px 0;
    background: var(--navy);
}

.features .section-title {
    color: #fff;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.feature-item {
    padding: 8px 36px;
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.feature-item:first-child {
    padding-left: 0;
}

.feature-item + .feature-item {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-icon {
    font-size: 1.6rem;
    color: #7fa8d4;
    margin-bottom: 16px;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: #fff;
}

.feature-item p {
    color: #a9bccd;
    font-size: 0.95rem;
}

/* Документы */
.docs {
    padding: 96px 0;
    background: var(--bg);
}

.docs__content {
    max-width: 760px;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 38px 42px;
    border-radius: var(--r-card);
}

.docs__list {
    list-style: none;
}

.docs__list li {
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.05rem;
    font-weight: 500;
}

.docs__list li + li {
    border-top: 1px solid #eef2f6;
}

.docs__list i {
    color: var(--accent);
    width: 26px;
    font-size: 1.15rem;
}

.docs__note {
    margin-top: 22px;
    color: #64748b;
    font-size: 0.95rem;
}

/* Контакты */
.contacts {
    padding: 96px 0 80px;
    background: var(--white);
}

.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}

.contact-info p {
    margin-bottom: 18px;
    font-size: 1.02rem;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info i {
    color: var(--accent);
    width: 24px;
    font-size: 1.1rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-info a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.contact-info a:hover {
    color: var(--accent);
}

.contact-map iframe {
    border-radius: var(--r-card);
    border: 1px solid var(--line);
    width: 100%;
    height: 320px;
}

.d1v {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.imgs {
    padding-right: 0;
    width: 180px;
}

.d1v img {
    border-radius: 10px;
    transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.d1v a:hover img {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Подвал */
.footer {
    background: var(--navy);
    color: #8fa5bb;
    padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 4px;
}

.footer__nav a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 7px 12px;
    border-radius: 999px;
}

.footer__nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.footer__copy {
    font-size: 0.88rem;
    opacity: 0.75;
}





/* Модальное окно */
.modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(15, 25, 38, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease, visibility 0.16s;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s ease, visibility 0.22s;
}

.modal__content {
    background: var(--white);
    max-width: 540px;
    width: 100%;
    max-height: calc(100vh - 40px);
    max-height: calc(var(--vh, 1vh) * 100 - 40px);
    overflow-y: auto;
    border-radius: 24px;
    padding: 28px;
    position: relative;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
    transform: scale(0.96) translateY(12px);
    opacity: 0;
    transition: transform 0.16s var(--ease-out), opacity 0.16s;
}

.modal.is-open .modal__content {
    transform: scale(1) translateY(0);
    opacity: 1;
    transition: transform 0.28s var(--ease-out), opacity 0.22s;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    transition: background 0.15s, transform 0.15s var(--ease-out);
}

.modal__close:hover {
    background: #fff;
}

.modal__close:active {
    transform: scale(0.9);
}

.modal__body {
    text-align: left;
}

.modal__body img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 22px;
}

.modal__body h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.modal__body p {
    margin-bottom: 10px;
    font-size: 0.98rem;
    color: #47586a;
}

.modal__body p i {
    color: #8aa5c0;
}

.modal__btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* Появление при скролле: прячем только при работающем JS */
html.js .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

html.js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.transfer__grid .fade-in:nth-child(2) { transition-delay: 0.06s; }
.transfer__grid .fade-in:nth-child(3) { transition-delay: 0.12s; }
.transfer__grid .fade-in:nth-child(4) { transition-delay: 0.18s; }

.features__grid .fade-in:nth-child(2) { transition-delay: 0.06s; }
.features__grid .fade-in:nth-child(3) { transition-delay: 0.12s; }

/* Загрузка и пустое состояние */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.05rem;
    color: #64748b;
    grid-column: 1 / -1;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2.5px solid #cbd5e1;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: -4px;
}

.no-cars {
    text-align: center;
    padding: 56px 20px;
    font-size: 1.05rem;
    color: #64748b;
    grid-column: 1 / -1;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Адаптив */
@media (max-width: 1199px) {
    .transfer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .cars__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .feature-item {
        padding: 22px 0;
    }

    .feature-item + .feature-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-facts__item {
        padding: 18px 26px;
    }
}

@media (max-width: 767px) {
    .header__toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        background: var(--navy);
        padding: 90px 26px 30px;
        transform: translateX(110%);
        visibility: hidden;
        transition: transform 0.4s var(--ease-out), visibility 0.4s;
        z-index: 999;
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.35);
    }

    .header__nav.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        gap: 4px;
    }

    .nav__list a {
        display: block;
        font-size: 1.05rem;
        padding: 12px 14px;
    }

    .hero__container {
        margin-left: 24px;
        padding: 40px 0 72px;
    }

    .hero-facts__row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-facts__item {
        padding: 14px 4px;
        justify-content: flex-start;
    }

    .hero-facts__item + .hero-facts__item {
        border-left: none;
        border-top: 1px solid var(--line);
    }

    .transfer,
    .cars,
    .order-new,
    .price,
    .features,
    .docs,
    .contacts {
        padding: 64px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .cars__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .transfer__grid {
        grid-template-columns: 1fr;
    }

    .transfer__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .docs__content {
        padding: 26px 22px;
    }

    .order-card__header {
        padding: 22px 24px;
    }

    .order-card__header h3 {
        font-size: 1.12rem;
    }

    .order-card__body {
        padding: 24px 22px 26px;
    }

    .features-list li {
        font-size: 0.88rem;
    }

    .footer__container {
        flex-direction: column;
        text-align: center;
    }

    .footer__nav ul {
        justify-content: center;
    }


    .modal__content {
        padding: 20px;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .price__table td:nth-child(3),
    .price__table th:nth-child(3) {
        display: none;
    }
}

/* Бережно к вестибулярному аппарату */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
        transition-delay: 0ms !important;
    }

    .fade-in,
    .car-card.reveal {
        opacity: 1;
        transform: none;
    }
}

/* Круглая кнопка MAX */
.max-contact-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7B61FF 0%, #5B3DF5 100%); /* фирменный фиолетовый MAX */
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.45);
  z-index: 9999;
  text-decoration: none;
  overflow: hidden; /* чтобы картинка не вылезала за круг */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.max-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(123, 97, 255, 0.65);
}

.max-contact-btn:active {
  transform: scale(0.95);
}

/* Иконка внутри кнопки */
.max-contact-icon {
  width: 100%;
  height: 100%;
  object-fit: cover; /* картинка заполняет весь круг */
  display: block;
  border-radius: 50%;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
  .max-contact-btn {
    width: 54px;
    height: 54px;
    bottom: 16px;
    right: 16px;
  }
}

body.modal-open .max-contact-btn {
    opacity: 0;
    pointer-events: none;
}