.sc-contact {
    --sc-accent: #713c63;
    --sc-ink: #282536;
    --sc-muted: #686273;
    --sc-line: #e8e2e9;
    color: var(--sc-ink);
    background: #fcfafc;
    font-family: inherit;
    line-height: 1.85;
    isolation: isolate;
}
.sc-contact *, .sc-contact *::before, .sc-contact *::after { box-sizing: border-box; }
.sc-contact-shell { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.sc-contact-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(2.75rem, 6vw, 5rem) clamp(4.5rem, 8vw, 6.5rem);
    background: radial-gradient(ellipse at 90% 0%, #e7d8ed 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, #e0edeb 0%, transparent 50%), #f4edf3;
    border-block-end: 1px solid var(--sc-line);
}
.sc-contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--sc-accent);
    font-size: .88rem;
    font-weight: 650;
    margin-block-end: .75rem;
}
.sc-contact-eyebrow::before { content: ''; width: 1.8rem; height: 2px; background: currentColor; }
.sc-contact h1 { margin: 0; color: var(--sc-ink); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.5; font-weight: 800; }
.sc-contact-intro { margin: 1rem 0 0; color: #50495b; white-space: pre-line; font-size: 1.05rem;text-align:justify; }
.sc-contact-body { position: relative; padding-block-end: clamp(2.5rem, 6vw, 5rem); }
.sc-contact-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    margin: 0;
}
.sc-contact-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; padding-block-start: 2rem; }
.sc-contact-body:has(.sc-contact-facts) { grid-template-columns: minmax(16rem, 21rem) minmax(0, 1fr); }
.sc-contact-body > .sc-contact-information { min-width: 0; grid-column: 2; grid-row: 1; margin: 0; }
.sc-contact-body > .sc-contact-facts { grid-column: 1; grid-row: 1 / span 2; }
.sc-contact-body > .sc-contact-maps { min-width: 0; grid-column: 2; grid-row: 2; margin: 0; }
.sc-contact[dir="rtl"] .sc-contact-body:has(.sc-contact-facts) { grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); }
.sc-contact[dir="rtl"] .sc-contact-body > .sc-contact-facts { grid-column: 2; }
.sc-contact[dir="rtl"] .sc-contact-body > .sc-contact-information,
.sc-contact[dir="rtl"] .sc-contact-body > .sc-contact-maps,
.sc-contact-body:not(:has(.sc-contact-facts)) > * { grid-column: 1; }
@media (max-width: 900px) {
    .sc-contact-body, .sc-contact-body:has(.sc-contact-facts),
    .sc-contact[dir="rtl"] .sc-contact-body:has(.sc-contact-facts) { display: flex; flex-direction: column; }
    .sc-contact-body > * { width: 100%; }
}
.sc-contact-facts, .sc-contact-intro, .sc-contact-information {
    padding: 3rem;
    border: 1px solid var(--sc-line);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 6px 20px #38243c04;
}
.sc-contact-intro { margin-block-start: 1rem; }
.sc-contact-fact {
    min-width: 0;
}
.sc-contact-facts { padding: clamp(1.25rem, 3vw, 2rem); gap: 2rem; }
.sc-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: .95rem;
    background: #f4edf4;
    color: var(--sc-accent);
    flex-shrink: 0;
}
.sc-contact-icon svg { display: block; width: 1.5rem; height: 1.5rem; }
.sc-contact h2 { color: var(--sc-ink); font-weight: 750; line-height: 1.6; }
.sc-contact-lines { white-space: pre-line; font-style: normal; margin: 0; overflow-wrap: anywhere; }
.sc-contact-phones { display: grid; gap: .85rem; list-style: none; margin: 0; padding: 0; }
.sc-contact-phones li { display: grid; justify-items: start; gap: .15rem; }
.sc-contact-phones li > span, .sc-contact-phones small { color: var(--sc-muted); font-size: .85rem; }
.sc-contact-phones a { color: var(--sc-accent); font-weight: 750; font-size: 1.15rem; text-decoration: none; }
.sc-contact-phones a:hover { text-decoration: underline; }
.sc-contact-information {
    margin-block: 2.5rem;
    overflow-wrap: anywhere;
}
.sc-contact-information > :first-child { margin-block-start: 0; }
.sc-contact-information > :last-child { margin-block-end: 0; }
.sc-contact-information img { max-width: 100%; height: auto; }
.sc-contact-information a { color: var(--sc-accent); text-decoration: underline; text-underline-offset: .2em; }
.sc-contact-section { margin-block-start: 3rem; }
.sc-contact-section-heading { margin-block-end: 1.25rem; }
.sc-contact-section-heading h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0 0 .35rem; }
.sc-contact-section-heading p { margin: 0; color: var(--sc-muted); font-size: .95rem; }
.sc-contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1rem; }
.sc-contact a.sc-contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    min-width: 0;
    color: var(--sc-ink);
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 1.15rem;
    text-decoration: none;
    box-shadow: 0 6px 20px #38243c04;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sc-contact a.sc-contact-link:hover {
    transform: translateY(-3px);
    border-color: #bba1b5;
    box-shadow: 0 14px 30px #38243c0c;
}
.sc-contact a:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 4px; }
.sc-contact-link-main { display: grid; gap: .35rem; justify-items: start; min-width: 0; }
.sc-contact-brand { margin-block-end: .4rem; }
.sc-contact-brand img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.sc-contact-link-title { font-size: 1.1rem; font-weight: 750; overflow-wrap: anywhere; }
.sc-contact-link-note { color: var(--sc-muted); font-size: .85rem; overflow-wrap: anywhere; white-space: pre-line; }
.sc-contact-link-action { color: var(--sc-accent); font-size: .82rem; font-weight: 650; margin-block-start: .5rem; }
.sc-contact-link-action > span { display: inline-block; margin-inline-start: .5rem; font-size: 1.1rem; }
.sc-contact-qr { flex: 0 0 7.5rem; width: 7.5rem; background: #fff; line-height: 0; border-radius: .4rem; }
.sc-contact-qr[hidden] { display: none; }
.sc-contact-qr svg { display: block; width: 100%; height: auto; aspect-ratio: 1; }
/* Long URLs need more modules; give their QR its own row to keep it legible. */
.sc-contact a.sc-contact-link-dense { flex-wrap: wrap; }
.sc-contact-link-dense .sc-contact-link-main { width: 100%; }
.sc-contact-link-dense .sc-contact-qr { flex-basis: auto; width: min(100%, var(--sc-qr-size)); margin-inline: auto; }
.sc-contact-map { margin-block-start: 1.5rem; overflow: hidden; border: 1px solid var(--sc-line); border-radius: 1.25rem; background: #fff; }
.sc-contact-map iframe { display: block; width: 100%; height: clamp(20rem, 40vw, 30rem); border: 0; background: #f0edf1; }
.sc-contact a.sc-contact-map-link { display: block; padding: .8rem 1.25rem; color: var(--sc-accent); text-decoration: none; font-size: .9rem; }
.sc-contact a.sc-contact-map-link:hover { text-decoration: underline; }
@media (max-width: 480px) {
    .sc-contact-shell { width: calc(100% - 1.5rem); }
    .sc-contact a.sc-contact-link { padding: 1rem; gap: .75rem; }
    .sc-contact-qr { flex-basis: 6rem; width: 6rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sc-contact a.sc-contact-link { transition: none; }
    .sc-contact a.sc-contact-link:hover { transform: none; }
}
@media print {
    .sc-contact { background: #fff; }
    .sc-contact-hero { padding-block: 1rem 3rem; }
    .sc-contact-facts { margin-block-start: 0; }
    .sc-contact-fact, .sc-contact-link { break-inside: avoid; box-shadow: none; }
    .sc-contact-map iframe { display: none; }
}

.sc-contact-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-contact-hero:has(.sc-contact-banner)::after { content: ''; position: absolute; inset: 0; background: #713c6333; }
.sc-contact-hero > .sc-contact-shell { position: relative; z-index: 1; }
.sc-contact-fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-content: start; }
.sc-contact-fact > :not(.sc-contact-icon) { min-width: 0; overflow-wrap: anywhere;text-align:justify; }
.sc-contact-fact > .sc-contact-location { grid-column: 1 / -1; }
.sc-contact-intro { white-space: normal; }
.sc-contact-intro img { max-width: 100%; height: auto; }
.sc-contact-location { display: flex; flex-direction: column; align-items: center; gap: .75rem; min-width: 0; }
.sc-contact-fact > address + .sc-contact-location,
.sc-contact-location + .sc-contact-location { margin-block-start: .75rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--sc-line); }
.sc-contact-location .sc-contact-qr { flex: none; width: 4rem; border-radius: 0; }
.sc-contact .sc-contact-location-button { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border: 0; border-radius: .75rem; color: #fff; background: var(--sc-accent); text-decoration: none; font: inherit; cursor: pointer; }
.sc-contact-location-button svg { width: 1.1rem; height: 1.1rem; }
.sc-contact .sc-contact-location-button { width: 100%; min-height: 3rem; justify-content: center; text-align: center; overflow-wrap: anywhere; }
.sc-contact-location-button svg { flex-shrink: 0; }
.sc-contact .sc-contact-location-button:hover { filter: brightness(.9); }
.sc-contact button.sc-contact-location-button:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 4px; }
.sc-contact-taxi-hint { color: var(--sc-muted); text-align: center;font-size:.75rem; }
.sc-contact-location:has(> .sc-contact-taxi-hint) { padding-block-end: 1.5rem; border-block-end: 1px solid var(--sc-line); }
.sc-contact [data-copy-fallback] { max-width: 100%; }
.sc-contact [data-copy-fallback] input { width: 100%; min-width: 0; }

/* Keep the reference QR/logo interior with the original responsive card styling. */
.sc-contact-messengers .sc-contact-links {
    width: 70%;
    margin-inline: auto;
    gap: 2rem;
}
.sc-contact-messengers a.sc-contact-link {
    width: 100%;
    max-width: 28rem;
    justify-self: center;
    flex-direction: row-reverse;
    align-items: flex-start;
    padding: .5rem;
}
.sc-contact-link-url { display: none; }
.sc-contact-messengers .sc-contact-link-main { display: flex; align-items: center; gap: .5rem; }
.sc-contact-messengers .sc-contact-link-url { min-width: 0; }
.sc-contact-messengers .sc-contact-link-url { display: block; max-width: 100%; color: var(--sc-muted); font-size: .8rem; overflow-wrap: anywhere; text-align: start; }
.sc-contact-messengers .sc-contact-brand {
    width: 70px;
    height: 70px;
    margin: 0;
    border-radius: 0;
    background: transparent;
}
.sc-contact-messengers .sc-contact-brand img { width: auto; height: auto; max-width: 70px; max-height: 70px; }
.sc-contact-messengers .sc-contact-qr { flex: 0 0 70px; width: 70px; border-radius: 0; }
.sc-contact-messengers .sc-contact-link-title,
.sc-contact-messengers .sc-contact-link-note,
.sc-contact-messengers .sc-contact-link-action {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
/* Preserve scan size for URLs too dense for the reference's 70px QR. */
.sc-contact-messengers .sc-contact-link-dense .sc-contact-qr { flex-basis: auto; width: min(100%, var(--sc-qr-size)); }

/* Keep the clinic photo visible above the partly overlapping introduction. */
.sc-contact-hero:has(.sc-contact-banner) { min-height: clamp(16rem, 32vw, 28rem); }
.sc-contact-hero:has(.sc-contact-banner) h1 { color: #fff; text-shadow: 0 2px 8px #282536aa; }
.sc-contact-intro-wrap { position: relative; z-index: 1; margin-block-start: -2rem; }
.sc-contact-intro-wrap .sc-contact-intro { margin: 0; padding: clamp(1.25rem, 4vw, 3rem); }
@media (max-width: 900px) {
    .sc-contact-messengers .sc-contact-links { width: 100%; }
}
