/* Основная структура */



/* ===== Контейнер главного экрана ===== */
.home-screen-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 38px;
    box-sizing: border-box;
}

/* === Левая колонка === */
.left-content {
    flex: 3; /* 60% ширины */
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* === Слайдер === */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 38px;
    background-color: #004D4D;
    border-radius: 38px;
    border: 1px solid #fff;
}

.hero-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.hero-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Каждый слайд */
.slide {
    display: none; /* Скрыты по умолчанию */
    width: 100%;
    flex-shrink: 0;
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Заголовки и текст */
.promo-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: #FFB380;
    margin-bottom: 10px;
}

.description {
    font-size: 1.2rem;
    margin: 24px 0;
}

/* Статистика слайдов */
.promo-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 0;
}

.stat span {
    font-size: 2rem;
    font-weight: bold;
    display: flex;          /* Используем flexbox */
    align-items: center;  /* Выравнивание по нижнему краю */
    gap: var(--space-10);   /* Отступ между иконкой и текстом */
}

.slider-icon {
    flex-shrink: 0;
    height: 0.8em;
    width: auto;
    max-width: 1em;   /* кап по ширине, подбери под себя */
    fill: currentColor;
}

/* === Пагинация === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 14px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent; /* Прозрачный фон */
    border: 1px solid #fff; /* Белая обводка */
    transition: background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.dot.active {
    background-color: #FFB380; /* Цвет активного кружка */
    border: 1px solid #fff; /* Цвет обводки активного кружка */
}

/* === Правая колонка === */
.right-content {
    flex: 2; /* 40% ширины */
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Блок скидки */
.discount {
    background-color: #004D4D;
    padding: 38px;
    border-radius: 38px;
    border: 1px solid #fff;
    color: #fff;
    text-align: center;
    line-height: 1;
}

.discount-title {
    font-size: 1.4rem;
    color: #FFB380;
    margin: 0;
}

/* Таймер */
.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.countdown-number {
    background-color: #fff;
    color: #004D4D;
    padding: 8px 8px;
    margin: 8px 5px;
    border-radius: 14px;
    text-align: center;
    font-size: 1.2rem;
    display: inline-block;
}

.countdown-time {
    text-align: center;
    padding-top: 16px;
}

/* === Калькулятор === */

.calculator-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 38px;
}

.from-input,
.to-input {
    padding: 15px 38px;
    border: 2px solid #004D4D;
    background-color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    color: #004D4D;
}

.from-input {
    border-top-left-radius: 38px;
    border-top-right-radius: 38px;
}

.to-input {
    border-bottom-left-radius: 38px;
    border-bottom-right-radius: 38px;
    border-top: none;
}

.from-input::placeholder,
.to-input::placeholder {
    color: #004D4D;
    opacity: 1;
}

.calculate-button {
    background-color: #F46839;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 38px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    margin-top: 20px;
    width: 100%;
}

.calculate-button:hover {
    filter: brightness(0.9);
    box-shadow:
        0 0 0 1px rgba(255, 179, 128, 0.9),  /* тонкий контур */
        0 0 6px  rgba(255, 179, 128, 0.9),  /* ближнее свечение */
        0 0 12px rgba(255, 179, 128, 0.8),  /* дальше */
        0 0 22px rgba(255, 179, 128, 0.7);  /* мягкий неон */
    transform: translateY(-1px); /* лёгкий подъём для живости */
}

/* Чтобы можно было позиционировать кнопку относительно блока полей */
.route-calculator .calculator-fields {
    position: relative;
}

/* Круглая кнопка между полями */
.route-calculator .route-swap {
    position: absolute;
    left: 90%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;

    border-radius: 50%;
    border: 2px solid #004D4D;
    background-color: #ffffff;
    color: #004D4D;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;

    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

/* Убираем дефолтный outline, но оставляем фокус-стиль по-своему */
.route-calculator .route-swap:focus {
    outline: none;

}

/* Можно слегка ослабить при hover */
.route-calculator .route-swap:hover {
   box-shadow:
        0 0 0 1px rgba(255, 179, 128, 0.9),  /* тонкий контур */
        0 0 6px  rgba(255, 179, 128, 0.9),  /* ближнее свечение */
        0 0 12px rgba(255, 179, 128, 0.8),  /* дальше */
        0 0 22px rgba(255, 179, 128, 0.7);  /* мягкий неон */
}

/* Стрелки внутри кнопки */
.route-calculator .route-swap-arrow {
    display: block;
    line-height: 1;
}

/* Варианты перевозки для маршрута Москва—СПб */
.route-delivery .delivery-options {
    display: flex;
    gap: 38px;
    flex-wrap: wrap;
    align-items: stretch;
}

.route-delivery .delivery-card {
    flex: 1 1 280px;
    border: 1px solid #fff;
    border-radius: 38px;
    padding: 38px;
    display: flex;
    flex-direction: column;
}

/* Картинка сверху карточки */
.route-delivery .delivery-card-image {
    margin: 0 0 14px 0;
    display: flex;
    justify-content: center;
}

.route-delivery .delivery-card-image img {
    display: block;
    max-width: 100%;
    max-height: 180px; /* ограничиваешь высоту */
    height: auto;
    margin: 0 auto;
}

/* Заголовок и текст */
.route-delivery .delivery-card .h2-title {
    margin-bottom: 12px;
    text-align: center;
}

.route-delivery .delivery-card .text-p {
    margin-bottom: 18px;
}

/* Список преимуществ */
.route-delivery .delivery-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.route-delivery .delivery-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.route-delivery .delivery-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #F46839; /* под цвет кнопки "Рассчитать" */
}

.delivery-card .h3-title {
    text-align: center;
}

.delivery-card .red-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0px auto 0;  /* auto по бокам = центрируем в карточке */
}

/* Дополнительные опции под вариантами перевозки */
.route-delivery .delivery-extra {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.route-delivery .delivery-extra-title {
    margin: 0 0 14px;
    color: #FFFFFF; /* белый текст */
}

.route-delivery .delivery-extra-list {
    display: flex;
    flex-wrap: wrap; /* если не влезет по ширине, таблетки сами перенесутся */
    gap: 14px;
}

.route-delivery .delivery-extra-item {
    padding: var(--space-15) var(--space-24);
    border-radius: 999px;
    background-color: var(--text-p-color);
    font-size: 1.2rem;
    color: #004D4D;
    white-space: nowrap;

    display: inline-flex;      /* чтобы иконка и текст были в ряд */
    align-items: center;
    gap: 8px;                  /* расстояние между иконкой и текстом */
}

/* Иконка внутри таблетки (SVG из include) */
.route-delivery .delivery-extra-item svg {

    height: 1.2rem;         /* фиксированная высота */
    width: auto;          /* ширина автоматически */
    max-width: 2.2rem;
    fill: #004D4D;
    flex-shrink: 0;
}

/* Кнопка "Смотреть все тарифы" как отдельная, акцентная таблетка */
.route-delivery .delivery-extra-item--cta {
    background-color: #1FA776;        /* оранжевый фон */
    color: #FFFFFF;                   /* белый текст */
    border: 1px solid #1FA776;        /* если нужен контур – под цвет фона */
    text-decoration: none;            /* убираем подчёркивание у ссылки */
    cursor: pointer;
    transition: filter 0.15s ease-in-out;
}

/* Ховер эффект, как у других CTA-кнопок */
.route-delivery .delivery-extra-item--cta:hover {
    filter: brightness(0.9);
}

/* Преимущества именно маршрута Москва—СПб */
.plus-block {
  display: flex;
  align-items: stretch;    /* колонки одинаковой высоты */
  gap: 38px;
  border: 1px solid #fff;
  border-radius: 38px;
  overflow: hidden;         /* скрывает все, что выходит за границы блока */
}

.plus-block > div {
  flex: 1;                 /* колонки поровну делят ширину */
}

/* Блок с картинкой */
.plus-block-1 {
  display: flex;            /* делаем контейнер flex’ом */
  justify-content: center;  /* центрирование по горизонтали */
  align-items: center;      /* и по вертикали */
  overflow: hidden;         /* картинка не будет выходить за пределы блока */
  padding: 0;               /* убираем отступы вокруг картинки */
}

/* Стили для картинки */
.plus-block-img {
  width: 100%;              /* растягиваем по ширине */
  height: 100%;             /* растягиваем по высоте */
  object-fit: cover;        /* заполняем блок, обрезая лишнее */
  display: block;           /* убираем лишние пробелы */
}

/* Блок со вторым содержимым (с отступами) */
.plus-block-2 {
  padding: 38px;            /* отступы внутри второго блока */
}

.advantages-title {
  display: flex;
  align-items: center;       /* иконка и текст на одной линии */
  justify-content: flex-start; /* всё прижато к левому краю */
  gap: 0.5em;                /* расстояние между иконкой и заголовком */
}

.plus-icon {
  flex-shrink: 0;
  height: 1em;               /* иконка равна высоте текста */
  width: 1em;
  fill: currentColor;
}

/* Блок "Как проходит переезд по шагам" для маршрута Москва—СПб */

/* Сетка шагов */
.route-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 38px;
}

/* Карточка шага */
.route-step-card {
    border: 1px solid #ffffff;
    border-radius: 38px;
    padding: 24px 24px 20px;
    background-color: rgba(0, 77, 77, 0.06); /* лёгкий фон, вписывается в общий стиль */
    display: flex;
    flex-direction: column;
}

/* Кружок с номером шага */
.route-step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;   /* добавляем */
    min-height: 50px;  /* добавляем */

    border-radius: 50%;
    background-color: #FFB380;
    color: #004D4D;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'Stolzl', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;

    margin-bottom: 0;   /* важно, т.к. теперь он в строке с заголовком */
    flex-shrink: 0;     /* вот эта строка запрещает ему сжиматься */
}

.route-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* Заголовок шага */
.route-step-card .h3-title {
    margin: 0;              /* убираем стандартные отступы */
    line-height: 1.3;
}

/* Текст шага */
.route-step-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Блок Автопарк*/

.autopark {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Обёртка и лента */
.fleet-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.fleet-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: var(--text-color);
  font-size: 22px;

  text-align: center;
  cursor: pointer;
  z-index: 2;
}

.fleet-btn.prev {
  left: 4px;
}

.fleet-btn.next {
  right: 4px;
}

.fleet-btn:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* Лента прокрутки */
.fleet-track {
  display: flex;
  gap: 38px;
  width: 100%;
  overflow-x: hidden;
  padding: 0;
}

.fleet-track::-webkit-scrollbar {
  display: none;
}

/* Карточка автопарка */
.fleet-card {
  flex: 0 0 22%; /* показываем 4 карточки */
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border-radius: 38px;
  border: 1px solid #fff;
  overflow: hidden;
  width: 100%;
  scroll-snap-align: center;
}

/* Фото машины */
.vehicle-img {
  box-sizing: border-box;
}

.vehicle-img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Название машины */
.vehicle-name {

  padding: 12px 16px;
  text-align: center;
}

.vehicle-name h3 {
  font-size: 1.4rem;
  color: #fff;
  font-weight: 300;
  margin: 18px 0 0;
}

/* Характеристики */
.vehicle-info {

  color: var(--text-p-color);
  padding: 0 14px;
  text-align: center;
}

/* конец блока Автопарк */

/* Блок "Документы и гарантии" для маршрута */

/* Сетка из двух карточек */
.route-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 38px;
}

/* Карточка документа/гарантий */
.route-doc-card {
    border: 1px solid #ffffff;
    border-radius: 38px;
    padding: 24px 24px 22px;
    background-color: rgba(0, 77, 77, 0.06);
}

/* Заголовок карточки */
.route-doc-card .h3-title {
    margin: 0 0 12px 0;
}

/* Список внутри карточки */
.route-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Один пункт списка: плюс + текст */
.route-doc-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Обертка текста, чтобы не тянуть иконку */
.route-doc-list li span {
    flex: 1;
}

/* Плюс-иконка в списке (из include) */
.route-doc-list .plus-icon {
    flex-shrink: 0;
    margin-top: 2px; /* чтобы центр иконки был примерно на уровне первой строки текста */
}

/* Блок с отзывами */

/* Внешняя обёртка отзывов */
.testimonials {
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Секция с каруселью */
.testimonials-section {}

/* Лента карточек */
.testimonials-carousel {
    display: flex;
    gap: 38px;
    padding: 4px 0 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    cursor: grab;
}
.testimonials-carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing;
}
.testimonials-carousel::-webkit-scrollbar { display: none; }

/* Карточка */
.testimonial-card {
    display: flex;
    flex-direction: row;
    gap: 38px;
    flex: 0 0 80%;
    max-width: 80%;
    background: #FFE6B3;
    color: #004D4D;
    border-radius: 38px;
    border: 1px solid #fff;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform .3s;
    padding: 0;
}

/* Фото: фиксируем соотношение сторон вместо max-height */
.testimonial-image {
    /* ширина колонки с фото */
    flex: 0 0 clamp(220px, 40%, 340px);
    /* высота задаётся соотношением, а не пикселями */
    aspect-ratio: 4 / 3;              /* под портрет/полурост можно 3/4 или 4/3 */
    overflow: hidden;
}
.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;                 /* равномерная обрезка без искажений */
    display: block;
}

/* Контент */
.testimonial-content {
    flex: 1;
    padding: 38px 38px 38px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Тексты */
.testimonial-text {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 16px;
    color: #333;
}
.testimonial-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 4px;
}
.testimonial-title {
    font-size: .9rem;
    font-weight: 300;
    color: #666;
    margin: 0;
}

/* Кнопки */
.carousel-controls {
    display: flex;
    gap: 14px;
    margin: 16px 0 0 16px;
}
.carousel-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.carousel-btn:hover {
    background: rgba(255,255,255,.8);
    }


.questions-block {
    display: grid;
    border: 1px solid #fff;
    border-radius: 38px;
    padding: 38px;
}

.main-faq {
    width: 100%;
    text-align: center;        /* Выравнивание текста по центру */
}

.main-faq-list {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.main-faq-question {
    cursor: pointer;
}

.main-faq-icon {

    font-weight: 300;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.main-faq-answer {
    display: none; /* по умолчанию скрыт */
}

.contact-block {
    display: flex;
    gap: 38px; /* Промежуток между блоками */
}

.contact-block > div {
    width: 100%;
    border: 1px solid #fff;    /* Белая рамка толщиной 1px */
    border-radius: 38px;       /* Радиус скругления 38px */
    text-align: center;        /* Выравнивание текста по центру */
    padding: 38px 22px;        /* Внутренние отступы (пример) */
}

.contact-block > div .text-p {
    margin-top: 0;
}

.contact-block .contact-2 {
    display: flex; /* Используем flex для центрирования элементов */
    flex-direction: column; /* Располагаем элементы вертикально */
    align-items: center; /* Центрируем элементы по горизонтали */
}

/* Мобильные устройства (портретная ориентация) */
@media (max-width: 767px) and (orientation: portrait) {

    .home-screen-block {
        flex-direction: column;
        gap: 20px;
    }

    .left-content, .right-content {
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }
    .hero,
    .discount {
        padding: 24px;
    }

    .promo-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat span {
       justify-content: center;
       }

    .stat {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }

    .discount-title {
        padding: 0 8px;
    }
    .countdown {
        gap: 8px;
    }
    .from-input, .to-input {
        padding: 15px 24px;
    }

    .route-delivery .delivery-options {
        flex-direction: column;
    }

    .route-delivery .delivery-card {
        padding: 28px 20px;
    }

    .route-delivery .delivery-extra {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .route-delivery .delivery-extra-list {

    }

    .route-delivery .delivery-extra-title {
        margin-bottom: 14px;
    }

    .plus-block {
        display: grid;
        gap: 20px;
    }

    .plus-block > div {
        width: auto;
    }

    .plus-block-2 {
        padding: 20px;            /* отступы внутри второго блока */
    }

    .route-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .route-step-card {
        padding: 20px;
    }

    .fleet-track {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        flex-wrap: nowrap; /* карточки не расползаются */
        scroll-snap-type: x mandatory; /* Прокручиваем по одной карточке */
    }

    .fleet-card {
         flex: 0 0 90%; /* Показываем по одной карточке */
         scroll-snap-align: start; /* Карточки «прилипают» при прокрутке */
    }

    .fleet-btn {
       display: none;
    }

    .carousel-controls {
        display: none;
    }

    .route-docs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .route-doc-card {
        padding: 20px;
    }

    .testimonial-card {
       gap: 20px;
    }

    .testimonials-carousel {
        gap: 20px;
        padding: 4px 0 16px;
        scroll-padding: 0 12px;
    }
    .testimonial-card {
        flex-direction: column;
        flex: 0 0 90%;
        max-width: 90%;
    }
    .testimonial-image {
        flex: 0 0 auto;
        width: 100%;
    }
    .testimonial-content {
        padding: 0 20px 20px;
    }

    .contact-block {
        display: grid;
        gap: 20px;
    }

    .contact-block > div {
        width: auto;
    }

}

/* Мобильные устройства (ландшафтная ориентация) */
@media (max-width: 1024px) and (orientation: landscape) {
    /* Заставляем .main-content располагать блоки вертикально, чтобы .right-content оказался под .promo */

    .main-content {
        padding: 10px 0;
    }

    .home-screen-block {
        flex-direction: column;
    }

    /* Внутри .right-content располагаем блоки .discount и .calculator в две колонки */
    .right-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .plus-block-2 {
        padding: 20px;
    }

    .testimonial-card { flex: 0 0 88%; max-width: 88%; gap: 20px; }
    .testimonial-image { aspect-ratio: 3 / 2; } /* чуть более плоское */

}

/* Планшеты (портретная ориентация) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Располагаем блоки вертикально, как для мобильных в ландшафтной ориентации */

    .main-content {
        padding: 10px 0;
    }

    .home-screen-block {
        flex-direction: column;
    }

    /* Внутри .right-content располагаем блоки в две колонки */
    .right-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

        .plus-block {
        gap: 20px;
    }

    .plus-block-2 {
        padding: 20px;
    }


    .fleet-track {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        flex-wrap: nowrap; /* карточки не расползаются */
        scroll-snap-type: x mandatory; /* Прокручиваем по одной карточке */
    }

    .fleet-card {
         flex: 0 0 90%; /* Показываем по одной карточке */
         scroll-snap-align: start; /* Карточки «прилипают» при прокрутке */
    }

    .fleet-btn {
       display: none;
    }

    .carousel-controls {
        display: none;
    }

    .testimonials-carousel {
        gap: 20px;
    }

    .contact-block {

       gap: 20px;
    }

}

