/* «Обратите внимание» + «Уже нашли семью». Кадр 2116:1595.
   Общий пояс белый → #E2FFE7 → белый с зелёного баннера.
   Карточки found 441×436, фото 413×270, gap 49. Desktop ≥1401. */

body.page-looking .looking-guardians {
    display: none !important;
}

/* Пояс с баннера notice до конца found */
body.page-looking .looking-soft {
    position: relative;
    z-index: 3;
    overflow-x: clip;
    background: linear-gradient(180deg, #ffffff 0%, #e2ffe7 38%, #e2ffe7 72%, #ffffff 100%);
}

body.page-looking .looking-soft__start {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 20px 0;
    box-sizing: border-box;
}

body.page-looking .looking-soft .looking-info__notice {
    margin-top: 0;
}

body.page-looking .looking-soft .looking-found {
    background: transparent;
}

body.page-looking .looking-found {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 100px 0 90px;
    overflow: visible;
    background: transparent;
}

/* Старый mint-glow только на found — убран: пояс общий на .looking-soft */
body.page-looking .looking-found::before {
    content: none;
    display: none;
}

body.page-looking .looking-found__inner {
    position: relative;
    z-index: 1;
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    overflow: visible;
}

body.page-looking .looking-found .looking-block-title,
body.page-looking .looking-found__title {
    margin: 0 auto 68px;
    color: #4d4d4d;
    font-family: "Google Sans", Arial, sans-serif;
    font-size: clamp(32px, 5vw, 66px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: center;
}

body.page-looking .looking-found__title span {
    color: #3ea74f;
}

body.page-looking .looking-found__slider {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 96px 28px; /* стрелки в боковых полях */
    box-sizing: border-box;
}

body.page-looking .looking-found__viewport {
    /* padding внутри clip-зоны + отрицательный margin — тень (в т.ч. hover) не режется overflow */
    width: calc(100% + 64px);
    max-width: none;
    margin: -36px -32px -56px;
    padding: 36px 32px 56px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: none; /* looking-page.css mobile snap ломает стрелки на iOS */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* тачи по зонам стрелок не перехватывает scroll-слой (iOS) */
    pointer-events: none;
}

body.page-looking .looking-found__viewport::-webkit-scrollbar {
    display: none;
}

body.page-looking .looking-found__track {
    display: flex;
    gap: 28px;
    width: max-content;
    padding: 0;
    box-sizing: content-box;
    pointer-events: auto;
}

body.page-looking .looking-found-card {
    position: relative;
    flex: 0 0 392px;
    width: 392px;
    height: 396px;
    overflow: visible;
    border-radius: 20px;
    background: #ffffff;
    scroll-snap-align: none;
    pointer-events: auto;
    /* как у .journal-news-grid__card на /journal/articles/ */
    box-shadow: 0 4px 12px rgba(52, 51, 51, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.page-looking .looking-found-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(52, 51, 51, 0.12);
}

body.page-looking .looking-found-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 14px 22px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 20px;
    color: #4d4d4d;
    text-decoration: none;
    text-align: left;
    background: #ffffff;
}

body.page-looking .looking-found-card__image {
    position: relative;
    width: 364px;
    max-width: 100%;
    height: 238px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    flex: 0 0 auto;
}

body.page-looking .looking-found-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

body.page-looking .looking-found-card:hover .looking-found-card__image img,
body.page-looking .looking-found-card:focus-within .looking-found-card__image img {
    transform: scale(1.03);
}

body.page-looking .looking-found-card .looking-card-label {
    display: none;
}

body.page-looking .looking-found-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 18px;
    padding: 0 24px 0 24px;
    text-align: left;
}

body.page-looking .looking-found-card h3 {
    margin: 0;
    color: #4d4d4d;
    font-family: "Google Sans", Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.22px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.page-looking .looking-found-card time {
    display: block;
    margin-top: 18px;
    color: rgba(77, 77, 77, 0.5);
    font-family: "Google Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.16px;
}

body.page-looking .looking-found__arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex !important; /* перебить looking-page.css mobile display:none */
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.page-looking .looking-found__arrow img {
    display: block;
    width: 45px;
    height: 26px;
    pointer-events: none; /* iOS: тап по img внутри button */
}

body.page-looking .looking-found__arrow--prev {
    left: 12px;
}

body.page-looking .looking-found__arrow--prev img {
    transform: scaleX(-1);
}

body.page-looking .looking-found__arrow--next {
    right: 12px;
}

body.page-looking .looking-found__arrow:hover,
body.page-looking .looking-found__arrow:focus-visible {
    outline: none;
    opacity: 0.85;
}

body.page-looking .looking-found .looking-green-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    min-width: 0;
    height: 50px;
    margin-top: 64px;
    padding: 0 24px;
    border-radius: 60px;
    background: #3ea74f;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.36px;
    text-transform: uppercase;
}

body.page-looking .looking-found .looking-green-button:hover,
body.page-looking .looking-found .looking-green-button:focus-visible {
    background: #52bb63;
    color: #ffffff;
    transform: none;
}

@media (max-width: 991px) {
    body.page-looking .looking-soft__start {
        padding: 32px 16px 0;
    }

    body.page-looking .looking-found {
        padding: 56px 0 64px;
    }

    body.page-looking .looking-found__inner {
        padding: 0 16px;
    }

    body.page-looking .looking-found .looking-block-title,
    body.page-looking .looking-found__title {
        margin-bottom: 36px;
    }

    body.page-looking .looking-found__slider {
        padding: 8px 40px 12px;
    }

    body.page-looking .looking-found__viewport {
        width: calc(100% + 40px);
        margin: -24px -20px -48px;
        padding: 24px 20px 48px;
    }

    body.page-looking .looking-found__track {
        gap: 20px;
        padding: 0;
    }

    body.page-looking .looking-found-card {
        flex: 0 0 min(380px, 72vw);
        width: min(380px, 72vw);
        height: auto;
        min-height: 340px;
        box-shadow: 0 4px 12px rgba(52, 51, 51, 0.06);
    }

    body.page-looking .looking-found-card__image {
        width: 100%;
        height: auto;
        aspect-ratio: 413 / 270;
    }

    body.page-looking .looking-found-card__body {
        padding: 0 12px;
    }

    body.page-looking .looking-found-card h3 {
        font-size: 18px;
    }

    body.page-looking .looking-found__arrow--prev {
        left: 0;
    }

    body.page-looking .looking-found__arrow--next {
        right: 0;
    }

    body.page-looking .looking-found .looking-green-button {
        margin-top: 40px;
        width: auto;
        min-width: 220px;
        height: 48px;
        font-size: 15px;
    }
}

@media (min-width: 992px) {
    body.page-looking .looking-soft__start {
        padding: 54px 0 0;
    }

    body.page-looking .looking-found__inner {
        padding: 0;
    }

    body.page-looking .looking-found .looking-block-title,
    body.page-looking .looking-found__title {
        font-size: 66px;
        letter-spacing: -1.32px;
        white-space: nowrap;
    }

    body.page-looking .looking-found__slider {
        padding: 16px 96px 28px;
    }

    body.page-looking .looking-found__viewport {
        width: calc(100% + 64px);
        max-width: none;
        margin: -36px -32px -56px;
        padding: 36px 32px 56px;
        overflow: hidden;
    }

    body.page-looking .looking-found__arrow--prev {
        left: 12px;
    }

    body.page-looking .looking-found__arrow--next {
        right: 12px;
    }
}
