/* ioann-presnya landing_hero — Figma node 1:1578 */

.landing-hero {
    max-width: var(--ip-content-max);
    margin: 0 auto 60px;
    padding: 0 var(--ip-side-padding);
    display: grid;
    grid-template-columns: minmax(0, 948fr) minmax(0, 484fr);
    gap: 0;
    position: relative;
    align-items: stretch;
    /* Top & bottom hairlines around the slider (Figma node 1:2031). */
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
}

/* Hidden radio inputs */
.landing-hero__radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Media (left column) */
.landing-hero__media {
    position: relative;
    width: 100%;
    aspect-ratio: 948 / 600;
    overflow: hidden;
    background: transparent;
}

.landing-hero__media--empty {
    background: #e6e6e6;
}

.landing-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Show the whole photo (not cropped) — portrait images are letterboxed
       on the media background instead of being cut off. */
    object-fit: contain;
    opacity: 0;
    transition: opacity .25s ease;
    cursor: zoom-in;
    /* Only the visible photo receives clicks (others sit stacked with opacity 0). */
    pointer-events: none;
}
.landing-hero__photo.is-active,
.landing-hero__media--single .landing-hero__photo {
    pointer-events: auto;
}

/* Single-photo fallback — the lone photo is always visible */
.landing-hero__media--single .landing-hero__photo {
    opacity: 1;
}

/* Active photo (one per index, up to 10) — show only the photo
   whose paired radio is currently :checked. */
.landing-hero__radio--0:checked ~ .landing-hero__media .landing-hero__photo--0,
.landing-hero__radio--1:checked ~ .landing-hero__media .landing-hero__photo--1,
.landing-hero__radio--2:checked ~ .landing-hero__media .landing-hero__photo--2,
.landing-hero__radio--3:checked ~ .landing-hero__media .landing-hero__photo--3,
.landing-hero__radio--4:checked ~ .landing-hero__media .landing-hero__photo--4,
.landing-hero__radio--5:checked ~ .landing-hero__media .landing-hero__photo--5,
.landing-hero__radio--6:checked ~ .landing-hero__media .landing-hero__photo--6,
.landing-hero__radio--7:checked ~ .landing-hero__media .landing-hero__photo--7,
.landing-hero__radio--8:checked ~ .landing-hero__media .landing-hero__photo--8,
.landing-hero__radio--9:checked ~ .landing-hero__media .landing-hero__photo--9 {
    opacity: 1;
}

/* JS-driven active state — supports any number of photos (the per-index
   :checked rules above are a no-JS fallback capped at 10). */
.landing-hero__photo.is-active {
    opacity: 1;
}

/* Meta (right column) */
.landing-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 32px;
    background: #ffffff;
    color: var(--ip-text);
    min-width: 0;
}

/* Dark variant — text inverts to white */
.landing-hero__meta--dark {
    color: #ffffff;
    border-left: 0;
}
.landing-hero__meta--dark .landing-hero__title,
.landing-hero__meta--dark .landing-hero__body {
    color: #ffffff;
}
.landing-hero__meta--dark .landing-hero__cta {
    color: #ffffff;
    border-color: #ffffff;
}
.landing-hero__meta--dark .landing-hero__cta:hover {
    background: #ffffff;
    color: var(--ip-text);
}

.landing-hero__title {
    margin: 0;
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.026em;
    color: var(--ip-text);
    font-feature-settings: 'lnum', 'tnum';
    word-break: break-word;
}

.landing-hero__body {
    margin: 0;
    font-family: var(--ip-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #333333;
    word-break: break-word;
}

/* CTA — reuses the .news-card__button visual spec */
.landing-hero__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 177px;
    height: 36px;
    padding: 0 18px;
    border: 1px solid #ddb6a6;
    border-radius: 5px;
    color: #af4409;
    font-family: var(--ip-font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.landing-hero__cta:hover {
    background: #ddb6a6;
    color: #ffffff;
}

/* Arrows row — 30×30 round (matches task #17) */
.landing-hero__arrows {
    position: relative;
    height: 30px;
    display: block;
    margin-top: 8px;
}

.landing-hero__arrow {
    position: absolute;
    top: 0;
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: transparent center no-repeat;
    cursor: pointer;
    transition: background-color .2s ease;
}

.landing-hero__arrow--prev {
    left: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'><path d='M6.5 1L1.5 6L6.5 11' stroke='%231b1b1b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.landing-hero__arrow--next {
    left: 46px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'><path d='M1.5 1L6.5 6L1.5 11' stroke='%231b1b1b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.landing-hero__meta--dark .landing-hero__arrow--prev {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'><path d='M6.5 1L1.5 6L6.5 11' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.landing-hero__meta--dark .landing-hero__arrow--next {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12' fill='none'><path d='M1.5 1L6.5 6L1.5 11' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.landing-hero__arrow:hover {
    background-color: rgba(27, 27, 27, 0.06);
}
.landing-hero__meta--dark .landing-hero__arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Reveal only the prev/next pair paired with the currently :checked slide */
.landing-hero__radio--0:checked ~ .landing-hero__meta .landing-hero__arrow--for-0,
.landing-hero__radio--1:checked ~ .landing-hero__meta .landing-hero__arrow--for-1,
.landing-hero__radio--2:checked ~ .landing-hero__meta .landing-hero__arrow--for-2,
.landing-hero__radio--3:checked ~ .landing-hero__meta .landing-hero__arrow--for-3,
.landing-hero__radio--4:checked ~ .landing-hero__meta .landing-hero__arrow--for-4,
.landing-hero__radio--5:checked ~ .landing-hero__meta .landing-hero__arrow--for-5,
.landing-hero__radio--6:checked ~ .landing-hero__meta .landing-hero__arrow--for-6,
.landing-hero__radio--7:checked ~ .landing-hero__meta .landing-hero__arrow--for-7,
.landing-hero__radio--8:checked ~ .landing-hero__meta .landing-hero__arrow--for-8,
.landing-hero__radio--9:checked ~ .landing-hero__meta .landing-hero__arrow--for-9 {
    display: inline-block;
}

/* JS-driven active arrow pair — supports any number of photos. */
.landing-hero__arrow.is-active {
    display: inline-block;
}

/* Thumbnail strip — 4 × ~91×68 rounded, single row (Figma: 4 thumbs × 91px + 3 gaps × 16px ≈ 412px) */
.landing-hero__thumbs {
    display: flex;
    gap: 16px;
    margin: 16px 0 0;
    padding: 0 0 4px;
    list-style: none;
    flex-wrap: nowrap;
    /* With many photos the strip must scroll horizontally inside the column
       instead of overflowing the page. */
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.landing-hero__thumb {
    flex: 0 0 auto;
}

.landing-hero__thumb-label {
    display: block;
    width: 91px;
    height: 68px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease;
    background: transparent;
}
.landing-hero__thumb-label img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.landing-hero__thumb-label:hover {
    transform: translateY(-1px);
}

/* Collapse to stacked column at <960px */
@media (max-width: 959.99px) {
    .landing-hero {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }
    .landing-hero__meta {
        border-left: 0;
        padding: 28px 20px;
    }
    .landing-hero__title {
        font-size: 32px;
    }
    .landing-hero__thumb-label {
        width: 72px;
        height: 54px;
    }
}

@media (max-width: 767.99px) {
    /* Thumbnail strip: keep visible, wrap to multiple rows, reduce gap so
       three 72×54 thumbs (inherited from <960px query) fit in 328px column */
    .landing-hero__thumbs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    /* Arrows: keep 30px visual but enlarge tap target to ~44px via padding */
    .landing-hero__arrows {
        height: 44px;
        margin-top: 4px;
    }

    .landing-hero__arrow {
        width: 44px;
        height: 44px;
        /* Centre the 30px visual circle within the larger tap target */
        background-size: 8px 12px;
        background-position: center;
    }

    .landing-hero__arrow--next {
        left: 52px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   ioann-presnya cta_banner — Figma node 1:1614
   ───────────────────────────────────────────────────────────────────────────── */

.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    max-width: var(--ip-content-max);
    margin: 0 auto 60px;
    padding: 0 var(--ip-side-padding, 40px);
    min-height: 275px;
    display: flex;
    align-items: stretch;
}

/* Tall feature variant — Filaret BigBaner (Figma node 1:1463).
   Section is 585px tall (= icon height). Olive band (::before) is 565px (top: 20px). */
.cta-banner--tall {
    min-height: 585px;
}

/* Default dark variant */
.cta-banner--dark {
    background: #1b1b1b;
    color: #ffffff;
}

/* Light variant */
.cta-banner--light {
    background: #ffffff;
    color: var(--ip-text, #1b1b1b);
}

/* With-image variant: top + bottom thin borders (Figma Variant3) */
.cta-banner--with-image {
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
    border-radius: 0;
}

/* Right-side media wrapper — photo confined to the right portion */
.cta-banner__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Filaret tall banner: media (saint icon) sits above the line-art decor */
.cta-banner--tall .cta-banner__media {
    z-index: 1;
    overflow: visible;
}

/* Filaret tall banner: inner text sits above the saint icon */
.cta-banner--tall .cta-banner__inner {
    z-index: 2;
}

/* Photo positioned to the right ~62% from the left (Figma: left-[62.22%] w-[42.89%]) */
.cta-banner__photo {
    position: absolute;
    left: 62.22%;
    width: 42.89%;
    top: 0;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

/* Gradient veil fading the photo into the panel (Figma: 65.865% → 86.058%) */
.cta-banner__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--cta-bg, #1b1b1b) 65.865%,
        rgba(0, 0, 0, 0) 86.058%
    );
}

/* Filaret decorative church line-art behind the text (Figma node 1:1463 / 1:1467) */
.cta-banner__decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.cta-banner__decor-img {
    position: absolute;
    /* Figma 1:1467 ≈ left 290/1432 ≈ 20%, width 827/1432 ≈ 57.7%, vertically centered */
    left: 18%;
    top: 50%;
    transform: translateY(-50%);
    width: 58%;
    height: auto;
    max-width: none;
    opacity: .38;
    object-fit: contain;
}

/* Inner layout — text left, CTA right */
.cta-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    padding: 40px 0;
}

/* Text column */
.cta-banner__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* Title */
.cta-banner__title {
    margin: 0;
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.cta-banner--dark .cta-banner__title {
    color: #ffffff;
}

.cta-banner--light .cta-banner__title {
    color: var(--ip-text, #1b1b1b);
}

/* Body */
.cta-banner__body {
    margin: 0;
    font-family: var(--ip-font-body);
    font-size: 16px;
    line-height: 1.3;
    word-break: break-word;
}

.cta-banner--dark .cta-banner__body {
    color: rgba(255, 255, 255, .85);
}

.cta-banner--light .cta-banner__body {
    color: #333333;
}

/* Filaret feature banner — large two-line Cormorant title (Figma node 1:1465) */
.cta-banner--tall .cta-banner__title {
    font-size: 60px;
    line-height: 1.0;
}

/* Filaret feature banner — italic Cormorant subtitle (Figma node 1:1466) */
.cta-banner--tall .cta-banner__body {
    font-family: var(--ip-font-title); /* Cormorant Garamond */
    font-weight: 400;
    font-style: italic;
    font-size: 42px;
    line-height: 0.9;
}

/* Filaret feature banner — solid white subtitle color */
.cta-banner--tall.cta-banner--dark .cta-banner__body {
    color: #ffffff;
}

/* CTA button — mirrors .news-card__button / .landing-hero__cta style */
.cta-banner__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 177px;
    height: 36px;
    padding: 0 18px;
    border-radius: 5px;
    font-family: var(--ip-font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cta-banner--dark .cta-banner__cta {
    border: 1px solid #ffffff;
    color: #ffffff;
}
.cta-banner--dark .cta-banner__cta:hover {
    background: #ffffff;
    color: #1b1b1b;
}

.cta-banner--light .cta-banner__cta {
    border: 1px solid #ddb6a6;
    color: #af4409;
}
.cta-banner--light .cta-banner__cta:hover {
    background: #ddb6a6;
    color: #ffffff;
}

/* With-image variant: stack text + button vertically on the left,
   reserve right side for the photo via padding-right */
.cta-banner--with-image .cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding-right: 38%;
}

/* Filaret tall+image: vertically centre the text+button group on the left.
   Override the space-between from the with-image rule above so the block
   is centred in the full banner height, matching Figma node 1:162. */
.cta-banner--tall.cta-banner--with-image .cta-banner__inner {
    justify-content: center;
    gap: 65px;
    padding-top: 0;
    padding-bottom: 0;
}

/* With-image variant: semi-transparent white button (Figma Variant3) */
.cta-banner--with-image .cta-banner__cta {
    background: rgba(255, 255, 255, .2);
    border: 1px solid #ffffff;
    color: #ffffff;
}
.cta-banner--with-image .cta-banner__cta:hover {
    background: rgba(255, 255, 255, .4);
}

/* Filaret feature banner (tall + image) — transparent outlined button at
   rest, white fill on hover (Figma node 1:1469); overrides the frosted
   with-image fill above without affecting the other with-image banners. */
.cta-banner--tall.cta-banner--with-image .cta-banner__cta {
    background: transparent;
}
.cta-banner--tall.cta-banner--with-image .cta-banner__cta:hover {
    background: #ffffff;
    color: #1b1b1b;
}

/* Filaret tall banner — paint the olive fill on an inner band (::before)
   offset 20px from the top so the section is 585px but the olive band is
   565px (585 − 20). The saint icon (585px) overhangs the olive top by ~20px.
   Figma node 1:1464: olive top 29px ≈ task spec 20px (rounded for clean layout).
   The inline style="background:…" on the <section> must be neutralised. */
.cta-banner--tall.cta-banner--with-decor {
    background: transparent !important;
    overflow: visible;
    border-top: 0;
}
.cta-banner--tall.cta-banner--with-decor::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    bottom: 0;
    background: var(--cta-bg, #1b1b1b);
    border-radius: 0;
    z-index: 0;
}

/* Filaret tall banner — saint-icon portrait treatment.
   The icon (596×727, RGBA transparent cutout) fills the full right column
   (left: 63.9%, width: 39.8%) and the full section height (585px, top: 0).
   The olive band starts at top: 20px (565px tall), so the icon's head overhangs
   the band's rounded top edge by ~20px — matching Figma node 1:1468.
   object-fit: cover + object-position: center top keeps the saint's head visible
   at the top while filling the column width.
   The gradient veil is disabled so it does not tint the transparent icon. */
.cta-banner--tall .cta-banner__photo {
    left: 60.2%;
    width: 39.8%;
    top: 0;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    max-width: none;
}
.cta-banner--tall .cta-banner__veil {
    display: none;
}

/* Collapse text + CTA to stacked column at <768px */
@media (max-width: 767.99px) {
    .cta-banner {
        min-height: auto;
        /* No horizontal padding here — .content already applies --ip-side-padding (16px)
           as the side gutter on mobile. Adding padding here would create a doubled 32px
           inset (same convention as .banners-grid and .home-schedule-row). */
        padding: 0;
    }

    .cta-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 28px 0;
    }

    .cta-banner__title {
        font-size: 28px;
    }

    .cta-banner__cta {
        align-self: stretch;
        text-align: center;
    }

    /* Generic with-image variant: hide photo on mobile, full-width text */
    .cta-banner--with-image .cta-banner__inner {
        padding-right: 0;
    }
    .cta-banner__photo {
        display: none;
    }
    .cta-banner__veil {
        display: none;
    }
    .cta-banner__decor {
        display: none;
    }

    /* ─────────────────────────────────────────────────────────────
       Bottom "Нужна ваша помощь" banner (with-image, not tall) —
       mobile per Figma node 2747:4337: full-bleed card, photo on top
       (~272px) fading into the solid background, 36px title + 16px
       body, frosted outlined "Подробно →" button. Scoped with :not(tall)
       so the Filaret feature banner keeps its own layout below.
       ───────────────────────────────────────────────────────────── */
    .cta-banner--with-image:not(.cta-banner--tall) {
        /* Keep the .content side gutter (no full-bleed) — same left/right
           margins as .news-main. */
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 28px;
        overflow: hidden;
    }

    /* Photo region on top (media flows in-column). */
    .cta-banner--with-image:not(.cta-banner--tall) .cta-banner__media {
        position: relative;
        inset: auto;
        order: -1;
        flex: 0 0 auto;
        width: 100%;
        height: 272px;
    }
    .cta-banner--with-image:not(.cta-banner--tall) .cta-banner__photo {
        display: block;
        position: absolute;
        inset: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    /* Bottom→top gradient blending the photo into the card background. */
    .cta-banner--with-image:not(.cta-banner--tall) .cta-banner__veil {
        display: block;
        inset: 0;
        background: linear-gradient(to top, var(--cta-bg, #16396f) 5%, transparent 30%);
    }

    /* Text + button below the photo. */
    .cta-banner--with-image:not(.cta-banner--tall) .cta-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 16px;
        padding: 0 36px 32px;
    }
    .cta-banner--with-image:not(.cta-banner--tall) .cta-banner__text {
        gap: 16px;
    }
    .cta-banner--with-image:not(.cta-banner--tall) .cta-banner__title {
        font-size: 36px;
        line-height: 1;
    }
    .cta-banner--with-image:not(.cta-banner--tall) .cta-banner__body {
        font-size: 16px;
        line-height: 1.3;
        color: #ffffff;
    }
    .cta-banner--with-image:not(.cta-banner--tall) .cta-banner__cta {
        align-self: flex-start;
        min-width: 0;
    }

    /* ─────────────────────────────────────────────────────────────
       Filaret feature banner (tall + image + decor) — mobile per
       Figma node 2747:4307: full-bleed olive card, round 172px saint
       icon on top, faint church line-art on the right, 36px title +
       24px italic subtitle, compact outlined "Подробно →" button.
       ───────────────────────────────────────────────────────────── */
    .cta-banner--tall {
        /* Keep the .content side gutter so the card has the same left/right
           margins as .news-main (no full-bleed). */
        padding: 28px 36px;
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
        overflow: hidden;
    }

    /* Saint icon: round 172px block on top (media flows in-column). */
    .cta-banner--tall .cta-banner__media {
        position: relative;
        inset: auto;
        order: -1;
        flex: 0 0 auto;
        width: 172px;
        height: 172px;
        border-radius: 50%;
        overflow: hidden;
        z-index: 2;
        background: #ffffff; /* white circle behind the transparent saint cutout */
    }
    .cta-banner--tall .cta-banner__photo {
        display: block;
        position: absolute;
        inset: 0;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    /* Church line-art decor: faint, spilling off the right edge. */
    .cta-banner--tall .cta-banner__decor {
        display: block;
    }
    .cta-banner--tall .cta-banner__decor-img {
        left: auto;
        right: -22%;
        top: 8%;
        transform: none;
        width: 95%;
        height: auto;
        opacity: .38;
    }

    /* Text + button block sits above the decor. */
    .cta-banner--tall.cta-banner--with-image .cta-banner__inner {
        position: relative;
        z-index: 2;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 16px;
        padding: 0;
    }
    .cta-banner--tall .cta-banner__text {
        gap: 8px;
    }
    .cta-banner--tall .cta-banner__title {
        font-size: 36px;
        line-height: 1;
    }
    .cta-banner--tall .cta-banner__body {
        font-size: 24px;
        line-height: 1;
    }

    /* Compact outlined button (not stretched full-width). */
    .cta-banner--tall.cta-banner--with-image .cta-banner__cta {
        align-self: flex-start;
        min-width: 0;
    }

    /* Olive band fills the whole card on mobile. */
    .cta-banner--tall.cta-banner--with-decor {
        overflow: hidden;
    }
    .cta-banner--tall.cta-banner--with-decor::before {
        top: 0;
        border-radius: 0;
    }
}

/* =========================================================
   banners_grid block
   Figma node 1:1619 — section title + 2-column coloured banner cards.
   ========================================================= */

/* Section wrapper */
.banners-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: var(--ip-content-max);
    margin: 60px auto 60px;
}

/* Section title — uppercase serif matching documents-grid pattern (Figma node 1:1619) */
.banners-grid__title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.396px;
    color: var(--ip-text);
    text-transform: uppercase;
    text-align: center;
}

/* Grid of banner cards — 2 per row at desktop */
.banners-grid__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 690px));
    gap: 36px 53px;
    width: 100%;
    justify-content: center;
}

/* Individual banner card */
.banners-grid__item {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    min-height: 228px;
    padding: 32px 36px;
    border-radius: 0;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}

.banners-grid__item:hover {
    opacity: .92;
    transform: translateY(-2px);
}

/* Static (no link) — not clickable: no pointer cursor, no hover lift. */
.banners-grid__item--static {
    cursor: default;
}

.banners-grid__item--static:hover {
    opacity: 1;
    transform: none;
}

/* Text column — title + optional subtitle */
.banners-grid__item-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    /* Title always sits at the top so the layout is identical whether or not a
       card has a CTA/subtitle (the CTA is pushed to the bottom via margin-top). */
    justify-content: flex-start;
}

.banners-grid__item-title {
    margin: 0;
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    color: #ffffff;
}

.banners-grid__item-subtitle {
    margin: 0;
    font-family: var(--ip-font-body);
    font-size: 15px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .85);
    /* Preserve manual line breaks entered in the admin textarea. */
    white-space: pre-line;
}

/* Bulleted subtitle list (solid-block variant) — Figma node 1:1619 */
.banners-grid__item-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.banners-grid__item-list-item {
    position: relative;
    padding-left: 18px;
    font-family: var(--ip-font-body);
    font-size: 15px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .85);
}

.banners-grid__item-list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255, 255, 255, .85);
}

/* CTA link (solid-block variant) — white "Подробно →" pinned to the bottom-left
   (margin-top:auto pushes it down; title-only cards without a label are unaffected). */
.banners-grid__item-link {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--ip-font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.05;
    color: #ffffff;
}

/* Right-aligned circular image (solid-block variant) — Figma node 1:2073 */
.banners-grid__item-image {
    flex: 0 0 auto;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    object-fit: cover;
    align-self: center;
}

/* Responsive: collapse to single column at <768px */
@media (max-width: 767.99px) {
    .banners-grid__title {
        font-size: 26px;
    }

    .banners-grid__items {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .banners-grid__item {
        min-height: auto;
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .banners-grid__item-image {
        width: 140px;
        height: 140px;
        align-self: center;
    }
}

/* =========================================================
   banners_grid — light-card variant (variant=cards)
   Figma node 1-126: white cards with circular image + red CTA.
   ========================================================= */

/* Light-card items wrapper inherits the same 2-col grid */
.banners-grid--cards .banners-grid__items {
    gap: 24px;
}

/* Individual light card */
.banners-grid__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
    padding: 28px 36px;
    text-decoration: none;
    color: var(--ip-text);
    transition: opacity .2s ease;
}

.banners-grid__card:hover {
    opacity: .85;
}

/* Static (no link) — not clickable: no pointer cursor, no hover fade. */
.banners-grid__card--static {
    cursor: default;
}

.banners-grid__card--static:hover {
    opacity: 1;
}

/* Text column */
.banners-grid__card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Serif two-line title */
.banners-grid__card-title {
    margin: 0;
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.0;
    letter-spacing: -0.396px;
    color: #1b1b1b;
}

/* Grey subtitle */
.banners-grid__card-subtitle {
    margin: 0;
    font-family: var(--ip-font-body);
    font-size: 16px;
    line-height: 1.1;
    color: #a4a4a4;
}

/* Red "Подробно →" link */
.banners-grid__card-link {
    display: inline-block;
    margin-top: 4px;
    font-family: var(--ip-font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.05;
    color: #a33d25;
}

/* Circular photo on the right */
.banners-grid__card-image {
    flex: 0 0 auto;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive: match the home schedule card (.home-schedule-row__schedule) —
   full-bleed rules, round 172px image on top, 36px serif title, flush stack. */
@media (max-width: 767.99px) {
    /* Keep the .content side gutter so the block has the same left/right
       margins as .news-main (no full-bleed). */

    /* Cards stack flush and share a single rule line between them. */
    .banners-grid--cards .banners-grid__items {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .banners-grid__card {
        padding: 28px 36px;
        flex-direction: column;
        align-items: flex-start;
        gap: 36px; /* image → text, matches the schedule card */
    }
    .banners-grid__card + .banners-grid__card {
        border-top: none;
    }

    /* Round image above the text */
    .banners-grid__card-image {
        order: -1;
        width: 172px;
        height: 172px;
        flex-shrink: 0;
    }

    .banners-grid__card-title {
        font-size: 36px;
    }
}

/* =========================================================
   banners_grid — photo variant (variant='photo')
   Figma node 1-169 — ЖИЗНЬ ПРИХОДА: 4 full-bleed photo cards
   in a 2×2 grid, each with a colour→transparent gradient overlay,
   white serif title top-left, light-grey subtitle, and a
   white-bordered translucent pill 'Подробно →' button bottom-left.
   ========================================================= */

.banners-grid--photo .banners-grid__items {
    gap: 36px 53px;
}

.banners-grid__photo-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 463px;
    padding: 28px 36px;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

.banners-grid__photo-card:hover {
    opacity: .95;
    transform: translateY(-2px);
}

/* Static (no link) — not clickable: no pointer cursor, no hover lift. */
.banners-grid__photo-card--static {
    cursor: default;
}

.banners-grid__photo-card--static:hover {
    opacity: 1;
    transform: none;
}

.banners-grid__photo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    z-index: 0;
}

.banners-grid__photo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, var(--bg-grad-color, #1b1b1b) 18%, transparent 55%);
}

.banners-grid__photo-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 407px;
    gap: 24px;
}

.banners-grid__photo-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.banners-grid__photo-title {
    margin: 0;
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.396px;
    color: #fff;
}

.banners-grid__photo-subtitle {
    margin: 0;
    font-family: var(--ip-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -0.176px;
    color: rgba(255, 255, 255, .8);
}

.banners-grid__photo-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 20px;
    border-radius: 5px;
    border: 1px solid #fff;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-family: var(--ip-font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.05;
}

/* Responsive: single column on mobile */
@media (max-width: 767.99px) {
    .banners-grid--photo .banners-grid__items {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .banners-grid__photo-card {
        min-height: 360px;
    }

    .banners-grid__photo-text {
        min-height: 300px;
    }

    .banners-grid__photo-title {
        font-size: 28px;
    }
}

/* =========================================================
   cta_form_banner block
   Figma node 1:1634 — stub feedback form strip (visual only).
   ========================================================= */

/* Outer wrapper — full-bleed dark strip */
.cta-form-banner {
    width: 100%;
    background: #1b1b1b;
    color: #ffffff;
    margin: 0 0 60px;
}

/* Inner form layout */
.cta-form {
    max-width: var(--ip-content-max);
    margin: 0 auto;
    padding: 30px var(--ip-side-padding);
    min-height: 117px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-form__title {
    margin: 0;
    flex: 1 1 320px;
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    color: #ffffff;
}

.cta-form__fields {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 480px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Group wrapper — display:contents lets the inner field keep participating in the flex row on desktop */
.cta-form__group {
    display: contents;
}

/* Label hidden on desktop; shown above its input only on mobile */
.cta-form__label {
    display: none;
}

.cta-form__field {
    flex: 1 1 180px;
    min-width: 0;
    height: 36px;
    padding: 0 4px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    color: #ffffff;
    font: 400 14px/1 var(--ip-font-body);
    outline: none;
}
.cta-form__field::placeholder { color: rgba(255, 255, 255, .65); }
.cta-form__field:focus        { border-bottom-color: #ffffff; }

/* Submit — mirrors news-card / landing-hero / cta-banner outlined CTA */
.cta-form__submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 177px;
    height: 36px;
    padding: 0 18px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    background: transparent;
    color: #ffffff;
    font: 500 14px/1 var(--ip-font-body);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cta-form__submit:hover { background: #ffffff; color: #1b1b1b; }

.cta-form__success {
    flex: 1 1 100%;
    margin: 0;
    padding-top: 8px;
    font: 400 15px/1.3 var(--ip-font-body);
    color: #ffffff;
}

/* Collapse to stacked column at <768px */
@media (max-width: 767.99px) {
    .cta-form {
        min-height: auto;
        padding: 24px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .cta-form__title  { font-size: 22px; flex: 1 1 100%; }
    .cta-form__fields { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 16px; justify-content: stretch; }
    .cta-form__group  { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
    .cta-form__label  { display: block; color: #ffffff; font: 500 13px/1.2 var(--ip-font-body); }
    .cta-form__field  { width: 100%; flex: 1 1 auto; }
    .cta-form__submit { width: 100%; min-width: 0; }
}

/* ---------- contacts variant (Figma 1:2026) ---------- */

/* Burgundy strip — applied only when the contacts modifier is present */
.cta-form-banner--contacts {
    background: #6c0a0c;
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
}

.cta-form-banner__contacts {
    max-width: var(--ip-content-max);
    margin: 0 auto;
    padding: 28px var(--ip-side-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.cta-form-banner__body {
    margin: 0;
    flex: 1 1 520px;
    max-width: 680px;
    font-family: var(--ip-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #ffffff;
}

.cta-form-banner__contact-info {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cta-form-banner__email,
.cta-form-banner__phone {
    font-family: var(--ip-font-title);   /* Cormorant — same var used by .cta-form__title */
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    transition: color .2s ease;
}

.cta-form-banner__email:hover,
.cta-form-banner__phone:hover {
    color: #ddb6a6;
}

/* Non-clickable contacts variant (Figma 1:1639): email + phone in a horizontal row */
.cta-form-banner--contacts-static .cta-form-banner__contact-info {
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

@media (max-width: 767.99px) {
    .cta-form-banner--contacts-static .cta-form-banner__contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 767.99px) {
    .cta-form-banner__contacts {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px 16px;
    }

    .cta-form-banner__body {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .cta-form-banner__contact-info {
        align-items: flex-start;
    }

    .cta-form-banner__email,
    .cta-form-banner__phone {
        font-size: 26px;
    }
}

/* ---------- feedback variant (Figma 1:1634) — wine strip, horizontal row with intro + email + phone + button ---------- */

.cta-form-banner--feedback {
    background: #6c0a0c;
}

.cta-form--feedback .cta-form__intro {
    flex: 1 1 280px;
    margin: 0;
    font: 400 16px/1.3 var(--ip-font-body);
    color: #ffffff;
}

@media (max-width: 767.99px) {
    .cta-form--feedback {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-form--feedback .cta-form__intro { flex: 1 1 100%; }
    .cta-form--feedback .cta-form__fields { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 16px; justify-content: stretch; }
    .cta-form--feedback .cta-form__group  { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
    .cta-form--feedback .cta-form__label  { display: block; color: #ffffff; font: 500 13px/1.2 var(--ip-font-body); }
    .cta-form--feedback .cta-form__field  { width: 100%; flex: 1 1 auto; }
    .cta-form--feedback .cta-form__submit { width: 100%; min-width: 0; }
}

/* ========================================================= bulleted_list block ========================================================= */

.bulleted-list {
    max-width: var(--ip-content-max);
    margin: 0 auto 60px;
    padding: 0 var(--ip-side-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.bulleted-list__title {
    font-family: var(--ip-font-title);
    font-weight: 300;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -1.1px;
    color: var(--ip-text);
    text-align: center;
    text-transform: uppercase;
    margin: 0;
}

.bulleted-list__intro {
    max-width: var(--ip-content-max-text);
    margin: 0 auto;
    font-family: var(--ip-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #333;
    text-align: center;
}

.bulleted-list__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    column-gap: 36px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bulleted-list__item {
    position: relative;
    padding-left: 28px;
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: #333;
    overflow-wrap: anywhere;
}

.bulleted-list__item::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: #333;
    font-weight: 700;
    line-height: 1;
}

.bulleted-list__link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.bulleted-list__link:hover {
    border-bottom-color: currentColor;
}

/* Collapse to single column at <768px */
@media (max-width: 767.99px) {
    .bulleted-list {
        gap: 20px;
        margin-bottom: 40px;
        padding-inline: 0; /* drop block's own 16px; rely on .content's gutter */
    }
    .bulleted-list__items {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }
    .bulleted-list__title {
        font-size: 30px;
    }
    .bulleted-list__item {
        font-size: 20px;
    }
}

/* ========================================================= text_columns block ========================================================= */

.text-columns {
    max-width: var(--ip-content-max);
    margin: 0 auto 60px;
    padding: 0 var(--ip-side-padding);
}

.text-columns__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0 64px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
}

.text-columns--cols-1 .text-columns__items {
    grid-template-columns: 1fr;
}

.text-columns--cols-2 .text-columns__items {
    grid-template-columns: 1fr 1fr;
}

.text-columns--cols-3 .text-columns__items {
    grid-template-columns: 1fr 1fr 1fr;
}

.text-columns__item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 36px;
    border-left: 1px solid #cecece;
    border-right: 1px solid #cecece;
}

.text-columns__col-title {
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    color: var(--ip-text);
    text-align: left;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #cecece;
}

.text-columns__col-body {
    font-family: var(--ip-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #333;
    overflow-wrap: anywhere;
}

.text-columns__col-body p {
    margin: 0 0 16px;
}

.text-columns__col-body p:last-child {
    margin-bottom: 0;
}

.text-columns__col-body ul {
    list-style: disc;
    margin: 0 0 16px;
    padding-left: 20px;
}

.text-columns__col-body ol {
    list-style: decimal;
    margin: 0 0 16px;
    padding-left: 20px;
}

.text-columns__col-body ul li,
.text-columns__col-body ol li {
    display: list-item;
    margin-bottom: 16px;
    line-height: 1.3;
}

.text-columns__col-body ul:last-child,
.text-columns__col-body ol:last-child {
    margin-bottom: 0;
}

.text-columns__col-body ul li:last-child,
.text-columns__col-body ol li:last-child {
    margin-bottom: 0;
}

.text-columns__col-body li::marker {
    color: #555;
}

.text-columns__col-body a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Collapse to single column at <768px */
@media (max-width: 767.99px) {
    .text-columns {
        margin-bottom: 40px;
        padding-inline: 0;   /* drop block's own 16px; rely on .content's gutter */
    }

    .text-columns--cols-1 .text-columns__items,
    .text-columns--cols-2 .text-columns__items,
    .text-columns--cols-3 .text-columns__items {
        grid-template-columns: 1fr;
    }

    .text-columns__item {
        border-left: none;
        border-right: none;
        border-top: 1px solid #cecece;
        padding: 24px 16px;   /* was 24px var(--ip-side-padding) — de-double outer gutter */
    }

    .text-columns__item:first-child {
        border-top: none;
    }

    .text-columns__col-title {
        font-size: 24px;
    }
}
