/* =========================================================
   Нижний блок главной (районы, промо, о городе, FAQ) — DosugCity
   Подключать ПОСЛЕ css/style.css
   ========================================================= */

.cityinfo {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ===== Заголовок + районы ===== */
.cityinfo__title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #e0408a 0%, #9b1b6e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cityinfo__lead {
    margin: 10px 0 0;
    max-width: 900px;
    font-size: 15px;
    line-height: 1.55;
    color: #6b6b6b;
}

.cityinfo__districts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cityinfo__district {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #f0dbe6;
    border-radius: 30px;
    background: #fff;
    color: #2a2a2a;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.cityinfo__district svg {
    flex-shrink: 0;
    color: #e0408a;
}

.cityinfo__district:hover,
.cityinfo__district.is-active {
    border-color: #e0408a;
    background: #fdeef5;
    color: #c2185b;
    text-decoration: none;
}

.cityinfo__district--extra {
    display: none;
}

.cityinfo__districts.is-open .cityinfo__district--extra {
    display: inline-flex;
}

.cityinfo__district--all {
    background: #fdeef5;
    border-color: #fdeef5;
    color: #e0408a;
    font-weight: 600;
    font-family: inherit;
}

.cityinfo__district--all svg {
    color: currentColor;
}

/* ===== Промо-баннеры ===== */
.cityinfo__promos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cityinfo__promo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 16px 18px;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cityinfo__promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(110, 32, 78, 0.22);
    color: #fff;
    text-decoration: none;
}

.cityinfo__promo--vip {
    background-image: linear-gradient(120deg, #3a0f2a 0%, #7a1d55 55%, #b02a73 100%);
}

.cityinfo__promo--tg {
    background-image: linear-gradient(120deg, #1683d8 0%, #2aa3ef 55%, #43b8f5 100%);
}

.cityinfo__promo--ads {
    background-image: linear-gradient(120deg, #e0408a 0%, #f06ba8 60%, #f7a0c8 100%);
}

.cityinfo__promo-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc94d;
}

.cityinfo__promo--ads .cityinfo__promo-icon {
    color: #fff;
}

.cityinfo__promo-icon--round {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: #2aa3ef;
}

.cityinfo__promo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.cityinfo__promo-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
}

.cityinfo__promo--vip .cityinfo__promo-title {
    text-transform: uppercase;
}

.cityinfo__promo-title--sm {
    font-size: 17px;
}

.cityinfo__promo-sub {
    font-size: 12px;
    line-height: 1.3;
    opacity: 0.9;
}

.cityinfo__promo-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 30px;
    background: #fff;
    color: #c2185b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.cityinfo__promo--tg .cityinfo__promo-btn {
    color: #1683d8;
}

.cityinfo__promo-btn--inline {
    align-self: flex-start;
    margin-top: 6px;
    padding: 7px 14px;
    font-size: 12px;
}

/* ===== О городе + FAQ ===== */
.cityinfo__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.cityinfo__about-title {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: #2a1020;
}

.cityinfo__about-wrap {
    position: relative;
    max-height: 190px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.cityinfo__about-wrap.is-open {
    max-height: 5000px;
}

.cityinfo__about-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.cityinfo__about-text h2,
.cityinfo__about-text h3 {
    margin: 14px 0 8px;
    font-size: 18px;
    color: #2a1020;
}

.cityinfo__about-text p {
    margin: 0 0 10px;
}

.cityinfo__about-text ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

.cityinfo__about-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    transition: opacity 0.3s;
}

.cityinfo__about-wrap.is-open .cityinfo__about-fade {
    opacity: 0;
}

.cityinfo__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 22px;
    border: 1.5px solid #e0408a;
    border-radius: 30px;
    background: #fff;
    color: #c2185b;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cityinfo__more:hover {
    background: #e0408a;
    color: #fff;
}

.cityinfo__more svg {
    transition: transform 0.25s;
}

.cityinfo__more.is-open svg {
    transform: rotate(-90deg);
}

/* FAQ */
.cityinfo__faq-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.cityinfo__faq-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2a1020;
}

.cityinfo__faq-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: #e0408a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cityinfo__faq-all:hover {
    color: #c2185b;
    text-decoration: none;
}

.cityinfo__faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cityinfo__faq-item {
    border: 1px solid #f0e4ea;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.cityinfo__faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #2a2a2a;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.cityinfo__faq-q svg {
    flex-shrink: 0;
    color: #e0408a;
    transition: transform 0.25s;
}

.cityinfo__faq-item.is-open .cityinfo__faq-q svg {
    transform: rotate(45deg);
}

.cityinfo__faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cityinfo__faq-item.is-open .cityinfo__faq-a {
    max-height: 800px;
}

.cityinfo__faq-a-inner {
    padding: 0 16px 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #666;
}

.cityinfo__faq-a-inner p {
    margin: 0 0 8px;
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
    .cityinfo__promos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cityinfo__promo--ads {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .cityinfo__bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .cityinfo {
        margin-top: 28px;
        gap: 18px;
    }
    .cityinfo__title {
        font-size: 22px;
    }
    .cityinfo__lead {
        font-size: 14px;
    }
    .cityinfo__districts {
        flex-wrap: nowrap;
        overflow-x: auto;

        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .cityinfo__districts::-webkit-scrollbar {
        display: none;
    }
    .cityinfo__districts.is-open {
        flex-wrap: wrap;
    }
    .cityinfo__district {
        flex-shrink: 0;
        padding: 9px 16px;
        font-size: 14px;
    }
    .cityinfo__promos {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .cityinfo__promo {
        min-height: 80px;
        padding: 14px;
    }
    .cityinfo__promo-title {
        font-size: 17px;
    }
    .cityinfo__about-title {
        font-size: 20px;
    }
}


/* ===== Промо-баннеры картинками ===== */
.cityinfo__promo-img {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cityinfo__promo-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(110, 32, 78, 0.22);
}

.cityinfo__promo-img {
    aspect-ratio: 5 / 1;
}

.cityinfo__promo-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: center;
}

/* На планшете тоже 3 в ряд, на телефоне — друг под другом */
@media (max-width: 1100px) {
    .cityinfo__promos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .cityinfo__promos {
        grid-template-columns: 1fr;
    }
}
