/**
 * FRONT PAGE
 * Стили главной страницы: hero, форма расчёта, направления,
 * услуги, автопарк, преимущества, шаги, CTA
 */

/* ========== ОБЩЕЕ ========== */
.taxi-page {
    background: var(--color-bg);
}

.taxi-page .section {
    padding: 80px 0;
}

.taxi-page .section-alt {
    background: var(--color-bg-alt);
}

.taxi-page .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.taxi-page .section-title {
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--color-secondary);
    margin: 0;
    line-height: 1.2;
}

.taxi-page .section-desc {
    color: #64748b;
    font-size: 15px;
    margin: 8px 0 0;
}

.taxi-page .section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.taxi-page .section-link:hover {
    gap: 12px;
}

.taxi-page .section-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.taxi-page .section-link--pill {
    color: var(--color-secondary);
    border: 1px solid var(--color-gray-light);
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--color-white);
}

.taxi-page .section-link--pill:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ========== HERO ========== */
/* На главной шапка лежит поверх hero, поэтому картинка занимает
   весь экран, а содержимое отодвигаем вниз на высоту шапки.
   min-height 100vh снят: в hero живёт форма заказа, ей нужно
   место по содержимому, иначе низ обрезается на невысоких экранах.
   Важно: у hero НЕТ padding-top — иначе absolute-фон (.hero-bg)
   начинался бы ниже шапки и сверху была бы серая полоса. */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-bottom: 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 40%, #2a1f3d 70%, #1a2a3a 100%);
    background-size: cover;
    background-position: center;
}

/* Затемнение, если задана фотография */
.hero-bg[style*="background-image"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(13, 17, 23, 0.94) 0%, rgba(13, 17, 23, 0.75) 45%, rgba(13, 17, 23, 0.35) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    /* Отступ сверху вместо padding-top у .hero, чтобы фон .hero-bg
       (absolute inset:0) занимал всю высоту и не оставлял серой полосы
       под прозрачной шапкой. */
    margin-top: var(--header-height);
    padding: 60px 0;
}

/* Форма в hero: на десктопе — две колонки.
   Слева текст (hero-content), справа форма (hero-content2). */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 48px;
}

/* Правая колонка держит такой же отступ сверху/снизу, как и левая */
.hero-content2 {
    width: 100%;
    margin-top: var(--header-height);
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 100px;
    font-size: 13px;
    color: var(--color-primary);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px;
    color: var(--color-white);
}

.hero-sub {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-white);
    margin: 0 0 32px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

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

.hero-feat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(212, 168, 67, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feat-icon svg {
    width: 22px;
    height: 22px;
}

.hero-feat-text {
    font-size: 13px;
    line-height: 1.3;
    color: var(--color-text-dim);
}

.hero-feat-text strong {
    display: block;
    font-size: 14px;
    color: var(--color-white);
}

/* ========== ФОРМА РАСЧЁТА ========== */
.booking-form {
    position: relative;
    z-index: 3;
    margin-top: -40px;
    padding: 24px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.booking-form label {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray);
    transition: color 0.2s ease;
}

.booking-form .input-wrap {
    position: relative;
}

.booking-form .input-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-gray);
    pointer-events: none;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    background: var(--color-input-bg);
    font-size: 14px;
    font-family: inherit;
    color: var(--color-secondary);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-form select {
    appearance: none;
    cursor: pointer;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.booking-form .form-group:focus-within label {
    color: var(--color-primary);
}

.btn-calc {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold-light));
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-calc:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.4);
}

.btn-calc svg {
    width: 18px;
    height: 18px;
}

/* ========== ФОРМА ЗАКАЗА В HERO ========== */
/* Максимально компактная форма-полоса в hero-блоке.
   Поля подогнаны по высоте, шрифты уменьшены, отступы сжаты. */
.hero-booking {
    margin-top: 28px;
    max-width: 1000px;
}

.hero-booking .taxi-calculator-form {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Строки: flex с плотным зазором */
.hero-booking .hb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.hero-booking .hb-row:last-child {
    margin-bottom: 0;
}

/* Ячейка поля */
.hero-booking .hb-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 140px;
}

.hero-booking .hb-cell--service {
    flex: 0 1 210px;
}

.hero-booking .hb-cell--narrow {
    flex: 0 1 120px;
}

.hero-booking .hb-cell--options {
    flex: 0 1 auto;
}

.hero-booking .hb-cell--submit {
    flex: 0 0 auto;
}

.hero-booking .hb-cell--captcha {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Подписи полей: мелкие, приглушённые */
.hero-booking .hb-cell > label,
.hero-booking .hb-checks-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray);
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

/* Поля ввода: заниженная высота, компактный шрифт */
.hero-booking .form-control {
    padding: 7px 9px;
    font-size: 0.85rem;
    border-radius: 7px;
    border: 1px solid var(--color-gray-light);
    background: var(--color-input-bg);
    height: auto;
}

.hero-booking .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.15);
    outline: none;
}

.hero-booking select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
    cursor: pointer;
}

/* Подписи чекбоксов — в строку */
.hero-booking .hb-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: center;
    height: 33px;
}

.hero-booking .hb-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--color-gray-dark);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.hero-booking .hb-check input[type="checkbox"] {
    width: 13px;
    height: 13px;
    cursor: pointer;
    accent-color: var(--color-primary);
    margin: 0;
}

/* Кнопка — та же высота, что и поля */
.hero-booking .submit-btn {
    width: auto;
    padding: 8px 18px;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
    height: 33px;
    white-space: nowrap;
    border-radius: 7px;
    text-transform: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold-light));
    color: var(--color-secondary);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-booking .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 168, 67, 0.4);
}

/* Комментарий в строке (одна строка, без textarea) */
.hero-booking .hb-row--bottom {
    align-items: flex-start;
    margin-top: 2px;
}

.hero-booking .hb-row--bottom .hb-cell:first-child {
    flex: 1 1 auto;
}

/* Маска капчи под компактную ширину */
.hero-booking .g-recaptcha {
    transform: scale(0.82);
    transform-origin: top right;
}

.hero-booking .recaptcha-error {
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Ошибки в компактной форме */
.hero-booking .error-message {
    font-size: 0.72rem;
    margin-top: 2px;
    display: none;
}

.hero-booking .error-message.show {
    display: block;
}

.hero-booking .yandex-suggest-container {
    position: relative;
}

.hero-booking .suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: 7px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.hero-booking .suggestions-container.hidden {
    display: none;
}

.hero-booking .suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.hero-booking .suggestion-item:hover {
    background: #f9f9f9;
}

/* Адаптив: на узких экранах — вертикальная раскладка */
@media (max-width: 900px) {
    .hero-booking {
        max-width: 100%;
    }

    .hero-booking .hb-cell,
    .hero-booking .hb-cell--service,
    .hero-booking .hb-cell--narrow {
        flex: 1 1 100%;
    }

    .hero-booking .hb-cell--submit {
        flex: 1 1 100%;
    }

    .hero-booking .submit-btn {
        width: 100%;
    }

    .hero-booking .hb-cell--captcha {
        margin-left: 0;
        width: 100%;
        transform: scale(0.9);
        transform-origin: left top;
    }
}

/* ========== ПОПУЛЯРНЫЕ НАПРАВЛЕНИЯ ========== */
/* Горизонтальный слайдер, как и автопарк */
.routes-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.routes-grid::-webkit-scrollbar {
    display: none;
}

.route-card {
    position: relative;
    display: block;
    flex: 0 0 320px;
    height: 240px; /* Карточка «город + картинка» — широкая, компактная */
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.route-card:hover {
    transform: translateY(-4px);
}

.route-img {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2a3a, #2a1f3d);
    background-size: cover;
    background-position: center;
}

.route-overlay {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.route-city {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ========== УСЛУГИ ========== */
/* 3 карточки — центрируем их в ряд по центру контейнера */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 300px));
    justify-content: center;
    gap: 20px;
}

.service-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2a3a, #0d1117);
    background-size: cover;
    background-position: center;
}

.service-card:nth-child(2) .service-bg { background-image: linear-gradient(135deg, #2a1f3d, #1a1025); }
.service-card:nth-child(3) .service-bg { background-image: linear-gradient(135deg, #1f2a1a, #0d1510); }
.service-card:nth-child(4) .service-bg { background-image: linear-gradient(135deg, #2a2520, #1a1510); }

.service-card .service-bg[style*="background-image"] {
    background-image: none;
}

/* Затемняем только верх и низ — под названием и кнопкой.
   Середина картинки остаётся открытой. */
.service-card .service-bg[style*="background-image"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13, 17, 23, 0.85) 0%,
        rgba(13, 17, 23, 0.55) 22%,
        rgba(13, 17, 23, 0) 40%,
        rgba(13, 17, 23, 0) 60%,
        rgba(13, 17, 23, 0.55) 78%,
        rgba(13, 17, 23, 0.85) 100%
    );
}

/* Текст группируется сверху, кнопка «Подробнее» прижата к низу */
.service-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

/* Верхняя группа: название и описание */
.service-info {
    display: block;
    min-width: 0;
}

.service-title {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-white);
    margin-bottom: 10px;
}

/* Высота карточки фиксирована (aspect-ratio), поэтому длинное
   описание обрезаем, чтобы текст не заезжал под кнопку */
.service-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

/* Кнопка «Подробнее» внизу карточки */
.service-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(212, 168, 67, 0.5);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    transition: gap 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.service-card:hover .service-link {
    gap: 12px;
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-secondary);
}

.service-link svg {
    width: 14px;
    height: 14px;
}

/* ========== СТАТЬИ ПОД УСЛУГАМИ ========== */
.section-services-extra {
    padding-top: 0;
}

.section-services-extra .article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.section-services-extra .article-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.section-services-extra .article-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-secondary);
    margin: 0 0 16px;
    padding-bottom: 14px;
    position: relative;
}

.section-services-extra .article-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-primary);
}

.section-services-extra .article-body {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

.section-services-extra .article-body p {
    margin: 0 0 14px;
}

.section-services-extra .article-body p:last-child {
    margin-bottom: 0;
}

.section-services-extra .article-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.section-services-extra .article-body li {
    margin-bottom: 6px;
}

.section-services-extra .article-body strong,
.section-services-extra .article-body b {
    color: var(--color-secondary);
}

@media (max-width: 1024px) {
    .section-services-extra .article-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== АВТОПАРК ========== */
.fleet-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    /* Прячем полосу прокрутки, скроллим стрелками и тачем */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.fleet-grid::-webkit-scrollbar {
    display: none;
}

.fleet-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.fleet-img {
    height: 240px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Навигация слайдера */
.fleet-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.fleet-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--color-gray-light);
    background: var(--color-white);
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.fleet-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-secondary);
}

.fleet-arrow svg {
    width: 20px;
    height: 20px;
}

.fleet-arrow:disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.fleet-car {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-placeholder {
    width: 60%;
    height: auto;
    color: #94a3b8;
}

.fleet-body {
    padding: 20px;
}

.fleet-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 4px;
}

.fleet-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.fleet-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.fleet-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.fleet-spec svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94a3b8;
}

/* Список автомобилей может быть в несколько строк,
   поэтому иконку прижимаем к верху, а не центрируем */
.fleet-spec--cars {
    align-items: flex-start;
}

.fleet-spec--cars svg {
    margin-top: 2px;
}

.fleet-cars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.fleet-car-item {
    padding: 3px 10px;
    border: 1px solid var(--color-gray-light);
    border-radius: 100px;
    background: var(--color-input-bg);
    font-size: 12px;
    line-height: 1.4;
    color: #475569;
}

.fleet-btn {
    display: block;
    padding: 12px;
    text-align: center;
    background: var(--color-input-bg);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.fleet-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-secondary);
}

/* ========== ПОЧЕМУ ВЫБИРАЮТ НАС ========== */
.section-why {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d1117 0%, #1a2030 50%, #0d1117 100%);
}

.section-why::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.section-why .section-title {
    color: var(--color-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.why-item {
    text-align: center;
}

.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: rgba(212, 168, 67, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 28px;
    height: 28px;
}

.why-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 4px;
    line-height: 1.2;
}

.why-value--sm {
    font-size: 18px;
}

.why-label {
    font-size: 13px;
    color: var(--color-text-dim);
}

.why-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
}

.btn-outline svg {
    width: 16px;
    height: 16px;
}

/* ========== КАК ПРОХОДИТ ПОЕЗДКА ========== */
.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), rgba(212, 168, 67, 0.3));
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.process-num {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step-icon svg {
    width: 12px;
    height: 12px;
}

.process-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 8px;
}

.process-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

/* ========== CTA ========== */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1025 0%, #0d1117 50%, #1a2030 100%);
}

.cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.cta-text {
    max-width: 560px;
}

.cta-text h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0 0 16px;
}

.cta-text h2 span {
    color: var(--color-primary);
}

.cta-text p {
    font-size: 16px;
    color: var(--color-text-dim);
    margin: 0 0 32px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.taxi-page .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-gold-light));
    color: var(--color-secondary);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.taxi-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 168, 67, 0.4);
}

.btn-telegram-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--color-telegram), var(--color-telegram-dark));
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-telegram-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 171, 238, 0.4);
}

.btn-telegram-lg svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========== ХЕДЕР ВНУТРЕННИХ СТРАНИЦ ========== */
.taxi-page .page-hero {
    padding: 64px 0;
    background: linear-gradient(135deg, #0d1117 0%, #1a2030 50%, #0d1117 100%);
    text-align: center;
}

.taxi-page .page-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    color: var(--color-white);
    margin: 0;
    line-height: 1.2;
}

.taxi-page .page-subtitle {
    font-size: 16px;
    color: var(--color-text-dim);
    margin: 12px 0 0;
}

.taxi-page .page-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-gray-dark);
    line-height: 1.7;
}

.taxi-page .page-content h2,
.taxi-page .page-content h3 {
    color: var(--color-secondary);
    margin: 32px 0 12px;
}

.taxi-page .page-content p {
    margin: 0 0 16px;
}

.taxi-empty {
    text-align: center;
    color: var(--color-gray);
    font-size: 15px;
    padding: 40px 0;
    margin: 0;
}

.fleet-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 16px;
}

/* ========== ТАБЛИЦА ТАРИФОВ ========== */
.tariff-table-wrap {
    overflow-x: auto;
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-lg);
}

.tariff-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.tariff-table th,
.tariff-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--color-gray-light);
}

.tariff-table th {
    background: var(--color-input-bg);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tariff-table tbody tr:last-child th,
.tariff-table tbody tr:last-child td {
    border-bottom: none;
}

.tariff-table tbody tr:hover {
    background: var(--color-input-bg);
}

.tariff-table td {
    color: #64748b;
}

.tariff-table-name {
    font-weight: 700;
    color: var(--color-secondary) !important;
    white-space: nowrap;
}

.tariff-arrow {
    color: var(--color-primary);
}

.tariff-table-price {
    font-weight: 600;
    color: var(--color-primary) !important;
    white-space: nowrap;
}

.tariff-table-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--color-input-bg);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tariff-table-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ========== АНИМАЦИЯ ПОЯВЛЕНИЯ ========== */
.taxi-page .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.taxi-page .fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .taxi-page .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid,
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px 16px;
    }

    .process-grid::before {
        display: none;
    }

    .booking-form {
        grid-template-columns: 1fr 1fr;
    }

    .btn-calc {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .taxi-page .section,
    .cta-section {
        padding: 56px 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 48px 0;
    }

    /* На мобильном колонки складываются друг за другом */
    .hero-grid {
        display: block;
    }

    .hero-content2 {
        margin-top: 0;
        padding: 0 0 48px;
    }

    .hero-features {
        gap: 20px;
    }

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

    .service-card {
        aspect-ratio: 4 / 3;
    }

    .why-grid,
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-form {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

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

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* .routes-grid уже в одну колонку с 768px */
    .why-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .taxi-page .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Экраны ≤400px (маленькие смартфоны) */
@media (max-width: 400px) {
    .hero {
        padding-bottom: 20px;
    }
    
    .hero-content {
        padding: 30px 0;
        margin-top: 0;
    }
    
    .hero h1 {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .hero-sub {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-features {
        gap: 15px;
    }
    
    .hero-feat {
        gap: 8px;
    }
    
    .hero-feat-icon {
        width: 36px;
        height: 36px;
    }
    
    .hero-feat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .hero-feat-text {
        font-size: 12px;
    }
    
    .hero-booking {
        margin-top: 16px;
        max-width: 100%;
    }
    
    .hero-booking .taxi-calculator-form {
        padding: 12px 14px;
    }
    
    .hero-booking .hb-row {
        gap: 6px 8px;
        margin-bottom: 6px;
    }
    
    .hero-booking .hb-cell {
        flex: 1 1 100px;
    }
    
    .hero-booking .hb-cell > label {
        font-size: 10px;
    }
    
    .hero-booking .form-control {
        padding: 6px 8px;
        font-size: 0.8rem;
        height: 28px;
    }
    
    .hero-booking .hb-checks {
        height: 28px;
    }
    
    .hero-booking .submit-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        height: 28px;
    }
    
    .hero-booking .g-recaptcha {
        transform: scale(0.75);
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
}
