/* =========================================================
   HOME PAGE
   Страница: главная
   Файл: static/css/pages/home.css

   СТРУКТУРА ФАЙЛА:

   01. Главный экран — HERO
   02. Блок — НАШИ УСЛУГИ
   03. Блок — КОРПОРАТИВНЫЕ ПЕРЕВОЗКИ
   04. Блок — АВТОПАРК
   05. Блок — ПРЕИМУЩЕСТВА
   06. Блок — РАСЧЁТ СТОИМОСТИ И ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ
   07. Блок — НАМ ДОВЕРЯЮТ КРУПНЫЕ КОМПАНИИ
   08. Блок — О КОМПАНИИ
   09. Блок — КОНТАКТЫ
   10. Общие адаптивные стили
   ========================================================= */


/* =========================================================
   01. ГЛАВНЫЙ ЭКРАН — HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #ffffff;
}


/* Фоновая фотография главного экрана */

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/*
 * Затемнение или осветление фотографии слева.
 * Помогает тексту лучше читаться.
 */

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .18) 0%,
            rgba(255, 255, 255, .10) 27%,
            rgba(255, 255, 255, 0) 50%
        );
}


/* Контейнер с текстом */

.hero__layout {
    position: relative;
    z-index: 2;

    min-height: 560px;

    display: flex;
    align-items: center;
}

.hero__content {
    width: min(43%, 610px);
    padding: 42px 0 26px;
}

.hero .eyebrow {
    margin-bottom: 18px;

    color: var(--brand);

    font-size: 11px;
    letter-spacing: .15em;
}

.hero h1 {
    max-width: 590px;

    color: #07145f;

    font-size: clamp(2.7rem, 3.7vw, 4.35rem);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.hero__lead {
    max-width: 470px;
    margin-top: 20px;

    color: #2b2f3c;

    font-size: clamp(.98rem, 1vw, 1.12rem);
    line-height: 1.55;
}


/* Кнопки главного экрана */

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 27px;
}


/* Нижняя панель преимуществ в HERO */

.hero__proofs {
    width: min(770px, 68vw);

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 36px;

    border: 1px solid rgba(0, 0, 128, .10);
    border-radius: 9px;

    background: rgba(255, 255, 255, .95);

    box-shadow:
        0 12px 30px rgba(15, 22, 60, .07);
}

.hero-proof {
    min-height: 62px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 17px;
}

.hero-proof + .hero-proof {
    border-left: 1px solid rgba(0, 0, 128, .10);
}

.hero-proof__icon {
    width: 44px;
    height: 44px;

    display: block;

    flex: 0 0 44px;
}

.hero-proof__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-proof__icon--vehicle {
    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #f4f5fb;
}

.hero-proof__icon--vehicle img {
    width: 20px;
    height: 20px;
    opacity: .92;
}

.hero-proof strong {
    display: block;

    color: #14172a;

    font-size: 11px;
    line-height: 1.22;
}

.hero-proof small {
    display: block;

    margin-top: 3px;

    color: #74788a;

    font-size: 9px;
    line-height: 1.2;
}


/* =========================================================
   01.1 HERO — ТОЛЬКО ШИРОКИЕ ЭКРАНЫ

   Здесь регулируется масштаб главного автобуса.
   width: 92% делает автобус немного меньше и оставляет
   видимой дорогу под колёсами.
   ========================================================= */

@media (min-width: 1181px) {
    .hero__media img {
        position: absolute;
        right: 0;
        bottom: 0;

        width: 92%;
        height: auto;
        max-width: none;

        object-fit: initial;
    }
}


/* =========================================================
   02. БЛОК — НАШИ УСЛУГИ
   ========================================================= */

.services {
    padding-block:
        clamp(38px, 3.4vw, 56px)
        clamp(30px, 2.4vw, 42px);

    background: var(--surface);
}

.services__title {
    margin-bottom: 22px;

    color: #07145f;

    font-size: clamp(1.8rem, 2.1vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}


/* Сетка: четыре услуги и синяя информационная карточка */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        minmax(270px, 1.42fr);

    gap: clamp(12px, 1.2vw, 20px);
    align-items: stretch;
}


/* Обычная карточка услуги */

.service-tile {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--white);

    box-shadow:
        0 8px 24px rgba(10, 20, 65, .045);
}


/* Фотография карточки услуги */

.service-tile > img {
    display: block;

    width: 100%;
    height: clamp(140px, 10.4vw, 180px);

    object-fit: contain;
    object-position: center;

    background: #f3f5f9;
}


/* Текстовая часть карточки услуги */

.service-tile__body {
    position: relative;
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 31px 15px 17px;
}


/* Круглый значок над текстом */

.service-tile__icon {
    position: absolute;
    top: -20px;
    left: 15px;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 4px solid var(--white);
    border-radius: 50%;

    color: var(--white);
    background: var(--brand);

    font-size: 10px;
    font-weight: 700;

    box-shadow:
        0 5px 13px rgba(0, 0, 128, .18);
}

.service-tile h3 {
    min-height: 2.25em;
    margin-bottom: 8px;

    color: #07113f;

    font-size: clamp(.92rem, 1vw, 1.08rem);
    line-height: 1.14;
    letter-spacing: -.025em;
}

.service-tile p {
    margin-bottom: 16px;

    color: #555d70;

    font-size: clamp(.72rem, .72vw, .82rem);
    line-height: 1.48;
}

.service-tile a {
    margin-top: auto;

    color: var(--brand);

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}

.service-tile a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   02.1 СИНЯЯ КАРТОЧКА — ТРАНСПОРТ ПОД КЛЮЧ
   ========================================================= */

.business-card {
    display: flex;
    flex-direction: column;

    padding: clamp(25px, 2.1vw, 34px);

    border-radius: 9px;

    color: var(--white);

    background:
        linear-gradient(
            150deg,
            #07145f 0%,
            #000080 100%
        );

    box-shadow:
        0 14px 32px rgba(0, 0, 80, .16);
}

.business-card__kicker {
    margin-bottom: 10px;

    color: rgba(255, 255, 255, .64);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.business-card h3 {
    max-width: 270px;
    margin-bottom: 13px;

    color: var(--white);

    font-size: clamp(1.15rem, 1.35vw, 1.48rem);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.business-card > p:not(.business-card__kicker) {
    color: rgba(255, 255, 255, .76);

    font-size: 12px;
    line-height: 1.5;
}

.business-card ul {
    display: grid;
    gap: 9px;

    margin: 19px 0 23px;
    padding: 0;

    list-style: none;
}

.business-card li {
    position: relative;

    padding-left: 19px;

    color: rgba(255, 255, 255, .88);

    font-size: 11px;
    line-height: 1.35;
}

.business-card li::before {
    content: "✓";

    position: absolute;
    top: 0;
    left: 0;

    color: var(--white);

    font-weight: 700;
}

.business-card .button {
    width: 100%;
    min-height: 44px;

    margin-top: auto;

    border-radius: 5px;

    font-size: 12px;
}


/* =========================================================
   03. БЛОК — КОРПОРАТИВНЫЕ ПЕРЕВОЗКИ

   Содержит:
   1. Фотографию автобуса.
   2. Заголовок и описание.
   3. Четыре этапа организации перевозок.

   Все части находятся на одной общей подложке, поэтому
   блок воспринимается как единая композиция.
   ========================================================= */

.employee {
    padding:
        clamp(28px, 2.2vw, 40px)
        0
        clamp(54px, 4.6vw, 78px);

    background: #f8f9fc;
}


/* Общая подложка всего блока */

.employee__panel {
    display: grid;

    grid-template-columns:
        minmax(430px, 1.12fr)
        minmax(390px, .90fr)
        minmax(310px, .72fr);

    align-items: stretch;

    min-height: 540px;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 128, .07);
    border-radius: 22px;

    background:
        linear-gradient(
            90deg,
            #f3f6fa 0%,
            #ffffff 43%,
            #ffffff 100%
        );

    box-shadow:
        0 24px 65px rgba(10, 20, 65, .09);
}


/* =========================================================
   03.1 КОРПОРАТИВНЫЕ ПЕРЕВОЗКИ — ФОТОГРАФИЯ
   ========================================================= */

.employee__media {
    position: relative;

    min-width: 0;
    min-height: 540px;

    overflow: hidden;
}

.employee__media img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 540px;

    object-fit: cover;
    object-position: left center;
}


/*
 * Дополнительный переход фотографии в белый фон.
 * Если переход слишком сильный, уменьшите width: 34%.
 * Если переход слишком резкий, увеличьте width.
 */

.employee__media::after {
    content: "";

    position: absolute;
    z-index: 1;

    top: 0;
    right: -2px;
    bottom: 0;

    width: 34%;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .55) 52%,
            #ffffff 100%
        );
}


/* =========================================================
   03.2 КОРПОРАТИВНЫЕ ПЕРЕВОЗКИ — ТЕКСТ
   ========================================================= */

.employee__content {
    position: relative;
    z-index: 2;

    align-self: center;

    /*
     * Отрицательный отступ заводит текст на светлую часть
     * фотографии и объединяет обе области.
     */

    margin-left: clamp(-72px, -3.5vw, -46px);

    padding:
        clamp(42px, 4vw, 68px)
        clamp(34px, 3.2vw, 58px)
        clamp(42px, 4vw, 68px)
        clamp(46px, 4vw, 72px);
}

.employee__content .eyebrow {
    margin-bottom: 17px;

    color: var(--brand);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.employee__content h2 {
    max-width: 610px;
    margin: 0 0 23px;

    color: #07145f;

    font-size: clamp(2.1rem, 2.45vw, 3rem);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.employee__content .section-lead {
    max-width: 580px;
    margin: 0;

    color: #454c5f;

    font-size: clamp(.92rem, .9vw, 1.03rem);
    line-height: 1.68;
}

.employee__content .button {
    margin-top: 30px;
}


/* =========================================================
   03.3 КОРПОРАТИВНЫЕ ПЕРЕВОЗКИ — ЭТАПЫ РАБОТЫ
   ========================================================= */

.employee__steps {
    display: grid;
    align-content: center;

    margin: 0;

    padding:
        clamp(42px, 4vw, 68px)
        clamp(30px, 3vw, 52px)
        clamp(42px, 4vw, 68px)
        clamp(16px, 1.5vw, 28px);

    list-style: none;
}

.employee__steps li {
    position: relative;

    min-height: 104px;

    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}


/* Пунктирная линия между этапами */

.employee__steps li:not(:last-child)::after {
    content: "";

    position: absolute;

    left: 25px;
    top: 49px;
    bottom: 3px;

    border-left: 2px dotted rgba(0, 0, 128, .30);
}


/* Круг с номером этапа */

.employee-step__number {
    position: relative;
    z-index: 2;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(0, 0, 128, .13);
    border-radius: 50%;

    color: var(--brand);
    background: #ffffff;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 8px 22px rgba(0, 0, 80, .08);
}

.employee__steps h3 {
    margin: 4px 0 7px;

    color: #07145f;

    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -.015em;
}

.employee__steps p {
    max-width: 285px;
    margin: 0;

    color: #626879;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   04. БЛОК — АВТОПАРК

   Структура:
   04.1 Общая секция и сетка.
   04.2 Заголовок и описание.
   04.3 Преимущества автопарка.
   04.4 Кнопка.
   04.5 Галерея.
   ========================================================= */


/* =========================================================
   04.1 АВТОПАРК — ОБЩАЯ СЕКЦИЯ И СЕТКА
   ========================================================= */

.fleet-section {
    position: relative;

    overflow: hidden;

    /*
     * Верхний отступ остаётся просторным.
     * Нижний уменьшаем, чтобы следующий блок
     * располагался ближе к галерее.
     */

    padding:
        clamp(54px, 4.5vw, 76px)
        0
        clamp(26px, 2vw, 36px);

    color: #07145f;
    background: #ffffff;
}


/*
 * Две основные колонки:
 *
 * Левая колонка  — описание автопарка.
 * Правая колонка — четыре фотографии.
 */

.fleet-section__layout {
    display: grid;

    grid-template-columns:
        minmax(330px, .66fr)
        minmax(0, 1.74fr);

    gap: clamp(46px, 4.5vw, 82px);
    align-items: center;
}


/* =========================================================
   04.2 АВТОПАРК — ЗАГОЛОВОК И ОПИСАНИЕ
   ========================================================= */

.fleet-section__content {
    position: relative;
    z-index: 2;
}

.fleet-section__content .eyebrow {
    margin-bottom: 12px;

    color: var(--brand);
}

.fleet-section__content h2 {
    max-width: 520px;
    margin: 0;

    color: #07145f;

    font-size: clamp(2rem, 2.45vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.fleet-section__lead {
    max-width: 490px;

    margin:
        16px
        0
        0;

    color: #555d70;

    font-size: clamp(.9rem, .9vw, 1.02rem);
    line-height: 1.6;
}


/* =========================================================
   04.3 АВТОПАРК — ПРЕИМУЩЕСТВА

   На широком экране преимущества расположены
   в две колонки и две строки.
   ========================================================= */

.fleet-features {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        clamp(24px, 2.3vw, 38px)
        clamp(20px, 2.4vw, 42px);

    margin-top: clamp(32px, 3vw, 48px);
}


/* Одна карточка преимущества */

.fleet-feature {
    min-width: 0;

    display: grid;

    grid-template-columns:
        54px
        minmax(0, 1fr);

    gap: 15px;
    align-items: center;
}


/* Круглый значок преимущества */

.fleet-feature__icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--brand);
    background: #f4f5fb;

    font-size: 20px;
    font-weight: 700;

    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 128, .04);
}

.fleet-feature__icon-image {
    display: block;

    width: 24px;
    height: 24px;

    object-fit: contain;
}


.fleet-feature h3 {
    margin: 0;

    color: #07145f;

    font-size: clamp(.82rem, .82vw, .96rem);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -.015em;
}


/* =========================================================
   04.4 АВТОПАРК — КНОПКА
   ========================================================= */

.fleet-section__button {
    min-width: 220px;

    display: inline-flex;
    justify-content: center;
    gap: 18px;

    margin-top: clamp(34px, 3vw, 48px);
}


/* =========================================================
   04.5 АВТОПАРК — ГАЛЕРЕЯ
   ========================================================= */

.fleet-gallery {
    position: relative;

    min-width: 0;

    /*
     * Дополнительный верхний отступ нужен для размещения
     * кнопок навигации над фотографиями.
     */

    padding-top: 34px;
}


/* Область с четырьмя фотографиями */

.fleet-gallery__track {
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: clamp(12px, 1.15vw, 20px);

    /*
     * На мобильных экранах overflow позволит
     * прокручивать изображения по горизонтали.
     */

    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(0, 0, 128, .28)
        transparent;
}


/* Одна фотография галереи */

.fleet-gallery__item {
    min-width: 0;

    margin: 0;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 128, .08);
    border-radius: 11px;

    background: #f1f3f8;

    scroll-margin-inline: 16px;
    scroll-snap-align: start;

    box-shadow:
        0 12px 30px rgba(10, 20, 65, .07);
}


/* Все фотографии имеют одинаковый размер */

.fleet-gallery__item img {
    display: block;

    width: 100%;
    height: clamp(330px, 27vw, 465px);

    object-fit: cover;
    object-position: center;

    transition:
        transform .35s ease;
}


/* Небольшое увеличение фотографии при наведении */

.fleet-gallery__item:hover img {
    transform: scale(1.025);
}


/* =========================================================
   04.6 АВТОПАРК — КНОПКИ НАВИГАЦИИ
   ========================================================= */

.fleet-gallery__controls {
    position: absolute;
    z-index: 3;

    top: -20px;
    right: 0;

    display: flex;
    gap: 10px;
}


/* Одна кнопка со стрелкой */

.fleet-gallery__controls a {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(0, 0, 128, .13);
    border-radius: 8px;

    color: var(--brand);
    background: #ffffff;

    text-decoration: none;

    font-size: 19px;
    font-weight: 600;

    box-shadow:
        0 8px 20px rgba(10, 20, 65, .06);

    transition:
        color .2s ease,
        border-color .2s ease,
        background-color .2s ease;
}

.fleet-gallery__controls a:hover {
    border-color: var(--brand);

    color: #ffffff;
    background: var(--brand);
}

.fleet-gallery__controls a:focus-visible {
    outline: 3px solid rgba(0, 0, 128, .20);
    outline-offset: 3px;
}

/* =========================================================
   05. БЛОК — НАМ ДОВЕРЯЮТ

   Компактная версия блока по эскизу.

   Структура:
   05.1 Общая секция и сетка.
   05.2 Вводный текст.
   05.3 Сетка показателей.
   05.4 Отдельный показатель.
   05.5 Декоративные иконки.
   ========================================================= */


/* =========================================================
   05.1 НАМ ДОВЕРЯЮТ — ОБЩАЯ СЕКЦИЯ
   ========================================================= */

.trust {
    /*
     * Верхний отступ уменьшен.
     * Это сокращает расстояние после блока автопарка.
     */

    padding:
        clamp(28px, 2.4vw, 40px)
        0
        clamp(44px, 3.8vw, 62px);

    background: #ffffff;
}


/*
 * Левая колонка — вводный текст.
 * Правая колонка — четыре показателя.
 */

.trust__layout {
    display: grid;

    grid-template-columns:
        minmax(270px, .72fr)
        minmax(0, 2.28fr);

    gap: clamp(48px, 5vw, 86px);
    align-items: start;
}


/* =========================================================
   05.2 НАМ ДОВЕРЯЮТ — ВВОДНЫЙ ТЕКСТ
   ========================================================= */

.trust__intro {
    min-width: 0;
}

.trust__intro .eyebrow {
    margin-bottom: 10px;

    color: var(--brand);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.trust__intro h2 {
    max-width: 390px;
    margin: 0;

    color: #07145f;

    /*
     * Заголовок уменьшен, чтобы соответствовать эскизу
     * и не занимать слишком много высоты.
     */

    font-size: clamp(1.75rem, 2vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.trust__lead {
    max-width: 390px;

    margin:
        clamp(16px, 1.4vw, 21px)
        0
        0;

    color: #4f5668;

    font-size: clamp(.78rem, .75vw, .9rem);
    line-height: 1.65;
}


/* =========================================================
   05.3 НАМ ДОВЕРЯЮТ — СЕТКА ПОКАЗАТЕЛЕЙ
   ========================================================= */

.trust-grid {
    min-width: 0;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: clamp(24px, 2.8vw, 48px);

    border: 0;
}


/* =========================================================
   05.4 НАМ ДОВЕРЯЮТ — ОТДЕЛЬНЫЙ ПОКАЗАТЕЛЬ
   ========================================================= */

.trust-stat {
    min-width: 0;

    /*
     * min-height удалён.
     * Теперь высота определяется реальным содержимым,
     * поэтому блок не растягивается по вертикали.
     */

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 0;

    border: 0;

    background: transparent;
}


/* Крупное значение показателя */

.trust-stat strong {
    display: block;

    margin:
        clamp(14px, 1.4vw, 20px)
        0
        0;

    color: #07145f;

    font-size: clamp(1.55rem, 1.65vw, 2.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.03em;

    /*
     * На широком экране названия не переносятся.
     * Особенно важно для «По всей России».
     */

    white-space: nowrap;
}

.trust-stat strong.trust-stat__geo {
    max-width: 260px;

    white-space: normal;

    font-size: clamp(1.35rem, 1.45vw, 1.95rem);
    line-height: 1.12;
}


/* Описание показателя */

.trust-stat p {
    max-width: 230px;

    margin:
        clamp(13px, 1.2vw, 18px)
        0
        0;

    color: #555d70;

    font-size: clamp(.72rem, .67vw, .82rem);
    line-height: 1.55;
}


/* =========================================================
   05.5 НАМ ДОВЕРЯЮТ — PNG-ИКОНКИ

   Теперь иконки являются обычными изображениями.
   Круглая подложка уже находится внутри PNG,
   поэтому дополнительный фон и рамка не нужны.
   ========================================================= */

.trust-stat__icon {
    /*
     * Размер изображения на широком экране.
     * Исходный PNG имеет размер 1200 × 1200,
     * но браузер отображает его в размере 58 × 58.
     */

    width: 58px;
    height: 58px;

    display: block;
    flex: 0 0 58px;

    object-fit: contain;
    object-position: center;

    /*
     * Удаляем свойства, которые использовались
     * для старых текстовых символов.
     */

    padding: 0;
    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}


/* =========================================================
   06. БЛОК — РАСЧЁТ СТОИМОСТИ И ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ

   Структура:
   06.1 Общая секция и сетка.
   06.2 Иллюстрация онлайн-калькулятора.
   06.3 Центральная часть: заголовок и описание.
   06.4 Популярные направления и ориентировочные цены.
   06.5 Преимущества расчёта.
   06.6 Адаптивная версия.
   ========================================================= */


/* =========================================================
   06.1 ОБЩАЯ СЕКЦИЯ И СЕТКА
   ========================================================= */

.estimate {
    position: relative;

    padding: 0;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #fafbff 45%,
            #f1f4ff 100%
        );
}


/*
 * На широком экране блок состоит из трёх колонок:
 *
 * 31% — иллюстрация;
 * 43% — популярные направления;
 * 26% — преимущества.
 *
 * Высота ограничена, чтобы блок оставался компактным.
 */

.estimate__layout {
    width: 100%;
    height: clamp(300px, 17vw, 500px);

    display: grid;

    grid-template-columns:
        minmax(0, 31%)
        minmax(0, 43%)
        minmax(0, 26%);

    margin: 0 auto;
}


/* =========================================================
   06.2 ИЛЛЮСТРАЦИЯ ОНЛАЙН-КАЛЬКУЛЯТОРА
   ========================================================= */

.estimate__media {
    position: relative;

    min-width: 0;
    height: 100%;

    overflow: hidden;

    background: #e8ecf3;
}


.estimate__media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: 44% center;
}


/*
 * Мягкий переход от изображения
 * к центральной светлой части блока.
 */

.estimate__media::after {
    content: "";

    position: absolute;
    z-index: 1;

    top: 0;
    right: -2px;
    bottom: 0;

    width: 18%;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .56) 48%,
            #ffffff 100%
        );
}


/* =========================================================
   06.3 ЦЕНТРАЛЬНАЯ ЧАСТЬ — ЗАГОЛОВОК И ОПИСАНИЕ
   ========================================================= */

.estimate__content {
    position: relative;
    z-index: 2;

    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        clamp(22px, 1.7vw, 38px)
        clamp(30px, 2.6vw, 56px);
}


/* Главный заголовок */

.estimate__content h2 {
    max-width: none;

    margin: 0;

    color: #07145f;

    font-size:
        clamp(1.85rem, 1.75vw, 2.65rem);

    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;

    white-space: nowrap;
}


/* Описание под заголовком */

.estimate__lead {
    max-width: 690px;

    margin:
        clamp(10px, 1vw, 16px)
        0
        0;

    color: #4f5668;

    font-size:
        clamp(.78rem, .72vw, .92rem);

    line-height: 1.55;
}


/* =========================================================
   06.4 ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ И ЦЕНЫ
   ========================================================= */

.estimate-popular {
    margin-top:
        clamp(17px, 1.45vw, 24px);
}


/* Заголовок над карточками */

.estimate-popular__title {
    margin: 0;

    color: #07145f;

    font-size:
        clamp(.72rem, .66vw, .82rem);

    font-weight: 700;
    line-height: 1.35;

    letter-spacing: .01em;
}


/* Сетка карточек */

.estimate-routes {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        10px
        12px;

    margin-top: 10px;
}


/* Одна карточка направления */

.estimate-route {
    min-width: 0;
    min-height: 64px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        9px
        14px;

    border:
        1px solid
        rgba(7, 20, 95, .10);

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 128, .035) 0%,
            rgba(255, 255, 255, .96) 58%,
            #ffffff 100%
        );

    box-shadow:
        0 6px 18px
        rgba(10, 20, 65, .04);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.estimate-route:hover {
    border-color:
        rgba(0, 0, 128, .18);

    box-shadow:
        0 9px 22px
        rgba(10, 20, 65, .065);

    transform:
        translateY(-1px);
}


/* Строка с маршрутом и стрелкой */

.estimate-route__main {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


/* Название маршрута */

.estimate-route__name {
    min-width: 0;

    overflow: hidden;

    color: #07145f;

    font-size:
        clamp(.72rem, .67vw, .84rem);

    font-weight: 700;
    line-height: 1.3;

    white-space: nowrap;
    text-overflow: ellipsis;
}




/* Ориентировочная цена */

.estimate-route__price {
    display: block;

    margin-top: 3px;

    color: #000080;

    font-size:
        clamp(.92rem, .84vw, 1.05rem);

    font-weight: 700;
    line-height: 1.2;

    letter-spacing: -.02em;

    white-space: nowrap;
}


/* Примечание об ориентировочной стоимости */

.estimate-popular__note {
    max-width: 650px;

    margin:
        9px
        0
        0;

    color: #747b8d;

    font-size:
        clamp(.62rem, .57vw, .71rem);

    line-height: 1.45;
}


/* Кнопка перехода к полному калькулятору */

.estimate-popular__actions {
    display: flex;

    margin-top: 12px;
}


.estimate-popular__actions .button {
    width: auto;
    min-width: 220px;
    min-height: 44px;

    padding:
        0
        22px;

    border-radius: 6px;

    font-size: .8rem;
}


/* =========================================================
   06.5 ПРАВАЯ ЧАСТЬ — ПРЕИМУЩЕСТВА
   ========================================================= */

.estimate__benefits {
    position: relative;

    min-width: 0;
    height: 100%;

    display: flex;
    align-items: center;

    overflow: hidden;

    padding:
        clamp(24px, 2vw, 38px)
        clamp(28px, 2.4vw, 52px);

    background:
        linear-gradient(
            135deg,
            rgba(248, 249, 255, .32) 0%,
            rgba(237, 241, 255, .96) 100%
        );
}


/* Декоративная иконка калькулятора */

.estimate__calculator-icon {
    position: absolute;
    z-index: 0;

    top: 50%;
    right: -12%;

    width: 70%;
    max-width: 600px;
    height: auto;

    opacity: .20;

    transform:
        translateY(-50%)
        rotate(5deg);

    pointer-events: none;
    user-select: none;
}


/* Список преимуществ */

.estimate-benefits-list {
    position: relative;
    z-index: 1;

    width: 58%;
    max-width: 300px;

    display: grid;

    gap:
        clamp(16px, 1.4vw, 24px);

    margin: 0;
    padding: 0;

    list-style: none;
}


/* Один пункт */

.estimate-benefits-list li {
    min-width: 0;

    display: grid;

    grid-template-columns:
        18px
        minmax(0, 1fr);

    gap: 10px;
    align-items: center;

    color: #07145f;
}


/* Галочка */

.estimate-benefits-list li > span {
    display: block;

    color: var(--brand);

    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}


/* Текст преимущества */

.estimate-benefits-list strong {
    font-size:
        clamp(.7rem, .64vw, .82rem);

    font-weight: 600;
    line-height: 1.35;

    white-space: nowrap;
}


/* =========================================================
   06.6 АДАПТИВ
   ========================================================= */


/* ---------- ЭКРАНЫ ДО 1350 PX ---------- */

@media (max-width: 1350px) {

    /*
     * Иллюстрация и центральная часть остаются
     * в первой строке.
     *
     * Преимущества переходят во вторую строку.
     */

    .estimate__layout {
        height: auto;

        grid-template-columns:
            minmax(300px, .82fr)
            minmax(0, 1.18fr);
    }

    .estimate__media {
        min-height: 360px;
    }

    .estimate__content {
        min-height: 360px;
    }

    .estimate__content h2 {
        white-space: normal;
    }

    .estimate__benefits {
        grid-column: 1 / -1;

        min-height: 0;
        height: auto;

        padding:
            26px
            clamp(28px, 5vw, 58px);
    }

    .estimate-benefits-list {
        width: 100%;
        max-width: none;

        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap:
            20px
            clamp(18px, 3vw, 42px);
    }

    .estimate-benefits-list strong {
        white-space: normal;
    }

    .estimate__calculator-icon {
        display: none;
    }
}


/* ---------- ЭКРАНЫ ДО 900 PX ---------- */

@media (max-width: 900px) {

    .estimate__layout {
        grid-template-columns: 1fr;
    }

    .estimate__media {
        min-height: 0;

        aspect-ratio: 16 / 9;
    }

    .estimate__media img {
        object-position: center;
    }


    /*
     * На мобильном экране переход изображения
     * направлен сверху вниз.
     */

    .estimate__media::after {
        top: auto;
        right: 0;
        bottom: -2px;
        left: 0;

        width: 100%;
        height: 22%;

        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, .58) 48%,
                #ffffff 100%
            );
    }

    .estimate__content {
        min-height: auto;

        padding:
            34px
            clamp(22px, 6vw, 48px)
            40px;
    }

    .estimate__benefits {
        padding:
            24px
            clamp(22px, 5vw, 40px);
    }

    .estimate-benefits-list {
        width: 100%;
        max-width: none;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            20px
            24px;
    }
}


/* ---------- МАЛЕНЬКИЕ ТЕЛЕФОНЫ ДО 560 PX ---------- */

@media (max-width: 560px) {

    .estimate__media {
        aspect-ratio: 4 / 3;
    }

    .estimate__content h2 {
        font-size:
            clamp(1.8rem, 9vw, 2.35rem);

        white-space: normal;
    }

    .estimate-routes {
        grid-template-columns: 1fr;
    }

    .estimate-route {
        min-height: 62px;
    }

    .estimate-popular__actions .button {
        width: 100%;
    }

    .estimate__benefits {
        min-height: 0;
        height: auto;

        padding:
            24px
            20px
            26px;
    }

    .estimate-benefits-list {
        width: 100%;
        max-width: none;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            20px
            16px;
    }

    .estimate-benefits-list li {
        grid-template-columns:
            18px
            minmax(0, 1fr);

        gap: 8px;
        align-items: start;
    }

    .estimate-benefits-list li > span {
        margin-top: 1px;

        font-size: .95rem;
    }

    .estimate-benefits-list strong {
        font-size: .75rem;
        line-height: 1.35;

        white-space: normal;
    }

    .estimate__calculator-icon {
        display: none;
    }
}


/* ---------- ОЧЕНЬ УЗКИЕ ЭКРАНЫ ДО 380 PX ---------- */

@media (max-width: 380px) {

    .estimate-benefits-list {
        grid-template-columns: 1fr;

        gap: 16px;
    }
}

/* =========================================================
   07. БЛОК — НАМ ДОВЕРЯЮТ КРУПНЫЕ КОМПАНИИ
   ========================================================= */


/* =========================================================
   07.1. ВНЕШНЯЯ СЕКЦИЯ

   Здесь меняются:
   - фон всего раздела;
   - расстояние сверху и снизу;
   - расстояние от соседних блоков.
   ========================================================= */

.cases-section {
    position: relative;

     padding:
           clamp(48px, 4vw, 72px)
           0
           clamp(24px, 2vw, 36px);

    /*
     * Весь раздел теперь белый.
     * Серый градиент вокруг карточки удалён.
     */
    background:
        #ffffff;
}


/* =========================================================
   07.2. ОБЩАЯ БЕЛАЯ ПАНЕЛЬ

   Панель объединяет текст и карточки в один блок.
   ========================================================= */

.cases-section__panel {
    display:
        grid;

    grid-template-columns:
        minmax(250px, 0.82fr)
        minmax(0, 3.18fr);

    align-items:
        stretch;

    gap:
        clamp(24px, 2.2vw, 42px);

    /*
     * Общая карточка удалена.
     * Панель теперь отвечает только за сетку.
     */
    padding:
        0;

    background:
        transparent;

    border:
        0;

    border-radius:
        0;

    box-shadow:
        none;
}


/* =========================================================
   07.3. ЛЕВАЯ ВВОДНАЯ КОЛОНКА
   ========================================================= */
.cases-section__intro {
    display:
        flex;

    flex-direction:
        column;

    align-items:
        flex-start;

    /*
     * После удаления кнопки содержимое начинается сверху,
     * без искусственного растягивания колонки.
     */
    justify-content:
        flex-start;

    min-width:
        0;

    gap:
        0;

    padding:
        12px
        0;
}


/* Маленькая надпись «НАШ ОПЫТ» */

.cases-section__eyebrow {
    margin:
        0
        0
        18px;

    color:
        #061b78;

    font-size:
        13px;

    font-weight:
        700;

    line-height:
        1.2;

    letter-spacing:
        0.24em;

    text-transform:
        uppercase;
}


/* Заголовок блока */

.cases-section__title {
    max-width:
        390px;

    margin:
        0;

    color:
        #07196c;

    font-size:
        clamp(30px, 2vw, 46px);

    font-weight:
        700;

    line-height:
        1.12;

    letter-spacing:
        -0.035em;
}


/* Вводный текст */

.cases-section__lead {
    max-width:
        390px;

    margin:
        26px
        0
        0;

    color:
        #343b50;

    font-size:
        clamp(16px, 1vw, 20px);

    font-weight:
        400;

    line-height:
        1.62;
}



/* =========================================================
   07.5. СЕТКА КАРТОЧЕК

   На широком экране:
   - четыре карточки в одну строку.
   ========================================================= */

.cases-grid {
    display:
        grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    align-items:
        stretch;

    min-width:
        0;

    gap:
        12px;
}


/* =========================================================
   07.6. ОБЩИЙ ВИД КАРТОЧКИ
   ========================================================= */

.case-card {
    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;

    overflow:
        hidden;

    background:
        #ffffff;

    border:
        1px solid
        #e1e5ef;

    border-radius:
        10px;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}


.case-card:hover {
    border-color:
        rgba(7, 24, 143, 0.18);

    box-shadow:
        0 16px 36px
        rgba(11, 29, 91, 0.09);

    transform:
        translateY(-4px);
}


/* =========================================================
   07.7. ФОТОГРАФИЯ КАРТОЧКИ

   aspect-ratio определяет пропорции области фотографии.

   object-fit: cover:
   - изображение не растягивается;
   - изображение сохраняет пропорции;
   - лишние части аккуратно обрезаются.
   ========================================================= */

.case-card__media {
    position:
        relative;

    overflow:
        hidden;

    aspect-ratio:
        4 / 3;

    background:
        #edf1f7;
}


.case-card__image {
    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    object-position:
        center;

    transition:
        transform 300ms ease;
}


.case-card:hover .case-card__image {
    transform:
        scale(1.025);
}


/* Индивидуальное кадрирование первой фотографии */

.case-card:nth-child(1) .case-card__image {
    object-position:
        center 45%;
}


/* Индивидуальное кадрирование второй фотографии */

.case-card:nth-child(2) .case-card__image {
    object-position:
        center;
}


/* В фотографии автовокзала сохраняем здание и автобусы */

.case-card:nth-child(3) .case-card__image {
    object-position:
        center 55%;
}


/* В фотографии туроператора сохраняем логотип по центру */

.case-card:nth-child(4) .case-card__image {
    object-position:
        center;
}


/* =========================================================
   07.8. ТЕКСТОВАЯ ЧАСТЬ КАРТОЧКИ
   ========================================================= */

.case-card__body {
    display:
        flex;

    flex:
        1;

    flex-direction:
        column;

    padding:
        20px
        17px
        24px;
}


/* Строка с иконкой и названием */

.case-card__heading {
    display:
        block;
}



/* Название организации */

.case-card__title {
    min-width:
        0;

    margin:
        0;

    color:
        #07196c;

    font-size:
        clamp(16px, 1vw, 20px);

    font-weight:
        700;

    line-height:
        1.3;
}


/* Описание проекта */

.case-card__description {
    margin:
        22px
        0
        0;

    color:
        #343b50;

    font-size:
        clamp(14px, 0.82vw, 17px);

    font-weight:
        400;

    line-height:
        1.55;
}


/* =========================================================
   07.9. АДАПТАЦИЯ — НЕБОЛЬШИЕ ДЕСКТОПЫ
   ========================================================= */

@media (max-width: 1450px) {

       .cases-section__panel {
           grid-template-columns:
               minmax(230px, 0.75fr)
               minmax(0, 3.25fr);

           gap:
               24px;

           /*
            * Панель остаётся без внутренних полей
            * и на небольших десктопах.
            */
           padding:
               0;
       }


    .case-card__body {
        padding:
            18px
            14px
            22px;
    }



}


/* =========================================================
   07.10. АДАПТАЦИЯ — ПЛАНШЕТЫ

   Изменения:
   1. Вводная часть переносится наверх.
   2. Карточки располагаются по две в строке.
   ========================================================= */

@media (max-width: 1120px) {

    .cases-section__panel {
        grid-template-columns:
            1fr;

        gap:
            34px;
    }


    .cases-section__intro {
        display:
            grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        align-items:
            end;

        gap:
            28px;

        padding:
            0;
    }


    .cases-section__title,
    .cases-section__lead {
        max-width:
            650px;
    }


    .cases-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            18px;
    }


    .case-card__media {
        aspect-ratio:
            16 / 10;
    }
}


/* =========================================================
   07.11. АДАПТАЦИЯ — ТЕЛЕФОНЫ

   Карточки выстраиваются вертикально.
   ========================================================= */

@media (max-width: 720px) {

    .cases-section {
        padding:
            42px
            0;
    }


       .cases-section__panel {
           gap:
               30px;

           padding:
               0;

           border-radius:
               0;
       }


    .cases-section__intro {
        display:
            flex;

        align-items:
            stretch;

        gap:
            26px;
    }


    .cases-section__eyebrow {
        margin-bottom:
            14px;

        font-size:
            12px;
    }


    .cases-section__title {
        font-size:
            clamp(30px, 9vw, 40px);
    }


    .cases-section__lead {
        margin-top:
            20px;

        font-size:
            16px;

        line-height:
            1.55;
    }


    .cases-grid {
        grid-template-columns:
            1fr;

        gap:
            16px;
    }


    .case-card__media {
        aspect-ratio:
            16 / 10;
    }


    .case-card__body {
        padding:
            20px
            18px
            24px;
    }


    .case-card__title {
        font-size:
            19px;
    }


    .case-card__description {
        margin-top:
            18px;

        font-size:
            15px;
    }
}


/* =========================================================
   07.12. АДАПТАЦИЯ — МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ========================================================= */

@media (max-width: 480px) {

    .cases-section__panel {
        padding:
            20px
            12px;
    }


    .case-card__media {
        aspect-ratio:
            4 / 3;
    }



}

/* =========================================================
   08. БЛОК — О КОМПАНИИ

   Здесь настраиваются:
   - вертикальные отступы раздела;
   - расположение двух колонок;
   - размер заголовка;
   - оформление описания;
   - адаптация блока под мобильные устройства.
   ========================================================= */


/* =========================================================
   08.1. ВНЕШНЯЯ СЕКЦИЯ

   Первое значение управляет верхним отступом.
   Второе значение — нижним отступом.

   Чтобы приблизить блок к предыдущему разделу,
   уменьшайте первое значение.
   ========================================================= */

.company {
    padding:
        clamp(38px, 3vw, 56px)
        0
        clamp(58px, 4.5vw, 86px);

    background: #ffffff;
}


/* =========================================================
   08.2. ОБЩАЯ СЕТКА

   Слева находится заголовок.
   Справа находится описание компании.
   ========================================================= */

.company__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(380px, .85fr);

    gap: clamp(48px, 6vw, 112px);

    align-items: center;
}


/* =========================================================
   08.3. ЛЕВАЯ ЧАСТЬ — ЗАГОЛОВОК
   ========================================================= */

.company__intro {
    min-width: 0;
}


/* Маленькая надпись «О КОМПАНИИ» */

.company__eyebrow {
    margin:
        0
        0
        22px;

    color: #000080;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: .18em;
    text-transform: uppercase;
}


/* Основной заголовок блока */

.company__title {
    max-width: 1040px;

    margin: 0;

    color: #0d1020;

    font-size: clamp(42px, 3vw, 64px);
    font-weight: 700;
    line-height: 1.08;

    letter-spacing: -.04em;
}


/* =========================================================
   08.4. ПРАВАЯ ЧАСТЬ — ОПИСАНИЕ
   ========================================================= */

.company__content {
    min-width: 0;
}


/* Текст справа */

.company__description {
    max-width: 720px;

    margin: 0;

    color: #5d6374;

    font-size: clamp(18px, 1.05vw, 22px);
    font-weight: 400;
    line-height: 1.65;
}


/* =========================================================
   08.5. АДАПТАЦИЯ — ПЛАНШЕТЫ

   Колонки располагаются друг под другом.
   ========================================================= */

@media (max-width: 820px) {

    .company {
        padding:
            44px
            0
            58px;
    }

    .company__grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .company__title {
        max-width: 720px;

        font-size: clamp(38px, 7vw, 52px);
    }

    .company__description {
        max-width: 720px;
    }
}


/* =========================================================
   08.6. АДАПТАЦИЯ — ТЕЛЕФОНЫ
   ========================================================= */

@media (max-width: 560px) {

    .company {
        padding:
            38px
            0
            48px;
    }

    .company__eyebrow {
        margin-bottom: 16px;

        font-size: 11px;
    }

    .company__title {
        font-size: clamp(32px, 10vw, 40px);
        line-height: 1.1;
    }

    .company__description {
        font-size: 17px;
        line-height: 1.6;
    }
}

/* =========================================================
   09. БЛОК — ОБСУЖДЕНИЕ ПРОЕКТА И КОНТАКТЫ

   Здесь настраиваются:
   - фоновое изображение с автобусом;
   - расположение текста и контактов;
   - кнопки;
   - телефон, почта и адрес;
   - адаптация блока.
   ========================================================= */


/* =========================================================
   09.1. ВНЕШНЯЯ СЕКЦИЯ

   Фоновое изображение уже содержит:
   - автобус слева;
   - тёмно-синий градиент;
   - декоративную карту справа.
   ========================================================= */

.contact-cta {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 320px;
    overflow: hidden;

    color: #ffffff;
    background-color: #06146f;

    /*
     * Единое фоновое изображение баннера:
     * автобус, градиент и карта уже находятся внутри PNG.
     */
    background-image:
        url("/images/contacts/contact-project-banner.png");

  background-repeat: no-repeat;

  /*
   * Сдвигаем изображение с автобусом на 160 px влево.
   * Чем больше отрицательное значение, тем дальше автобус уходит влево.
   */
  background-position: -160px center;

  background-size: cover;
}


/*
 * Дополнительное затемнение центральной и правой части.
 * Оно улучшает читаемость текста, но сохраняет автобус
 * достаточно светлым и заметным.
 */

.contact-cta::before {
    position: absolute;
    z-index: 0;
    inset: 0;

    content: "";

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 8, 72, 0) 0%,
            rgba(0, 12, 105, .08) 34%,
            rgba(0, 10, 96, .22) 100%
        );
}


/* =========================================================
   09.2. ОСНОВНАЯ СЕТКА

   Первая колонка оставлена для автобуса.
   Вторая колонка содержит заголовок и кнопки.
   Третья колонка содержит контакты.
   ========================================================= */

.contact-cta__grid {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(300px, .95fr)
        minmax(380px, 1fr)
        minmax(320px, .82fr);

    gap: clamp(26px, 3vw, 52px);

    align-items: center;

    width: var(--shell);

    /*
     * Именно эти отступы определяют основную
     * высоту контактного блока.
     */

    padding:
        clamp(34px, 3vw, 46px)
        0;
}


/*
 * Пустая колонка над изображением автобуса.
 * У неё нет визуального оформления.
 */

.contact-cta__visual-space {
    min-height: 1px;
}


/* =========================================================
   09.3. ЦЕНТРАЛЬНАЯ ЧАСТЬ
   ========================================================= */

.contact-cta__content {
    max-width: 660px;
}


/* Заголовок */

.contact-cta__title {
    max-width: 560px;

    margin:
        0
        0
        16px;

    color: #ffffff;

    font-size: clamp(30px, 2vw, 42px);
    font-weight: 700;
    line-height: 1.08;

    letter-spacing: -.035em;
}


/* Описание */

.contact-cta__description {
    max-width: 540px;

    margin: 0;

    color: rgba(255, 255, 255, .80);

    font-size: clamp(15px, .9vw, 18px);
    line-height: 1.55;
}


/* =========================================================
   09.4. КНОПКИ
   ========================================================= */

.contact-cta__actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 26px;
}


/* Общий размер кнопок */

.contact-cta__button {
    min-width: 178px;
    min-height: 50px;

    padding:
        12px
        22px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;
}


/* Первая белая кнопка */

.contact-cta .contact-cta__button--primary {
    color: #000080;

    background: #ffffff;

    border:
        1px solid
        #ffffff;
}

.contact-cta .contact-cta__button--primary:hover {
    color: #000080;

    background: #f3f5ff;
    border-color: #f3f5ff;
}


/* Вторая прозрачная кнопка */

.contact-cta .contact-cta__button--secondary {
    color: #ffffff;

    background: transparent;

    border:
        1px solid
        rgba(255, 255, 255, .58);
}

.contact-cta .contact-cta__button--secondary:hover {
    color: #000080;

    background: #ffffff;
    border-color: #ffffff;
}


/* =========================================================
    09.5. ПРАВАЯ КОЛОНКА — КОНТАКТЫ
    ========================================================= */

 .contact-cta__contacts {
     display: grid;

     gap: 22px;

     margin: 0;

     color: #ffffff;

     font-style: normal;
 }


 /* Одна строка контактов */

 .contact-cta__contact {
     display: grid;

     grid-template-columns:
         46px
         minmax(0, 1fr);

     gap: 16px;

     align-items: center;
 }

 /* Текстовая часть строки контактов:
    ссылка и дополнительная подпись располагаются друг под другом */

 .contact-cta__contact-body {
     display: flex;
     flex-direction: column;
     align-items: flex-start;

     gap: 2px;

     min-width: 0;
 }


 /* Круг с иконкой */

 .contact-cta__icon {
     display: grid;
     place-items: center;

     width: 46px;
     height: 46px;

     color: #ffffff;

     border:
         1px solid
         rgba(255, 255, 255, .34);

     border-radius: 50%;
 }


 /* SVG внутри круга */

 .contact-cta__icon svg {
     width: 25px;
     height: 25px;

     fill: none;

     stroke: currentColor;
     stroke-width: 1.7;

     stroke-linecap: round;
     stroke-linejoin: round;
 }

 /* Иконка телефона, подключённая отдельным файлом */

 .contact-cta__icon-image {
     display: block;

     width: 25px;
     height: 25px;
 }


 /* Телефон и электронная почта */

 .contact-cta__contact-link {
     width: fit-content;

     color: #ffffff;

     font-size: clamp(16px, 1vw, 19px);
     font-weight: 700;
     line-height: 1.25;

     text-decoration: none;
 }


 /* Время работы */

 .contact-cta__contact-note {
     color: rgba(255, 255, 255, .66);

     font-size: 11px;
 }


 /* Адрес */

 .contact-cta__address {
     color: #ffffff;

     font-size: clamp(15px, .9vw, 18px);
     font-weight: 600;
     line-height: 1.4;
 }

/* =========================================================
   09.6. АДАПТАЦИЯ — НЕБОЛЬШИЕ ДЕСКТОПЫ

   Автобус остаётся слева, а текстовые колонки
   становятся немного уже.
   ========================================================= */

@media (max-width: 1350px) {

    .contact-cta__grid {
        grid-template-columns:
            minmax(210px, .65fr)
            minmax(330px, 1fr)
            minmax(280px, .78fr);

        gap: 28px;
    }

    .contact-cta__contacts {
        gap: 20px;
    }

    .contact-cta__contact {
        grid-template-columns:
            44px
            minmax(0, 1fr);

        gap: 14px;
    }

    .contact-cta__icon {
        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   09.7. АДАПТАЦИЯ — ПЛАНШЕТЫ

   Фотография автобуса становится декоративным фоном.
   Текст и контакты располагаются в две колонки.
   ========================================================= */

@media (max-width: 1050px) {

    .contact-cta {
        min-height: auto;

        background-position: 62% center;
    }

    /*
     * Затемнение становится плотнее, потому что текст
     * частично располагается над фотографией.
     */

    .contact-cta::before {
        background:
            linear-gradient(
                90deg,
                rgba(0, 10, 92, .84) 0%,
                rgba(0, 10, 92, .90) 48%,
                rgba(0, 10, 92, .78) 100%
            );
    }

    .contact-cta__grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(280px, .8fr);

        gap: 48px;

        padding:
            58px
            0;
    }

    .contact-cta__visual-space {
        display: none;
    }
}


/* =========================================================
   09.8. АДАПТАЦИЯ — ТЕЛЕФОНЫ

   Весь контент располагается в одну колонку.
   Для читаемости показывается преимущественно синяя
   часть фонового изображения.
   ========================================================= */

@media (max-width: 720px) {

    .contact-cta {
        background-position: 76% center;
    }

    .contact-cta::before {
        background:
            rgba(0, 10, 92, .86);
    }

    .contact-cta__grid {
        grid-template-columns: 1fr;

        gap: 44px;

        padding:
            48px
            0;
    }

    .contact-cta__title {
        font-size: clamp(32px, 9vw, 42px);
    }

    .contact-cta__actions {
        margin-top: 30px;
    }

    .contact-cta__contacts {
        gap: 24px;

        padding-top: 34px;

        border-top:
            1px solid
            rgba(255, 255, 255, .20);
    }
}


/* =========================================================
   09.9. АДАПТАЦИЯ — МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ========================================================= */

@media (max-width: 480px) {

    .contact-cta__actions {
        display: grid;

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .contact-cta__button {
        width: 100%;
        min-width: 0;
    }

    .contact-cta__contact {
        grid-template-columns:
            46px
            minmax(0, 1fr);

        gap: 14px;
    }

    .contact-cta__icon {
        width: 46px;
        height: 46px;
    }

    .contact-cta__icon svg {
        width: 25px;
        height: 25px;
    }

    .contact-cta__contact-link,
    .contact-cta__address {
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   10. АДАПТИВНЫЕ СТИЛИ
   ========================================================= */


/* =========================================================
   10.1 БОЛЬШИЕ ЭКРАНЫ — ОТ 1920 PX
   ========================================================= */

@media (min-width: 1920px) {

    .hero,
    .hero__layout {
        min-height: 620px;
    }

    .hero__content {
        width: min(42%, 650px);
    }
}


/* =========================================================
   10.2 ПЛАНШЕТЫ И НЕБОЛЬШИЕ НОУТБУКИ — ДО 1180 PX
   ========================================================= */

@media (max-width: 1180px) {

    /* ---------- HERO ---------- */

    .hero,
    .hero__layout {
        min-height: 530px;
    }

    .hero {
        padding-top: 20px;
    }

    .hero__content {
        width: 48%;
    }

    .hero__proofs {
        width: min(720px, 78vw);
    }


    /* ---------- НАШИ УСЛУГИ ---------- */

    .services-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .business-card {
        grid-column: 1 / -1;
    }


    /* ---------- КОРПОРАТИВНЫЕ ПЕРЕВОЗКИ ---------- */

    .employee__panel {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);

        min-height: auto;
    }

    .employee__media {
        min-height: 480px;
    }

    .employee__media img {
        min-height: 480px;
    }

    .employee__content {
        margin-left: -42px;

        padding:
            48px
            42px
            48px
            58px;
    }

    .employee__steps {
        grid-column: 1 / -1;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px 44px;

        padding: 38px 48px 44px;

        border-top:
            1px solid rgba(0, 0, 128, .07);
    }

    .employee__steps li {
        min-height: 82px;
    }

    .employee__steps li::after {
        display: none;
    }


       /* ---------- АВТОПАРК ---------- */

       .fleet-section__layout {
           grid-template-columns: 1fr;
           gap: 38px;
       }

       .fleet-section__content {
           max-width: 720px;
       }

       .fleet-features {
           max-width: 680px;
       }

       .fleet-gallery {
           padding-top: 52px;
       }

       .fleet-gallery__item img {
           height: clamp(320px, 48vw, 460px);
       }


               /* ---------- НАМ ДОВЕРЯЮТ ---------- */

           .trust__layout {
               grid-template-columns: 1fr;
               gap: 36px;
           }

           .trust__intro {
               max-width: 680px;
           }

           .trust__lead {
               max-width: 560px;
           }

           .trust-grid {
               grid-template-columns:
                   repeat(4, minmax(0, 1fr));

               gap: 26px;
           }

           .trust-stat strong {
               white-space: normal;
           }


}


/* =========================================================
   10.3 МОБИЛЬНЫЕ УСТРОЙСТВА — ДО 820 PX
   ========================================================= */

@media (max-width: 820px) {

    /* ---------- HERO ---------- */

    .hero {
        display: grid;

        min-height: auto;

        padding: 44px 0 64px;

        background: #ffffff;
    }

    .hero__layout {
        min-height: 0;

        padding-top: 42px;
        padding-bottom: 26px;
    }

    .hero__content {
        width: 100%;
        max-width: none;

        padding: 0;
    }

    .hero h1 {
        font-size:
            clamp(2.25rem, 10vw, 3.55rem);
    }

    .hero__media {
        position: relative;

        grid-row: 2;

        width: 100%;

        aspect-ratio: 16 / 9;
    }

    .hero__media img {
        object-fit: cover;
        object-position: 70% center;
    }

    .hero__media::after {
        display: none;
    }

    .hero__proofs {
        width: 100%;

        grid-template-columns: 1fr;

        margin-top: 26px;
    }

    .hero-proof + .hero-proof {
        border-top:
            1px solid rgba(0, 0, 128, .10);

        border-left: 0;
    }


    /* ---------- НАШИ УСЛУГИ ---------- */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-tile > img {
        height: auto;

        object-fit: contain;
    }


    /* ---------- КОРПОРАТИВНЫЕ ПЕРЕВОЗКИ ---------- */

    .employee {
        padding-block: 42px;
    }

    .employee__panel {
        grid-template-columns: 1fr;

        border-radius: 16px;
    }

    .employee__media {
        min-height: auto;
    }

    .employee__media img {
        width: 100%;
        height: auto;
        min-height: 0;

        aspect-ratio: 4 / 3;

        object-fit: cover;
        object-position: left center;
    }

    /*
     * На телефоне переход направлен сверху вниз,
     * потому что текст располагается под фотографией.
     */

    .employee__media::after {
        top: auto;
        right: 0;
        bottom: -2px;
        left: 0;

        width: 100%;
        height: 26%;

        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, .62) 52%,
                #ffffff 100%
            );
    }

    .employee__content {
        margin-top: -46px;
        margin-left: 0;

        padding:
            24px
            24px
            38px;
    }

    .employee__content h2 {
        font-size:
            clamp(2rem, 9vw, 2.7rem);
    }

    .employee__steps {
        grid-column: auto;
        grid-template-columns: 1fr;

        gap: 0;

        padding:
            34px
            24px
            38px;

        border-top:
            1px solid rgba(0, 0, 128, .07);
    }

    .employee__steps li {
        min-height: 100px;
    }

    .employee__steps li:not(:last-child)::after {
        display: block;
    }

        /* ---------- АВТОПАРК ---------- */

        .fleet-section {
            padding-block: 46px;
        }

        .fleet-section__layout {
            gap: 32px;
        }

        .fleet-features {
            gap: 22px 18px;
        }

        /*
         * На мобильном экране одновременно показывается
         * примерно полторы фотографии. Это подсказывает
         * пользователю, что галерею можно листать.
         */

        .fleet-gallery__track {
            grid-template-columns:
                repeat(4, minmax(250px, 76vw));

            padding-bottom: 10px;
        }

        .fleet-gallery__item img {
            height: 380px;
        }

       /* ---------- НАМ ДОВЕРЯЮТ ---------- */

       .trust {
           padding:
               34px
               0
               48px;
       }

       .trust__layout {
           gap: 32px;
       }

       .trust-grid {
           grid-template-columns:
               repeat(2, minmax(0, 1fr));

           gap:
               34px
               26px;
       }

       .trust-stat p {
           max-width: 280px;
       }

       .trust-stat strong {
           white-space: normal;
       }

/* ---------- О КОМПАНИИ ---------- */

.company__grid {
    grid-template-columns: 1fr;

    gap: 28px;
}

/* Конец адаптации для экранов до 820 px */
}


/* =========================================================
   10.4 МАЛЕНЬКИЕ ТЕЛЕФОНЫ — ДО 560 PX
   ========================================================= */

@media (max-width: 560px) {

    /* ---------- HERO — КНОПКИ ---------- */

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .button {
        width: 100%;
    }


    /* ---------- HERO ---------- */

    .hero__proofs {
        display: grid;
        gap: 10px;
    }


       /* ---------- НАМ ДОВЕРЯЮТ ---------- */

          /*
           * PNG-иконка на маленьком экране занимает
           * две строки: строку заголовка и строку описания.
           */

          .trust-stat__icon {
              grid-row: 1 / 3;

              width: 58px;
              height: 58px;

              object-fit: contain;
          }

       /* ---------- АВТОПАРК ---------- */

       .fleet-features {
           grid-template-columns: 1fr;
           gap: 18px;
       }

       .fleet-feature {
           grid-template-columns:
               50px
               minmax(0, 1fr);
       }

       .fleet-feature__icon {
           width: 50px;
           height: 50px;
       }

       .fleet-section__button {
           width: 100%;
       }

       .fleet-gallery {
           padding-top: 48px;
       }

       .fleet-gallery__track {
           grid-template-columns:
               repeat(4, minmax(235px, 82vw));
       }

       .fleet-gallery__item img {
           height: 350px;
       }

       .fleet-gallery__controls a {
           width: 42px;
           height: 42px;
       }
}

