:root {
    --bg-page: #f5f7fb;
    --bg-white: #ffffff;
    --bg-soft: #eef2ff;
    --accent: #2b6cff;
    --accent-soft: rgba(43, 108, 255, 0.1);
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* Сброс */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    margin: 0 0 8px;
    font-weight: 600;
}

/* Шапка */

.header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: none; /* можно поставить #eef2ff, если захочешь мягкую подложку */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header__logo-img {
    width: 28px;
    height: 28px;
    display: block;
}

.header__title {
    font-size: 17px;
}

.header__subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header__phone {
    font-weight: 600;
    font-size: 15px;
}

.header__buttons {
    display: flex;
    gap: 8px;
}

/* Кнопки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background: var(--accent);
    color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.16);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.32);
    background: #2563eb;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-outline {
    background: #ffffff;
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: none;
}

.btn-outline:hover {
    background: #eef2ff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 15px;
}

/* HERO */

.hero {
    position: relative;
    max-width: 1120px;
    margin: 14px auto 0;
    padding: 0 16px 24px;
}

.hero__bg {
    position: absolute;
    inset: 0 16px;
    border-radius: var(--radius-lg);
    background:
        url("corolla-hero.webp") right center / cover no-repeat;
    /* Положи рядом файл corolla-hero.webp — фото Toyota Corolla */
    filter: saturate(1.05);
    transform: translateZ(0);
}

.hero__overlay {
    position: absolute;
    inset: 0 16px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.78) 38%, rgba(15, 23, 42, 0.35) 70%, rgba(15, 23, 42, 0) 100%);
}

.hero__inner {
    position: relative;
    padding: 28px 30px 26px;
    color: #e5e7eb;
}

.hero__content {
    max-width: 540px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 12px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero__lead {
    margin: 0 0 14px;
    font-size: 14px;
    color: #e5e7f3;
}

.hero__lead strong {
    font-weight: 600;
}

.hero__bullets {
    margin: 0 0 14px;
    padding-left: 0;
    list-style: none;
    font-size: 14px;
    color: #e5e7eb;
}

.hero__bullets li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
}

.hero__bullets li::before {
    content: "•";
    position: absolute;
    left: 5px;
    top: 0;
    color: #bfdbfe;
}

.hero__pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.hero__price-main {
    font-size: 17px;
    font-weight: 600;
}

.hero__price-trial {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.8);
    color: #e0f2fe;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.hero__cta--center {
    justify-content: center;
}

.hero__note {
    font-size: 13px;
    color: #cbd5f5;
    max-width: 420px;
}

/* Общие секции */

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 16px 4px;
}

.section--soft {
    padding-top: 18px;
}

.section--contact {
    padding-bottom: 24px;
}

.section__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section__inner--center {
    text-align: center;
}

.section h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.section p {
    font-size: 14px;
    color: var(--text-muted);
}

.section__lead {
    margin-bottom: 16px;
}

/* Grid / Cards */

/* Картинка для мобильной версии HERO */
.hero__image-mobile {
    display: none; /* по умолчанию скрыта (на десктопе) */
}

.hero__image-mobile img {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}


.grid {
    display: grid;
    gap: 14px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 14px 14px 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    font-size: 14px;
}

.card--soft {
    background: linear-gradient(135deg, #ffffff, #eef2ff);
}

.card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}
.tariffs {
    margin-top: 18px;
}

.tariff-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tariff-price {
    margin: 6px 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent); /* тот самый синий с сайта */
}

.tariff-bonus {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.tariff-tag {
    margin-top: 10px;
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(43, 108, 255, 0.08);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
}

/* лёгкий акцент на «выгодном» пакете */
.tariff-card--best {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.18);
}


/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 12px 12px 10px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.step__num {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step__body h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.step__body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Location */

.location {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.location__info {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px 16px 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    font-size: 14px;
}

.location__label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.location__address {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.location__text {
    margin-bottom: 12px;
}

.location__map {
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 10px 26px rgba(129, 140, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
}

.location__map iframe {
    border-radius: var(--radius-md);
}

/* Обо мне */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 20px;
    align-items: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 18px 20px 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    margin-top: 8px;
}

.about__text p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* бейдж над именем */
.about__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.4);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* имя и роль */
.about__name {
    font-size: 20px;
    margin: 0 0 4px;
}

.about__role {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 12px;
}

/* список фактов */
.about__facts {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-main);
}

.about__facts li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
}

.about__facts li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

/* фото — делаем «карточкой», на всю высоту секции и сдвигаем чуть вправо */
.about__photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid rgba(129, 140, 248, 0.35);
    box-shadow: 0 10px 26px rgba(129, 140, 248, 0.25);
    height: 100%;        /* тянем блок по высоте карточки */
    max-width: 360px;    /* немного уже, чтобы сместить вправо */
    justify-self: end;   /* прижимаем к правому краю колонки */
}

.about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Reviews */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.review-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 16px 16px 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    font-size: 14px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.review-stars {
    color: #fbbf24;
    letter-spacing: 1px;
    font-size: 14px;
}

.review-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Footer */

.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    margin-top: 10px;
    padding: 10px 16px 14px;
}

.footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer__brand {
    font-weight: 500;
}

.footer__note {
    font-size: 12px;
}

.footer__right {
    text-align: right;
}

.footer__phone {
    display: block;
    color: var(--text-main);
    font-weight: 500;
}

.footer__tg {
    font-size: 12px;
}

/* Адаптив */

@media (max-width: 880px) {
    .hero__inner {
        padding: 22px 22px 20px;
    }
}

@media (max-width: 780px) {
    .header__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .header__contacts {
        justify-content: flex-start;
    }
    .hero__bg,
    .hero__overlay {
        inset: 0 12px;
    }
    .hero__inner {
        padding: 20px 18px 18px;
    }
    .hero__content {
        max-width: 100%;
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .location {
        grid-template-columns: 1fr;
    }
    .about {
        grid-template-columns: 1fr;
    }
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 0 8px 18px;
    }

    /* На мобиле не используем фон как background */
    .hero__bg,
    .hero__overlay {
        display: none;
    }

    .hero__inner {
        padding: 0;
        border-radius: var(--radius-lg);
        overflow: hidden;
        position: relative;
    }

    /* Картинка машины сверху */
    .hero__image-mobile {
        display: block;
        position: relative;
    }

    .hero__image-mobile img {
        width: 100%;
        display: block;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    /* Мягкий градиент по нижнему краю фотки, чтобы она растворялась */
    .hero__image-mobile::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 44px;
        background: linear-gradient(
            to bottom,
            rgba(15, 23, 42, 0) 0%,
            rgba(15, 23, 42, 0.9) 100%
        );
        pointer-events: none;
    }

    /* Блок с текстом — поверх размытого фона */
    .hero__content {
        position: relative;
        padding: 20px 14px 18px;
        margin-top: -10px; /* чуть заходим на градиент снизу картинки */
        color: #e5e7eb;
    }

    /* Блюр продолжения картинки */
    .hero__content::before {
        content: "";
        position: absolute;
        inset: -40px -40px 0;
        background: url("corolla-hero.webp") center bottom / cover no-repeat;
        filter: blur(18px) brightness(0.9);
        transform: scale(1.05);
        z-index: -2;
    }

    /* Лёгкий тёмный градиент, чтобы текст хорошо читался */
    .hero__content::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.7) 0%,
            rgba(15, 23, 42, 0.8) 40%,
            rgba(15, 23, 42, 0.78) 70%,
            rgba(15, 23, 42, 0.65) 100%
        );
        z-index: -1;
    }

    .hero h1 {
        font-size: 21px;
    }

    .hero__cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__right {
        text-align: left;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}


