/* Scoped: /ishchet-dom/ catalog hub only */

.sk-ishchet-dom-hub__cta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767px) {
    .sk-ishchet-dom-hub__cta {
        grid-template-columns: 1fr;
    }
}

.sk-ishchet-dom-hub__quicksearch {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px 10px;
    align-items: end;
    margin: 14px 0 10px;
    padding: 14px 16px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
}

.sk-ishchet-dom-hub__quicksearch-label {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin: 0;
}

.sk-ishchet-dom-hub__quicksearch input[type="search"] {
    width: 100%;
    min-height: 44px;
}

@media (max-width: 767px) {
    .sk-ishchet-dom-hub__quicksearch {
        grid-template-columns: 1fr;
    }
}

.sk-ishchet-dom-hub__map {
    margin: 0 0 16px;
    font-size: 14px;
}

.sk-ishchet-dom-hub__feed {
    margin-top: 8px;
}

.ishchet-dom-catalog__grid .index__post {
    width: 100%;
}

/* Каталог + тизеры «Срочно» / «Новые» — одна сетка, в ряд на планшете и ПК */
.sk-ishchet-dom-hub#cotinder-filter-results .index__posts.announcements-page-cards.ishchet-dom-catalog__grid,
.sk-ishchet-dom-hub .ishchet-dom-teaser--catalog .index__posts.announcements-page-cards.ishchet-dom-catalog__grid {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

@media (min-width: 1200px) {
    .sk-ishchet-dom-hub#cotinder-filter-results .index__posts.announcements-page-cards.ishchet-dom-catalog__grid,
    .sk-ishchet-dom-hub .ishchet-dom-teaser--catalog .index__posts.announcements-page-cards.ishchet-dom-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .sk-ishchet-dom-hub#cotinder-filter-results .index__posts.announcements-page-cards.ishchet-dom-catalog__grid,
    .sk-ishchet-dom-hub .ishchet-dom-teaser--catalog .index__posts.announcements-page-cards.ishchet-dom-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .sk-ishchet-dom-hub#cotinder-filter-results .index__posts.announcements-page-cards.ishchet-dom-catalog__grid,
    .sk-ishchet-dom-hub .ishchet-dom-teaser--catalog .index__posts.announcements-page-cards.ishchet-dom-catalog__grid {
        grid-template-columns: 1fr;
    }
}

.sk-ishchet-dom-hub .ishchet-dom-teaser--catalog {
    margin-bottom: 22px;
}

.sk-ishchet-dom-hub .ishchet-dom-teaser--catalog .index__posts > .index__post {
    width: 100%;
    max-width: 100%;
}

.sk-ishchet-dom-hub__faq h2 {
    font-size: 1.1rem;
    margin-top: 1rem;
}

.ishchet-dom-city-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 14px 0 6px;
}

.ishchet-dom-city-chips__label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.ishchet-dom-city-chips__link {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e3e3e3;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
}

.ishchet-dom-city-chips__link:hover {
    border-color: #c9c9c9;
    background: #fff;
}

.ishchet-dom-teaser {
    margin: 18px 0 20px;
}

.ishchet-dom-teaser__photo-wrap {
    position: relative;
    display: inline-block;
}

.ishchet-dom-teaser__urgent {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    padding: 2px 7px;
    border-radius: 6px;
    background: #fde8e8;
    color: #b42318;
    white-space: nowrap;
}

.ishchet-dom-teaser__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.ishchet-dom-teaser__more {
    font-size: 14px;
    font-weight: 600;
}

.ishchet-dom-teaser__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 767px) {
    .ishchet-dom-teaser__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ishchet-dom-teaser__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
}

.ishchet-dom-teaser__link img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
}

.ishchet-dom-teaser__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.ishchet-dom-happy {
    margin: 22px 0;
    padding-top: 4px;
}

.ishchet-dom-alert {
    margin: 28px 0 20px;
    padding: 16px 14px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #fafafa;
}

.ishchet-dom-alert__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
    margin-top: 10px;
}

.ishchet-dom-alert__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ishchet-dom-alert__flash {
    color: #2d6a3e;
    font-weight: 600;
    margin: 8px 0 0;
}

.ishchet-dom-happy__badge {
    font-size: 12px;
    color: #2d6a3e;
    font-weight: 600;
}

.ishchet-dom-happy__item .ishchet-dom-teaser__link {
    border-color: #d4ead9;
}

/* «Карточка хвоста за минуту» (be-part) — на всю ширину сетки каталога */
.sk-ishchet-dom-hub#cotinder-filter-results .index__posts.ishchet-dom-catalog__grid,
.sk-ishchet-dom-hub .ishchet-dom-teaser--catalog .index__posts.ishchet-dom-catalog__grid {
    grid-auto-flow: dense;
}

.sk-ishchet-dom-hub#cotinder-filter-results .index__posts.ishchet-dom-catalog__grid > .index__post_be-part,
.sk-ishchet-dom-hub .ishchet-dom-teaser--catalog .index__posts.ishchet-dom-catalog__grid > .index__post_be-part {
    grid-column: 1 / -1;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.sk-ishchet-dom-hub .index__post_be-part > .be-part {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sk-ishchet-dom-hub .index__post_be-part .be-part__flex {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.sk-ishchet-dom-hub .index__post_be-part .be-part__info {
    width: auto;
    max-width: 100%;
    flex: 1 1 280px;
    min-width: 0;
}

.sk-ishchet-dom-hub .index__post_be-part .be-part__img {
    flex: 0 1 200px;
    max-width: min(220px, 40%);
}

.sk-ishchet-dom-hub .index__post_be-part .be-part__img img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 280px;
}

@media (max-width: 767.98px) {
    .sk-ishchet-dom-hub .index__post_be-part .be-part {
        padding: 24px 16px;
        min-height: 0;
    }

    .sk-ishchet-dom-hub .index__post_be-part .be-part__title {
        font-size: clamp(1.35rem, 5vw, 2rem);
        line-height: 1.25;
    }

    .sk-ishchet-dom-hub .index__post_be-part .be-part__img {
        flex: 0 0 auto;
        max-width: 160px;
        margin: 0 auto;
    }
}

.sk-ishchet-dom-hub__faq {
    margin: 28px 0 8px;
    padding-top: 8px;
}

.sk-ishchet-dom-hub__faq .sk-shelters-faq__item {
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(123, 97, 255, 0.16);
    background: #fff;
}

.sk-ishchet-dom-hub__faq .sk-shelters-faq__item summary {
    cursor: pointer;
    font-weight: 700;
    color: #2d2d2d;
}

.sk-ishchet-dom-hub__faq .sk-shelters-faq__answer {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
    color: #4a4a4a;
}

.sk-ishchet-dom-hub__faq-links {
    margin-top: 16px;
}