/* T-029: блок городов на главной — ровная адаптивная сетка карточек */
.homec-cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.homec-city-card {
    position: relative;
    display: block;
    flex: 0 0 calc(25% - 18px);
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #2f3b59 0%, #5b6b94 100%);
}

.homec-city-card--noimage {
    background: linear-gradient(135deg, #2f3b59 0%, #5b6b94 55%, #8d9ac2 100%);
}

.homec-city-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.homec-city-card:hover .homec-city-card__img {
    transform: scale(1.06);
}

.homec-city-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.05) 60%);
}

.homec-city-card__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0 20px 18px;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    word-wrap: break-word;
}

.homec-city-card__title span {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.85;
}

@media (max-width: 1199px) {
    .homec-city-card {
        flex-basis: calc(33.333% - 16px);
    }
}

@media (max-width: 767px) {
    .homec-cities {
        gap: 14px;
    }

    .homec-city-card {
        flex-basis: calc(50% - 7px);
    }

    .homec-city-card__title {
        padding: 0 12px 12px;
        font-size: 17px;
    }
}

@media (max-width: 420px) {
    .homec-city-card {
        flex-basis: 100%;
    }
}

/* T-032: цены тарифов в сумах (300 000, 700 000) не помещаются при 64px шаблона */
.homec-psingle__amount {
    font-size: 44px;
    white-space: nowrap;
}
@media only screen and (max-width: 1199px) {
    .homec-psingle__amount { font-size: 34px; }
}
