.reh-preview {
    --reh-preview-accent: #ff9e21;
    color: #253b57;
    font-size: 1.125rem;
    padding: 5px 0 50px;
}

.reh-preview-container { max-width: 1320px; }
.reh-preview h1, .reh-preview h2, .reh-preview h3 { color: #1b4294; }
.reh-preview a { text-decoration: none; }
.reh-preview a:focus-visible, .reh-preview summary:focus-visible { outline: 3px solid #1b4294; outline-offset: 3px; }
.reh-preview .breadcrumbs { margin-bottom: 14px; font-size: 1rem; }
#reh-cennik-tresc, #reh-obszar-tresc, #reh-zespol-tresc, #reh-wizyta-tresc { scroll-margin-top: 110px; }

.reh-preview-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
    background: #edf5fc;
    border: 1px solid #deebf7;
    border-radius: 10px;
    overflow: hidden;
}
.reh-preview-hero-copy { padding: clamp(30px, 4vw, 64px); align-self: center; }
.reh-preview-eyebrow, .reh-preview-kicker { color: #2867a2; font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
.reh-preview-eyebrow { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.reh-preview-eyebrow .ti { color: #b96000; font-size: 1.3rem; }
.reh-preview-kicker { display: inline-flex; align-items: center; gap: 8px; }
.reh-preview-kicker::before { content: ''; width: 22px; height: 3px; background: var(--reh-preview-accent); }
.reh-preview-hero h1 { margin: 18px 0; font-size: clamp(2rem, 3.1vw, 3.15rem); line-height: 1.15; letter-spacing: -.035em; }
.reh-preview-hero-copy > p { margin: 0; color: #455e78; font-size: 1.2rem; line-height: 1.6; }
.reh-preview-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reh-preview-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 15px 24px; border: 1px solid var(--reh-preview-accent); border-radius: 4px; color: #fff; background: var(--reh-preview-accent); font-size: 1.125rem; font-weight: 700; }
.reh-preview-button:hover { color: #fff; background: #e88200; border-color: #e88200; }
.reh-preview-button-light { color: #fff; background: #1b4294; border-color: #1b4294; }
.reh-preview-button-light:hover { color: #fff; background: #12326f; border-color: #12326f; }
.reh-preview-hero-image { position: relative; min-height: 370px; }
.reh-preview-hero-image > img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.reh-preview-hero-note { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-left: 4px solid var(--reh-preview-accent); border-radius: 5px; background: #fff; color: #1b4294; box-shadow: 0 8px 25px rgba(17, 44, 83, .14); font-size: 1rem; line-height: 1.35; }
.reh-preview-hero-note .ti { color: #b96000; font-size: 1.6rem; }

.reh-preview-specialty-image {
    display: grid;
    align-items: end;
    isolation: isolate;
    padding: clamp(14px, 2.4vw, 32px);
    background: #dce8f4;
}
.reh-preview-specialty-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 38, 72, .62), transparent 84%);
    pointer-events: none;
}
.reh-preview-specialty-team {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    inline-size: min(100%, 22rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.reh-preview-specialty-team > li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid #e0eaf5;
    border-inline-start: 3px solid var(--reh-preview-accent);
    border-radius: 6px;
    background: rgba(249, 252, 255, .96);
    color: #314760;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.reh-preview-specialty-team strong {
    display: block;
    color: #1b4294;
    font-size: 1.075rem;
    line-height: 1.35;
}
.reh-preview-specialty-portrait {
    display: block;
    inline-size: 60px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #c9daeb url("/assets/rehabilitacja_domowa/portrety-zespolu-hero.webp") no-repeat;
}
/* Color portraits from the original 394 x 700 flyer. */
.reh-preview-specialty-portrait-agata { background-size: 505.128% auto; background-position: 87.975% 63.023%; }
.reh-preview-specialty-portrait-leszek { background-size: 547.222% auto; background-position: 68.012% 73.089%; }
.reh-preview-specialty-portrait-maciej { background-size: 518.421% auto; background-position: 95.597% 76.763%; }

.reh-preview-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.reh-preview-highlights a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 18px; border: 1px solid #e0eaf5; border-radius: 5px; color: #1b4294; background: #fff; }
.reh-preview-highlights a:hover { background: #f4f8fd; color: #1b4294; }
.reh-preview-highlights a[aria-current="page"] { background: #edf5fc; border-color: #9bb8d7; }
.reh-preview-highlights a[aria-current="page"] strong { text-decoration: underline; text-underline-offset: .22em; }
.reh-preview-highlights a > .ti:first-child { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 4px; color: #643400; background: #fff0dc; font-size: 1.3rem; }
.reh-preview-highlights a > .ti:last-child { margin-left: auto; color: #a95500; font-size: 1.15rem; }
.reh-preview-highlights strong, .reh-preview-highlights small { display: block; line-height: 1.4; }
.reh-preview-highlights small { color: #53677f; font-size: 1rem; }

.reh-preview-navigation, .reh-preview-about, .reh-preview-therapies, .reh-preview-areas, .reh-preview-faq, .reh-preview-related { margin-top: 50px; }
.reh-preview-section-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 20px; }
.reh-preview-section-intro h2, .reh-preview-about h2, .reh-preview-therapies h2, .reh-preview-areas h2, .reh-preview-faq h2, .reh-preview-related h2 { margin: 7px 0 0; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.25; }
.reh-preview-section-intro p { margin: 0; color: #53677f; }
.reh-preview-nav-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 4px 22px; list-style: none; border: 1px solid #dce8f4; border-radius: 7px; background: #f7fafe; }
.reh-preview-nav-list li { min-width: 0; list-style: none; border-bottom: 1px solid #dce8f4; }
.reh-preview-nav-list a { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 4px; color: #1b4294; font-weight: 600; line-height: 1.4; }
.reh-preview-nav-list a .ti { flex: 0 0 auto; color: #b96000; font-size: 1.2rem; }
.reh-preview-nav-list a:hover, .reh-preview-nav-list a:focus-visible { background-image: linear-gradient(90deg, rgba(210, 229, 249, .8), rgba(247, 250, 254, 0)); background-image: linear-gradient(90deg in oklab, rgba(210, 229, 249, .8), rgba(247, 250, 254, 0)); color: #125f9c; text-decoration: none; }
.reh-preview-nav-list li:nth-last-child(-n+3) { border-bottom: 0; }

.reh-preview-about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.reh-preview-about-copy p { margin: 16px 0 0; line-height: 1.75; }
.reh-preview-about-copy a { color: #1b4294; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.reh-preview-contact { background: transparent; }
.reh-preview-car { display: block; }
.reh-preview-car img { display: block; width: 100%; height: auto; }
.reh-preview-contact-details { padding: 20px 8px 8px; text-align: center; }
.reh-preview-contact-heading { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.reh-preview-contact-details h3 { margin: 0; color: var(--reh-preview-accent); font-size: clamp(1.45rem, 1.9vw, 1.85rem); font-weight: 700; text-transform: uppercase; }
.reh-preview .reh-preview-contact-phone { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 9px 14px; border: 1px solid var(--reh-preview-accent); border-radius: 4px; background: var(--reh-preview-accent); color: #fff; font-size: clamp(1.55rem, 2vw, 1.95rem); font-weight: 700; line-height: 1.3; }
.reh-preview-contact-details p { margin: 12px 0 0; line-height: 1.5; }
.reh-preview-contact-hours { color: var(--reh-preview-accent); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; }
.reh-preview-contact-email { color: #3d546e; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.reh-preview .reh-preview-contact-mail { color: #1b4294; text-decoration: underline; text-underline-offset: 3px; }
.reh-preview-contact a:hover { color: #125f9c; text-decoration: underline; }
.reh-preview-contact a.reh-preview-contact-phone:hover { background: #e88200; border-color: #e88200; color: #fff; text-decoration: none; }

.reh-preview-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 50px; }
.reh-preview-next-card { display: flex; gap: 18px; padding: 28px; border-radius: 7px; background-color: #1b4294; background-image: linear-gradient(90deg, rgba(27, 66, 148, .98) 0%, rgba(27, 66, 148, .94) 58%, rgba(27, 66, 148, .78) 100%), url('/assets/rehabilitacja_domowa/rehabilitacja_domowa_zamowienie.jpg'); background-size: cover; background-position: center; color: #fff; }
.reh-preview-next-card:nth-child(2) { background-color: #245d93; background-image: linear-gradient(90deg, rgba(36, 93, 147, .98) 0%, rgba(36, 93, 147, .95) 58%, rgba(36, 93, 147, .84) 100%), url('/assets/rehabilitacja_domowa/rehabilitacja_domowa_kontakt.jpg'); }
.reh-preview-icon { flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 5px; background: #ff9e21; color: #192e49; font-size: 1.5rem; }
.reh-preview-next-card h2 { margin: 0 0 8px; color: #fff; font-size: 1.25rem; }
.reh-preview-next-card p { margin: 0 0 16px; color: #fff; line-height: 1.5; }
.reh-preview-next-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.reh-preview-next-card:hover { color: #fff; }
.reh-preview-next-card:hover .reh-preview-next-link { text-decoration-thickness: 2px; }

.reh-preview-therapy-list { display: flex; gap: 0; margin-top: 22px; }
.reh-preview-therapy { position: relative; isolation: isolate; display: flex; align-items: flex-end; flex: 1 1 0; min-width: 0; min-height: 360px; padding: 32px clamp(28px, 3.4vw, 55px); color: #fff; transition: none; }
.reh-preview-therapy-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; overflow: clip; background: #1b4294; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
.reh-preview-therapy-media img { position: absolute; top: 0; left: 50%; display: block; width: clamp(320px, 36vw, 660px); max-width: none; height: 100%; object-fit: cover; transform: translateX(-50%); }
.reh-preview-therapy-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 32, 69, .12) 0%, rgba(9, 32, 69, .94) 100%); }
.reh-preview-therapy-label { display: grid; gap: 10px; min-width: 0; color: #fff; line-height: 1.35; }
.reh-preview-therapy-label span { color: #ffbd64; font-size: 1rem; font-weight: 700; }
.reh-preview-therapy-label strong { font-size: clamp(1.15rem, 1.4vw, 1.45rem); overflow-wrap: anywhere; }
.reh-preview-therapy-label .ti { color: #ffbd64; font-size: 1.4rem; }
.reh-preview-therapy:hover, .reh-preview-therapy:focus-visible { z-index: 1; color: #fff; }
.reh-preview-therapy:hover strong, .reh-preview-therapy:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) {
    .reh-preview-therapy:focus-visible { flex-grow: 1.55; }
}
@media (min-width: 768px) and (hover: hover) {
    .reh-preview-therapy:hover { flex-grow: 1.55; }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .reh-preview-therapy { transition: flex-grow .35s ease; }
}

.reh-preview-city-list, .reh-preview-related ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.reh-preview-city-list li, .reh-preview-related li { list-style: none; }
.reh-preview-city-list a, .reh-preview-related a { display: inline-flex; align-items: center; min-height: 48px; padding: 9px 14px; border: 1px solid #dce8f4; border-radius: 4px; color: #1b4294; background: #f7fafe; font-size: 1.05rem; line-height: 1.4; }
.reh-preview-city-list a:hover, .reh-preview-related a:hover { background: #e8f2fc; color: #1b4294; text-decoration: underline; }
.reh-preview-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 3vw, 44px); padding: clamp(24px, 3vw, 40px); background: #eef5fc; border: 1px solid #dce8f4; border-radius: 8px; }
.reh-preview-faq-intro { min-width: 0; }
.reh-preview-faq-intro p { margin: 14px 0 20px; color: #455e78; line-height: 1.6; }
.reh-preview-faq-intro img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.reh-preview-faq-list { display: grid; align-content: start; gap: 10px; min-width: 0; }
.reh-preview-faq details { background: #fff; border: 1px solid #dce8f4; border-radius: 5px; }
.reh-preview-faq details[open] { border-color: #efb15c; }
.reh-preview-faq summary { min-height: 64px; padding: 18px 20px; color: #1b4294; font-size: 1.125rem; font-weight: 600; line-height: 1.45; cursor: pointer; }
.reh-preview-faq summary::marker { color: #b84d00; }
.reh-preview-faq summary:hover { background: #fff8ee; border-radius: 4px; }
.reh-preview-faq details p { max-width: 80ch; margin: 0; padding: 0 20px 20px 36px; line-height: 1.7; }
.reh-preview-faq details p a { color: #1b4294; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.reh-preview-related { padding-top: 24px; border-top: 1px solid #dce8f4; }

.wysoki-kontrast .reh-preview-hero, .wysoki-kontrast .reh-preview-nav-list, .wysoki-kontrast .reh-preview-contact, .wysoki-kontrast .reh-preview-next-card, .wysoki-kontrast .reh-preview-city-list a, .wysoki-kontrast .reh-preview-related a, .wysoki-kontrast .reh-preview-button, .wysoki-kontrast .reh-preview-hero-note { background: #000; border: 1px solid #fffc00; color: #fffc00; }
.wysoki-kontrast .reh-preview h1, .wysoki-kontrast .reh-preview h2, .wysoki-kontrast .reh-preview h3, .wysoki-kontrast .reh-preview p, .wysoki-kontrast .reh-preview .reh-preview-kicker, .wysoki-kontrast .reh-preview .reh-preview-eyebrow, .wysoki-kontrast .reh-preview-hero-note, .wysoki-kontrast .reh-preview-nav-list a .ti { color: #fffc00; }
.wysoki-kontrast .reh-preview-nav-list a:hover, .wysoki-kontrast .reh-preview-nav-list a:focus-visible { background-image: none; color: #fffc00; }
.wysoki-kontrast .reh-preview-highlights a, .wysoki-kontrast .reh-preview-highlights a > .ti:first-child, .wysoki-kontrast .reh-preview-icon { background: #000; border: 1px solid #fffc00; color: #fffc00; }
.wysoki-kontrast .reh-preview-highlights small, .wysoki-kontrast .reh-preview-highlights a > .ti:last-child, .wysoki-kontrast .reh-preview-eyebrow .ti, .wysoki-kontrast .reh-preview-hero-note .ti { color: #fffc00; }
.wysoki-kontrast .reh-preview-contact .reh-preview-contact-phone, .wysoki-kontrast .reh-preview-contact .reh-preview-contact-phone:hover { background: #000; border-color: #fffc00; color: #fffc00; }
.wysoki-kontrast .reh-preview-next-link { color: #fffc00; }
.wysoki-kontrast .reh-preview-faq, .wysoki-kontrast .reh-preview-faq details { background: #000; border-color: #fffc00; }
.wysoki-kontrast .reh-preview-faq summary, .wysoki-kontrast .reh-preview-faq summary::marker { color: #fffc00; }
.wysoki-kontrast .reh-preview-faq summary:hover { background: #222; }
.wysoki-kontrast .reh-preview-therapy { border: 1px solid #fffc00; background: #000; }
.wysoki-kontrast .reh-preview-therapy-media { display: none; }
.wysoki-kontrast .reh-preview-therapy-label, .wysoki-kontrast .reh-preview-therapy-label span, .wysoki-kontrast .reh-preview-therapy-label .ti { color: #fffc00; }
.wysoki-kontrast .reh-preview-specialty-team > li { background: #000; border-color: #fffc00; color: #fffc00; }
.wysoki-kontrast .reh-preview-specialty-team strong { color: #fffc00; }
.wysoki-kontrast .reh-preview-kicker::before { background: #fffc00; }
.wysoki-kontrast .reh-preview a:focus-visible, .wysoki-kontrast .reh-preview summary:focus-visible { outline-color: #fffc00; }

@media (min-width: 1600px) { .reh-preview-container { max-width: 1520px; } }
@media (min-width: 1920px) {
    .reh-preview-container { max-width: 1660px; }
    .reh-preview-therapy-list { margin-left: -60px; margin-right: -60px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .reh-preview-therapy-list { flex-wrap: wrap; row-gap: 8px; }
    .reh-preview-therapy { flex-basis: 35%; }
    .reh-preview-therapy-media img { width: clamp(430px, 59vw, 720px); }
}
@media (min-width: 992px) {
    .reh-preview-faq { grid-template-rows: auto 1fr; row-gap: 20px; align-items: start; }
    .reh-preview-faq-intro { display: contents; }
    .reh-preview-faq-heading { grid-column: 1; grid-row: 1; }
    .reh-preview-faq-heading p { margin-bottom: 0; }
    .reh-preview-faq-intro img { grid-column: 1; grid-row: 2; }
    .reh-preview-faq-list { grid-column: 2; grid-row: 2; }
}
@media (max-width: 1199px) { .reh-preview-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991px) {
    .reh-preview-hero { grid-template-columns: 1fr 1fr; }
    .reh-preview-hero-image { min-height: 300px; }
    .reh-preview-specialty-image { padding-block-start: clamp(5.5rem, 16vw, 7.5rem); }
    .reh-preview-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reh-preview-nav-list li:nth-last-child(-n+3) { border-bottom: 1px solid #dce8f4; }
    .reh-preview-nav-list li:last-child { border-bottom: 0; }
    .reh-preview-about { grid-template-columns: 1fr; }
    .reh-preview-faq { grid-template-columns: 1fr; }
    .reh-preview-faq-intro img { max-height: 300px; object-fit: cover; }
}
@media (max-width: 767px) {
    #reh-cennik-tresc, #reh-obszar-tresc, #reh-zespol-tresc, #reh-wizyta-tresc { scroll-margin-top: 80px; }
    .reh-preview-hero { grid-template-columns: 1fr; }
    .reh-preview-hero-copy { padding: 26px 22px; }
    .reh-preview-hero-image { min-height: 230px; }
    .reh-preview-hero-note { left: 14px; bottom: 14px; }
    .reh-preview-navigation, .reh-preview-about, .reh-preview-next, .reh-preview-therapies, .reh-preview-areas, .reh-preview-faq, .reh-preview-related { margin-top: 36px; }
    .reh-preview-next { grid-template-columns: 1fr; }
    .reh-preview-next-card { padding: 22px; }
    .reh-preview-therapy-list { flex-direction: column; gap: 12px; }
    .reh-preview-therapy { flex: none; min-height: 240px; padding: 24px 40px; }
    .reh-preview-therapy-media { clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
    .reh-preview-therapy-media img { width: 100%; }
}
@media (max-width: 480px) {
    .reh-preview-highlights { grid-template-columns: 1fr; }
    .reh-preview-nav-list { grid-template-columns: 1fr; padding: 0 16px; }
    .reh-preview-nav-list a { min-height: 54px; }
    .reh-preview-actions { display: grid; }
    .reh-preview-hero h1 { font-size: 2rem; }
}
@media (forced-colors: active) { .reh-preview a:focus-visible, .reh-preview summary:focus-visible { outline-color: Highlight; } }
