/* Базовая вёрстка страницы (контент — Bootstrap container). */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.legal-document {
    max-width: 52rem;
    line-height: 1.65;
}

.legal-document__lead {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.legal-document__heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.legal-document__definitions dt {
    font-weight: 600;
    margin-top: 0.75rem;
}

.legal-document__definitions dd {
    margin-bottom: 0.25rem;
    margin-left: 0;
}

.legal-document__list,
.legal-document__sublist {
    padding-left: 1.35rem;
}

.legal-document__list > li + li,
.legal-document__sublist > li + li {
    margin-top: 0.65rem;
}

.legal-document__list--plain {
    list-style: disc;
    margin-bottom: 0.75rem;
}

.legal-document p + p {
    margin-top: 0.75rem;
}

.legal-document__subheading {
    margin-top: 1.35rem;
    margin-bottom: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
}

.legal-document__table-wrap {
    margin: 1.25rem 0 1.5rem;
}

.legal-document__table {
    font-size: 0.9375rem;
}

.legal-document__table th,
.legal-document__table td {
    vertical-align: top;
}

.legal-document__table th:first-child,
.legal-document__table td:first-child {
    width: 5.5rem;
    white-space: nowrap;
}

/* —— Страница «Бонусы и акции» —— */

.bonuses-page {
    --bonuses-ink: #1a1a1a;
    --bonuses-muted: #555;
    --bonuses-gold: #edd485;
    --bonuses-dark: #111;
    --bonuses-warm: #f7f1e3;
    --bonuses-font: Montserrat, system-ui, sans-serif;
    max-width: 64rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    color: var(--bonuses-ink);
}

.bonuses-jump {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 0 0 1rem;
}

.bonuses-jump__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(237, 212, 133, 0.85);
    border-radius: 0.375rem;
    background: #111;
    color: var(--bonuses-gold);
    font-family: var(--bonuses-font);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.bonuses-jump__btn:hover,
.bonuses-jump__btn:focus-visible {
    border-color: var(--bonuses-gold);
    color: #fff;
    background: #1a1a1a;
    outline: none;
    text-decoration: none;
}

#bonuses-promos,
#bonuses-loyalty {
    scroll-margin-top: 5.5rem;
}

.bonuses-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: clamp(16rem, 42vw, 22rem);
    margin: 0 0 2.25rem;
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 0.85rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 70% at 85% 20%, rgba(237, 212, 133, 0.28), transparent 55%),
        linear-gradient(135deg, #1a1a1a 0%, #111 55%, #2a2418 100%);
    color: #fff;
}

.bonuses-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bonuses-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.72) 48%, rgba(17, 17, 17, 0.35) 100%);
    pointer-events: none;
}

.bonuses-hero:not(.bonuses-hero--photo) .bonuses-hero__scrim {
    background: transparent;
}

.bonuses-hero__content {
    position: relative;
    z-index: 1;
    max-width: 34rem;
}

.bonuses-hero__brand {
    margin: 0 0 0.65rem;
    font-family: var(--bonuses-font);
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--bonuses-gold);
}

.bonuses-hero__title {
    margin: 0;
    font-family: var(--bonuses-font);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
}

.bonuses-page__lead {
    margin: 0 0 1.5rem;
    font-family: var(--bonuses-font);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--bonuses-ink);
}

.bonuses-page__lead--loyalty {
    margin: 2.25rem 0 1rem;
}

.bonuses-why {
    margin-bottom: 2.75rem;
}

.bonuses-why__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .bonuses-why__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 1.75rem;
    }
}

.bonuses-why__item {
    min-width: 0;
    padding-top: 0.35rem;
    border-top: 2px solid var(--bonuses-gold);
}

.bonuses-why__index {
    display: block;
    margin-bottom: 0.55rem;
    font-family: var(--bonuses-font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #9a8240;
}

.bonuses-why__title {
    margin: 0 0 0.45rem;
    font-family: var(--bonuses-font);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.bonuses-why__text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--bonuses-muted);
}

.bonuses-ladder {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 1.75rem;
    margin-bottom: 2.75rem;
    padding: 1.75rem 1.35rem 1.5rem;
    border-radius: 0.85rem;
    background: var(--bonuses-warm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.bonuses-ladder__intro {
    max-width: 40rem;
    margin: 0;
}

.bonuses-ladder__heading {
    margin: 0 0 0.65rem;
    font-family: var(--bonuses-font);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.3;
}

.bonuses-ladder__text {
    margin: 0 0 0.65rem;
    color: var(--bonuses-muted);
}

.bonuses-ladder__forever {
    margin: 0;
    font-family: var(--bonuses-font);
    font-weight: 700;
    color: var(--bonuses-ink);
}

.bonuses-ladder__chart {
    margin: 0;
}

.bonuses-ladder__bars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 0.85rem;
    min-height: 14rem;
    padding: 0.5rem 0.25rem 0;
}

.bonuses-ladder__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    min-width: 0;
    height: 100%;
}

.bonuses-ladder__percent {
    font-family: var(--bonuses-font);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    line-height: 1;
    color: var(--bonuses-ink);
}

.bonuses-ladder__fill {
    display: block;
    width: 100%;
    max-width: 5.5rem;
    height: 0;
    border-radius: 0.45rem 0.45rem 0.2rem 0.2rem;
    background: linear-gradient(180deg, #f5e4a8 0%, var(--bonuses-gold) 55%, #d4b45a 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.bonuses-ladder__chart.is-visible .bonuses-ladder__bar:nth-child(1) .bonuses-ladder__fill {
    height: var(--tier-h);
    transition-delay: 0.05s;
}

.bonuses-ladder__chart.is-visible .bonuses-ladder__bar:nth-child(2) .bonuses-ladder__fill {
    height: var(--tier-h);
    transition-delay: 0.18s;
}

.bonuses-ladder__chart.is-visible .bonuses-ladder__bar:nth-child(3) .bonuses-ladder__fill {
    height: var(--tier-h);
    transition-delay: 0.32s;
}

.bonuses-ladder__bar:hover .bonuses-ladder__fill,
.bonuses-ladder__bar:focus-within .bonuses-ladder__fill {
    filter: brightness(1.06);
}

.bonuses-ladder__amount {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--bonuses-muted);
}

.bonuses-ladder__note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--bonuses-muted);
}

@media (min-width: 768px) {
    .bonuses-ladder {
        grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 0.85fr);
        align-items: center;
        padding: 1.5rem 1.5rem 1.35rem;
    }

    .bonuses-ladder__intro {
        max-width: none;
    }

    .bonuses-ladder__chart {
        align-self: stretch;
        display: flex;
        align-items: flex-end;
    }

    .bonuses-ladder__bars {
        width: 100%;
        min-height: 11.5rem;
        gap: 0.7rem;
        padding-top: 0.25rem;
    }

    .bonuses-ladder__note {
        grid-column: 1 / -1;
    }
}

.bonuses-promos {
    margin-bottom: 2.5rem;
}

.bonuses-promos__heading {
    margin: 0 0 1rem;
    font-family: var(--bonuses-font);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 700;
}

.bonuses-promos__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bonuses-promo {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 1.15rem;
    align-items: start;
    padding: 1.25rem 1.35rem;
    border-radius: 0.75rem;
    background: var(--bonuses-dark);
    color: #fff;
}

.bonuses-promo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    color: var(--bonuses-gold);
}

.bonuses-promo__title {
    margin: 0 0 0.4rem;
    font-family: var(--bonuses-font);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.bonuses-promo__desc {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.45;
}

.bonuses-promo__line {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
}

.bonuses-promo__line + .bonuses-promo__line {
    margin-top: 0.35rem;
}

.bonuses-promo__line--dates {
    color: var(--bonuses-gold);
    font-weight: 600;
}

.bonuses-gallery {
    margin-bottom: 0.5rem;
}

.bonuses-gallery__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .bonuses-gallery__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bonuses-gallery__item {
    margin: 0;
    border-radius: 0.65rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e8e0d0;
}

.bonuses-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .bonuses-hero {
        padding: 1.65rem 1.15rem 1.4rem;
        min-height: 14.5rem;
    }

    .bonuses-ladder {
        padding: 1.35rem 1rem 1.2rem;
    }

    .bonuses-ladder__bars {
        min-height: 11.5rem;
        gap: 0.55rem;
    }

    .bonuses-ladder__amount {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bonuses-ladder__fill {
        transition: none;
    }

    .bonuses-ladder__chart .bonuses-ladder__fill {
        height: var(--tier-h);
    }
}

/* —— Страница «Контакты» —— */

.contacts-page {
    max-width: 56rem;
    margin-inline: auto;
    line-height: 1.6;
}

.contacts-page > h1 {
    text-align: center;
    scroll-margin-top: 5.5rem;
}

#contacts {
    scroll-margin-top: 5.5rem;
}

.contacts-page__nav {
    margin-bottom: 1.75rem;
    text-align: center;
}

.contacts-page__nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.contacts-page__nav-list a {
    display: inline-block;
    padding: 0.45rem 1.1rem;
    border: none;
    border-radius: 0.45rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
    background-color: #edd485;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: filter 0.15s ease;
}

.contacts-page__nav-list a:hover,
.contacts-page__nav-list a:focus-visible {
    color: #1a1a1a;
    filter: brightness(1.05);
    text-decoration: none;
}

.contacts-page__section {
    margin-bottom: 2.25rem;
    scroll-margin-top: 5.5rem;
}

.contacts-page__heading {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.contacts-page__note {
    color: #555;
}

.contacts-page__list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.25;
}

.contacts-page__contact {
    margin: 0;
    padding: 0;
}

.contacts-page__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.1rem 0;
    color: inherit;
    text-decoration: none;
    line-height: 1.25;
}

.contacts-page__contact-link:hover,
.contacts-page__contact-link:focus-visible {
    text-decoration: underline;
}

.contacts-page__icon {
    flex-shrink: 0;
    display: block;
}

.contacts-page__media {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
    width: 100%;
}

.contacts-page__photos {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .contacts-page__photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contacts-page__photo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.25rem;
}

.contacts-page__map {
    width: 100%;
    min-height: 20rem;
    border-radius: 0.25rem;
    background: #f0f0f0;
}

.contacts-page__map > ymaps,
.contacts-page__map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 20rem;
    border: 0;
}

/* —— Страница «О нас» —— */

.about-page {
    max-width: 72rem;
    margin-inline: auto;
    line-height: 1.6;
}

.about-page > h1 {
    text-align: center;
}

.about-page__lead {
    margin-bottom: 2rem;
    text-align: center;
}

/* —— Лендинг направления /routes/<slug>/ —— */

.direction-landing {
    line-height: 1.6;
}

.direction-landing__header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.direction-landing__breadcrumbs {
    margin-bottom: 1.25rem;
    text-align: left;
}

.direction-landing__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #6b6b6b;
}

.direction-landing__crumbs a {
    color: inherit;
    text-decoration: none;
}

.direction-landing__crumbs a:hover,
.direction-landing__crumbs a:focus-visible {
    color: #1a1a1a;
    text-decoration: underline;
}

.direction-landing__crumbs [aria-current='page'] {
    color: #1a1a1a;
}

.direction-landing__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}

.direction-landing__lead {
    margin: 0;
    width: 100%;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #3a3a3a;
    text-align: center;
}

.direction-landing__seo {
    width: 100%;
    margin: 2rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.direction-landing__intro {
    margin: 0;
    width: 100%;
    font-size: 1rem;
    line-height: 1.65;
    color: #3a3a3a;
    text-align: center;
}

.about-page__section {
    margin-bottom: 2.25rem;
    scroll-margin-top: 5.5rem;
}

/* Standalone video section (always visible; above photo gallery) */
.about-page__section--video {
    margin-bottom: 2.5rem;
}

.about-page__video {
    margin: 0;
    border-radius: 0.35rem;
    overflow: hidden;
    background: #111;
}

.about-page__video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.about-page__video-frame iframe,
.about-page__video-frame > * {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
}

.about-page__video-file {
    display: block;
    width: 100%;
    max-height: min(70vh, 40rem);
    background: #111;
}

.about-page__section--gallery {
    margin-top: 0.25rem;
}

/*
 * Row-major photo grid (~3 across on desktop): left→right, then next row,
 * so visual order matches sort_order / admin drag order.
 * Uniform 3/4 tiles (same size as the first photo) with object-fit cover.
 */
.about-page__gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px) {
    .about-page__gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .about-page__gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-page__gallery-item {
    margin: 0;
    min-width: 0;
}

.about-page__gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: #f0f0f0;
    cursor: zoom-in;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.about-page__gallery-trigger:focus-visible {
    outline: 2px solid #edd485;
    outline-offset: 2px;
}

.about-page__gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.about-page__gallery-trigger:hover .about-page__gallery-img,
.about-page__gallery-trigger:focus-visible .about-page__gallery-img {
    transform: scale(1.03);
}

.about-lightbox {
    width: min(96vw, 64rem);
    max-height: 92vh;
    padding: 0.75rem;
    border: 0;
    border-radius: 0.35rem;
    background: #111;
    color: #fff;
}

.about-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.about-lightbox__toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.5rem;
}

.about-lightbox__prev {
    justify-self: start;
}

.about-lightbox__close {
    justify-self: center;
}

.about-lightbox__next {
    justify-self: end;
}

.about-lightbox__close,
.about-lightbox__nav {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.about-lightbox__nav {
    font-size: 1.75rem;
}

.about-lightbox__close:hover,
.about-lightbox__close:focus-visible,
.about-lightbox__nav:hover,
.about-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.about-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 4.5rem);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.about-lightbox__counter {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* —— Главная: «Как купить билет» —— */

/* Home sand panels: fill parent Bootstrap .container (same as /search/ content). */
.home-howto {
    --home-howto-icon: #2f7fd6;
    --home-howto-arrow: #8eb8e8;
    --home-howto-title: #1a1a1a;
    --home-howto-text: #555;
    width: 100%;
    max-width: none;
    margin: 0.5rem 0 1.5rem;
    padding: 1.75rem 1.25rem 2rem;
    border-radius: 0.75rem;
    background: #f7f1e3;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-howto__title {
    margin: 0 0 2rem;
    text-align: center;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--home-howto-title);
}

.home-howto__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.home-howto__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.home-howto__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6.5rem;
    height: 5rem;
    margin-bottom: 1rem;
    color: var(--home-howto-icon);
}

.home-howto__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.home-howto__step-title {
    margin: 0 0 0.55rem;
    max-width: 16rem;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--home-howto-title);
}

.home-howto__step-text {
    margin: 0;
    max-width: 16.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--home-howto-text);
}

.home-howto__arrow {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--home-howto-arrow);
    align-self: start;
    margin-top: 1.35rem;
}

.home-howto__arrow-svg {
    display: block;
    width: 1.75rem;
    height: 0.75rem;
}

@media (min-width: 992px) {
    .home-howto {
        padding: 2.25rem 1.5rem 2.5rem;
    }

    .home-howto__title {
        margin-bottom: 2.5rem;
    }

    .home-howto__steps {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        align-items: start;
        gap: 0.35rem 0.5rem;
    }

    .home-howto__arrow {
        display: flex;
    }

    .home-howto__step-title {
        font-size: 1.1rem;
    }
}

/* —— Главная: «Популярные рейсы» —— */

.home-popular {
    --home-popular-title: #1a1a1a;
    --home-popular-text: #1a1a1a;
    --home-popular-muted: #6b6b6b;
    --home-popular-day-bg: #ffffff;
    --home-popular-day-border: rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: none;
    margin: 0.5rem 0 1.5rem;
    padding: 1.75rem 1.25rem 2rem;
    border-radius: 0.75rem;
    background: #f7f1e3;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-popular__title {
    margin: 0 0 1.25rem;
    text-align: center;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--home-popular-title);
}

.home-popular__list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-popular__row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 0.85rem 0.95rem;
    color: var(--home-popular-text);
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.55rem;
}

.home-popular__route {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.home-popular__route:hover .home-popular__cities,
.home-popular__route:focus-visible .home-popular__cities {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.home-popular__direction {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.home-popular__cities {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.home-popular__from-time {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--home-popular-text);
}

.home-popular__from-time--empty {
    font-weight: 500;
    color: var(--home-popular-muted);
}

.home-popular__chevron {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 1.25rem;
    height: 2rem;
    color: rgba(0, 0, 0, 0.45);
}

.home-popular__chevron svg {
    display: block;
    width: 0.85rem;
    height: 1.5rem;
}

.home-popular__days {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    margin: 0 -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
    -webkit-overflow-scrolling: touch;
}

.home-popular__day {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 4.6rem;
    padding: 0.55rem 0.45rem 0.5rem;
    border-radius: 0.45rem;
    border: 1px solid var(--home-popular-day-border);
    background: var(--home-popular-day-bg);
    color: var(--home-popular-text);
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.home-popular__day:hover,
.home-popular__day:focus-visible {
    background: #faf7f0;
    border-color: rgba(0, 0, 0, 0.22);
}

.home-popular__day--empty {
    opacity: 0.72;
}

.home-popular__day-price {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.home-popular__day-price-value {
    font-size: 0.95rem;
}

.home-popular__day-price-currency {
    margin-left: 0.2em;
    font-size: 0.7rem;
    font-weight: 700;
}

.home-popular__day-label {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--home-popular-muted);
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .home-popular__route {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.65rem;
        text-align: center;
    }

    .home-popular__direction {
        flex: 0 1 auto;
        align-items: center;
        text-align: center;
    }

    .home-popular__chevron {
        margin-left: 0;
    }

    .home-popular__days {
        justify-content: center;
        gap: 0.4rem;
        overflow: hidden;
        margin: 0;
        padding: 0;
        scrollbar-width: none;
    }

    .home-popular__day {
        flex: 1 1 0;
        min-width: 0;
        max-width: 5.5rem;
        padding: 0.5rem 0.3rem 0.45rem;
    }

    .home-popular__day:nth-child(n + 4) {
        display: none;
    }

    .home-popular__day-price,
    .home-popular__day-price-value {
        font-size: 0.88rem;
    }

    .home-popular__day-label {
        font-size: 0.68rem;
    }
}

@media (min-width: 768px) {
    .home-popular__row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1rem 1.25rem;
        padding: 0.95rem 0.55rem 0.95rem 1rem;
    }

    .home-popular__route {
        width: 100%;
        min-width: 0;
    }

    .home-popular__direction {
        flex: 1 1 auto;
        min-width: 0;
    }

    .home-popular__chevron {
        margin-left: auto;
    }

    .home-popular__days {
        display: flex;
        gap: 0.45rem;
        flex-shrink: 0;
        margin: 0;
        margin-left: auto;
        padding: 0;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .home-popular__day {
        flex: 0 0 5.5rem;
        box-sizing: border-box;
        width: 5.5rem;
        min-width: 5.5rem;
        max-width: 5.5rem;
        padding: 0.6rem 0.35rem 0.55rem;
    }

    .home-popular__day-label {
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    .home-popular {
        padding: 2.25rem 1.5rem 2.5rem;
    }
}

@media (min-width: 1100px) {
    .home-popular__days {
        overflow: visible;
        justify-content: flex-start;
    }
}

/* —— Главная: отзывы + «Расписание, цены, билеты» —— */

.home-split {
    --home-reviews-title: #1a1a1a;
    --home-reviews-text: #2a2a2a;
    --home-reviews-muted: #6b6b6b;
    --home-reviews-accent: #2f7fd6;
    --home-reviews-star: #f5a623;
    --home-about-title: #1a1a1a;
    --home-about-text: #555;
    --home-about-accent: #2f7fd6;
    --home-about-cta: #edd485;
    --home-about-circle: #e8dfc8;
    width: 100%;
    max-width: none;
    margin: 0.5rem 0 1.5rem;
    padding: 1.75rem 1.25rem 2rem;
    border-radius: 0.75rem;
    background: #f7f1e3;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-split__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.home-reviews {
    min-width: 0;
}

.home-reviews__header {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.home-reviews__title {
    margin: 0;
    text-align: center;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: clamp(1.15rem, 2.1vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--home-reviews-title);
}

.home-reviews__title-break {
    display: none;
}

.home-reviews__title-brand {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .home-reviews__title-break {
        display: block;
    }
}

.home-reviews__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: var(--home-reviews-accent);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-reviews__nav:hover:not(:disabled),
.home-reviews__nav:focus-visible:not(:disabled) {
    background: #faf7f0;
    border-color: rgba(0, 0, 0, 0.22);
    color: #1a5fa8;
}

.home-reviews__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.home-reviews__nav svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

.home-reviews__card {
    max-width: none;
    margin: 0;
    padding: 1.35rem 1.25rem 1.15rem;
    background: #ffffff;
    border-radius: 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.home-reviews__viewport {
    min-height: 8.5rem;
}

.home-reviews__slide {
    margin: 0;
}

.home-reviews__slide[hidden] {
    display: none;
}

.home-reviews__quote {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--home-reviews-text);
    text-align: center;
}

.home-reviews__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
    font-style: normal;
}

.home-reviews__author-icon {
    display: inline-flex;
    color: var(--home-reviews-muted);
}

.home-reviews__author-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.home-reviews__author-name {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    font-style: normal;
    color: var(--home-reviews-title);
}

.home-reviews__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--home-reviews-text);
    text-decoration: none;
}

.home-reviews__rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
}

.home-reviews__rating:hover .rating-stars__score,
.home-reviews__rating:focus-visible .rating-stars__score {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.home-reviews__yandex-pin {
    display: inline-flex;
    flex-shrink: 0;
}

.home-reviews__yandex-pin svg {
    width: 1.35rem;
    height: 1.35rem;
}

.home-reviews__score-suffix {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--home-reviews-text);
    white-space: nowrap;
}

.home-reviews__source {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--home-reviews-muted);
}

.home-about {
    min-width: 0;
}

.home-about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.home-about__content {
    min-width: 0;
}

.home-about__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
}

.home-about__icon {
    flex-shrink: 0;
    display: inline-flex;
    margin-top: 0.15rem;
    color: var(--home-about-accent);
}

.home-about__icon-svg {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
}

.home-about__title {
    margin: 0;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--home-about-title);
}

.home-about__text {
    margin: 0 0 0.85rem;
    font-size: 0.975rem;
    line-height: 1.55;
    color: var(--home-about-text);
}

.home-about__text:last-child {
    margin-bottom: 0;
}

.home-about__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 17rem;
}

.home-about__circle {
    position: absolute;
    width: min(16.5rem, 78%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--home-about-circle);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.home-about__phone {
    position: relative;
    z-index: 1;
    width: 9.5rem;
    padding: 0.55rem 0.45rem 0.65rem;
    border-radius: 1.15rem;
    background: #1a1a1a;
    box-shadow:
        0 0.75rem 1.75rem rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-about__phone-notch {
    width: 2.4rem;
    height: 0.28rem;
    margin: 0 auto 0.45rem;
    border-radius: 999px;
    background: #3a3a3a;
}

.home-about__phone-screen {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.55rem 0.5rem 0.6rem;
    border-radius: 0.75rem;
    background: #faf7f0;
}

.home-about__phone-brand {
    margin-bottom: 0.15rem;
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--home-about-title);
    text-align: center;
}

.home-about__phone-field {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    padding: 0.35rem 0.4rem;
    border-radius: 0.35rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.home-about__phone-field--date {
    width: 70%;
}

.home-about__phone-label {
    font-size: 0.48rem;
    line-height: 1.2;
    color: #8a8a8a;
}

.home-about__phone-value {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--home-about-title);
}

.home-about__phone-cta {
    margin-top: 0.1rem;
    padding: 0.42rem 0.4rem;
    border-radius: 0.35rem;
    background: var(--home-about-cta);
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #1a1a1a;
}

.home-about__phone-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.38rem 0.4rem;
    border-radius: 0.35rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.home-about__phone-ticket-route {
    font-size: 0.52rem;
    font-weight: 600;
    color: var(--home-about-title);
}

.home-about__phone-ticket-price {
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--home-about-accent);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .home-reviews__card {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    .home-reviews__quote {
        font-size: 1.05rem;
    }

    /* Без отзывов: текст + телефон в один ряд */
    .home-split:not(.home-split--with-reviews) .home-about__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 2.25rem 1.5rem;
    }

    .home-about__visual {
        min-height: 19rem;
    }

    .home-about__circle {
        width: min(18rem, 86%);
    }

    .home-about__phone {
        width: 10.25rem;
    }

    .home-about__text {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .home-split {
        padding: 2.25rem 1.5rem 2.5rem;
    }

    .home-split--with-reviews .home-split__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 2rem 2.25rem;
        align-items: center;
    }

    /* В двухколоночном режиме телефон под текстом — иначе тесно */
    .home-split--with-reviews .home-about__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-split--with-reviews .home-about__visual {
        min-height: 16.5rem;
    }

    .home-split--with-reviews .home-about__circle {
        width: min(15rem, 70%);
    }

    .home-split--with-reviews .home-about__phone {
        width: 9.75rem;
    }

    .home-split:not(.home-split--with-reviews) .home-about__grid {
        gap: 2.5rem 2rem;
        padding: 0 0.5rem;
    }

    .home-split:not(.home-split--with-reviews) .home-about__visual {
        min-height: 20rem;
    }
}

@media (min-width: 1200px) {
    /* На широком экране в правой колонке снова текст | телефон */
    .home-split--with-reviews .home-about__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 1.25rem 1rem;
        align-items: center;
    }

    .home-split--with-reviews .home-about__visual {
        min-height: 18rem;
    }

    .home-split--with-reviews .home-about__title {
        font-size: clamp(1.15rem, 1.4vw, 1.4rem);
    }

    .home-split--with-reviews .home-about__text {
        font-size: 0.95rem;
    }
}

