/* Patient information sections. Loaded after the site's global typography. */


.hero {
    position: relative;
    isolation: isolate;
    /* The photo and hero share a stable desktop minimum only when the photo is shown. */
    --hero-photo-height: clamp(360px, 29vw, 420px);
    width: 100%;
    padding: clamp(22px, 3vw, 36px) clamp(16px, 4vw, 48px);
    color: #405c5e;
    background: #edf5f2;
}


.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    max-width: 75rem;
    margin-inline: auto;
}


.hero__content { width: 100%; max-width: 37rem; padding-block: 4px; }


.hero h1 {
    max-width: 24ch;
    margin: 0 0 12px;
    color: #174b50;
    
    
    
    
    
}


.hero .hero__lead {
    max-width: 55ch;
    margin: 0;
    
    
}


.hero__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 18px; }


.hero .hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 20px;
    border: 1px solid #286e73;
    border-radius: 8px;
    color: #f5faf8;
    background: #286e73;
    
    
    
    text-decoration: none;
}


.hero .hero__button--secondary { color: #205b60; background: transparent; }


.hero .hero__button:hover { color: #f5faf8; background: #1d5357; }


.hero__visual {
    position: absolute;
    inset: 0 0 auto;
    /* Independent of the disclosure's content height. */
    height: var(--hero-photo-height);
    overflow: hidden;
}


.hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(237, 245, 242, 0.98) 0%,
        rgba(237, 245, 242, 0.94) 48%,
        rgba(237, 245, 242, 0.04) 66%,
        rgba(237, 245, 242, 0) 100%);
    pointer-events: none;
}


/* The large decorative photo is a desktop-only CSS asset. Browsers do not
   request it on narrow screens or short landscape viewports. */


@media (min-width: 900px) and (min-height: 600px) {
    
/* Keep the entire photo layer within the collapsed hero as well as the open one. */

    
.hero { min-height: var(--hero-photo-height); }

    
.hero__visual {
        background-image: url("assets/hero.jpg");
        background-repeat: no-repeat;
        background-position: right center;
        background-size: contain;
    }

}


.hero__about { max-width: 60ch; margin-top: 12px; }


.hero .expandable__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding-block: 10px;
    border-bottom: 1px solid #b9d1ca;
    color: #205b60;
    
    
    
    list-style: none;
    cursor: pointer;
    user-select: none;
}


.hero .expandable__toggle::-webkit-details-marker { display: none; }


.hero .expandable__toggle:hover { color: #102f32; border-color: #205b60; }


.hero .expandable__toggle svg {
    flex: none;
    width: 20px;
    height: 20px;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}


.hero .hero__read-less, .hero__about[open] .hero__read-more { display: none; }


.hero__about[open] .hero__read-less { display: inline; }


.hero__about[open] .expandable__toggle svg { transform: rotate(180deg); }


.hero .expandable__content { padding-top: 16px; }


/* Smooth reveal for the homepage hero description only.
   Browsers without ::details-content keep the native instant disclosure. */
@supports selector(.hero__about::details-content) {
    .hero__about::details-content {
        opacity: 0;
        transform: translateY(-0.45rem);
        transition:
            opacity 450ms ease,
            transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
            content-visibility 450ms allow-discrete;
    }

    .hero__about[open]::details-content {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Also animate the disclosure's full height where intrinsic-size transitions
   are supported. Other browsers still get the fade-and-slide enhancement. */
@supports (interpolate-size: allow-keywords) and selector(.hero__about::details-content) {
    .hero__about {
        interpolate-size: allow-keywords;
    }

    .hero__about::details-content {
        block-size: 0;
        overflow: clip;
        transition:
            block-size 450ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 450ms ease,
            transform 450ms cubic-bezier(0.22, 1, 0.36, 1),
            content-visibility 450ms allow-discrete;
    }

    .hero__about[open]::details-content {
        block-size: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .expandable__toggle svg,
    .hero__about::details-content {
        transition: none;
        transform: none;
    }
}


.hero .expandable__content p { margin: 0 0 12px;  }


.hero .expandable__content p:last-child { margin-bottom: 0; }


.hero :focus-visible { outline: 3px solid #8a4b00; outline-offset: 4px; }


@media (min-width: 900px) and (max-width: 1199px) {
    
.hero__visual::after {
        background: linear-gradient(90deg, rgba(237, 245, 242, 0.98) 0%, rgba(237, 245, 242, 0.94) 64%, rgba(237, 245, 242, 0.12) 100%);
    }

}


@media (max-width: 899px), (max-height: 599px) {
    
/* Keep the photograph and its gradient out of the layout, including
       short landscape phones and intermediate/tablet widths. No JS is needed. */

    
.hero { padding-block: 20px 24px; }

    
.hero__visual { display: none; }

    
.hero__inner { min-height: 0; }

    
.hero__content { padding: 0; }

    
.hero h1 { max-width: 22ch; }

}


@media (max-width: 399px) {
    
.hero .hero__button { width: 100%; justify-content: space-between; }

}



:is(.specialties, .liniewo-services, .appointments, .family-declaration) {
    --care-ink: #174b50;
    --care-text: #405c5e;
    --care-teal: #286e73;
    --care-mint: #edf5f2;
    --care-paper: #fbfdfc;
    --care-line: #ccdfda;
    width: 100%;
    padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px);
    color: var(--care-text);
    background: var(--care-paper);
}



.care-container { max-width: 75rem; margin-inline: auto; }


.care-heading { max-width: 44rem; }


.care-heading h2 {
    margin: 0 0 18px;
    color: var(--care-ink);
    
    
    
    
    
}


.care-heading > p:last-child {
    max-width: 60ch;
    margin: 0;
    color: var(--care-text);
    
    /*line-height: 1.75;*/
}


:is(.specialties, .liniewo-services, .appointments, .family-declaration) .care-eyebrow {
    margin: 0 0 12px;
    color: var(--care-teal);
    
    
    
    
    
}



.specialties { padding-block: clamp(20px, 3vw, 36px) clamp(32px, 4vw, 56px); }


.specialties .care-heading { margin-bottom: 16px; }


.specialties .care-heading h2 { margin-bottom: 8px; }


.specialties__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}


.specialties__item {
    display: flex;
    align-items: stretch;
    min-width: 0;
    min-height: 112px;
    overflow: hidden;
    border: 1px solid var(--care-line);
    border-radius: 12px;
    background: var(--care-paper);
    scroll-margin-block: 16px;
}


/* Delikatne obramowania dopasowane do trzech pastelowych grup ilustracji. */
.specialties__item:nth-child(3n + 1) { border-color: #D7C2B5; }
.specialties__item:nth-child(3n + 2) { border-color: #DED1B8; }
.specialties__item:nth-child(3n) { border-color: #CFD9E3; }

.specialties__item:focus-within,
.specialties__item:hover { border-color: #286E73; }


.specialties__art {
    display: grid;
    place-items: center;
    flex: 0 0 clamp(84px, 8.5vw, 116px);
    min-height: 112px;
    background: #f2e8e0;
}


.specialties__item:nth-child(3n + 2) .specialties__art { background: #f6f0e4; }


.specialties__item:nth-child(3n) .specialties__art { background: #ecf1f5; }


.specialties__art img { display: block; width: 100%; height: auto; }


.specialties__body { min-width: 0; align-self: center; padding: 18px 20px; }


.specialties__body h3 {
    margin: 0 0 6px;
    color: var(--care-ink);
    
    
    
}


.specialties__body p { margin: 0; color: var(--care-text);  }



.liniewo-services { background: #f1f6f4; }


.services-overview, .appointments__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
}


.services-overview__art, .appointments__art {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    justify-self: center;
}


.appointment-option h3 {
    margin: 0 0 16px;
    color: var(--care-ink);
    
    
    
}


.appointment-option > p:not(.care-eyebrow) {
    max-width: 65ch;
    margin: 0;
    
    /*line-height: 1.75;*/
}


.appointment-option p a {
    color: inherit;
    
    text-decoration: underline;
    text-underline-offset: 3px;
}


.appointment-option p a:hover { text-decoration-thickness: 2px; }


:is(.liniewo-services, .appointments, .family-page, .family-program) .care-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--care-teal);
    border-radius: 8px;
    color: #f5faf8;
    background: var(--care-teal);
    
    
    
    text-decoration: none;
    transition: background-color 160ms ease-out, color 160ms ease-out;
}


:is(.liniewo-services, .appointments, .family-page, .family-program) .care-button:hover {
    color: #f5faf8;
    background: #1d5357;
}


:is(.liniewo-services, .appointments, .family-page, .family-program) .care-button--light {
    border-color: #f3faf7;
    color: #174b50;
    background: #f3faf7;
}


:is(.liniewo-services, .appointments, .family-page, .family-program) .care-button--light:hover {
    color: #174b50;
    background: #dceee6;
}


:is(.appointments, .family-page) .care-button--outline { color: var(--care-teal); background: transparent; }


:is(.appointments, .family-page) .care-button--outline:hover { color: #f5faf8; background: #1d5357; }


:is(.specialties, .liniewo-services, .appointments, .family-declaration) :focus-visible {
    outline: 3px solid #8a4b00;
    outline-offset: 5px;
}


.appointments { background: #e7f1ed; }


.appointments__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    margin-top: 32px;
}


.appointment-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid #b9d1ca;
    padding-top: 28px;
    scroll-margin-block: 16px;
}


.appointment-option > p:not(.care-eyebrow) { margin-bottom: 24px; }


.appointment-option .care-button { margin-top: auto; }


/* Keep the local-preview links aligned with the existing appointment actions. */
.appointment-option__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}


.appointment-option__actions .care-button { margin-top: 0; }


.appointment-option__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    width: 100%;
    margin-bottom: 16px;
}


.appointment-option__title { min-width: 0; }


.appointment-option__title-row h3 { margin-bottom: 0; }


.appointment-option__title-row .care-button {
    flex: 0 0 auto;
    margin-top: 0;
}


/* Keep the e-Rejestracja and e-Recepta shortcut buttons exactly the same size. */
.appointments .appointment-option__shortcut {
    box-sizing: border-box;
    flex: 0 0 12.5rem;
    width: 12.5rem;
    min-height: 48px;
    justify-content: space-between;
    gap: 12px;
    white-space: nowrap;
}


/* The informational prescription destination is not a patient-submission form. */


.appointment-option--prescription { max-width: 50rem; margin-top: 28px; }


.appointment-option--prescription > p:not(.care-eyebrow) {  }



.appointments__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px 32px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #b9d1ca;
}


.appointments__contact h3 { margin: 0 0 8px; color: var(--care-ink);   }


.appointments__contact p { max-width: 55ch; margin: 0;  }


.appointments .appointments__phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    color: var(--care-ink);
    
    
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}


.appointments__phone svg { flex: none; width: 24px; height: 24px; }


.appointments .appointments__phone:hover { color: #102f32; }


.appointments .appointments__note { max-width: 75ch; margin: 24px 0 0;   }



/* B46: CSS root-font enlargement can make single Polish words wider than a
   small viewport. Preserve all text instead of clipping or masking overflow. */


:is(.hero, .specialties, .liniewo-services, .appointments, .national-program) :is(h1, h2, h3, h4, p, a, span, summary) {
    
}


.hero .expandable__toggle { flex-wrap: wrap; }


.hero .expandable__toggle > span { min-width: 0; }


.appointments__contact > div { min-width: 0; flex: 1 1 15rem; }


.appointments .appointments__phone {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}



@media (max-width: 1023px) {
    
.specialties__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

    
.appointments__options { gap: 28px; }

    
}


@media (max-width: 599px) {
    
.specialties__grid, .services-overview, .appointments__intro,
    .appointments__options { grid-template-columns: minmax(0, 1fr); }

    
.specialties__grid { gap: 12px; }

    
.specialties__body { padding: 16px 14px; }

    
.specialties__art { flex-basis: 84px; }

    
.services-overview, .appointments__intro { gap: 12px; }

    
.services-overview__art, .appointments__art { max-width: 340px; }

    
    
.appointments__options { margin-top: 16px; }

    
.appointments .care-button { width: 100%; justify-content: space-between; }

    
.appointments__contact { margin-top: 32px; }

}


@media (prefers-reduced-motion: reduce) {
    
:is(.liniewo-services, .appointments, .family-page) .care-button { transition: none; }

}



/* Only specialties with a detail page expose an interactive card. */


.specialties .specialties__link {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    color: var(--care-ink);
    text-decoration: none;
}


.specialties .specialties__link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }


.specialties .specialties__link:focus-visible { outline-offset: -4px; }



/* Official nationwide program information; not an assertion about clinic delivery. */


.national-program { padding: clamp(32px,5vw,64px) clamp(16px,4vw,48px); background: #f6faf8; color: #405c5e; }


.national-program__inner { max-width: 75rem; margin-inline: auto; border-inline-start: 4px solid #286e73; padding-inline-start: clamp(16px,3vw,32px); }


.national-program h2 { margin: 0 0 12px; color: #174b50;   }


.national-program p { max-width: 70ch;   }


.national-program a { display: inline-block; margin-top: 4px; color: #175358;  text-decoration: underline; text-underline-offset: 4px;  }


.national-program a:focus-visible { outline: 3px solid #8a4b00; outline-offset: 4px; }



/* B47A: consistent patient CTA hierarchy; existing page selector hooks retained. */


.patient-cta-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; min-width: 0; }


:is(.hero, .family-hero, .specialty-detail__hero) .patient-cta-pair .patient-cta-pair__link {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
    flex: 0 1 auto; min-width: 0; min-height: 48px; max-width: 100%; padding: 12px 18px;
    border: 2px solid #286e73; border-radius: 8px; background: #286e73;
    color: #fff;   
    text-decoration: none;  
}


:is(.hero, .family-hero, .specialty-detail__hero) .patient-cta-pair .patient-cta-pair__link--secondary { background: #fff; color: #174b50; }


:is(.hero, .family-hero, .specialty-detail__hero) .patient-cta-pair .patient-cta-pair__link:hover { background: #174b50; color: #fff; border-color: #174b50; }


:is(.hero, .family-hero, .specialty-detail__hero) .patient-cta-pair .patient-cta-pair__link:focus-visible { outline: 3px solid #8a4b00; outline-offset: 3px; }


/* Ilustracje partnerskie: wspólna wysokość z pozostałymi ikonami gridu.
   Pełny viewBox SVG zachowuje wszystkie elementy rysunku. */
.specialties__item--partner .specialties__art img {
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 64px;
    object-fit: contain;
    object-position: center;
}

.specialties__item--partner { border-color: #a5cbc6; }


@media (max-width: 520px) {
    
.patient-cta-pair { flex-direction: column; align-items: stretch; }

    
:is(.hero, .family-hero, .specialty-detail__hero) .patient-cta-pair .patient-cta-pair__link { width: 100%; }

}



/* Home: restored legacy narrative, using the same restrained care palette. */


.clinic-story {
    padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 48px);
    color: #405c5e;
    background: #fbfdfc;
}


.clinic-story__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
    gap: clamp(20px, 4vw, 56px);
}


.clinic-story__eyebrow {
    margin: 0 0 12px;
    color: #286e73;
    
    
    
    
    
}


.clinic-story h2, .clinic-invitation h2 {
    margin: 0;
    color: #174b50;
    
    
    
}


.clinic-story__copy p {
    max-width: 70ch;
    margin: 0 0 16px;
    
    /*line-height: 1.75;*/
}


.clinic-story__copy p:last-child { margin-bottom: 0; }



/* The "Moja Rodzina" card shares the POZ declaration card's colors. */


.clinic-invitation {
    padding: clamp(20px, 2.5vw, 32px) clamp(16px, 4vw, 48px) clamp(36px, 4vw, 48px);
    background: #f6faf8;
    
}


.clinic-invitation__inner { max-width: 46rem; }


.clinic-invitation h2 {  }


.clinic-invitation p { margin: 12px 0 0; color: #405c5e;  }



:is(.clinic-story, .clinic-invitation) :is(h2, p) {  }


@media (max-width: 599px) {
    
.clinic-story__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }

}

/* Indywidualne, intensywne nadpisania kolorów poradni usunięto.
   Kolory ilustracji korzystają z bazowej, trzykolorowej palety powyżej. */


@media (max-width: 520px) {
    #rehabilitacja-dzieci-dico .specialties__art img {
        max-height: 88px;
    }
}


/* Keep the compact desktop shortcut size through the standard mobile breakpoint. */
@media (max-width: 599px) {
    .appointments .appointment-option__shortcut {
        width: 12.5rem;
        flex-basis: 12.5rem;
    }
}

/* Below 598px, match the registration and shortcut CTAs to the full-width
   Teleporada button. A fixed 100% flex-basis prevents sibling CTAs from
   shrinking side-by-side inside the actions row. */
@media (max-width: 597px) {
    .appointments .appointment-option__actions {
        width: 100%;
        align-items: stretch;
    }

    .appointments .appointment-option__actions > .care-button[href="tel:+48586878224"],
    .appointments .appointment-option__actions > .appointment-option__shortcut {
        box-sizing: border-box;
        flex: 0 0 100%;
        width: 100%;
        justify-content: space-between;
    }
}

/* Shared POZ declaration guide. */
.specialty-detail__section.family-declaration { padding-inline: 0; }
.family-declaration__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 64px);
}
.family-declaration__intro { min-width: 0; }
.family-declaration__copy { margin-block-start: 24px; }
.family-declaration__copy p { margin: 0 0 16px; max-width: 65ch; }
.family-declaration__copy p:last-child { margin-bottom: 0; }
.family-declaration__art {
    display: block;
    height: auto;
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 390px;
}
.family-declaration .declaration-role-info {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
.family-declaration .declaration-role-info h3 {
    margin: 0 0 18px;
    color: var(--care-ink);
    font-size: clamp(1.35rem, 1.8vw, 1.6rem);
    line-height: 1.25;
}
.family-declaration .declaration-role-info__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.family-declaration .declaration-role-info__list > li {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(18px, 1.8vw, 26px);
    border: 1px solid #ccdfda;
    border-radius: 10px;
    background: #f6faf8;
    overflow-wrap: anywhere;
}
.family-declaration .declaration-role-info__list > li > strong {
    display: block;
    margin: 0 0 14px;
    color: #174b50;
    font-size: clamp(1.2rem, 1.45vw, 1.4rem);
    font-weight: 700;
    line-height: 1.4;
}
.family-declaration .declaration-role-info__list ul {
    margin: 0;
    padding-left: 1.35rem;
}
.family-declaration .declaration-role-info__list ul li {
    margin: 0 0 10px;
    padding: 0 0 0 2px;
    border: 0;
    background: transparent;
    font-size: clamp(1.0625rem, 1.15vw, 1.125rem);
    line-height: 1.65;
}
.family-declaration .declaration-role-info__list ul li:last-child { margin-bottom: 0; }
.family-declaration .declaration-role-info__links {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin: auto 0 0;
    padding-top: 18px;
    font-size: clamp(1.0625rem, 1.15vw, 1.125rem);
    line-height: 1.5;
}
.family-declaration .declaration-role-info__links a,
.family-declaration .declaration-role-info__online-link {
    color: #15545a;
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    overflow-wrap: anywhere;
}
.family-declaration .declaration-role-info__links a:hover,
.family-declaration .declaration-role-info__online-link:hover { color: #0b383d; }
.family-declaration .declaration-role-info__links a:focus-visible,
.family-declaration .declaration-role-info__online-link:focus-visible {
    outline: 3px solid #8a4b00;
    outline-offset: 3px;
    border-radius: 2px;
}
.family-declaration .declaration-role-info__online-link {
    display: inline-flex;
    align-self: flex-start;
    margin: auto 0 0;
    padding: 18px 0 0;
    font-size: clamp(1.0625rem, 1.15vw, 1.125rem);
    line-height: 1.5;
}
.family-declaration .family-program {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 40px);
    padding: clamp(24px, 4vw, 44px);
    border-radius: 12px;
    color: #f3faf7;
    background: #205b60;
    scroll-margin-block-start: 16px;
}
.family-declaration .family-program .care-eyebrow { color: #cee5dc; }
.family-declaration .family-program h3 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.25;
}
.family-declaration .family-program > p { margin: 0; }
.family-declaration .family-program .care-button,
.family-declaration .family-program .program-art-button { margin: 16px 0 0; }
.family-declaration .family-program :focus-visible,
.family-declaration .family-program:focus-visible { outline-color: #f2ce83; }
@media (max-width: 960px) {
    .family-declaration .declaration-role-info__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family-declaration .declaration-role-info__list > li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .family-declaration__layout { grid-template-columns: minmax(0, 1fr); }
    .family-declaration .family-program { grid-template-columns: minmax(0, 1fr); }
    .family-declaration__art { grid-column: 1; grid-row: 2; max-width: 300px; justify-self: center; }
    .family-declaration .declaration-role-info { grid-column: 1; }
    .family-declaration .declaration-role-info__list { grid-template-columns: minmax(0, 1fr); }
    .family-declaration .declaration-role-info__list > li:last-child { grid-column: auto; }
}
