button {
    transition: transform 0.4s ease-in-out;
}

button:hover,
button:focus-visible {
    transform: scale(1.03);
}

button:focus {
    outline: none;
}
.mobile-ticket-info-modal {
    z-index: 9999;
}
.mobile-ticket-info-box {
    width: calc(100% - 24px);
    max-width: 420px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 20px 16px 16px;
}

.mobile-ticket-info-box .ab-modal-title {
    margin: 0 35px 18px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.mobile-ticket-info-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #eeeeee;
}

.mobile-info-item:last-child {
    border-bottom: 0;
}

.mobile-info-item > span {
    color: #888;
    font-size: 13px;
    line-height: 18px;
}

.mobile-info-item > strong {
    color: #333;
    font-size: 14px;
    line-height: 18px;
    text-align: right;
    max-width: 55%;
}

.mobile-info-stops {
    flex-direction: column;
    gap: 6px;
}

.mobile-info-stops > strong {
    max-width: 100%;
    text-align: left;
    color: #007bff;
}

.mobile-ticket-info-btn {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color:#007bff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

body.ab-modal-open {
    overflow: hidden;
}

.ab-ticket-mobile {
    display: none;
}

.ab-ticket-desktop {
    display: block;
    position: relative;
    display: flex;
    align-items: stretch;
    max-width: 840px;
    margin: 0 auto 22px;
}

.main-block {
    background-color: #F2F2F2;
}

.ab-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70vh;
    padding: 40px 16px;
    /*padding-top: calc(50vh - 200px);*/
    transition: padding-top .6s ease;
}

.ab-page.has-results {
    padding-top: 40px;
}

.ab-search {
    width: 100%;
    max-width: 860px;
}

.ab-stepper-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.ab-stepper-mobile {
    display: none;
}
.ab-step {
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 14px;
    color: #1c1c28;
    white-space: nowrap;
    background: #ffffff;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.ab-step.step-mobile{
    border-radius: 50%;
}

.ab-step.active {
    background: #21212e;
    color: #fff;
}

.ab-step-line {
    width: 28px;
    border-top: 2px dashed #c7cad1;
    flex-shrink: 0;
}

.ab-fields-wrap {
    display: flex;
    gap: 16px;
    align-items: center
}

.ab-fields {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.ab-field {
    position: relative;
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(20, 24, 40, .06);
}

.ab-field > label {
    display: block;
    font-size: 16px;
    color: #9aa0a6;
    margin-bottom: 6px;
    cursor: pointer;
}

.ab-field-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ab-field-value input,
.ab-field-text {
    border: none;
    outline: none;
    background: transparent;
    font-size: 17px;
    font-weight: 600;
    color: #21212e;
    width: 100%;
    padding: 0;
}

.ab-field-value input::placeholder {
    color: #b8bcc4;
    font-weight: 600;
}

.ab-field-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ===== Кнопка обмена Откуда <-> Куда ===== */
.ab-swap-btn {
    align-self: center;
    flex: 0 0 auto;
    width: 34px;
    height: 25px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #5982E8;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 -6px;
    z-index: 5;
    transition: transform .3s ease, border-color .15s, color .15s;
}

.ab-swap-btn:hover {
    border-color: #5982E8;
}

.ab-swap-btn:focus,
.ab-swap-btn:active {
    outline: none;
    box-shadow: 0 1px 3px rgba(20, 24, 40, .06);
}

.ab-swap-btn.rotated {
    transform: rotate(180deg);
}

.ab-search-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.ab-search-btn {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 48px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.ab-search-btn:hover {
    background: #007bff;
}

.ab-results {
    width: 100%;
    max-width: 900px;
}

.ab-suggest {
    list-style: none;
    margin: 0;
    padding: 6px;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 24, 40, .14);
    max-height: 260px;
    overflow-y: auto;
    z-index: 60;
    display: none;
}

.ab-suggest.open {
    display: block;
}

.ab-suggest li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background .15s;
}

.ab-suggest .ab-suggest-item {
    cursor: pointer;
}

.ab-suggest .ab-suggest-item:hover,
.ab-suggest .ab-suggest-item.active {
    background: #f2f4ff;
}

.ab-suggest-name {
    font-size: 15px;
    font-weight: 600;
    color: #21212e;
}

.ab-suggest-region {
    font-size: 12.5px;
    color: #9aa0a6;
}

.ab-suggest-mark {
    background: transparent;
    color: #5c7cfa;
    font-weight: 700;
    padding: 0;
}

.ab-suggest-empty,
.ab-suggest-loading {
    justify-content: center;
    color: #9aa0a6;
    font-size: 14px;
    cursor: default;
}

.ab-pass-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 300px;
    max-width: 90vw;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(20, 24, 40, .14);
    padding: 8px 18px;
    z-index: 60;
    display: none;
}

.ab-pass-dropdown.open {
    display: block;
}

.ab-pass-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.ab-pass-row + .ab-pass-row {
    border-top: 1px solid #eef0f3;
}

.ab-pass-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #21212e;
}

.ab-pass-sub {
    display: block;
    font-size: 12.5px;
    color: #9aa0a6;
    margin-top: 2px;
}

.ab-counter {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ab-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d7dae1;
    background: #fff;
    color: #21212e;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.ab-counter-btn:hover:not(:disabled) {
    border-color: #5c7cfa;
    color: #5c7cfa;
}

.ab-counter-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.ab-counter-val {
    min-width: 18px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #21212e;
}

.ab-pass-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 24px;
    overflow: hidden;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: #21212e;
}

.ab-pass-display .ab-pass-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ab-pass-display .ab-pass-children {
    display: none;
}

.ab-pass-display.two-lines {
    font-size: 11.5px;
    line-height: 1.05;
}

.ab-pass-display.two-lines .ab-pass-children {
    display: block;
    color: #6b7280;
}

.ab-field.is-open {
    z-index: 70;
}

.ab-results-title {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 22px;
}

.ab-ticket {
    /*position: relative;*/
    /*display: flex;*/
    /*align-items: stretch;*/
    /*max-width: 840px;*/
    /*margin: 0 auto 22px;*/
}

.ab-ticket-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 18px;
    padding: 24px 28px 0 16px;
}

.ab-ticket-price {
    flex: 0 0 190px;
    background: #fff;
    border-radius: 18px;
    padding: 22px 24px 10px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ab-ticket-sep {
    position: relative;
    flex: 0 0 2px;
    align-self: stretch;
}

.ab-ticket-sep::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    bottom: 18px;
    border-left: 2px dashed #d3d7de;
}

.ab-notch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
    z-index: 9;
    border-radius: 50%;
    background: #f2f3f5;
}

.ab-notch-t {
    top: -11px;
}

.ab-notch-b {
    bottom: -11px;
}

.ab-trip {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 4px;
}

.ab-city {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: #21212e;
    white-space: nowrap;
}
.ab-city-address {
    max-width: 170px !important;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: grey;
    font-weight: 400;
    width: 100%;
}

.ab-city svg {
    flex-shrink: 0;
    display: block;
}

.ab-trip-to {
    justify-self: end;
}

.ab-trip-track {
    display: flex;
    align-items: center;
    width: 100%;
}

.ab-seg {
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
    flex-grow: 1; /* КРИТИЧЕСКИ ВАЖНО: заставляет линии занять всё свободное место и раздвинуть SVG по краям */
}

.ab-seg::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 2px dashed #cfd3da;
}

/* Фиксируем размер SVG, чтобы они не сжимались flex-контейнером */
.ab-trip-track svg {
    flex-shrink: 0;
}

.ab-seg-mid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.ab-seg-mid svg,
.ab-seg-mid .ab-pin {
    position: relative;
    z-index: 1;
    display: block;
}

.ab-your-stop {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #9aa0a6;
    white-space: nowrap;
}

.ab-badge {
    position: relative;
    z-index: 1;
    background: #21212e;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
}

.ab-dot {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #b8bcc4;
}

.ab-trip-time-left {
    text-align: left;
}

.ab-trip-time-right {
    text-align: right;
    justify-self: end;
}

.ab-trip-mid {
    text-align: center;
}

.ab-time-h {
    font-size: 22px;
    color: #21212e;
}

.ab-time-h.start {
    font-size: 22px;
    font-weight: 600;
    color: #007bff;
}

.ab-time-d {
    font-size: 16px;
    color: #9aa0a6;
    margin-top: 2px;
}

.ab-mid-city {
    font-size: 18px;
    font-weight: 700;
    color: #21212e;
}

.ab-mid-dur {
    font-size: 12.5px;
    color: #9aa0a6;
}

/* --- футер маршрута --- */
.ab-ticket-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 27px;
    font-size: 14.5px;
    color: #9aa0a6;
}

.ab-ticket-foot {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    font-size: 15.5px;
    background: #9aa0a6;
    color: honeydew;
    padding: 0 10px;
    width: 77%;
    bottom: 0;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

.ab-ticket-foot p {
    margin: 0;
}

.ab-mid-link {
    color: #5c7cfa;
    text-decoration: none;
    font-size: 16px;
    display: none;
}

.ab-price-sum {
    font-size: 24px;
    font-weight: 600;
    color: #21212e;
}

.ab-price-sum span {
    font-weight: 600;
}

.ab-price-row {
    /*display: flex;*/
    align-items: center;
    gap: 7px;
    font-size: 16px;
    color: #6b7280;
    margin-top: 10px;
}

.ab-ticket-price form {
    width: 100%;
    margin-top: auto;
}

.ab-price-btn {
    width: 100%;
    margin-top: auto;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.ab-price-btn:hover {
    background:#007bff;
}

.ab-price-btn:disabled {
    background: #007bff;
    cursor: not-allowed;
}

.ab-field-disabled {
    opacity: .55;
    pointer-events: none;
}

.ab-search-btn:disabled {
    background: #007bff;
    cursor: not-allowed;
}

.ab-interm-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color:#007bff;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.ab-interm-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ab-interm-link:hover {
    color: #007bff;
}

.ab-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 24, 40, .35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
}

.ab-modal[hidden] {
    display: none;
}

.ab-modal-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    max-height: 75vh;
    background: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.ab-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: none;
    background: none;
    font-size: 24px;
    line-height: 1;
    color: #9aa0a6;
    cursor: pointer;
}

.ab-modal-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #21212e;
}

.ab-modal-body {
    overflow-y: auto;
    margin-top: 4px;
}

.ab-flights-loading,
.ab-flights-empty {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    color: #9aa0a6;
    font-size: 15px;
    padding: 34px 0;
}

.ab-stop-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 4px;
    border-top: 1px solid #eef0f3;
}

.ab-stop-row:first-child {
    border-top: none;
}

.ab-stop-row form {
    margin: 0;
    flex-shrink: 0;
}

.ab-stop-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #21212e;
    margin-bottom: 7px;
}

.ab-stop-name svg {
    flex-shrink: 0;
}

.ab-stop-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 16px;
    margin-left: 30px;
}

.ab-stop-prices b {
    color: #21212e;
    font-weight: 600;
}

.ab-stop-go {
    background: #5c7cfa;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 9px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.ab-stop-go:hover {
    background: #4b6bf5;
}

.ab-stop-go:disabled {
    background: #b9c2f5;
    cursor: not-allowed;
}


.ab-ticket-mobile {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 14px 15px 13px;
    margin-bottom: 10px;
    overflow: hidden;
}

.mobile-bottom-left .ab-ticket-mid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    margin-top: 0;
    font-size: 14.5px;
    color: #9aa0a6;
}

/* Левая выемка */
.ab-ticket-mobile::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 90px;
    width: 30px;
    height: 35px;
    background: #F2F2F2;
    border-radius: 50%;
    z-index: 5;
}

/* Правая выемка */
.ab-ticket-mobile::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 90px;
    width: 30px;
    height: 35px;
    background: #F2F2F2;
    border-radius: 50%;
    z-index: 5;
}

/* Верх: города */

.mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.mobile-city-block {
    min-width: 0;
    flex: 1;
}

.mobile-city-right {
    text-align: right;
}

.mobile-city {
    font-size: 20px;
    line-height: 20px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.mobile-address {
    margin-top: 4px;
    font-size: 12px;
    line-height: 15px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Время */

.mobile-time-row {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
    height: 24px;
}

.mobile-time-block {
    position: relative;
    z-index: 3;
    width: 52px;
    flex-shrink: 0;
    background: #fff;
}

.mobile-time-block strong {
    display: block;
    font-size: 20px;
    line-height: 20px;
    font-weight: 500;
    color: #007bff;
    white-space: nowrap;
}

.mobile-time-right {
    text-align: right;
}

.mobile-time-right strong {
    color: #333;
}

/* Линия между временем */

.mobile-route-line {
    position: relative;
    height: 20px;
    flex: 1;
    margin: 0 4px;
    display: flex;
    align-items: center;
}

.mobile-route-dash {
    width: 100%;
    height: 1px;
    border-top: 1px dashed #777;
}

.mobile-route-dot {
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    border-radius: 50%;
    background: #3b3b3b;
    z-index: 2;
}

.mobile-route-dot-left {
    left: 0;
}

.mobile-route-dot-right {
    right: 0;
}

/* Продолжительность */

.mobile-duration {
    margin-top: 11px;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 10px;
    line-height: 14px;
    color: #aaa;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notes{
    font-size: 10px;
    line-height: 14px;
    color: #aaa;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding-top: 10px;
    border-top: 1px solid #f1f1f1;
}
.mobile-bottom-right{
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.mobile-price {
    font-size: 23px;
    line-height: 27px;
    font-weight: 700;
    color: #3b3b3b;
}

.mobile-price span {
    font-size: 14px;
    font-weight: 400;
}

.mobile-seats {
    font-size: 13px;
    line-height: 18px;
    color: #333;
}

.mobile-seats span {
    color: #1268e5;
}


.ab-ticket-mobile form {
    margin: 0;
}

.mobile-select-btn {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    border: 0;
    border-radius: 10px;
    background: #007bff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-select-btn:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}
.nearby-dates-list button{
    border-radius: 14px;
}
.nearby-dates-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    overflow: hidden;
}

.nearby-dates-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}


.nearby-dates-list.dragging {
    cursor: grabbing;
}

.nearby-date-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    user-select: none;
}

.nearby-dates-arrow {
    border: none;
    color: #007bff;
    font-size: 25px;
    line-height: 30px;
    cursor: pointer;
    padding: 0;
    transition: transform .2s ease, background .2s ease;
}

.nearby-dates-arrow:hover {
    transform: scale(1.05);
}
.nearby-dates-list {
    overflow: hidden;
}

.nearby-date-btn {
    transition: transform 0.25s ease;
}
.popular-cities-wrapper, .abroad-cities-wrapper{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}
.cards {
    position: relative;
    width: 100%;
}
.titlePopularCities, .titleAbroadCities{
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}
#popularCitiesCards, #abroadCitiesCards {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 45px 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.popular-cities-loading{
    text-align: center;
    font-size: 16px;
}
#popularCitiesCards::-webkit-scrollbar {
    display: none;
}

.popular-city-card, .abroad-city-card {
    flex: 0 0 300px;
    width: 300px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.popular-city-card:hover, .abroad-city-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.popular-city-card-image, .abroad-city-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.popular-city-card-image img, .abroad-city-card-image img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popular-city-card-name, .abroad-city-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    bottom: 5px;
    left: 10px;
    position: absolute;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-cities-arrow {
    background: #F2F2F2;
    width: 31px;
    height: 180px;
    top: 0;
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    color: #21212e;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transform: scale(1.1);
    transition: .2s ease;
}

.popular-cities-arrow:hover {
    transform: scale(1.1);
}

.popular-cities-arrow-left {
    left: 0;
}

.popular-cities-arrow-right {
    right: 0;
}
.nearby-date-btn:focus, .nearby-date-btn:focus{
    box-shadow: none !important;
}
.blur-bg {
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 35%,
        rgba(0, 0, 0, 0.15) 70%,
        rgba(0, 0, 0, 0) 100%
    );
}

@media (max-width: 860px) {
    .ab-step {
        font-size: 12px !important;
    }
}
@media (max-width: 768px){

    .ab-stepper-desktop {
        display: none;
    }
    .ab-stepper-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
        flex: 1;
        margin-bottom: 30px;
    }

    .ab-stepper-mobile .step-mobile {
        width: 45px;
        height: 45px;
        min-width: 32px;
        min-height: 32px;
        padding: 0 !important;
        margin: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        flex-shrink: 0;
        font-size: 18px !important;
    }
    .ab-stepper-mobile-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ab-stepper-mobile .step-mobile.active {
        background: #21212e !important;
        color: #fff !important;
        border-color: #21212e !important;
    }
    .ab-ticket-desktop {
        display: none;
    }

    .ab-ticket-mobile {
        display: block;
    }

    .ab-ticket {
        flex-direction: column;
    }

    .ab-ticket-price {
        flex-basis: auto;
        margin-top: 12px;
        align-items: stretch;
    }

    .ab-ticket-sep {
        display: none;
    }

    .ab-city {
        font-size: 20px;
    }
    .ab-fields {
        width: 100%;
    }

    .ab-page {
        padding-top: 24px;
        min-height: auto;
    }

    .ab-fields-wrap {
        flex-direction: column;
    }


    .ab-step-line {
        width: 16px;
    }

    .ab-ticket-foot {
        width: 100%;
    }

    .ab-ticket-price {
        padding: 22px 24px 35px 24px;
    }

    .ab-ticket-price {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
        align-items: center;
    }

    .ab-ticket-price .ab-price-row:first-of-type {
        grid-column: 1;
        grid-row: 1;
    }

    .ab-ticket-price .ab-price-row:last-of-type {
        grid-column: 1;
        grid-row: 2;
    }

    .ab-ticket-price .ab-price-sum {
        grid-column: 2;
        grid-row: 1;
    }

    .ab-ticket-price .ab-ticket-btn {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 560px) {
    .nearby-dates-wrapper {
        gap: 4px;
    }

    .nearby-dates-list {
        flex: 1;
        min-width: 0;
        justify-content: center;
        gap: 5px;
    }

    .nearby-date-btn {
        width: 80px;
        min-width: 0;
        padding: 6px 4px;
        font-size: 14px;
    }
    .nearby-date-btn:focus {
        box-shadow: none !important;
    }

    .nearby-dates-arrow {
        width: 25px;
        flex: 0 0 25px;
        font-size: 22px;
    }
    .ab-field {
        padding: 14px 16px;
    }

    .ab-ticket-main {
        padding: 18px 16px 12px;
    }

    .ab-ticket-price {
        padding: 16px 18px;
    }

    .ab-city {
        font-size: 18px;
    }

    .ab-time-h {
        font-size: 19px;
    }

    .ab-mid-city {
        font-size: 15px;
    }

    .ab-mid-dur, .ab-time-d {
        font-size: 11.5px;
    }

    .ab-stepper {
        gap: 4px;
    }

    .ab-step {
        padding: 8px 12px;
        font-size: 12.5px;
    }

    .ab-modal-box {
        padding: 16px;
    }

    .ab-stop-go {
        padding: 8px 16px;
    }

    .ab-results-title {
        margin-bottom: 16px;
    }
}

@media (max-width: 460px) {
    .ab-stop-prices{
        font-size: 14px;
    }
    .ab-stop-name{
        font-size: 16px;
    }
}
@media (max-width: 360px) {
    .mobile-city{
        font-size: 17px;
    }
    .mobile-duration span{
        font-size: 8px !important;
    }
    .ab-interm-link, .mobile-ticket-info-btn{
        font-size: 12px;
    }
    .mobile-price{
        font-size: 19px;
    }
    .mobile-bottom-right {
        gap:  8px;
    }
    .ab-fields{
        gap: 4px
    }
    .ab-fields.fromTo{
        flex-direction: column;
    }
    .ab-swap-btn{
        transform: rotate(90deg);
    }
    .ab-pass-display, .ab-field-value input{
        font-size: 14px;
    }
}

