﻿/* Gebedsschool - gedeelde landingspagina's */
.landing-page {
    --section-bg: var(--white); --card-min: 330px; --card-pad: 34px;
    background: var(--white);
}

.landing-page--prayer {
    --section-bg: linear-gradient(180deg, var(--white) 0%, #fbfaff 100%);
    --card-min: 390px;
}

.landing-page--sins {
    --section-bg: linear-gradient(180deg, #f8f7fb 0%, var(--white) 34%, var(--white) 100%);
    --card-min: 360px; --card-pad: clamp(28px, 4vw, 38px);
}

.landing-hero {
    position: relative; overflow: hidden; padding: clamp(64px, 8vw, 116px) 0;
    color: var(--white);
    background: radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.16), transparent 27%),
                linear-gradient(135deg, #2c235f 0%, var(--brand) 56%, #6a57d3 100%);
}

.landing-hero::after {
    content: ""; position: absolute; right: -130px; bottom: -210px;
    width: 460px; height: 460px; border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%; box-shadow: inset 0 0 0 42px rgba(255, 255, 255, 0.035);
}

.landing-hero__inner { position: relative; z-index: 1; max-width: 960px; }
.landing-hero .eyebrow { color: rgba(255, 255, 255, 0.75); }

.landing-hero h1 {
    max-width: 820px; margin: 10px 0 0; font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700;
    letter-spacing: -0.035em; line-height: 0.98;
}

.landing-hero__lead {
    max-width: 900px; margin: 26px 0 0; color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.08rem, 2vw, 1.38rem); line-height: 1.75;
}

.landing-hero__quote { max-width: 760px; margin: 30px 0 0; padding: 0; border: 0; }

.landing-hero__quote p {
    margin: 0; color: rgba(255, 255, 255, 0.88); font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-style: italic; line-height: 1.65;
}

.landing-hero__visual {
    position: relative; width: min(290px, 72vw); aspect-ratio: 1; margin: 0 auto;
}

.landing-hero__halo {
    position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%; box-shadow: inset 0 0 0 30px rgba(255, 255, 255, 0.04);
}

.landing-hero__cross::before,
.landing-hero__cross::after {
    content: ""; position: absolute; top: 50%; left: 50%; display: block;
    background: rgba(255, 255, 255, 0.82); border-radius: 999px;
    transform: translate(-50%, -50%);
}

.landing-hero__cross::before { width: 32%; height: 4px; }
.landing-hero__cross::after { width: 4px; height: 32%; }

.landing-hero__visual svg {
    position: absolute; inset: 13%; width: 74%; height: 74%; fill: none;
    stroke: rgba(255, 255, 255, 0.84); stroke-width: 2.2; stroke-linecap: round;
}

.landing-hero__visual--photo {
    width: min(380px, 84vw); aspect-ratio: 16 / 10; overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 28px;
    box-shadow: 0 24px 62px rgba(32, 23, 83, 0.3);
}

.landing-hero__visual--photo img {
    display: block; width: 100%; height: 100%; object-fit: cover;
}

.landing-section { padding: clamp(68px, 8vw, 112px) 0; background: var(--section-bg); }
.feature-card-grid { align-items: stretch; }

.feature-card {
    --feature-bg: var(--white); --feature-min: 0; --feature-pad: 0;
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    min-height: var(--feature-min); padding: var(--feature-pad);
    color: var(--ink); background: var(--feature-bg);
    border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 18px 46px rgba(47, 36, 111, 0.09);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:is(:hover, :focus-within) {
    border-color: rgba(79, 59, 191, 0.32);
    box-shadow: 0 26px 62px rgba(47, 36, 111, 0.15);
}

.feature-card--simple {
    --feature-min: var(--card-min); --feature-pad: var(--card-pad);
    --feature-bg: linear-gradient(145deg, var(--white) 0%, #f8f5ff 100%);
}

.feature-card--lavender {
    --feature-bg: linear-gradient(145deg, var(--white) 0%, #f5f2ff 100%);
}

.feature-card--muted {
    --feature-bg: linear-gradient(145deg, var(--white) 0%, #f7f5fb 100%);
}

.feature-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; margin-bottom: 26px;
    color: var(--white); background: var(--gradient-brand); border-radius: 18px;
    box-shadow: 0 12px 26px rgba(79, 59, 191, 0.24);
    font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
}

.feature-card__icon svg { display: block; width: 29px; height: 29px; }

.feature-card__type {
    color: var(--brand); font-size: 0.76rem; font-weight: 850;
    letter-spacing: 0.12em; text-transform: uppercase;
}

.feature-card h3 {
    margin: 12px 0 14px; color: var(--brand-dark); font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.18;
}

.feature-card p {
    margin: 0 0 28px; color: var(--muted); font-size: 1.02rem; line-height: 1.72;
}

.feature-card__action {
    display: inline-flex; align-items: center; gap: 9px; margin-top: auto;
    color: var(--brand-dark); font-weight: 800; text-decoration: none;
}

.feature-card__action:is(:hover, :focus) {
    color: var(--brand); text-decoration: underline;
}

.feature-card--media {
    display: grid; grid-template-columns: minmax(180px, 42%) 1fr;
    min-height: 330px; padding: 0;
}

.feature-card__media { min-height: 100%; background: var(--warm); }

.feature-card__media img {
    width: 100%; height: 100%; min-height: 330px; object-fit: cover;
}

.feature-card__body { display: flex; flex-direction: column; padding: 34px; }

.feature-card--poster {
    min-height: 100%; color: var(--ink); text-decoration: none;
}

.feature-card--poster:is(:hover, :focus) {
    color: var(--ink); text-decoration: none;
}

.feature-card--poster:focus-visible {
    outline: 3px solid rgba(79, 59, 191, 0.38); outline-offset: 4px;
}

.feature-card__poster {
    overflow: hidden; aspect-ratio: 16 / 9; background: #e9e5f5;
}

.feature-card__poster img {
    display: block; width: 100%; height: 100%; object-fit: cover;
}

.feature-card--poster .feature-card__body { flex: 1; padding: 28px; }

.feature-card__meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-bottom: 4px;
}

.feature-card__count {
    flex: 0 0 auto; color: var(--muted); font-size: 0.84rem; font-weight: 750;
}

.feature-card--radio {
    display: block;
    background: linear-gradient(135deg, #f8fbff 0%, var(--white) 48%, #f4f1ff 100%);
}

.feature-card__media--radio {
    display: flex; align-items: center; justify-content: center;
    min-height: 290px; padding: 28px; background: #f2f7ff;
}

.feature-card__media--radio img {
    width: 100%; height: auto; min-height: 0; max-height: 260px; object-fit: contain;
}

.feature-card__body--wide {
    min-height: 290px; justify-content: center; padding: clamp(34px, 5vw, 58px);
}

.audio-list { display: grid; gap: 18px; }

.audio-list__item h4 {
    margin: 0 0 10px; color: var(--brand-dark);
    font-size: 1rem; font-weight: 750; line-height: 1.4;
}

.audio-list audio { display: block; width: 100%; }

@media (max-width: 991.98px) {
    .landing-hero__visual { width: 210px; }
    .feature-card--media { grid-template-columns: 1fr; }
    :is(.feature-card__media, .feature-card__media img) { min-height: 280px; max-height: 360px; }
    .landing-page--prayer { --card-min: 330px; }
}

@media (max-width: 767.98px) {
    .landing-page { --card-min: 0; --card-pad: 26px; }
    .landing-page--sins { --card-pad: 28px 26px; }
    .landing-hero { padding: 56px 0 70px; }
    .landing-hero__visual { display: none; }
    .landing-hero__quote p { font-size: 1.2rem; }
    .feature-card--simple, .feature-card__body { min-height: 0; }
    .landing-page--sins .feature-card--simple { border-radius: 20px; }
    .feature-card__media--radio { min-height: 220px; }
    .feature-card__body--wide { min-height: auto; padding: 28px; }
}

/* Tekstenbibliotheek */
.landing-page--texts-library {
    --section-bg: linear-gradient(180deg, #faf9fd 0%, var(--white) 38%, var(--white) 100%);
}

.texts-library-hero__note {
    max-width: 760px; margin: 22px 0 0; padding-left: 18px;
    color: rgba(255, 255, 255, 0.8); border-left: 3px solid rgba(255, 255, 255, 0.42);
    font-size: 1rem; line-height: 1.7;
}

.texts-library-hero__visual svg {
    inset: 18%; width: 64%; height: 64%; stroke-width: 2;
    stroke-linejoin: round;
}

.texts-library {
    padding: clamp(68px, 8vw, 112px) 0;
    background: var(--section-bg);
}

.texts-library__sections {
    display: grid;
    gap: clamp(30px, 4vw, 46px);
}

.texts-category {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(79, 59, 191, 0.14);
    border-radius: 28px;
    box-shadow: 0 20px 54px rgba(47, 36, 111, 0.1);
}

.texts-category__heading {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: clamp(26px, 4vw, 38px);
    background:
        radial-gradient(circle at 92% 12%, rgba(106, 87, 211, 0.13), transparent 28%),
        linear-gradient(135deg, #fbfaff 0%, #f4f1ff 100%);
    border-bottom: 1px solid rgba(79, 59, 191, 0.12);
}

.texts-category__heading::after {
    content: "";
    position: absolute;
    right: clamp(24px, 4vw, 42px);
    bottom: 0;
    width: clamp(72px, 9vw, 116px);
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 999px 999px 0 0;
}

.texts-category__heading-text {
    min-width: 0;
}

.texts-category__heading .eyebrow {
    display: block;
    margin-bottom: 7px;
}

.texts-category__heading h2 {
    margin: 0;
    color: var(--brand-dark);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.texts-category__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    color: var(--white);
    background: var(--gradient-brand);
    border-radius: 20px;
    box-shadow: 0 13px 28px rgba(79, 59, 191, 0.22);
}

.texts-category__icon svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.texts-category__documents {
    padding: clamp(24px, 4vw, 38px);
}

.text-document-card {
    display: flex;
    flex-direction: column;
    min-height: 258px;
    padding: clamp(24px, 3vw, 31px);
    background: linear-gradient(145deg, var(--white) 0%, #fcfbff 100%);
    border: 1px solid rgba(79, 59, 191, 0.13);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(47, 36, 111, 0.07);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-document-card:is(:hover, :focus-within) {
    border-color: rgba(79, 59, 191, 0.32);
    box-shadow: 0 17px 40px rgba(47, 36, 111, 0.12);
}

.text-document-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.text-document-card__type {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-document-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 30px;
    padding: 4px 10px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid rgba(79, 59, 191, 0.14);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.text-document-card h3 {
    margin: 0;
    color: var(--brand-dark);
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    line-height: 1.2;
}

.text-document-card p {
    margin: 15px 0 26px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.text-document-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: auto;
}

.text-document-card__primary,
.text-document-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none;
}

.text-document-card__primary {
    padding: 10px 16px;
    color: var(--white);
    background: var(--gradient-brand);
    box-shadow: 0 10px 24px rgba(79, 59, 191, 0.2);
}

.text-document-card__primary:is(:hover, :focus) {
    color: var(--white);
    filter: brightness(1.06);
    box-shadow: 0 13px 28px rgba(79, 59, 191, 0.27);
}

.text-document-card__download {
    padding: 9px 0;
    color: var(--brand-dark);
}

.text-document-card__download:is(:hover, :focus) {
    color: var(--brand);
    text-decoration: underline;
}

.text-document-card__primary:focus-visible,
.text-document-card__download:focus-visible {
    outline: 3px solid rgba(79, 59, 191, 0.3);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .texts-library-hero__note {
        padding-left: 14px;
    }

    .texts-category {
        border-radius: 22px;
    }

    .texts-category__heading {
        align-items: flex-start;
        gap: 15px;
        padding: 24px 22px;
    }

    .texts-category__heading::after {
        right: 22px;
        width: 64px;
    }

    .texts-category__icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px;
    }

    .texts-category__icon svg {
        width: 25px;
        height: 25px;
    }

    .texts-category__documents {
        padding: 22px;
    }

    .text-document-card {
        min-height: 0;
        border-radius: 18px;
    }

    .text-document-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .text-document-card__primary,
    .text-document-card__download {
        width: 100%;
    }

    .text-document-card__download {
        padding: 10px 16px;
        border: 1px solid rgba(79, 59, 191, 0.2);
    }
}

/* In memoriam */
.landing-page--in-memoriam {
    --section-bg: linear-gradient(180deg, #faf9fd 0%, var(--white) 44%, var(--white) 100%);
}

.in-memoriam-hero {
    background: radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.14), transparent 28%),
                linear-gradient(135deg, #241d50 0%, #4937a5 58%, #6652c7 100%);
}

.in-memoriam-hero__visual {
    color: rgba(255, 255, 255, 0.9);
}

.in-memoriam-hero__visual svg {
    inset: 14%;
    width: 72%;
    height: 72%;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.in-memoriam-section {
    background: var(--section-bg);
}

.in-memoriam-card {
    --feature-min: 340px;
    --feature-pad: clamp(28px, 3vw, 36px);
}

.in-memoriam-card__icon svg {
    display: block;
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
}

.in-memoriam-section__note {
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.in-memoriam-hero__photo {
    width: min(270px, 100%);
    margin-left: auto;
    overflow: hidden;
    border-radius: 28px;
}

    .in-memoriam-hero__photo img {
        display: block;
        width: 100%;
        height: auto;
    }

@media (max-width: 991.98px) {
    .in-memoriam-card {
        --feature-min: 0;
    }
}

/* Uitvaart */
.landing-page--funeral {
    --section-bg: linear-gradient(180deg, #f8f7fb 0%, var(--white) 34%, var(--white) 100%);
}

.funeral-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.13), transparent 27%),
        linear-gradient(135deg, #211b46 0%, #3f327f 54%, #5f4fb3 100%);
}

.funeral-hero .container-xl {
    position: relative;
    z-index: 1;
}

.funeral-hero__intro {
    max-width: 700px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: 1rem;
    line-height: 1.75;
}

.funeral-hero__photo {
    width: min(560px, 100%);
    aspect-ratio: 4 / 3;
    margin-left: auto;
}

.funeral-content {
    background: var(--section-bg);
}

.funeral-video-card {
    overflow: hidden;
    max-width: 1020px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(79, 59, 191, 0.15);
    border-radius: 28px;
    box-shadow: 0 24px 66px rgba(47, 36, 111, 0.13);
}

.funeral-video-card__frame {
    background: #171329;
}

.funeral-video-card__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.funeral-video-card__body {
    padding: clamp(26px, 4vw, 40px);
}

.funeral-video-card__body .eyebrow {
    display: block;
    margin-bottom: 8px;
}

.funeral-video-card__body h3 {
    margin: 0;
    color: var(--brand-dark);
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.4vw, 2.55rem);
    line-height: 1.18;
}

.funeral-video-card__body p {
    max-width: 760px;
    margin: 15px 0 20px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
}

.funeral-documents {
    margin-top: clamp(70px, 9vw, 112px);
    padding-top: clamp(58px, 8vw, 86px);
    border-top: 1px solid var(--line);
}

@media (max-width: 991.98px) {
    .funeral-hero__photo {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .funeral-video-card {
        border-radius: 22px;
    }
}

/* Franstalige teksten: schaalbaar tegeloverzicht voor thema's en documenten */
.texts-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: clamp(22px, 3vw, 32px);
}

.texts-theme-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: clamp(27px, 3.5vw, 36px);
    background: linear-gradient(145deg, var(--white) 0%, #fbfaff 100%);
    border: 1px solid rgba(79, 59, 191, 0.14);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(47, 36, 111, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.texts-theme-card:is(:hover, :focus-within) {
    border-color: rgba(79, 59, 191, 0.34);
    box-shadow: 0 19px 46px rgba(47, 36, 111, 0.13);
}

.texts-theme-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 25px;
    color: var(--white);
    background: var(--gradient-brand);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(79, 59, 191, 0.21);
}

.texts-theme-card__type {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.texts-theme-card h2 {
    margin: 10px 0 14px;
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 2.6vw, 2.15rem);
    line-height: 1.16;
}

.texts-theme-card h2 a {
    color: var(--brand-dark);
    text-decoration: none;
}

.texts-theme-card h2 a:is(:hover, :focus) {
    color: var(--brand);
}

.texts-theme-card p {
    margin: 0 0 28px;
    color: var(--muted);
}

.texts-theme-card__action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    margin-top: auto;
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.texts-theme-card__action:is(:hover, :focus) {
    color: var(--brand);
    text-decoration: underline;
}

.texts-theme-hero__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(220px, 100%);
    min-height: 180px;
    margin-left: auto;
    color: var(--white);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    box-shadow: 0 22px 50px rgba(25, 18, 71, 0.18);
    backdrop-filter: blur(8px);
}

.texts-theme-hero__count strong {
    font-family: var(--font-serif);
    font-size: 4.4rem;
    line-height: 1;
}

.texts-theme-hero__count span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.texts-theme-detail {
    padding: clamp(56px, 7vw, 94px) 0 clamp(72px, 8vw, 112px);
    background: linear-gradient(180deg, #faf9fd 0%, var(--white) 40%);
}

.texts-theme-detail__toolbar {
    margin-bottom: 34px;
}

.texts-theme-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.texts-theme-detail__back:is(:hover, :focus) {
    color: var(--brand);
    text-decoration: underline;
}

.texts-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: clamp(20px, 2.8vw, 30px);
}

.texts-document-card {
    display: flex;
    flex-direction: column;
    min-height: 286px;
    padding: clamp(24px, 3vw, 31px);
    background: linear-gradient(145deg, var(--white) 0%, #fcfbff 100%);
    border: 1px solid rgba(79, 59, 191, 0.14);
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(47, 36, 111, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.texts-document-card:is(:hover, :focus-within) {
    border-color: rgba(79, 59, 191, 0.34);
    box-shadow: 0 19px 44px rgba(47, 36, 111, 0.13);
}

.texts-document-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.texts-document-card__type {
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.texts-document-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 30px;
    padding: 4px 10px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid rgba(79, 59, 191, 0.14);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.texts-document-card h3 {
    margin: 0;
    color: var(--brand-dark);
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.1vw, 1.72rem);
    line-height: 1.22;
}

.texts-document-card p {
    margin: 15px 0 26px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.68;
}

.texts-document-card__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: auto;
}

.texts-document-card__primary,
.texts-document-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none;
}

.texts-document-card__primary {
    padding: 10px 16px;
    color: var(--white);
    background: var(--gradient-brand);
    box-shadow: 0 10px 24px rgba(79, 59, 191, 0.2);
}

.texts-document-card__primary:is(:hover, :focus) {
    color: var(--white);
    filter: brightness(1.06);
    box-shadow: 0 13px 28px rgba(79, 59, 191, 0.27);
}

.texts-document-card__download {
    padding: 9px 0;
    color: var(--brand-dark);
}

.texts-document-card__download:is(:hover, :focus) {
    color: var(--brand);
    text-decoration: underline;
}

.texts-theme-card a:focus-visible,
.texts-theme-detail a:focus-visible {
    outline: 3px solid rgba(79, 59, 191, 0.3);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .texts-theme-card {
        min-height: 0;
        border-radius: 20px;
    }

    .texts-theme-hero__count {
        display: none;
    }

    .texts-document-card {
        min-height: 0;
        border-radius: 19px;
    }

    .texts-document-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .texts-document-card__primary,
    .texts-document-card__download {
        width: 100%;
    }

    .texts-document-card__download {
        padding: 10px 16px;
        border: 1px solid rgba(79, 59, 191, 0.2);
    }
}
