#aChangeCity {
    color: #262422;
    position: absolute;
    top: 18px; left: 88px;
    z-index: 2;
    white-space: nowrap;
    font-size: 20px;
    padding: 20px;
    text-decoration: none;
}

#aChangeCity:hover,
#aChangeCity:focus {
    border: none;
    text-decoration: none;
}

/* На широком экране короткий город центрируется относительно надписи Quick Tickets */
@media (min-width: 768px) {
    #head #aChangeCity.quick-tickets-header__city {
        display: inline-flex;
        justify-content: center;
        width: max-content;
        min-width: 160px;
        max-width: calc(100% - 88px);
        padding-right: 0;
        padding-left: 0;
    }
}

.alphabet-cities {
    margin: 0 0 50px 0;
    padding: 10px 0 0 0;
}

.alphabet-cities li {
    float: left;
    list-style: none;
    padding-right: 10px;
    line-height: 25px;
}

.alphabet-cities li a {
    color: #666666;
    font-size: 17px;
    text-decoration: none;
}

.alphabet-cities li a.availabilityOrganisation {
    color: #959595;
    border-bottom: 1px dashed #959595;
}

.alphabet-cities li.active a {
    color: #f37031;
    border: none;
}

.cities-list { margin-bottom: 20px; }

.cities-list a {
    margin: 0 15px 0 0;
    padding: 0;
    line-height: 30px;
    color: #666666;
    text-decoration: none;
    border: none;
    cursor: default;
}

.cities-list a:hover { text-decoration: none; }

.cities-list a.availabilityOrganisation {
    color: #959595;
    border-bottom: 0;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cities-list a.availabilityOrganisation:hover,
.cities-list a.availabilityOrganisation:focus {
    text-decoration: underline;
}

.cities-list a.active {
    color: #f37031;
    border: none;
}

.cities-list span {
    margin: 5px 15px 15px 0;
    padding: 0;
    line-height: 30px;
    color: #666666;
    border: none;
    cursor: default;
}

.change-city {
    position: absolute;
    top: 0;
    left: 0;
    margin: -47px 0 0 220px;
}

.change-city #changeCityName {
    border: none;
    width: 230px;
    color: #5c5c5c;
    font-size: 13px;
    display: inline-block;
    margin-right: 20px;
}

.change-city .btn {
    display: inline-block;
    margin: -5px 0 0 0;
}

.cities-list-main { padding-bottom: 20px; }

.cities-list-main a { font-size: 18px; }

/* На узком экране выбор города располагается в естественном потоке шапки и модального окна */
@media (max-width: 767.999px) {
    /* Тёмный фон выбора города закрывает края экрана при достижении начала и конца списка */
    #modalChangeCity {
        overscroll-behavior-y: none;
    }

    #modalChangeCity .modal-dialog {
        min-height: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }

    #aChangeCity {
        position: static;
        top: auto;
        left: auto;
        z-index: auto;
        padding: 0;
    }

    .change-city {
        position: static;
        top: auto;
        left: auto;
        margin: 0 0 15px;
    }

    .change-city #cityChangeForm {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .change-city #changeCityName {
        flex: 1 1 180px;
        width: auto;
        min-width: 0;
        margin-right: 0;
    }

    .change-city .btn {
        flex: 0 0 auto;
        margin: 0;
    }

    #modalChangeCity .alphabet-cities {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 20px;
    }

    #modalChangeCity .alphabet-cities > li {
        float: none;
    }
}

/* На телефоне поле и действие выбора города занимают всю доступную ширину */
@media (max-width: 479px) {
    .change-city #changeCityName,
    .change-city .btn {
        flex-basis: 100%;
        width: 100%;
    }
}
