/* ============================================================
   Doctor profile (.dp-*)
   source: doctor-janet.html (style block #1)
   ============================================================ */
/* ── Profile page ── */
        .dp-hero { padding: clamp(44px,6vw,80px) 0 clamp(28px,4vw,52px); background:linear-gradient(180deg,rgba(248,246,242,.95),rgba(246,242,237,.85)); border-bottom:1px solid var(--border); }
        .dp-breadcrumb { display:flex;align-items:center;gap:8px;margin-bottom:28px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gray); }
        .dp-breadcrumb a { color:var(--gray);transition:color .2s; }
        .dp-breadcrumb a:hover { color:var(--red); }
        .dp-breadcrumb i { color:rgba(31,20,17,.3);font-style:normal; }
        .dp-breadcrumb span { color:var(--charcoal); }

        .dp-hero-grid { display:grid;grid-template-columns:minmax(0,300px) 1fr;gap:clamp(28px,5vw,68px);align-items:start; }
        .dp-photo-frame { width:100%;height:clamp(320px,38vw,400px);overflow:hidden;border-radius:22px;background:var(--beige);box-shadow:0 16px 50px rgba(31,20,17,.1); }
        .dp-photo-frame img { width:100%;height:100%;object-fit:cover;display:block; }
        .dp-photo-initials { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:56px;font-weight:800;color:var(--red); }

        .dp-info { display:flex;flex-direction:column;gap:18px;padding-top:8px; }
        .dp-name { font-family:var(--serif);font-size:clamp(32px,4vw,52px);line-height:1.06;color:var(--charcoal); }
        .dp-role { font-size:16px;color:var(--gray);font-weight:500;margin-top:-10px; }
        .dp-intro { font-size:15px;color:var(--gray);line-height:1.78;max-width:520px;padding-top:6px;border-top:1px solid var(--border); }
        .dp-hero-actions { display:flex;flex-wrap:wrap;gap:14px; }

        /* Info strip */
        .dp-strip { display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));border:1px solid var(--border);border-radius:20px;overflow:hidden;background:rgba(255,255,255,.9); }
        .dp-strip-item { padding:18px 20px;border-right:1px solid var(--border); }
        .dp-strip-item:last-child { border-right:0; }
        .dp-strip-label { font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--red);display:block;margin-bottom:5px; }
        .dp-strip-value { font-size:14px;font-weight:600;color:var(--charcoal); }

        /* Content sections */
        .dp-section { padding:52px 0; }
        .dp-section-light { background:linear-gradient(180deg,rgba(248,246,242,.88),rgba(246,242,237,.82)); }
        .dp-heading { margin-bottom:28px; }
        .dp-heading .eyebrow { margin-bottom:8px; }
        .dp-heading h2 { font-family:var(--serif);font-size:clamp(24px,2.4vw,34px);line-height:1.1; }

        .dp-bio { font-size:16px;color:var(--gray);line-height:1.8;max-width:740px; }
        .dp-bio p+p { margin-top:14px; }
        .dp-bio strong { color:var(--charcoal); }

        /* Education */
        .dp-edu-list { display:flex;flex-direction:column; }
        .dp-edu-item { display:grid;grid-template-columns:72px 1fr;gap:16px;padding:16px 0;border-bottom:1px solid rgba(31,20,17,.07); }
        .dp-edu-item:last-child { border-bottom:0; }
        .dp-edu-item > div:only-child { grid-column:1 / -1; }
        .dp-edu-year { font-size:13px;font-weight:800;color:var(--red);padding-top:2px; }
        .dp-edu-title { font-size:15px;font-weight:700;color:var(--charcoal); }
        .dp-edu-sub { font-size:13px;color:var(--gray);margin-top:3px; }

        /* Services */
        .dp-services-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px; }
        .dp-service { display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border:1px solid rgba(31,20,17,.08);border-radius:16px;background:rgba(255,255,255,.9);transition:border-color .2s,transform .2s;color:inherit;text-decoration:none; }
        .dp-service:hover { border-color:rgba(237,28,42,.22);transform:translateY(-1px); }
        .dp-service-dot { flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--red);margin-top:6px; }
        .dp-service h4 { font-size:14px;font-weight:700;margin-bottom:3px; }
        .dp-service p { font-size:12px;color:var(--gray);line-height:1.5; }
        .dp-expertise-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:start; }
        .dp-edu-groups { display:flex;flex-direction:column;gap:16px; }
        .dp-expertise-group { padding:clamp(18px,2vw,24px);border:1px solid rgba(31,20,17,.08);border-radius:20px;background:rgba(255,255,255,.92); }
        .dp-expertise-group--rich { grid-column:span 2; }
        .dp-expertise-label { display:block;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid rgba(31,20,17,.08);color:var(--red);font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase; }
        .dp-expertise-note { font-size:13px;color:var(--gray);line-height:1.5; }
        .dp-expertise-list { list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:9px 20px; }
        .dp-expertise-list--single { grid-template-columns:1fr; }
        .dp-expertise-list li { font-size:13px;line-height:1.5;color:var(--charcoal);padding-left:14px;position:relative; }
        .dp-expertise-list li::before { content:"–";position:absolute;left:0;color:var(--red);font-weight:700; }
        @media (max-width:640px) {
            .dp-expertise-group--rich { grid-column:span 1; }
            .dp-expertise-list { grid-template-columns:1fr; }
        }
        .dp-expertise-tags { display:flex;flex-direction:column;gap:0;max-width:100%;overflow:visible;counter-reset:dp-expertise; }
        .dp-expertise-tag-group { position:relative;overflow:visible;counter-increment:dp-expertise;min-height:104px;margin-left:66px;padding:22px 0 22px 22px;border-left:3px solid var(--red);max-width:100%;box-sizing:border-box; }
        .dp-expertise-tag-group + .dp-expertise-tag-group { margin-top:6px; }
        /* Order number in the gutter to the LEFT of the red line, low and clearly readable.
           Sans + lining figures so "1" reads as a plain Arabic 1, not a serif "I". */
        .dp-expertise-tag-group::before { content:counter(dp-expertise);position:absolute;left:-66px;bottom:8px;width:50px;text-align:right;z-index:1;font-family:var(--sans);font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1,"tnum" 0;font-size:38px;font-weight:800;line-height:1;color:rgba(182,31,43,.55);pointer-events:none; }
        .dp-expertise-tag-title,
        .dp-expertise-tag-group .dp-expertise-note,
        .dp-expertise-tag-list { position:relative;z-index:1; }
        .dp-expertise-tag-title { font-family:var(--serif);font-size:21px;font-weight:600;color:var(--charcoal);line-height:1.2; }
        .dp-expertise-tag-list { display:flex;flex-wrap:wrap;gap:9px;margin-top:14px;max-width:100%; }
        .dp-expertise-tag { display:inline-flex;align-items:center;max-width:100%;padding:8px 16px;border-radius:999px;border:1px solid rgba(31,20,17,.1);background:rgba(255,255,255,.85);font-size:12.5px;font-weight:600;color:var(--charcoal);white-space:normal;word-break:break-word;text-align:left; }
        @media (max-width:600px) {
            .dp-expertise-tag-group { margin-left:42px;padding-left:16px; }
            .dp-expertise-tag-group::before { left:-42px;width:32px;font-size:26px; }
        }

        /* Location */
        .dp-location { display:grid;grid-template-columns:1fr auto;gap:24px;align-items:start;padding:clamp(20px,2.5vw,30px);border:1px solid var(--border);border-radius:22px;background:rgba(255,255,255,.9); }
        .dp-location-name { font-family:var(--serif);font-size:20px;margin-bottom:8px; }
        .dp-location-meta p { font-size:14px;color:var(--gray);margin-bottom:5px; }
        .dp-location-actions { display:flex;flex-direction:column;gap:10px;min-width:180px; }
        .dp-maps-btn { display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:999px;border:1px solid rgba(237,28,42,.18);background:rgba(237,28,42,.05);color:var(--red);font-size:13px;font-weight:700;transition:background .2s; }
        .dp-maps-btn:hover { background:rgba(237,28,42,.1); }

        /* Final CTA */
        .dp-cta { display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;padding:clamp(28px,3.5vw,44px);border-radius:26px;background:var(--charcoal);color:var(--white); }
        .dp-cta h2 { font-family:var(--serif);font-size:clamp(20px,2.4vw,30px);line-height:1.15;color:var(--white); }
        .dp-cta p { margin-top:8px;font-size:14px;color:rgba(252,251,248,.6); }
        .dp-cta-actions { display:flex;flex-direction:column;gap:10px;min-width:180px; }
        .dp-cta-actions .button { justify-content:center; }
        .dp-phone-btn { display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:999px;border:1px solid rgba(252,251,248,.2);color:rgba(252,251,248,.8);font-size:13px;font-weight:700;text-align:center;transition:border-color .2s; }
        .dp-phone-btn:hover { border-color:rgba(252,251,248,.5);color:var(--white); }

        /* Mobile */
        @media (max-width:820px) {
            .dp-hero-grid { grid-template-columns:1fr; }
            .dp-photo-frame { height:clamp(300px,72vw,440px); }
            .dp-location { grid-template-columns:1fr; }
            .dp-cta { grid-template-columns:1fr; }
            .dp-cta-actions { flex-direction:row;flex-wrap:wrap; }
        }
        @media (max-width:560px) {
            .dp-strip { grid-template-columns:1fr 1fr; }
            .dp-strip-item { border-right:0;border-bottom:1px solid var(--border); }
            .dp-strip-item:nth-child(odd) { border-right:1px solid var(--border); }
        }

/* ============================================================
   Department – standard/orth layout (.detail-*, .orth-*)
   source: department-cardiology.html (style block #1)
   ============================================================ */
.ns-specialist-grid {
            display: grid;
            grid-template-columns: minmax(0, 320px) 1fr;
            gap: clamp(24px, 4vw, 52px);
            align-items: start;
        }
        .ns-photo {
            width: 100%;
            aspect-ratio: 3 / 4;
            overflow: hidden;
            border-radius: 22px;
            background: var(--beige);
        }
        .ns-photo img {
            width: 100%; height: 100%;
            object-fit: cover;
            object-position: center 15%;
            display: block;
        }
        .ns-bio { display: flex; flex-direction: column; gap: 18px; }
        .ns-bio h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
        .ns-role { font-size: 15px; color: var(--gray); font-weight: 500; margin-top: -10px; }
        .ns-bio p { font-size: 15px; color: var(--gray); line-height: 1.78; }
        .ns-edu-list { display: flex; flex-direction: column; }
        .ns-edu-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(31,20,17,.07); }
        .ns-edu-item:last-child { border-bottom: 0; }
        .ns-edu-year { font-size: 13px; font-weight: 800; color: var(--red); padding-top: 2px; }
        .ns-edu-title { font-size: 14px; font-weight: 700; color: var(--charcoal); }
        .ns-edu-sub { font-size: 12px; color: var(--gray); margin-top: 3px; }
        .ns-qual-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
        .ns-qual-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--charcoal); line-height: 1.55; }
        .ns-qual-list li::before { content: "—"; color: var(--red); flex-shrink: 0; font-weight: 700; }
        .ns-price-band { display: flex; gap: 16px; flex-wrap: wrap; }
        .ns-price { padding: 12px 20px; border: 1px solid rgba(31,20,17,.08); border-radius: 16px; background: rgba(255,255,255,.9); }
        .ns-price .label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 5px; }
        .ns-price .amount { font-size: 18px; font-weight: 700; color: var(--charcoal); }
        @media(max-width:820px) { .ns-specialist-grid { grid-template-columns: 1fr; } }
        /* Horizontal framed specialist cards for this page */
        .orth-specialists-grid { display:grid; grid-template-columns:1fr; gap:18px; }
        .orth-specialist-card { display:grid; grid-template-columns:140px 1fr; gap:22px; align-items:start; padding:clamp(18px,2.2vw,26px); border:1px solid rgba(31,20,17,.08); border-radius:20px; background:rgba(255,255,255,.92); transition:border-color .2s,box-shadow .2s; }
        .orth-specialist-card:hover { border-color:rgba(237,28,42,.2); box-shadow:0 8px 28px rgba(31,20,17,.07); }
        .orth-spec-photo { width:140px; height:170px; overflow:hidden; border-radius:14px; background:var(--beige); flex-shrink:0; }
        .orth-spec-photo img { width:100%; height:100%; object-fit:cover; object-position:center 12%; display:block; }
        .orth-spec-info { display:flex; flex-direction:column; gap:8px; }
        .orth-spec-name { font-family:var(--serif); font-size:22px; line-height:1.15; }
        .orth-spec-role { font-size:12px; color:var(--red); font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
        .orth-spec-note { font-size:14px; color:var(--gray); line-height:1.65; }
        @media(max-width:560px) { .orth-specialist-card { grid-template-columns:1fr; } .orth-spec-photo { width:100%; height:220px; } }

/* ============================================================
   Department – standard/ns layout (.ns-*)
   source: department-neurology.html (style block #1)
   ============================================================ */
.ns-specialist-grid {
            display: grid;
            grid-template-columns: minmax(0, 320px) 1fr;
            gap: clamp(24px, 4vw, 52px);
            align-items: start;
        }
        .ns-photo {
            width: 100%;
            aspect-ratio: 3 / 4;
            overflow: hidden;
            border-radius: 22px;
            background: var(--beige);
        }
        .ns-photo img {
            width: 100%; height: 100%;
            object-fit: cover;
            object-position: center 15%;
            display: block;
        }
        .ns-bio { display: flex; flex-direction: column; gap: 18px; }
        .ns-bio h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
        .ns-role { font-size: 15px; color: var(--gray); font-weight: 500; margin-top: -10px; }
        .ns-bio p { font-size: 15px; color: var(--gray); line-height: 1.78; }
        .ns-edu-list { display: flex; flex-direction: column; }
        .ns-edu-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(31,20,17,.07); }
        .ns-edu-item:last-child { border-bottom: 0; }
        .ns-edu-year { font-size: 13px; font-weight: 800; color: var(--red); padding-top: 2px; }
        .ns-edu-title { font-size: 14px; font-weight: 700; color: var(--charcoal); }
        .ns-edu-sub { font-size: 12px; color: var(--gray); margin-top: 3px; }
        .ns-qual-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
        .ns-qual-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--charcoal); line-height: 1.55; }
        .ns-qual-list li::before { content: "—"; color: var(--red); flex-shrink: 0; font-weight: 700; }
        .ns-price-band { display: flex; gap: 16px; flex-wrap: wrap; }
        .ns-price { padding: 12px 20px; border: 1px solid rgba(31,20,17,.08); border-radius: 16px; background: rgba(255,255,255,.9); }
        .ns-price .label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 5px; }
        .ns-price .amount { font-size: 18px; font-weight: 700; color: var(--charcoal); }
        @media(max-width:820px) { .ns-specialist-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Department – dental layout (.dental-*, .technology-*, .journey-*, .faq-*)
   source: department-dental.html (style block #1)
   ============================================================ */
.detail-hero--blend{
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.detail-hero-bg{
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.detail-hero-bg img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    filter: blur(3px) saturate(1.05);
    transform: scale(1.08);

    /* плавно избледняване към ръбовете, за да се "слее" със крема фона */
    -webkit-mask-image: radial-gradient(
        ellipse 75% 70% at 50% 40%,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.5) 55%,
        rgba(0,0,0,0) 85%
    );
    mask-image: radial-gradient(
        ellipse 75% 70% at 50% 40%,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.5) 55%,
        rgba(0,0,0,0) 85%
    );
}

.detail-hero--blend .detail-hero-panel{
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(31, 20, 17, 0.1);
}

@media (max-width: 700px){
    .detail-hero-bg img{
        -webkit-mask-image: radial-gradient(
            ellipse 100% 60% at 50% 20%,
            rgba(0,0,0,0.75) 0%,
            rgba(0,0,0,0.35) 55%,
            rgba(0,0,0,0) 85%
        );
        mask-image: radial-gradient(
            ellipse 100% 60% at 50% 20%,
            rgba(0,0,0,0.75) 0%,
            rgba(0,0,0,0.35) 55%,
            rgba(0,0,0,0) 85%
        );
    }
}

/* ============================================================
   Department – dental layout (.dental-*, .technology-*, .journey-*, .faq-*)
   source: department-dental.html (style block #2)
   ============================================================ */
.dental-specialists-slider{
    display: flex;
    align-items: center;
    gap: 12px;
}

.dental-specialists-grid{
    display: flex !important;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.dental-specialists-grid::-webkit-scrollbar{
    display: none;
}

.dental-specialists-grid .dental-card{
    flex: 0 0 clamp(200px, 19vw, 250px);
    scroll-snap-align: start;
}

/* Prev / next arrows. The block markup ships these buttons empty, so the icon
   and shape are drawn here. .physio-slider-btn = prev, .dental-slider-btn = next. */
.dental-specialists-slider .physio-slider-btn,
.dental-specialists-slider .dental-slider-btn{
    flex: 0 0 auto;
    display: inline-flex;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(182,31,43,.28);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    box-shadow: 0 10px 26px rgba(31,20,17,.15);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}
.dental-specialists-slider .physio-slider-btn{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b61f2b' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}
.dental-specialists-slider .dental-slider-btn{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b61f2b' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}
.dental-specialists-slider .physio-slider-btn:hover:not(:disabled),
.dental-specialists-slider .dental-slider-btn:hover:not(:disabled){
    background-color: var(--red);
    border-color: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(182,31,43,.28);
}
.dental-specialists-slider .physio-slider-btn:hover:not(:disabled){
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}
.dental-specialists-slider .dental-slider-btn:hover:not(:disabled){
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}
.dental-specialists-slider .physio-slider-btn:focus-visible,
.dental-specialists-slider .dental-slider-btn:focus-visible{
    outline: 2px solid var(--red);
    outline-offset: 2px;
}
.dental-specialists-slider .physio-slider-btn:disabled,
.dental-specialists-slider .dental-slider-btn:disabled{
    opacity: .45;
    cursor: default;
    box-shadow: none;
}

@media (max-width: 768px){
    .dental-specialists-slider .physio-slider-btn,
    .dental-specialists-slider .dental-slider-btn{
        display: inline-flex;
        width: 40px;
        height: 40px;
        background-size: 18px 18px;
    }
    .dental-specialists-grid .dental-card{
        flex-basis: min(82vw, 300px);
    }
}

/* ============================================================
   Therapy detail (.therapy-*)
   source: therapy-tecar.html (style block #1)
   ============================================================ */
.section { padding: 56px 0; }
        /* Therapy pages want .section-heading stacked (title above one intro
           paragraph) — department pages want it as a 3-column row (see the
           base .section-heading rule in site-base.css). Both share the same
           class name but were originally two separate static pages that each
           only ever loaded their own <style> block, so they never actually
           collided — scope this one to single-therapy so it stays that way
           now that all pages share one stylesheet. */
        body.single-therapy .section-heading { margin-bottom: 32px; flex-direction:column; align-items:flex-start; gap:12px; }
        body.single-therapy .section-heading > p { max-width:640px; }
        .therapy-hero { padding: clamp(56px,7vw,96px) 0 clamp(40px,5vw,64px); border-bottom: 1px solid var(--border); }
        /* Pale full-bleed background photo (etica_hero_bg_file) instead of the
           framed image beside the text — reuses .detail-hero-bg's own blur +
           radial-mask fade (site-base.css) already proven on department heroes. */
        .therapy-hero--blend { position:relative; overflow:hidden; isolation:isolate; }
        .therapy-breadcrumb { display:flex; align-items:center; gap:8px; margin-bottom:28px; font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--gray); }
        .therapy-breadcrumb a { color:var(--gray); transition:color .2s; }
        .therapy-breadcrumb a:hover { color:var(--red); }
        .therapy-breadcrumb span { color:var(--charcoal); }
        .therapy-breadcrumb i { color:rgba(31,20,17,.3); font-style:normal; }
        .therapy-hero-copy { display:flex; flex-direction:column; gap:18px; max-width:760px; }
        .therapy-hero-copy h1 { font-family:var(--serif); font-size:clamp(38px,5vw,64px); line-height:1.04; color:var(--charcoal); }
        .therapy-hero-copy .lead { max-width:640px; font-size:17px; color:var(--gray); line-height:1.7; }
        .therapy-hero-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
        .therapy-hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:8px; }
        .therapy-meta-pill { display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border:1px solid rgba(31,20,17,.1); border-radius:999px; background:rgba(255,255,255,.88); font-size:12px; font-weight:700; letter-spacing:.06em; color:var(--charcoal); }
        .therapy-meta-pill span { color:var(--red); }

        /* Optional local video for a therapy/procedure hero (opt-in per post
           via etica_hero_video_file) — reuses .physio-hero-grid/.physio-hero-media
           as-is so it gets the exact same framed, rounded media box (and the
           same object-fit:cover crop-to-fill behavior) already used on the
           Физиотерапия department hero. */
        .therapy-intro-grid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,3vw,36px); align-items:stretch; }
        .therapy-intro-body { display:flex; flex-direction:column; font-size:15px; line-height:1.8; color:var(--gray); }
        .therapy-intro-body p+p { margin-top:14px; }
        .therapy-intro-body strong { color:var(--charcoal); font-weight:700; }
        /* The two columns' text often runs to different lengths, which used to
           leave the two images at different heights — anchoring each image to
           its own column's bottom (now that columns stretch to equal height)
           keeps them level with each other regardless of text length. */
        .therapy-intro-body img { margin-top:auto !important; }
        .therapy-intro-photo { display:block; width:100%; height:380px; border-radius:14px; object-fit:cover; }
        .therapy-highlight { display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,3.5vw,48px); align-items:center; padding:clamp(28px,3.5vw,44px); border-radius:28px; background:linear-gradient(135deg,rgba(237,28,42,.06) 0%,rgba(247,241,232,.9) 100%); border:1px solid rgba(237,28,42,.12); }
        .therapy-highlight-copy { display:flex; flex-direction:column; gap:16px; }
        .therapy-highlight-copy h2 { font-family:var(--serif); font-size:clamp(26px,2.8vw,38px); line-height:1.1; }
        .therapy-highlight-copy p { font-size:15px; color:var(--gray); line-height:1.75; }
        .therapy-stat-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
        .therapy-stat { padding:18px 20px; border-radius:18px; background:rgba(255,255,255,.88); border:1px solid rgba(31,20,17,.08); }
        .therapy-stat strong { display:block; font-family:var(--serif); font-size:34px; color:var(--red); line-height:1; }
        .therapy-stat span { display:block; margin-top:6px; font-size:12px; color:var(--gray); font-weight:600; }
        .therapy-benefits-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
        .therapy-benefit-card { padding:clamp(20px,2.2vw,26px); border:1px solid rgba(31,20,17,.08); border-radius:22px; background:rgba(255,255,255,.92); display:flex; flex-direction:column; gap:12px; }
        .therapy-benefit-icon { width:44px; height:44px; border-radius:12px; background:var(--light-red); display:flex; align-items:center; justify-content:center; color:var(--red); font-size:20px; font-weight:800; }
        .therapy-benefit-card h3 { font-family:var(--serif); font-size:20px; line-height:1.2; }
        .therapy-benefit-card p { font-size:14px; color:var(--gray); line-height:1.65; }
        .therapy-conditions-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
        .therapy-condition-group { padding:clamp(18px,2vw,24px); border:1px solid rgba(31,20,17,.08); border-radius:20px; background:rgba(255,255,255,.92); }
        .therapy-condition-group-label { display:block; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid rgba(31,20,17,.08); color:var(--red); font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
        .therapy-condition-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
        .therapy-condition-list li { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:var(--charcoal); line-height:1.55; }
        .therapy-condition-list li::before { content:"--"; color:var(--red); flex-shrink:0; font-weight:700; }
        .therapy-cta-band { display:grid; grid-template-columns:1fr auto; gap:32px; align-items:center; padding:clamp(28px,3.5vw,40px); border-radius:28px; background:var(--charcoal); color:var(--white); }
        .therapy-cta-band h2 { font-family:var(--serif); font-size:clamp(24px,2.6vw,34px); line-height:1.15; color:var(--white); }
        .therapy-cta-band p { margin-top:8px; font-size:15px; color:rgba(252,251,248,.65); }
        .therapy-cta-actions { display:flex; flex-direction:column; gap:12px; min-width:200px; }
        .therapy-cta-actions .button { justify-content:center; }
        .button-light { display:inline-flex; align-items:center; justify-content:center; padding:13px 22px; border-radius:999px; border:1px solid rgba(252,251,248,.2); color:rgba(252,251,248,.8); font-size:13px; font-weight:700; text-align:center; transition:border-color .2s,color .2s; }
        .button-light:hover { border-color:rgba(252,251,248,.5); color:var(--white); }
        @media(max-width:1024px){ .therapy-benefits-grid { grid-template-columns:repeat(2,1fr); } .therapy-conditions-grid { grid-template-columns:repeat(2,1fr); } }
        @media(max-width:760px){ .therapy-intro-grid,.therapy-highlight,.therapy-cta-band { grid-template-columns:1fr; } .therapy-benefits-grid,.therapy-conditions-grid { grid-template-columns:1fr; } .therapy-stat-grid { grid-template-columns:1fr 1fr; } .therapy-cta-actions { flex-direction:row; flex-wrap:wrap; } }

/* ============================================================
   Doctors/Departments archive grouped by department (.sp-*)
   source: doctors.html (style block #1)
   ============================================================ */
/* ── Specialists page ─────────────────────────── */
        .sp-hero { padding: clamp(52px,7vw,96px) 0 clamp(32px,4vw,56px); border-bottom: 1px solid var(--border); background: linear-gradient(180deg,rgba(248,246,242,.95),rgba(246,242,237,.85)); }
        .sp-hero .eyebrow { margin-bottom: 10px; }
        .sp-hero h1 { font-family: var(--serif); font-size: clamp(36px,5vw,64px); line-height: 1.04; margin-bottom: 16px; }
        .sp-hero p { font-size: 16px; color: var(--gray); max-width: 540px; line-height: 1.7; }

        /* Department section */
        .sp-dept-section { padding: clamp(44px,5vw,72px) 0; border-bottom: 1px solid var(--border); }
        .sp-dept-section:last-of-type { border-bottom: 0; }

        .sp-dept-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
        .sp-dept-title { font-family: var(--serif); font-size: clamp(22px,2.5vw,32px); line-height: 1.1; color: var(--charcoal); }
        .sp-dept-link { font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: opacity .18s; }
        .sp-dept-link:hover { opacity: .7; }

        /* Card grid */
        .sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

        .sp-card { display: flex; flex-direction: column; }
        .sp-photo-link { display: block; width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 16px; background: var(--beige); }
        .sp-photo-link img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; display: block; transition: transform .35s; }
        .sp-card:hover .sp-photo-link img { transform: scale(1.04); }
        .sp-initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 800; color: var(--red); font-family: var(--serif); }

        .sp-info { padding: 14px 4px 0; }
        .sp-name { font-family: var(--serif); font-size: clamp(16px,1.5vw,20px); line-height: 1.2; color: var(--charcoal); margin-bottom: 3px; }
        .sp-specialty { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
        .sp-link { font-size: 12px; font-weight: 700; color: var(--red); text-decoration: none; transition: opacity .18s; }
        .sp-link:hover { opacity: .7; }

        @media(max-width:900px) { .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
        @media(max-width:560px) { .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .sp-dept-head { flex-direction: column; gap: 6px; } }
        @media(max-width:380px) { .sp-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Departments overview grid (.dept-*)
   source: services.html (style block #1)
   ============================================================ */
/* ── Departments page ─────────────────────────── */
        .dept-hero { padding: clamp(52px,7vw,96px) 0 clamp(32px,4vw,56px); border-bottom: 1px solid var(--border); background: linear-gradient(180deg,rgba(248,246,242,.95),rgba(246,242,237,.85)); }
        .dept-hero .eyebrow { margin-bottom: 10px; }
        .dept-hero h1 { font-family: var(--serif); font-size: clamp(36px,5vw,64px); line-height: 1.04; margin-bottom: 16px; }
        .dept-hero p { font-size: 16px; color: var(--gray); max-width: 560px; line-height: 1.7; }

        .dept-grid-section { padding: clamp(44px,5vw,72px) 0; }

        /* Grid */
        .dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

        /* Card */
        .dept-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: #fff; transition: box-shadow .22s, transform .22s; }
        .dept-card:hover { box-shadow: 0 12px 36px rgba(31,20,17,.08); transform: translateY(-2px); }

        .dept-photo-link { display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--beige); flex-shrink: 0; }
        .dept-photo-link img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .35s; }
        .dept-card:hover .dept-photo-link img { transform: scale(1.04); }

        .dept-info { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
        .dept-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
        .dept-num { font-size: 11px; font-weight: 800; color: rgba(31,20,17,.3); letter-spacing: .06em; }
        .dept-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
        .dept-name { font-family: var(--serif); font-size: clamp(18px,1.8vw,24px); line-height: 1.15; color: var(--charcoal); margin-bottom: 8px; }
        .dept-desc { font-size: 13px; color: var(--gray); line-height: 1.65; margin-bottom: 12px; }
        .dept-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 5px; }
        .dept-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--charcoal); line-height: 1.5; }
        .dept-list li::before { content: "\2022"; color: var(--red); flex-shrink: 0; font-weight: 700; margin-top: 1px; }
        .dept-link { font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; margin-top: auto; transition: opacity .18s; }
        .dept-link:hover { opacity: .7; }

        @media(max-width:1024px) { .dept-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
        @media(max-width:600px) { .dept-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================================
   Investigations listing (.investigation-*)
   source: investigations.html (style block #1)
   ============================================================ */
.carousel{ position: relative; }
    .carousel-inner{ position: relative; width: 100%; overflow: hidden; }
    .carousel-inner::after{ display: block; clear: both; content: ""; }
    .carousel-item{
        position: relative;
        display: none;
        float: left;
        width: 100%;
        margin-right: -100%;
        backface-visibility: hidden;
        transition: transform .6s ease-in-out;
    }
    @media (prefers-reduced-motion: reduce){
        .carousel-item{ transition: none; }
    }
    .carousel-item.active,
    .carousel-item-next,
    .carousel-item-prev{ display: block; }
    .carousel-item-next:not(.carousel-item-start),
    .active.carousel-item-end{ transform: translateX(100%); }
    .carousel-item-prev:not(.carousel-item-end),
    .active.carousel-item-start{ transform: translateX(-100%); }

    .carousel-control-prev,
    .carousel-control-next{
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 15%;
        padding: 0;
        color: #fff;
        text-align: center;
        background: none;
        border: 0;
        opacity: 0.85;
        transition: opacity .15s ease;
    }
    .carousel-control-prev:hover,
    .carousel-control-next:hover{ opacity: 1; }
    .carousel-control-prev{ left: 0; }
    .carousel-control-next{ right: 0; }

    .carousel-control-prev-icon,
    .carousel-control-next-icon{
        display: inline-block;
        width: 2rem;
        height: 2rem;
        background-repeat: no-repeat;
        background-position: 50%;
        background-size: 100% 100%;
    }
    .carousel-control-prev-icon{
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    }
    .carousel-control-next-icon{
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }

    .carousel-indicators{
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2;
        display: flex;
        justify-content: center;
        padding: 0;
        margin: 0 15% 1rem;
        list-style: none;
    }
    .carousel-indicators [data-bs-target]{
        box-sizing: content-box;
        flex: 0 1 auto;
        width: 30px;
        height: 3px;
        padding: 0;
        margin: 0 3px;
        text-indent: -999px;
        cursor: pointer;
        background-color: #fff;
        background-clip: padding-box;
        border: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        opacity: 0.5;
        transition: opacity .6s ease;
    }
    .carousel-indicators .active{ opacity: 1; }

    .visually-hidden{
        position: absolute !important;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        border: 0;
    }

    .investigations-hero-visual{ position: relative; }
    .investigations-hero-visual .carousel,
    .investigations-hero-visual .carousel-inner{
        height: 100%;
        border-radius: 2px;
        overflow: hidden;
    }
    .investigations-hero-visual .carousel-item img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .investigations-hero-visual .carousel-indicators{ margin-bottom: 12px; }
    .investigations-hero-visual .carousel-indicators [data-bs-target]{
        width: 24px;
        height: 3px;
        border-radius: 2px;
        background-color: rgba(255,255,255,0.45);
        border-top: none;
        border-bottom: none;
        opacity: 1;
    }
    .investigations-hero-visual .carousel-indicators .active{ background-color: #b61f2b; }
    .investigations-hero-visual .carousel-control-prev,
    .investigations-hero-visual .carousel-control-next{
        width: 40px;
        height: 40px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        background: #FAF6EF;
        border-radius: 50%;
        opacity: 0.9;
    }
    .investigations-hero-visual .carousel-control-prev{ left: 16px; }
    .investigations-hero-visual .carousel-control-next{ right: 16px; }
    .investigations-hero-visual .carousel-control-prev-icon,
    .investigations-hero-visual .carousel-control-next-icon{
        width: 14px;
        height: 14px;
        filter: invert(9%) sepia(9%) saturate(500%) hue-rotate(340deg);
    }
    .investigations-hero-badge{
        position: absolute;
        left: 6%;
        bottom: 4%;
        z-index: 5;
    }
    .investigation-hero .hero-grid{
    display: block;
    padding: 0;
    max-width: none;
}

.investigations-hero-visual{
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    height: 640px;
}

.investigations-hero-visual .carousel,
.investigations-hero-visual .carousel-inner{
    height: 100%;
    border-radius: 0;
}

.investigation-hero .hero-grid > div:first-child{
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 520px;
}

.investigation-hero{
    position: relative;
}

.investigations-hero-visual::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250,246,239,0.92) 0%, rgba(250,246,239,0.55) 30%, rgba(250,246,239,0) 55%);
    pointer-events: none;
    z-index: 5;
}

.investigations-hero-badge{
    display: none;
}

@media (max-width: 900px){
    .investigations-hero-visual{ height: 480px; }
    .investigation-hero .hero-grid > div:not(.hero-visual){
        left: 6%;
        right: 6%;
        max-width: none;
    }
}
#ultrasound{
    background: linear-gradient(135deg, #FFFFFF 0%, #FBEAEE 100%);
    border-radius: 16px;
}
.department-section{
    background: linear-gradient(135deg, #FAF6EF 0%, #F4DCE0 100%);
    border-radius: 16px;
    padding: 48px 0;
}
.department-grid:has(.investigation-card:only-child){
    grid-template-columns: 1fr;
}

.investigation-card:only-child{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding: 40px 48px;
}

.investigation-card:only-child .card-meta{
    flex: 0 0 auto;
    margin: 0;
}

.investigation-card:only-child h4{
    flex: 0 0 240px;
    margin: 0;
}

.investigation-card:only-child p{
    flex: 1 1 320px;
    margin: 0;
}

.investigation-card:only-child .subtype-list{
    display: none;
}

.investigation-card:only-child .card-actions{
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    margin-top: 0;
}
