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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: #ffffff;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */

.header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    margin-right: 4px;
}

.logo__text {
    letter-spacing: 0.12em;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav__link {
    font-size: 14px;
    color: #4b5563;
    position: relative;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #0f766e;
    transition: width .2s ease;
}

.nav__link:hover::after {
    width: 100%;
}

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

.header__phone {
    font-weight: 600;
    font-size: 14px;
}

/* Burger */

.burger {
    display: none;
    width: 36px;
    height: 32px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.burger span {
    display: block;
    height: 2px;
    background: #111827;
    border-radius: 999px;
}

/* Buttons */

.btn {
    border-radius: 999px;
    padding: 10px 18px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    background: #0f766e;
    color: #fff;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
    background: #115e59;
    box-shadow: 0 7px 20px rgba(15, 118, 110, 0.35);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    border: 1px solid #0f766e;
    color: #0f766e;
}

.btn--outline:hover {
    background: #0f766e;
    color: #fff;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #f9fafb;
}

.btn--ghost:hover {
    background: rgba(15, 118, 110, 0.3);
}

.btn--full {
    width: 100%;
}

.btn--small {
    padding: 8px 14px;
    font-size: 13px;
}

/* Hero */

.hero {
    position: relative;
    padding-top: 90px;
    min-height: 640px;
    color: #f9fafb;
    background-image: url("img/hero-bg.jpg");
    background-size: cover;
    background-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.7), transparent 55%), rgba(17, 24, 39, 0.85);
}

.hero__content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 40px;
    padding: 48px 16px 64px;
}

.hero__title {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__title span {
    font-weight: 400;
    font-size: 26px;
    color: #a5f3fc;
}

.hero__subtitle {
    max-width: 480px;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero__benefits {
    list-style: none;
    font-size: 14px;
    color: #d1d5db;
}

.hero__benefits li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.hero__benefits li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    color: #22c55e;
}

/* Hero right */

.hero__right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-stats__item {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    padding: 12px 14px;
}

.hero-stats__value {
    font-size: 22px;
    font-weight: 700;
}

.hero-stats__label {
    font-size: 12px;
    color: #e5e7eb;
}

.hero-form {
    background: #f9fafb;
    border-radius: 16px;
    padding: 18px 18px 20px;
    color: #111827;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.hero-form__title {
    font-size: 18px;
    margin-bottom: 4px;
}

.hero-form__subtitle {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 12px;
}

/* Forms */

.form__group {
    margin-bottom: 10px;
}

.form__group input,
.form__group textarea,
.catalog-filters select,
.catalog-filters input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 9px 10px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form__group input:focus,
.form__group textarea:focus,
.catalog-filters select:focus,
.catalog-filters input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25);
}

.form__note {
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
}

/* Sections */

.section {
    padding: 64px 0;
}

.section--grey {
    background: #f9fafb;
}

.section__title {
    font-size: 26px;
    margin-bottom: 10px;
}

.section__subtitle {
    font-size: 14px;
    color: #6b7280;
    max-width: 520px;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

/* Grid */

.grid {
    display: grid;
    gap: 20px;
}

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

/* Cards */

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.card__icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.card__title {
    font-size: 17px;
    margin-bottom: 6px;
}

.card__text {
    font-size: 14px;
    color: #4b5563;
}

/* Catalog filters */

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.catalog-filters select {
    width: auto;
    min-width: 150px;
}

.catalog-filters input {
    min-width: 160px;
}

/* Car cards */

.car-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.car-card__image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.car-card__body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-card__title {
    font-size: 16px;
}

.car-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #6b7280;
}

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

.car-card__price-main {
    font-weight: 700;
}

.car-card__price-sub {
    font-size: 12px;
    color: #6b7280;
}

/* Steps */

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

.steps__item {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 16px 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    position: relative;
}

.steps__number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.steps__title {
    font-size: 15px;
    margin-bottom: 6px;
}

.steps__text {
    font-size: 13px;
    color: #4b5563;
}

/* Contacts */

.contacts {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
    gap: 26px;
    align-items: flex-start;
}

.contacts__list {
    list-style: none;
    margin: 16px 0 18px;
    font-size: 14px;
    color: #4b5563;
}

.contacts__list li {
    margin-bottom: 4px;
}

.contacts__form {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 16px 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.contacts__form-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.contacts__map {
    width: 100%;
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f766e, #22c55e);
    color: #ecfdf5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 15px;
    padding: 16px;
}

.map-placeholder span {
    margin-top: 6px;
    font-size: 13px;
}

/* Footer */

.footer {
    background: #0f172a;
    color: #e5e7eb;
    padding: 16px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.footer__links {
    display: flex;
    gap: 12px;
}

.footer__links a {
    color: #9ca3af;
}

.footer__links a:hover {
    color: #e5e7eb;
}

/* Scroll top */

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: #0f766e;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.6);
}

.scroll-top.show {
    display: flex;
}

/* Responsive */

@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

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

@media (max-width: 900px) {
    .header__contacts {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        inset: 70px 0 auto 0;
        background: #ffffff;
        flex-direction: column;
        padding: 12px 16px 16px;
        border-bottom: 1px solid #e5e7eb;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform .2s ease, opacity .2s ease;
    }

    .nav--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hero__content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__right {
        order: -1;
    }

    .section__header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .contacts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: auto;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero__title span {
        font-size: 20px;
    }

    .hero__content {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}