:root {
    --red: #ED1C2A;
    --dark-red: #9F1D20;
    --light-red: #fce9eb;
    --dark: #1d1716;
    --charcoal: #231d1b;
    --gray: #5f5753;
    --beige: #f7f1e8;
    --light-gray: #fcfbf8;
    --border: #e8ded7;
    --white: #fcfbf8;
    --gold: #c9a66b;
    --gold-dark: #b08e51;
    --container: 1180px;
    --radius: 22px;
    --shadow: 0 24px 90px rgba(31, 20, 17, 0.09);

    --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --sans: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: var(--sans);
    color: var(--charcoal);
    background:
        radial-gradient(circle at top left, rgba(237, 28, 42, 0.08), transparent 24%),
        linear-gradient(180deg, #faf7f2 0%, #fcfbf8 45%, #f7f1e8 100%);
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* Universal safety net — a video/iframe/embed/table dropped in anywhere
   (content editor, a future feature) can never be wider than its container
   and force the whole page to scroll horizontally, the way the procedure
   hero videos briefly did. */
video,
iframe,
embed,
object,
table {
    max-width: 100%;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: visible;
}

.header.is-scrolled {
    background: rgba(251, 248, 243, 0.9);
    border-bottom-color: rgba(232, 223, 215, 0.9);
    box-shadow: 0 10px 40px rgba(31, 20, 17, 0.06);
}

.navigation {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: visible;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 46px;
    max-height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo:hover {
    opacity: 0.94;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    margin-left: auto;
    margin-right: 20px;
}

.nav-item-with-megamenu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-directions-trigger {
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-directions-trigger:hover,
.nav-directions-trigger:focus-visible,
.nav-directions-trigger.is-open {
    color: var(--red);
}

.nav-mega-menu {
    position: fixed;
    top: 88px;
    left: 50%;
    width: min(1380px, calc(100vw - 24px));
    max-width: 1400px;
    height: min(calc(100vh - 112px), 780px);
    max-height: calc(100vh - 112px);
    padding: 0;
    border: 1px solid rgba(31, 20, 17, 0.08);
    border-radius: 34px;
    background: rgba(252, 250, 247, 0.97);
    backdrop-filter: blur(24px);
    box-shadow: 0 28px 80px rgba(31, 20, 17, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
    z-index: 9999;
    overflow: hidden;
    isolation: isolate;
}

.nav-mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-mega-menu-inner {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(280px, 330px);
    height: 100%;
    min-height: 0;
}

.nav-mega-menu-column {
    padding: 0;
    min-width: 0;
}

.nav-mega-menu-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 24px;
    border-right: 1px solid rgba(31, 20, 17, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(247,241,232,0.8));
}

.nav-mega-menu-title {
    font-family: var(--serif);
    font-size: clamp(22px, 1.8vw, 28px);
    line-height: 1.1;
    color: var(--charcoal);
}

.nav-mega-menu-copy {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.nav-mega-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 0.25s ease;
}

.nav-mega-menu-link:hover {
    transform: translateX(2px);
}

.nav-mega-menu-list-column {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.nav-mega-menu-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 10px;
    border-bottom: 1px solid rgba(31, 20, 17, 0.06);
}

.nav-mega-menu-list-label {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-mega-menu-list-hint {
    margin: 0;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.5;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-mega-menu-list-scroll {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    padding: 12px 12px 12px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 20, 17, 0.24) transparent;
}

.nav-mega-menu-list-scroll::-webkit-scrollbar {
    width: 7px;
}

.nav-mega-menu-list-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(31, 20, 17, 0.24);
}

.nav-mega-menu-list-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.nav-mega-menu-list-scroll::after {
    content: "";
    position: sticky;
    bottom: 0;
    display: block;
    height: 28px;
    margin-top: -28px;
    background: linear-gradient(180deg, rgba(252, 250, 247, 0) 0%, rgba(252, 250, 247, 0.96) 100%);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nav-mega-menu-list-scroll.is-at-end::after {
    opacity: 0;
}

.nav-department-list {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0 0 8px;
    margin: 0;
}

.nav-department-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--charcoal);
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-department-link:hover,
.nav-department-link:focus-visible,
.nav-department-link.is-active {
    color: var(--red);
    background: rgba(237, 28, 42, 0.06);
    border-color: rgba(237, 28, 42, 0.14);
    box-shadow: inset 0 0 0 1px rgba(237, 28, 42, 0.08);
    transform: translateX(3px);
}

.nav-department-link:focus-visible {
    outline: none;
}

.nav-department-link .nav-department-arrow {
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-department-link:hover .nav-department-arrow,
.nav-department-link:focus-visible .nav-department-arrow,
.nav-department-link.is-active .nav-department-arrow {
    opacity: 1;
    transform: translateX(0);
}

.nav-department-number {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-mega-menu-preview-column {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-left: 1px solid rgba(31, 20, 17, 0.06);
}

/* Admin-defined mega menu (Appearance → Menus), any number of columns. */
.nav-mega-menu-inner.is-custom {
    display: block;
    height: auto;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 32px 36px;
}

.nav-mega-menu-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.nav-mega-menu-col-title {
    display: block;
    font-family: var(--serif);
    font-size: 17px;
    color: var(--charcoal);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

a.nav-mega-menu-col-title {
    transition: color 0.18s ease;
}

a.nav-mega-menu-col-title:hover {
    color: var(--red);
}

.nav-mega-menu-col-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.nav-mega-menu-col-list a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 14px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav-mega-menu-col-list a:hover {
    color: var(--red);
    transform: translateX(2px);
}

.nav-mega-preview {
    display: grid;
    gap: 18px;
    height: 100%;
    padding: 28px 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(247,241,232,0.84));
}

.nav-preview-kicker {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-preview-visual {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(237, 28, 42, 0.12), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(237, 28, 42, 0.12);
    min-height: 160px;
}

.nav-preview-visual-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-preview-visual strong {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.12;
}

.nav-preview-visual p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.nav-preview-title {
    font-family: var(--serif);
    font-size: 26px;
    line-height: 1.08;
    color: var(--charcoal);
}

.nav-preview-description {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.nav-preview-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nav-preview-stat {
    padding: 16px 18px;
    border: 1px solid rgba(31, 20, 17, 0.08);
    border-radius: 18px;
    background: rgba(255,255,255,0.86);
}

.nav-preview-stat span {
    display: block;
    color: var(--gray);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-preview-stat strong {
    display: block;
    margin-top: 6px;
    color: var(--charcoal);
    font-size: 16px;
}

.nav-preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-preview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--charcoal);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.nav-preview-link:hover {
    transform: translateY(-1px);
    background: var(--red);
}

.nav-department-title {
    flex: 1;
}

.nav-department-arrow {
    color: var(--red);
    font-size: 13px;
}


.nav-desktop > a,
.nav-desktop .nav-directions-trigger,
.nav-desktop .nav-about-trigger {
    position: relative;
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
    color: var(--red);
}

/* "За Етика" — a small hover dropdown to the plain links around it, same
   idea as the Направления mega-menu but lightweight (3 links, CSS-only). */
.nav-item-with-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Invisible bridge over the gap to .nav-about-dropdown (top: 100% + margin)
   so moving the cursor down into it doesn't drop out of :hover first. */
.nav-item-with-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 18px;
}

.nav-about-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 18px;
    min-width: 180px;
    padding: 8px;
    border: 1px solid rgba(31, 20, 17, 0.08);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 20px 50px rgba(31, 20, 17, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 50;
}

.nav-about-dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--charcoal);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
}

.nav-about-dropdown a:hover,
.nav-about-dropdown a:focus-visible {
    background: rgba(237, 28, 42, 0.06);
    color: var(--red);
}

.nav-item-with-dropdown:hover .nav-about-dropdown,
.nav-item-with-dropdown:focus-within .nav-about-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 20, 17, 0.72);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-overlay-shell {
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(252, 250, 246, 0.98) 0%, rgba(245, 239, 232, 0.98) 100%);
    box-shadow: 0 38px 120px rgba(31, 20, 17, 0.2);
}

.nav-overlay-sidebar {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(237, 28, 42, 0.05), rgba(237, 28, 42, 0.02)),
        rgba(252, 251, 248, 0.88);
    border-right: 1px solid rgba(31, 20, 17, 0.08);
}

.nav-overlay-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.nav-overlay-lead {
    margin: 30px 0 26px;
    max-width: 280px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

.nav-overlay-phone {
    margin-top: 28px;
    color: var(--charcoal);
    font-size: 18px;
    font-weight: 700;
}

.nav-overlay-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.nav-overlay-socials a {
    color: var(--gray);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.nav-overlay-main {
    position: relative;
    padding: 36px 42px 42px;
    display: flex;
    flex-direction: column;
}

.nav-overlay-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 20, 17, 0.05);
    color: var(--charcoal);
    cursor: pointer;
    font-size: 24px;
}

.nav-primary-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.nav-primary-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid rgba(31, 20, 17, 0.08);
    background: transparent;
    color: var(--charcoal);
    font-family: var(--serif);
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-primary-link span {
    color: var(--red);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-primary-link:hover,
.nav-primary-link.is-active {
    color: var(--red);
    transform: translateX(3px);
}

.nav-secondary-panel {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 20, 17, 0.1);
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-panel-card {
    padding: 20px 22px;
    border: 1px solid rgba(31, 20, 17, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.nav-panel-card.accent {
    background: linear-gradient(135deg, rgba(237, 28, 42, 0.08), rgba(237, 28, 42, 0.03));
}

.nav-panel-kicker {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav-panel-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-family: var(--serif);
    font-weight: 600;
}

.nav-panel-card p,
.nav-panel-card li,
.nav-panel-card a {
    color: var(--gray);
    line-height: 1.7;
}

.nav-panel-list {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    list-style: none;
}

.nav-panel-list a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--charcoal);
    font-weight: 600;
}

.nav-panel-list span {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.nav-panel-location {
    display: grid;
    gap: 10px;
}

.nav-panel-location strong {
    font-size: 16px;
    color: var(--charcoal);
}

.nav-panel-location a {
    color: var(--red);
    font-weight: 700;
}

.button,
.wp-block-button.button .wp-block-button__link {
    min-height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--red);
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.button:hover,
.wp-block-button.button .wp-block-button__link:hover {
    background: var(--dark-red);
    box-shadow: 0 12px 30px rgba(182, 31, 43, 0.18);
    transform: translateY(-2px);
    color: var(--white);
}

.button::after,
.wp-block-button.button .wp-block-button__link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.button:hover::after,
.wp-block-button.button .wp-block-button__link:hover::after {
    transform: translateX(2px);
}

.button-small {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

.button-secondary,
.wp-block-button.button-secondary .wp-block-button__link {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--border);
}

.button-secondary:hover,
.wp-block-button.button-secondary .wp-block-button__link:hover {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
}

.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(31, 20, 17, 0.12);
    border-radius: 999px;
    background: rgba(31, 20, 17, 0.04);
    color: var(--dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.menu-button:hover {
    background: rgba(237, 28, 42, 0.06);
    border-color: rgba(237, 28, 42, 0.2);
}

.menu-button-icon {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
}

.menu-button-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: 0.25s ease;
}

.menu-button-label {
    display: inline-block;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 88px;
    background:
        linear-gradient(180deg, rgba(251, 248, 243, 0.96) 0%, rgba(247, 242, 236, 0.95) 100%);
}

.editorial-hero {
    background:
        radial-gradient(circle at top right, rgba(182, 31, 43, 0.06), transparent 30%),
        linear-gradient(180deg, #f8f6f2 0%, #f6f1eb 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: -180px;
    left: -120px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(182, 31, 43, 0.12);
    border-radius: 50%;
    opacity: 0.55;
}

.hero-grid,
.hero-stack {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 70px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1,
.section-content h2,
.section-heading h2,
.appointment-content h2,
.technology-section h2,
.department-header h3,
.hero h1 span {
    font-family: var(--serif);
}

.hero h1 {
    max-width: 700px;
    font-size: clamp(58px, 6vw, 92px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.hero h1 span {
    color: var(--red);
}

.hero-description {
    max-width: 650px;
    margin-top: 26px;
    color: var(--gray);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 50px;
}

.hero-stats div {
    padding-right: 15px;
    border-right: 1px solid var(--border);
}

.hero-stats div:last-child {
    border-right: 0;
}

.hero-stats strong {
    display: block;
    color: var(--red);
    font-size: 28px;
    line-height: 1.1;
}

.hero-stats span {
    color: var(--gray);
    font-size: 12px;
}

.hero-visual {
    position: relative;
    min-height: 640px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    right: -18px;
    top: 32px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(182, 31, 43, 0.14);
    border-radius: 30px;
}

.hero-media-frame {
    width: 100%;
    height: 640px;
    overflow: hidden;
    border-radius: 28px 190px 28px 190px;
    box-shadow: var(--shadow);
    background: #efe9df;
}

@media (max-width: 700px) {
    .hero-media-frame {
        min-height: 380px;
        height: 380px;
        border-radius: 18px 100px 18px 100px;
    }

    .hero-visual {
        order: -1;
    }
}

.hero-media-frame img,
.about-image-frame img,
.location-visual img,
.technology-media img,
.service-featured-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.hero-side-note {
    position: absolute;
    left: -18px;
    bottom: 24px;
    width: min(340px, 90%);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.hero-side-note strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.2;
}

.photo-label {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--light-red);
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-media-badge strong {
    display: block;
    margin-top: 16px;
    font-size: 24px;
    line-height: 1.25;
}

.floating-card {
    position: absolute;
    left: -48px;
    bottom: 45px;
    width: min(340px, 85%);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.floating-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--light-red);
    color: var(--red);
    font-weight: 800;
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card span {
    color: var(--gray);
    font-size: 12px;
}

.quick-links {
    position: relative;
    z-index: 2;
    margin-top: -14px;
    padding-bottom: 16px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 18px;
}

.quick-card {
    min-height: 150px;
    padding: 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-card-featured {
    min-height: 180px;
}

.quick-card-compact {
    min-height: 150px;
}

.quick-card:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.quick-card:last-child {
    border-right: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quick-card:hover {
    background: rgba(182, 31, 43, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(31, 20, 17, 0.06);
}

.quick-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
}

.quick-card h3 {
    margin-bottom: 5px;
    font-size: 17px;
}

.quick-card p {
    color: var(--gray);
    font-size: 13px;
}

.arrow {
    color: var(--red);
    font-size: 22px;
}

.section {
    padding: 110px 0;
}

/* Closing "Запазване на час" CTA on department (category.php) pages — much
   shorter content than a regular section, so it gets its own tighter
   padding instead of the site-wide 110px .section default. */
.dept-cta-section {
    padding: 25px 0;
}

/* .detail-hero's own 30px vertical padding (used by the top hero too) was
   stacking on top of this section's padding here, doubling the empty space
   above "Запазване на час" — this section's own padding is already enough. */
.dept-cta-section .detail-hero {
    padding: 0;
}

.section-light {
    background: linear-gradient(180deg, rgba(248, 246, 242, 0.88) 0%, rgba(246, 242, 237, 0.82) 100%);
}

.section-light {
    background: var(--light-gray);
}

.about-editorial {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 80px;
}

/* Span the vision/mission row across both columns */
.about-editorial > .about-vision-mission {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.about-visual {
    position: relative;
}

.about-image-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 28px 28px 160px 28px;
    box-shadow: var(--shadow);
}

.about-image-frame img {
    object-position: center center;
}

.about-quote {
    position: absolute;
    right: -22px;
    bottom: 24px;
    width: 240px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.about-quote span {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.about-quote strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.25;
}

.about-values {
    margin-top: 36px;
    display: grid;
    gap: 18px;
}

.about-values div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.about-values span {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.about-values strong {
    font-size: 16px;
}

/* Vision / Mission toggle – spans full width below both columns */
.about-vision-mission {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: flex-start;
}

.about-vm-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(31,20,17,.15);
    background: transparent;
    color: var(--gray);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}

.about-vm-btn:hover {
    border-color: rgba(237,28,42,.28);
    color: var(--red);
}

.about-vm-btn.is-active {
    border-color: var(--red);
    background: var(--red);
    color: var(--white);
}

.about-vm-panel {
    width: 100%;
    margin-top: 6px;
    padding: 16px 20px;
    border-left: 2px solid var(--red);
    font-size: 15px;
    color: var(--gray);
    line-height: 1.75;
    animation: vmFadeIn .25s ease;
}

@keyframes vmFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Gallery (.gallery-*) — facility photos, own page (/gallery/), grouped by
   department like the Ценоразпис page (same logos, same "is-department"
   larger-heading treatment for the 3 that have one).
   ============================================================ */
.gallery-department {
    margin-bottom: 48px;
}

.gallery-department:last-child {
    margin-bottom: 0;
}

.gallery-department-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.gallery-department-head h3 {
    flex: 0 0 auto;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.15;
    color: var(--charcoal);
}

.gallery-department-head.is-department h3 {
    font-size: clamp(24px, 2.4vw, 30px);
}

.gallery-department-logo {
    flex: 0 0 auto;
    height: 30px;
    width: auto;
}

.gallery-department-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(31, 20, 17, 0.16), transparent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.gallery-before-after {
    margin-top: 32px;
}

.gallery-before-after-head {
    max-width: 640px;
    margin-bottom: 20px;
}

.gallery-before-after-head h4 {
    margin: 6px 0 8px;
    font-family: var(--serif);
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.2;
    color: var(--charcoal);
}

.gallery-before-after-head p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--beige);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(31, 20, 17, 0);
    transition: background 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover::after {
    background: rgba(31, 20, 17, 0.12);
}

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    background: rgba(17, 12, 10, 0.92);
    backdrop-filter: blur(6px);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-image {
    max-width: min(88vw, 1100px);
    max-height: 84vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-lightbox-close {
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 26px;
    line-height: 1;
}

.gallery-lightbox-nav {
    top: 50%;
    width: 52px;
    height: 52px;
    font-size: 30px;
    line-height: 1;
    transform: translateY(-50%);
}

.gallery-lightbox-prev { left: 20px; }
.gallery-lightbox-next { right: 20px; }

@media (max-width: 700px) {
    .gallery-department {
        margin-bottom: 34px;
    }
    .gallery-department-head {
        flex-wrap: wrap;
        row-gap: 6px;
        margin-bottom: 14px;
    }
    .gallery-department-line {
        display: none;
    }
    .gallery-department-logo {
        height: 22px;
    }
    .gallery-department-head h3,
    .gallery-department-head.is-department h3 {
        flex: 1 1 100%;
        font-size: 18px;
    }
    /* .gallery-grid / .gallery-item mobile layout lives in mobile.css
       (horizontal carousel, section 22) so it can load last and win
       cleanly instead of fighting other cascade layers. */
    .gallery-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
    .gallery-lightbox-prev { left: 10px; }
    .gallery-lightbox-next { right: 10px; }
    .gallery-lightbox-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }
}

.experience-badge strong,
.experience-badge span {
    display: block;
}

.experience-badge strong {
    font-size: 22px;
    letter-spacing: 0.1em;
}

.experience-badge span {
    margin-top: 8px;
    font-size: 12px;
}

.section-content h2,
.section-heading h2,
.appointment-content h2,
.technology-section h2 {
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.section-content p {
    margin-top: 22px;
    color: var(--gray);
}

.check-list {
    margin-top: 32px;
    display: grid;
    gap: 14px;
}

.check-list div {
    font-weight: 600;
}

.section-heading {
    margin-bottom: 50px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    max-width: 470px;
    color: var(--gray);
}

.text-link,
.wp-block-button.text-link .wp-block-button__link,
.wp-block-button__link.text-link {
    flex: 0 0 auto;
    color: var(--red);
    font-weight: 700;
}

.wp-block-button.text-link .wp-block-button__link,
.wp-block-button__link.text-link {
    display: inline-flex;
    background: none;
    border: 0;
    padding: 0;
    min-height: 0;
}

.editorial-services {
    display: grid;
    gap: 24px;
    overflow: visible;
}

.service-featured {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 24px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    transition: opacity 0.34s ease;
}

.service-featured.is-transitioning {
    opacity: 0;
}

.service-featured-copy {
    padding: 12px 8px;
}

.service-featured-copy h3 {
    margin-top: 8px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.03;
    font-family: var(--serif);
    font-weight: 600;
}

.service-featured-copy p {
    margin-top: 18px;
    max-width: 620px;
    color: var(--gray);
}

.service-featured-media {
    position: relative;
    min-height: 280px;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 24px;
    background:
        linear-gradient(145deg, rgba(182, 31, 43, 0.14), rgba(182, 31, 43, 0.24)),
        linear-gradient(180deg, #efe7df, #f5f3ef);
    color: var(--red);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.featured-department-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.featured-department-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 20px rgba(31, 20, 17, 0.22);
}

.department-slider {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.department-slider-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.department-slider-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.department-slider-button:hover,
.department-slider-button:focus-visible {
    background: rgba(182, 31, 43, 0.06);
    border-color: rgba(182, 31, 43, 0.24);
    color: var(--red);
    outline: none;
}

.department-slider-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.department-slider-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.department-slider-viewport {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
}

.department-slider-viewport::-webkit-scrollbar {
    display: none;
}

.department-slider-track {
    display: flex;
    gap: 28px;
    width: max-content;
    padding-inline: 2px;
}

.department-slider-track > .service-row {
    flex: 0 0 clamp(280px, 23vw, 340px);
    min-height: 380px;
    max-width: clamp(280px, 23vw, 340px);
    scroll-snap-align: start;
    box-sizing: border-box;
}

.service-row {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: transparent;
    opacity: 1;
    transform: none;
    visibility: visible;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.service-row:hover {
    border-color: rgba(237, 28, 42, 0.35);
}

.service-row .row-number {
    margin-bottom: 18px;
}

.service-row h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.08;
    font-weight: 700;
}

.service-row h3 a {
    color: inherit;
    text-decoration: none;
}

.service-row p {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.service-row .department-card-space {
    flex: 1 0 auto;
    min-height: 120px;
    margin-top: 20px;
    border-top: 1px solid rgba(31, 20, 17, 0.08);
}

.service-row a {
    margin-top: 20px;
    color: var(--red);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .department-slider-track > .service-row {
        flex-basis: clamp(260px, 32vw, 300px);
        min-height: 360px;
        max-width: clamp(260px, 32vw, 300px);
    }
}

@media (max-width: 900px) {
    .nav-mega-menu {
        top: 84px;
        max-height: calc(100vh - 100px);
    }

    .nav-mega-menu-inner {
        grid-template-columns: 1fr;
    }

    .nav-mega-menu-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(31, 20, 17, 0.08);
    }

    .nav-mega-menu-preview-column {
        border-left: 0;
        border-top: 1px solid rgba(31, 20, 17, 0.08);
    }

    .nav-mega-menu-list-scroll {
        max-height: min(42vh, 320px);
    }

    .nav-mega-preview {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .department-slider-controls {
        display: none;
    }

    .department-slider-track {
        gap: 18px;
        padding-inline: 0 18px;
    }

    .department-slider-track > .service-row {
        flex-basis: min(82vw, 320px);
        min-height: 340px;
        max-width: min(82vw, 320px);
        padding: 22px 0;
    }

    .nav-mega-menu {
        top: 82px;
        width: min(100vw - 16px, 760px);
        max-height: calc(100vh - 92px);
        border-radius: 24px;
    }

    .nav-mega-menu-list-head {
        padding: 16px 16px 10px;
    }

    .nav-mega-menu-list-scroll {
        padding: 10px 12px 10px 16px;
        max-height: min(44vh, 340px);
    }

    .nav-mega-preview {
        padding: 18px;
    }

    .nav-preview-links {
        flex-direction: column;
    }

    .nav-preview-link {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .department-slider-viewport {
        scroll-behavior: auto;
    }

    .department-slider-button {
        transition: none;
    }
}

.row-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.service-row h3 {
    margin-top: 16px;
    font-size: 22px;
    line-height: 1.15;
    font-family: var(--serif);
    font-weight: 700;
}

.service-row p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
}

.service-card:hover {
    border-color: rgba(182, 31, 43, 0.28);
    box-shadow: 0 18px 38px rgba(31, 20, 17, 0.08);
    transform: translateY(-6px);
}

.service-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--light-red);
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.service-card h3 {
    margin-top: 28px;
    font-size: 23px;
    line-height: 1.2;
    font-family: var(--serif);
    font-weight: 600;
}

.service-card p {
    margin-top: 14px;
    color: var(--gray);
    font-size: 14px;
}

.service-card a {
    margin-top: auto;
    padding-top: 25px;
    color: var(--red);
    font-weight: 700;
}

.highlighted-service {
    justify-content: space-between;
    background: var(--red);
    color: var(--white);
}

.highlighted-service:hover {
    border-color: var(--red);
}

.service-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

.highlighted-service h3 {
    font-size: 28px;
}

.highlighted-service .white-link {
    color: var(--white);
}

.department-navigation-shell {
    margin: 22px 0 60px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.department-nav {
    position: sticky;
    top: 84px;
    z-index: 8;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(31, 20, 17, 0.08);
    backdrop-filter: blur(8px);
}

.department-nav::-webkit-scrollbar {
    display: none;
}

.department-nav-item {
    flex: 1 1 220px;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0 18px 0;
    border-top: 1px solid rgba(31, 20, 17, 0.06);
    border-right: 1px solid rgba(31, 20, 17, 0.06);
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.department-nav-item:nth-child(2n) {
    border-right: 0;
}

.department-nav-item:hover,
.department-nav-item:focus-visible {
    color: var(--red);
    transform: translateY(-1px);
}

.department-nav-item.is-active {
    position: relative;
    color: var(--red);
    background: rgba(237, 28, 42, 0.03);
}

.department-nav-item.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--red);
}

.department-nav-number {
    display: inline-flex;
    align-items: center;
    min-width: 34px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.department-nav-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.department-nav-copy strong {
    font-size: 17px;
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.18;
}

.department-nav-copy small {
    color: var(--gray);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.department-nav-item.is-active .department-nav-copy small {
    color: rgba(159, 29, 32, 0.82);
}

.investigation-picker-section {
    padding-top: 56px;
    padding-bottom: 56px;
}

.investigation-intro {
    max-width: 720px;
    margin: 0 auto 32px;
    text-align: center;
}

.investigation-intro h2 {
    margin-top: 8px;
    font-size: clamp(34px, 3.2vw, 46px);
    line-height: 1.08;
    font-family: var(--serif);
    font-weight: 600;
}

.investigation-intro p {
    margin-top: 12px;
    color: var(--gray);
    font-size: 16px;
}

.investigation-toolbar {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 24px 28px;
    border: 1px solid rgba(31, 20, 17, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
}

.investigation-search-shell {
    position: relative;
    display: flex;
    align-items: center;
    width: min(100%, 520px);
    margin: 0 auto 24px;
    padding: 0 16px;
    border: 1px solid rgba(31, 20, 17, 0.12);
    border-radius: 999px;
    background: var(--white);
}

.investigation-search-shell input {
    width: 100%;
    min-height: 56px;
    padding: 0 44px 0 42px;
    border: 0;
    background: transparent;
    color: var(--charcoal);
    font-size: 15px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.investigation-search-shell input::placeholder {
    color: #8b817c;
}

.investigation-search-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--gray);
}

.investigation-clear-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
    padding: 0 6px;
}

.investigation-clear-button.is-visible {
    display: inline-flex;
}

.investigation-category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.investigation-category-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(31, 20, 17, 0.12);
    border-radius: 999px;
    background: var(--white);
    color: var(--charcoal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.investigation-category-pill:hover,
.investigation-category-pill:focus-visible {
    border-color: rgba(237, 28, 42, 0.24);
    color: var(--red);
    transform: translateY(-1px);
}

.investigation-category-pill.is-active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.investigation-empty-state {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 22px 24px;
    border: 1px dashed rgba(31, 20, 17, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray);
    text-align: center;
}

.department-section {
    margin-top: 18px;
    padding: 52px 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    scroll-margin-top: 160px;
}

.department-section.alt {
    background: #fbfaf8;
}

.department-header {
    margin-bottom: 26px;
}

.department-header h3 {
    margin-bottom: 12px;
    font-size: clamp(34px, 3.1vw, 44px);
    line-height: 1.06;
    font-family: var(--serif);
    font-weight: 600;
}

.department-intro {
    max-width: 760px;
    color: var(--gray);
}

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

.department-grid-hero {
    grid-template-columns: repeat(2, 1fr);
}

.department-grid-compact {
    grid-template-columns: repeat(3, 1fr);
}

.department-grid-single {
    grid-template-columns: 1fr;
}

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

.doctor-directory-controls {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 18px;
}

.doctor-search-box input,
.doctor-filter-box select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doctor-search-box input:focus,
.doctor-filter-box select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(182, 31, 43, 0.08);
}

.results-count {
    margin-bottom: 26px;
    color: var(--gray);
    font-size: 13px;
    font-weight: 700;
}

.editorial-doctors {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* One uniform card: fixed-ratio photo on top, name + bio + link beneath.
   grid rows "auto 1fr" + the grid's align-items:stretch keep every card the
   same height regardless of bio length. */
.editorial-doctor {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
}

.editorial-doctor-photo {
    aspect-ratio: 3 / 4;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(182, 31, 43, 0.08), rgba(182, 31, 43, 0.2)),
        linear-gradient(180deg, #efe7df, #f8f5f0);
    color: var(--red);
    font-weight: 800;
}

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

/* Initials-avatar fallback (doctor without a portrait) fills the tile edge to
   edge, so a photo-less card reads the same size as its neighbours. */
.editorial-doctor-photo .dp-photo-initials {
    align-self: stretch;
    justify-self: stretch;
}

.editorial-doctor-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.editorial-doctor-copy h3 {
    width: 100%;
    margin-top: 10px;
    font-size: 22px;
    font-family: var(--serif);
    font-weight: 600;
}

/* Clamp every bio to the same 3 lines so the text block — and therefore the
   name/link positions — line up across all four cards. */
.editorial-doctor-copy p {
    width: 100%;
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    min-height: calc(1.6em * 3);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.editorial-doctor-copy .text-link {
    margin-top: auto;
    padding-top: 18px;
}

@media (max-width: 1024px) {
    .editorial-doctors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.doctor-card:hover {
    box-shadow: 0 18px 40px rgba(31, 20, 17, 0.08);
    transform: translateY(-6px);
    border-color: rgba(182, 31, 43, 0.26);
}

.doctor-photo {
    min-height: 380px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(182, 31, 43, 0.08), rgba(182, 31, 43, 0.18)),
        linear-gradient(180deg, #f4efe9, #f7f4ef);
    color: var(--red);
    font-weight: 700;
}

.doctor-info {
    padding: 26px;
}

.doctor-specialty {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doctor-info h3 {
    margin-top: 10px;
    font-size: 24px;
    font-family: var(--serif);
    font-weight: 600;
}

.doctor-info p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
}

.doctor-info a,
.doctor-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--red);
    font-weight: 700;
}

.overview-hero {
    margin-top: 18px;
    padding: 0 0 8px;
}

.overview-intro {
    max-width: 760px;
    margin-bottom: 28px;
}

.overview-intro-copy {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.overview-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(31, 20, 17, 0.04);
}

.overview-card:hover {
    border-color: rgba(237, 28, 42, 0.24);
    box-shadow: 0 16px 36px rgba(31, 20, 17, 0.06);
    transform: translateY(-4px);
}

.overview-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.overview-card-number {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.overview-card-label {
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.overview-card h3 {
    font-size: 26px;
    line-height: 1.16;
    font-family: var(--serif);
    font-weight: 600;
}

.overview-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.75;
}

.overview-card-list {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--charcoal);
    font-size: 14px;
}

.overview-card-list li {
    position: relative;
    padding-left: 16px;
}

.overview-card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--red);
}

.overview-card .text-link {
    margin-top: auto;
}

.detail-hero {
    padding: 30px 0;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: stretch;
}

.detail-hero-copy h1 {
    margin-top: 8px;
    font-family: var(--serif);
    font-size: clamp(36px, 3.2vw, 50px);
    line-height: 1.05;
}

.detail-hero-copy p {
    margin-top: 14px;
    max-width: 680px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

.detail-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.detail-hero-panel {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.detail-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(237, 28, 42, 0.08);
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Native Group blocks wrap their content in an extra
   .wp-block-group__inner-container div. Make it transparent to layout so
   CSS grid/flex containers built from Group blocks still apply directly to
   their card/column children instead of to that one wrapper. */
.dental-feature-grid > .wp-block-group__inner-container,
.dental-services-grid > .wp-block-group__inner-container,
.dental-diagnostics-grid > .wp-block-group__inner-container,
.section-heading > .wp-block-group__inner-container {
    display: contents;
}

.detail-stat {
    padding-top: 5px;
    border-top: 1px solid rgba(31, 20, 17, 0.08);
}

.detail-stat strong {
    display: block;
    font-size: 16px;
    color: var(--charcoal);
}

.detail-stat span {
    color: var(--gray);
    font-size: 13px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.detail-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-card:hover {
    border-color: rgba(237, 28, 42, 0.18);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.detail-card h3 {
    font-size: 24px;
    font-family: var(--serif);
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.detail-list {
    list-style: none;
    display: grid;
    gap: 4px;
    margin-top: 18px;
}

.detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(31, 20, 17, 0.08);
    color: var(--charcoal);
    font-weight: 600;
    line-height: 1.5;
}

.detail-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-list-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--red);
}

.detail-list-desc {
    display: block;
    margin-top: 3px;
    color: var(--gray);
    font-weight: 400;
    font-size: 13.5px;
    line-height: 1.6;
}

.detail-cta {
    padding: 28px;
    border: 1px solid rgba(237, 28, 42, 0.16);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(237, 28, 42, 0.08), rgba(252, 250, 246, 0.95));
}

.detail-cta h3 {
    font-family: var(--serif);
    font-size: 28px;
    margin-bottom: 10px;
}

.detail-cta p {
    color: var(--gray);
    max-width: 640px;
}

/* Single-specialist department page (a department with exactly one doctor
   assigned renders their bio directly instead of a roster grid). */
.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, 0.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;
}

.doctor-specializations {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.doctor-specializations li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 2px 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--charcoal);
    border-bottom: none;
}

.doctor-specializations 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, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.ns-price .label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.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;
    }
}

.technology-section {
    padding: 110px 0;
    background: linear-gradient(135deg, #191615 0%, #241f1d 100%);
    color: var(--white);
}

.technology-immersive {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: stretch;
}

.technology-media {
    min-height: 520px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.technology-index {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow-light {
    color: #e9929a;
}

.technology-section p {
    max-width: 620px;
    margin: 25px 0 34px;
    color: rgba(255, 255, 255, 0.68);
}

.button-white,
.wp-block-button.button-white .wp-block-button__link {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark);
}

.button-white:hover,
.wp-block-button.button-white .wp-block-button__link:hover {
    background: var(--light-red);
    color: var(--red);
}

.technology-list {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.technology-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    text-align: left;
    cursor: pointer;
}

.technology-item strong {
    font-size: 21px;
}

.technology-item span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.technology-item.is-active {
    color: var(--white);
}

.technology-summary {
    margin: 26px 0 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.technology-summary strong {
    display: block;
    color: #f5a5ac;
    font-size: 24px;
}

.technology-summary p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
}

.appointment-panel {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 56px;
    align-items: start;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
}

.appointment-intro p {
    margin-top: 18px;
    color: var(--gray);
}

.contact-details {
    margin-top: 32px;
    display: grid;
    gap: 18px;
}

.contact-details div {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.contact-details span,
.contact-details strong {
    display: block;
}

.contact-details span {
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
}

.contact-details strong {
    margin-top: 5px;
    font-size: 18px;
}

.appointment-partners {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.appointment-partners-label {
    display: block;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.appointment-partners-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 28px;
}

.appointment-partners-logos img {
    height: 30px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
}

.appointment-partners-note {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--gray);
}

.appointment-form {
    padding: 36px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 16px 50px rgba(31, 20, 17, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(182, 31, 43, 0.08);
}

.privacy {
    color: var(--gray);
    font-size: 12px;
}

/* CF7's [acceptance] tag renders its own <label> wrapping the checkbox +
   text (nesting our own <label> around it would be invalid HTML), so the
   flex layout that used to sit on .privacy itself is recreated on that
   inner label instead — same look either way. */
/* Grid instead of flex here on purpose: a flex child's text only wraps
   correctly once min-width:0 overrides its default min-width:auto, and
   that specific resolution has been inconsistent across engines on real
   devices. A fixed auto/1fr grid track makes the text column's available
   width unambiguous — the checkbox never shrinks, the text always wraps
   to whatever's left — without depending on that flex edge case at all. */
.privacy label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.privacy .wpcf7-list-item-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.privacy .wpcf7-list-item {
    margin: 0;
}

.privacy input {
    margin-top: 4px;
    accent-color: var(--red);
}

.form-button {
    width: 100%;
    margin-top: 24px;
    border: 0;
}

.form-message {
    min-height: 24px;
    margin-top: 14px;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* Contact Form 7 — inline validation tips + the AJAX response banner that
   replaces the old ?sent=1 redirect + hardcoded thank-you message. */
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
}

.wpcf7-response-output {
    margin: 18px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    border: 1px solid rgba(46, 139, 87, 0.3);
    background: rgba(46, 139, 87, 0.08);
    color: #2e8b57;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-acceptance-missing {
    border: 1px solid rgba(182, 31, 43, 0.25);
    background: rgba(182, 31, 43, 0.06);
    color: var(--red);
}

.wpcf7-spinner {
    margin: 0 0 0 10px;
}

/* Small on-page toast — currently used only for the physio-booking handoff
   (assets/js/site.js), written generically enough to reuse elsewhere. */
.etica-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 999;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--dark);
    color: var(--white);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: var(--shadow);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.etica-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.locations-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3.2vw, 32px);
    align-items: start;
}

.location-info-panel,
.location-map-card {
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid rgba(31, 20, 17, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
}

.location-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-panel-title {
    font-family: var(--serif);
    font-size: clamp(28px, 2.4vw, 36px);
    line-height: 1.08;
    color: var(--charcoal);
}

.location-panel-copy {
    max-width: 560px;
    color: var(--gray);
    font-size: 15px;
}

.location-meta-list {
    display: grid;
    gap: 14px;
    padding-top: 6px;
}

.location-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(31, 20, 17, 0.08);
}

.location-meta-item span {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.location-meta-item strong {
    font-size: 16px;
    color: var(--charcoal);
    font-weight: 600;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.location-action-button {
    justify-content: center;
    min-width: 0;
}

.location-number {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.location-map-panel {
    display: flex;
}

.location-map-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    min-height: 100%;
}

.location-map-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location-map-label span {
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.location-map-label strong {
    font-size: 18px;
    color: var(--charcoal);
}

.location-map-placeholder {
    position: relative;
    min-height: 320px;
    border-radius: 22px;
    border: 1px solid rgba(31, 20, 17, 0.1);
    background:
        linear-gradient(135deg, rgba(237, 28, 42, 0.08), transparent 65%),
        linear-gradient(90deg, rgba(31, 20, 17, 0.04), rgba(31, 20, 17, 0.01));
    overflow: hidden;
}

.location-map-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(31, 20, 17, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(31, 20, 17, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.45;
}

/* Real Google Map fills the placeholder box; the ::before grid pattern and
   this element simply sit underneath it until the API script paints in,
   so nothing looks broken if the script is slow or blocked. */
.location-map-gmap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.location-map-placeholder-inner {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 1;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(252, 251, 248, 0.92);
    border: 1px solid rgba(31, 20, 17, 0.08);
}

.location-map-placeholder-inner span {
    display: block;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.location-map-placeholder-inner strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    color: var(--charcoal);
}

.location-map-placeholder-inner p {
    margin-top: 6px;
    color: var(--gray);
    font-size: 13px;
}

.location-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(237, 28, 42, 0.18);
    border-radius: 999px;
    background: rgba(237, 28, 42, 0.05);
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.location-map-link:hover,
.location-map-link:focus-visible {
    background: rgba(237, 28, 42, 0.1);
    border-color: rgba(237, 28, 42, 0.28);
}

/* Locations page — every location shown at once, each its own card with its
   own live map, so there's no switcher to keep in sync. */
.location-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.location-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(31, 20, 17, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.location-card-map {
    position: relative;
    height: 220px;
    background: rgba(31, 20, 17, 0.04);
}

.location-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 22px clamp(20px, 2.4vw, 28px) 26px;
}

.location-card-body h3 {
    margin: 2px 0 0;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.15;
    color: var(--charcoal);
}

.location-card-address {
    color: var(--charcoal);
    font-size: 14.5px;
    font-weight: 600;
}

.location-card-hours {
    color: var(--gray);
    font-size: 13px;
}

.location-card-body .location-map-link {
    margin-top: auto;
}

@media (max-width: 920px) {
    .locations-editorial {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .location-info-panel,
    .location-map-card {
        padding: 22px;
        border-radius: 24px;
    }

    .location-actions {
        flex-direction: column;
    }

    .location-action-button {
        width: 100%;
    }

    .location-map-placeholder {
        min-height: 300px;
    }
}

/* ============================================================
   Ценоразпис (.pricelist-*)
   source: pricelist.html — same data + search behaviour, re-skinned to the
   theme's own tokens instead of Tailwind. The search/category toolbar
   reuses .investigation-search-shell / .investigation-category-pill as-is.
   ============================================================ */
.pricelist-hero {
    padding-bottom: 40px;
}

.pricelist-subtitle {
    max-width: 560px;
    margin-top: 14px;
    color: var(--gray);
    font-size: 16px;
}

.pricelist-toolbar-wrap {
    position: sticky;
    top: 84px;
    z-index: 15;
    padding: 18px 0;
    background: rgba(250, 246, 239, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(31, 20, 17, 0.08);
    transition: transform 0.25s ease;
}

/* Scrolling down tucks the bar away above the header (freeing screen space
   on this long page); scrolling back up brings it straight back. Desktop
   only, per the ask — mobile.css force-disables [data-reveal]'s transform
   entirely (touch devices don't reliably trigger it), so this doesn't fight
   that rule below 1024px. !important is needed even on desktop: this class
   and [data-reveal].is-visible (translateY(0), further down this file) tie
   on specificity, and that rule would otherwise win by source order. */
@media (min-width: 1025px) {
    .pricelist-toolbar-wrap.is-tucked {
        transform: translateY(-130%) !important;
    }
}

/* Category nav — 11 pills don't fit one row, so on desktop this is a
   horizontal slider with arrows instead of wrapping onto several rows
   (mobile already scrolls by touch via .investigation-category-list's own
   ≤700px rule, so the arrows here are desktop-only). */
.pricelist-nav-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricelist-nav-track {
    flex: 1;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.pricelist-nav-track::-webkit-scrollbar {
    display: none;
}

.pricelist-nav-track .investigation-category-pill {
    flex: 0 0 auto;
}

.pricelist-nav-btn {
    flex: 0 0 auto;
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(182, 31, 43, 0.28);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    box-shadow: 0 6px 16px rgba(31, 20, 17, 0.1);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.pricelist-nav-prev {
    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");
}

.pricelist-nav-next {
    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");
}

.pricelist-nav-btn:hover:not(:disabled) {
    background-color: var(--red);
    border-color: var(--red);
}

.pricelist-nav-prev: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");
}

.pricelist-nav-next: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");
}

.pricelist-nav-btn:disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

@media (max-width: 700px) {
    .pricelist-nav-btn {
        display: none;
    }
}

.pricelist-empty {
    display: none;
    padding: 40px 0;
    color: var(--gray);
    text-align: center;
}

.pricelist-empty.is-visible {
    display: block;
}

.pricelist-category {
    margin-bottom: 56px;
    scroll-margin-top: 150px;
}

.pricelist-category:last-child {
    margin-bottom: 0;
}

.pricelist-category.is-hidden {
    display: none;
}

.pricelist-category-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pricelist-category-index {
    flex: 0 0 auto;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.pricelist-category-head h2 {
    flex: 0 0 auto;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.15;
    color: var(--charcoal);
}

.pricelist-category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(31, 20, 17, 0.16), transparent);
}

.pricelist-category-arrow {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-left: 2px;
    border-right: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.pricelist-category.is-open .pricelist-category-arrow {
    transform: rotate(-135deg);
}

/* Departments (Физиотерапия, Дентална медицина, Дерматология) — these are
   whole in-house clinics, not a single specialty, so they carry their own
   logo and a visibly larger name to stand apart from the plain specialties
   around them. */
.pricelist-category-head.is-department {
    gap: 18px;
    padding: 6px 0;
}

.pricelist-category-head.is-department h2 {
    font-size: clamp(26px, 2.7vw, 34px);
}

.pricelist-category-logo {
    flex: 0 0 auto;
    height: 34px;
    width: auto;
}

/* Accordion panel — collapsed to only the specialty name by default; the
   0fr → 1fr grid trick animates to the real content height on open,
   whatever it happens to be (same pattern as the mobile nav accordion). */
.pricelist-category-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.pricelist-category.is-open .pricelist-category-panel {
    grid-template-rows: 1fr;
}

.pricelist-category-panel-inner {
    min-height: 0;
    overflow: hidden;
}

.pricelist-category.is-open .pricelist-category-panel-inner {
    padding-top: 24px;
}

.pricelist-doctors {
    display: grid;
    gap: 20px;
}

.pricelist-doctor {
    padding: 26px 28px;
    border: 1px solid rgba(31, 20, 17, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
}

.pricelist-doctor.is-hidden {
    display: none;
}

.pricelist-doctor h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.2;
    color: var(--charcoal);
}

.pricelist-doctor h3::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
}

.pricelist-services {
    display: grid;
}

.pricelist-service {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(31, 20, 17, 0.06);
    transition: opacity 0.15s ease;
}

.pricelist-service:last-child {
    border-bottom: 0;
}

.pricelist-service.is-hidden {
    display: none;
}

.pricelist-service-name {
    color: var(--charcoal);
    font-size: 14.5px;
    transition: font-weight 0.15s ease;
}

.pricelist-service:hover .pricelist-service-name {
    font-weight: 700;
}

.pricelist-service-leader {
    flex: 1;
    align-self: flex-end;
    height: 0;
    margin-bottom: 4px;
    border-bottom: 1px dotted rgba(31, 20, 17, 0.28);
}

.pricelist-service-price {
    flex: 0 0 auto;
    color: var(--charcoal);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pricelist-service-price .cur {
    margin-left: 3px;
    color: var(--gray);
    font-size: 11px;
    font-weight: 500;
}

.pricelist-footnote-section {
    padding-top: 0;
}

.pricelist-footnote {
    color: var(--gray);
    font-size: 13px;
}

.pricelist-footnote + .pricelist-footnote {
    margin-top: 4px;
}

@media (max-width: 860px) {
    .pricelist-toolbar-wrap {
        top: 64px;
    }
    .pricelist-doctor {
        padding: 22px 20px;
    }
    .pricelist-category {
        scroll-margin-top: 120px;
    }
}

.footer {
    padding: 78px 0 28px;
    background: #111111;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.footer-logo .logo-text small {
    color: rgba(255, 255, 255, 0.55);
}

.footer-description {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.footer h3 {
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-grid a,
.footer-grid span {
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

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

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Physiotherapy flagship page */
.physio-hero {
    padding-top: 90px;
}

.physio-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 42px;
    align-items: center;
}

.physio-hero-copy h1 {
    max-width: 720px;
    font-family: var(--serif);
    font-size: clamp(46px, 4.8vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.physio-hero-copy p {
    max-width: 610px;
    margin-top: 22px;
    color: var(--gray);
    font-size: 17px;
    line-height: 1.8;
}

.physio-hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.physio-hero-meta div {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.physio-hero-meta strong {
    display: block;
    color: var(--charcoal);
    font-size: 15px;
    line-height: 1.3;
}

.physio-hero-meta span {
    display: block;
    color: var(--gray);
    font-size: 13px;
    margin-top: 4px;
}

.physio-hero-media {
    position: relative;
    height: clamp(400px, 50vw, 560px);
    overflow: hidden;
    border-radius: 30px 180px 30px 180px;
    border: 1px solid rgba(31, 20, 17, 0.08);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.physio-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: relative;
    z-index: 1;
}
.physio-hero-media video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}
@media (max-width: 768px){
    .physio-hero-media{
        height: clamp(260px, 60vw, 360px);
        border-radius: 24px;
    }
}
.physio-hero-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 20, 17, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(31, 20, 17, 0.09);
}

.physio-hero-badge strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    line-height: 1.25;
}

.physio-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.physio-feature-card,
.physio-therapy-card,
.physio-specialist-card,
.physio-condition-card,
.physio-condition-detail,
.physio-results-shell,
.physio-gallery-shell,
.physio-journey,
.physio-cta {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
}

.physio-feature-card {
    padding: 28px;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.physio-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 28, 42, 0.24);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(237, 28, 42, 0.08);
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.physio-feature-card h3 {
    margin-top: 18px;
    font-size: 22px;
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.18;
}

.physio-feature-card p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.75;
}

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

.physio-condition-card {
    padding: 22px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.physio-condition-card:hover,
.physio-condition-card.is-active {
    border-color: rgba(237, 28, 42, 0.24);
    background: rgba(237, 28, 42, 0.05);
    transform: translateY(-2px);
}

.physio-condition-card span {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.physio-condition-card strong {
    display: block;
    font-size: 18px;
    line-height: 1.3;
}

.physio-condition-detail {
    margin-top: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 240, 233, 0.94));
}

.physio-condition-detail-copy h3 {
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.physio-condition-detail-copy p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.physio-condition-detail-copy ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: var(--charcoal);
    font-size: 14px;
}

.physio-condition-detail-copy li {
    position: relative;
    padding-left: 16px;
}

.physio-condition-detail-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

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

.physio-therapy-card {
    padding: 24px;
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.physio-therapy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 28, 42, 0.24);
}

.physio-therapy-card h3 {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.12;
}

.physio-therapy-card p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.75;
}

.physio-gallery-shell {
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 236, 0.95));
}

.physio-gallery-copy {
    max-width: 720px;
    margin-bottom: 24px;
}

.physio-gallery-copy h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.06;
    margin-bottom: 10px;
}

.physio-gallery-copy p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.physio-gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.physio-gallery-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
}

.physio-gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.physio-gallery-card div {
    padding: 22px 24px 24px;
}

.physio-gallery-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.16;
}

.physio-gallery-card p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.75;
}

.physio-gallery-card.wide-card {
    grid-column: 1 / -1;
}

.physio-gallery-card.wide-card img {
    height: 320px;
}

/* 2-row horizontal specialist slider */
.physio-specialists-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.physio-specialists-track {
    flex: 1;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-auto-flow: column;
    grid-auto-columns: clamp(220px, 26vw, 300px);
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.physio-specialists-track::-webkit-scrollbar { display: none; }

.physio-slider-btn {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.9);
    color: var(--charcoal);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
    z-index: 2;
}

.physio-slider-btn:hover:not(:disabled) {
    border-color: var(--red);
    color: var(--red);
}

.physio-slider-btn:disabled {
    opacity: .3;
    cursor: default;
}

/* The block markup ships #physioSliderPrev/#physioSliderNext empty — both
   share the .physio-slider-btn class, so the chevrons are drawn here per id. */
#physioSliderPrev,
#physioSliderNext {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}
#physioSliderPrev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231d1b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}
#physioSliderNext {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231d1b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}
#physioSliderPrev: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='%23ed1c2a' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
}
#physioSliderNext: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='%23ed1c2a' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

.physio-initials-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--beige);
    color: var(--red);
    font-size: 48px;
    font-weight: 800;
}

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

.physio-specialist-card {
    scroll-snap-align: start;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.physio-specialist-card:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 28, 42, 0.24);
}

.physio-specialist-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.physio-specialist-card div {
    padding: 22px 24px 24px;
}

.physio-specialist-card h3 {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.14;
}

.physio-specialist-card p {
    margin-top: 8px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.75;
}

/* "Виж профил →" — matches the gold of the Etuka wordmark, dark text for contrast. */
.physio-specialist-card .wp-block-button__link {
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
}

.physio-specialist-card .wp-block-button__link:hover {
    background: var(--gold-dark);
    opacity: 1;
}

.physio-journey {
    padding: 30px;
}

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

.bs-journey {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.bs-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

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

.detail-grid.bs-program-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bs-program-card {
    display: flex;
    flex-direction: column;
}

.bs-program-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(237, 28, 42, 0.08);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.bs-result-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
}

.bs-result-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.bs-result-placeholder {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: repeating-linear-gradient(45deg, rgba(31, 20, 17, 0.03), rgba(31, 20, 17, 0.03) 10px, rgba(31, 20, 17, 0.06) 10px, rgba(31, 20, 17, 0.06) 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bs-result-placeholder span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray);
}

.bs-result-photo {
    aspect-ratio: 3 / 4;
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.bs-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--gray);
}

.tech-showcase-media {
    width: 100%;
    height: 380px;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 22px;
}

.tech-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-showcase-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.tech-showcase-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tech-showcase-tab strong {
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
}

.tech-showcase-tab span {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.tech-showcase-tab.is-active {
    border-color: var(--red);
    background: rgba(237, 28, 42, 0.06);
}

.tech-showcase-info h3 {
    font-family: var(--serif);
    font-size: 26px;
    margin-bottom: 10px;
}

.tech-showcase-info p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
    max-width: 760px;
}

.interactive-picker {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
}

.interactive-picker-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.interactive-picker-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--white);
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.interactive-picker-item strong {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.interactive-picker-item span {
    font-size: 17px;
    font-weight: 600;
}

.interactive-picker-item.is-active {
    border-color: var(--red);
    background: rgba(237, 28, 42, 0.06);
}

.interactive-picker-panel {
    padding: 20px;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--border);
}

.interactive-picker-panel img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: rgba(31, 20, 17, 0.03);
    border-radius: 14px;
    margin-bottom: 20px;
}

/* The body-sculpting tech photos are wide room shots with the device off to
   one side — boxed into the shared 320px-tall panel above, it shrinks small
   enough that the device is hard to make out. Sized like visbody-report.jpg
   elsewhere on the site instead: full width, natural/auto height, nothing
   cropped or shrunk into a fixed box. */
#bsTechImage {
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: rgba(31, 20, 17, 0.03);
}

.interactive-picker-panel h3 {
    font-family: var(--serif);
    font-size: 24px;
    margin-bottom: 10px;
}

.interactive-picker-panel p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

.interactive-picker-panel ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.interactive-picker-panel ul a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

.interactive-picker-panel ul a:hover {
    text-decoration: underline;
}

.interactive-picker-accordion {
    display: none;
}

.journey-step {
    padding: 22px 18px;
    border-top: 1px solid var(--border);
}

.journey-step span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.journey-step strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.journey-step p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.7;
}

.physio-results-shell {
    padding: 34px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 237, 229, 0.94));
}

.physio-results-copy h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.06;
    margin-bottom: 12px;
}

.physio-results-copy p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

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

.physio-stat {
    padding: 22px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
}

.physio-stat strong {
    display: block;
    color: var(--red);
    font-size: 32px;
    line-height: 1.05;
}

.physio-stat span {
    display: block;
    margin-top: 8px;
    color: var(--gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 0;
    color: var(--charcoal);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.faq-question span {
    color: var(--red);
    font-size: 20px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 120px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.75;
}

.physio-cta {
    padding: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 237, 229, 0.94));
}

.therapy-categories {
    display: grid;
    gap: 24px;
}

.therapy-category {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
}

.therapy-category-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.therapy-category-header h3 {
    margin-top: 8px;
    font-family: var(--serif);
    font-size: clamp(24px, 2.1vw, 30px);
    line-height: 1.1;
}

.therapy-category-header p {
    max-width: 420px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.75;
}

.therapy-rail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.therapy-rail-nav {
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--charcoal);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.therapy-rail-nav:hover,
.therapy-rail-nav:focus-visible {
    border-color: rgba(237, 28, 42, 0.22);
    transform: translateY(-1px);
}

.therapy-rail-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.therapy-rail-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.therapy-rail-track::-webkit-scrollbar {
    display: none;
}

.therapy-card {
    flex: 0 0 min(100%, 290px);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(247, 240, 233, 0.9));
    scroll-snap-align: start;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.therapy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(237, 28, 42, 0.22);
}

.therapy-card-featured {
    min-height: 244px;
    border-color: rgba(237, 28, 42, 0.16);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(252, 237, 239, 0.85));
}

.therapy-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(237, 28, 42, 0.08);
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.therapy-card h4 {
    margin-top: 14px;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.15;
}

.therapy-card p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.75;
}

.therapy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Service flip-cards (photo front, description + price on hover/tap back) — used on /massage/. */
.massage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 8px;
}

.massage-card {
    perspective: 1400px;
    height: 380px;
}

.massage-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 20px 80px 20px 80px;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.12);
}

.massage-card:hover .massage-card-inner,
.massage-card.is-flipped .massage-card-inner {
    transform: rotateY(180deg);
}

.massage-card-front,
.massage-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
}

.massage-card-front {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.massage-card-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 15, 12, 0.75), rgba(20, 15, 12, 0) 58%);
}

.massage-card-front h3 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: var(--serif);
    font-size: 23px;
    line-height: 1.2;
    margin: 0;
}

.massage-card-front .massage-tap-hint {
    position: absolute;
    z-index: 1;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.massage-card-back {
    background: var(--beige);
    transform: rotateY(180deg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.massage-card-back h3 {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 4px;
}

.massage-card-desc p {
    margin: 0 0 8px;
    color: var(--gray);
    font-size: 13.5px;
    line-height: 1.6;
}

.massage-card-price {
    font-weight: 800;
    color: var(--dark);
    margin: 2px 0 14px;
    font-size: 14px;
}

.massage-card-back .button {
    align-self: flex-start;
}

.therapy-link span {
    font-size: 16px;
}

.therapy-link:hover {
    opacity: 0.92;
}

.therapy-detail-shell {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--gray);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--red);
}

.detail-hero {
    padding: 28px 0 8px;
}

.detail-hero h1 {
    font-family: var(--serif);
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1.03;
    margin-top: 10px;
}

.detail-hero p {
    margin-top: 14px;
    max-width: 680px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.detail-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
}

.detail-card h2 {
    font-family: var(--serif);
    font-size: 24px;
    margin-bottom: 12px;
}

.detail-card p,
.detail-card li {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.detail-card ul {
    margin-top: 14px;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

/* Направления service/detail cards ("УСЛУГИ И ЛЕЧЕНИЕ" and any other
   .detail-card grid on a category.php page) must always read left-to-right,
   whatever the cause of a right-aligned rendering — explicit + !important
   so nothing overrides it. */
.detail-card,
.detail-card h2,
.detail-card h3,
.detail-card p,
.detail-card .eyebrow,
.detail-card ul,
.detail-card li,
.detail-card .text-link,
.detail-list,
.detail-list li {
    text-align: left !important;
}

.detail-card .text-link {
    display: block;
    margin-top: 18px;
}

.detail-cta {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 237, 229, 0.94));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.detail-cta h2 {
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.1;
}

.dental-hero {
    padding: 8px 0 14px;
}

.dental-hero-panel {
    display: grid;
    gap: 12px;
}

.dental-feature-grid,
.dental-services-grid,
.dental-diagnostics-grid,
.dental-specialists-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dental-card {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: linear-gradient(160deg, #ffffff 0%, #fbf2f4 100%);
    border-color: rgba(114, 43, 71, 0.12);
}

.dental-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #722B47, var(--gold));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.dental-card:hover {
    border-color: rgba(114, 43, 71, 0.28);
    box-shadow: 0 20px 46px rgba(114, 43, 71, 0.14);
}

.dental-card:hover::before {
    opacity: 1;
}

.dental-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #722B47, #944064);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.dental-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.16;
    margin-bottom: 10px;
}

.dental-card h3 a {
    transition: color 0.2s ease;
}

.dental-card:hover h3 a {
    color: #722B47;
}

.dental-card .text-link {
    color: #722B47;
}

/* The "why choose us" feature grid is the very first content block on the
   page (right under the hero) — plain .detail-card/.detail-chip elsewhere
   stay generic red/white, but scoped like this these four get the same
   bordo/gold dental treatment as everything else on this page. */
.dental-feature-grid .detail-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #ffffff 0%, #fbf2f4 100%);
    border-color: rgba(114, 43, 71, 0.12);
}

.dental-feature-grid .detail-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #722B47, var(--gold));
    opacity: 0;
    transition: opacity 0.24s ease;
}

.dental-feature-grid .detail-card:hover {
    border-color: rgba(114, 43, 71, 0.28);
    box-shadow: 0 20px 46px rgba(114, 43, 71, 0.14);
}

.dental-feature-grid .detail-card:hover::before {
    opacity: 1;
}

.dental-feature-grid .detail-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #722B47, #944064);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* Doctor portrait shared across all specialist cards */
.doctor-portrait-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 16px;
    background: var(--beige);
}

/* Some of these are raw Gutenberg image blocks (dental team roster) whose
   <img> never got the .doctor-portrait class below applied by hand — without
   it a landscape or square source photo renders at its own short natural
   height instead of covering the 3:4 box, leaving a blank beige gap under it.
   Target any image inside the wrapper directly so this can't be missed again.
   The block editor also wraps the <img> in its own <figure>, which has no
   height of its own — img's height:100% has nothing to resolve against
   unless the figure gets height:100% too, so both need it explicitly. */
.doctor-portrait-wrap figure {
    width: 100%;
    height: 100%;
    margin: 0;
}

.doctor-portrait-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.doctor-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Initials placeholder — used when no photo is available */
.doctor-portrait-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--beige);
    color: var(--red);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* Profile page full-size photo */
.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: inherit;
    display: block;
}

/* Pale blush tint from the Etika Dental mark (#722B47) instead of the plain
   off-white card every other "-highlight" section uses — a soft wash rather
   than a full-strength block of color, with the bordo itself kept only as an
   accent (eyebrow, divider, hover). */
.dental-highlight {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 36px;
    border: 1px solid rgba(114, 43, 71, 0.12);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 8%, rgba(201, 166, 107, 0.14), transparent 55%),
        linear-gradient(135deg, #fbf1f2 0%, #f7e9ec 100%);
    box-shadow: 0 24px 60px rgba(114, 43, 71, 0.08);
}

.dental-highlight .eyebrow {
    color: #722B47;
}

.dental-highlight h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.05;
    margin-top: 10px;
    color: var(--charcoal);
}

.dental-highlight p {
    margin-top: 14px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.dental-highlight-list {
    position: relative;
    display: grid;
}

.dental-highlight-list > div {
    padding: 18px 4px;
    border-bottom: 1px solid rgba(114, 43, 71, 0.16);
    transition: padding-left 0.24s ease;
}

.dental-highlight-list > div:first-child {
    padding-top: 4px;
}

.dental-highlight-list > div:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.dental-highlight-list > div:hover {
    padding-left: 10px;
}

.dental-highlight-list strong {
    display: block;
    color: var(--charcoal);
    font-size: 16px;
    margin-bottom: 6px;
}

.dental-highlight-list span {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.dental-contact-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 237, 229, 0.94));
}

.dental-contact-shell h2 {
    font-family: var(--serif);
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.1;
    margin-top: 10px;
}

.dental-contact-shell p {
    margin-top: 12px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.dental-contact-meta {
    display: grid;
    gap: 12px;
}

.dental-contact-meta > div {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.dental-contact-meta strong {
    display: block;
    color: var(--charcoal);
    font-size: 14px;
    margin-bottom: 5px;
}

.dental-contact-meta span {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.dental-journey {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.derma-hero {
    padding: 8px 0 16px;
}

.derma-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.derma-hero-copy h1 {
    font-family: var(--serif);
    font-size: clamp(44px, 4.2vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-top: 14px;
}

.derma-hero-copy p {
    max-width: 620px;
    margin-top: 20px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8;
}

.derma-hero-actions,
.derma-tech-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.derma-hero-media,
.derma-pathway-visual,
.derma-surgery-media,
.derma-tech-visual,
.derma-gallery-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
}

.derma-hero-media img,
.derma-pathway-visual img,
.derma-surgery-media img,
.derma-tech-visual img,
.derma-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.derma-hero-media {
    position: relative;
    min-height: 520px;
}

.derma-hero-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    max-width: 300px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(31, 20, 17, 0.07);
}

.derma-hero-badge strong {
    display: block;
    margin-top: 6px;
    font-size: 19px;
    line-height: 1.25;
}

.derma-pathways {
    display: grid;
    gap: 18px;
}

.derma-pathway {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 237, 229, 0.92));
}

.derma-pathway-clinical {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 236, 0.95));
}

.derma-pathway-aesthetic {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 234, 230, 0.95));
}

.derma-pathway-content h3 {
    margin-top: 12px;
    font-family: var(--serif);
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.12;
}

.derma-pathway-content p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.derma-pathway-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(237, 28, 42, 0.08);
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.derma-clinical-shell,
.derma-surgery-shell,
.derma-tech-shell,
.derma-cta-panel {
    display: grid;
    gap: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 237, 229, 0.94));
}

.derma-clinical-shell {
    grid-template-columns: 1.15fr 0.85fr;
}

.derma-text-block h2,
.derma-surgery-copy h2,
.derma-tech-copy h2,
.derma-cta-copy h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.06;
    margin-top: 10px;
}

.derma-text-block p,
.derma-surgery-copy p,
.derma-tech-copy p,
.derma-cta-copy p {
    margin-top: 14px;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

.derma-editorial-rows {
    display: grid;
    gap: 12px;
    margin: 24px 0 24px;
}

.derma-editorial-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.derma-editorial-row strong {
    color: var(--charcoal);
    font-size: 15px;
}

.derma-editorial-row span {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.derma-side-note {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
}

.derma-side-note h3 {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.14;
    margin-top: 10px;
}

.derma-surgery-shell,
.derma-tech-shell {
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
}

.derma-tech-shell {
    grid-template-columns: 1.1fr 0.9fr;
}

.derma-tech-card {
    display: grid;
    gap: 20px;
}

.derma-tech-card-placeholder {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
}

.derma-tech-card-placeholder h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.16;
}

.derma-rail {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.derma-rail-card {
    min-width: min(280px, 84vw);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    scroll-snap-align: start;
}

.derma-rail-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(237, 28, 42, 0.08);
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.derma-rail-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.14;
    margin-top: 12px;
}

.derma-rail-card p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.74;
}

.derma-specialists-shell {
    display: grid;
    gap: 20px;
}

.derma-specialist-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
}

.derma-specialist-card-featured {
    grid-template-columns: 260px 1fr;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 237, 229, 0.94));
}

.derma-specialist-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(237, 28, 42, 0.12), rgba(239, 239, 239, 0.92));
    color: var(--red);
    font-family: var(--serif);
    font-size: 32px;
    letter-spacing: 0.16em;
}

.derma-specialist-copy h3 {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.14;
}

.derma-specialist-copy p {
    margin-top: 10px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

.derma-specialists-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

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

.derma-journey-step {
    padding: 24px 20px;
    border-top: 1px solid var(--border);
}

.derma-journey-step span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.derma-journey-step strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.derma-journey-step p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

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

.derma-gallery-card {
    min-height: 260px;
}

.derma-cta-panel {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
}

.derma-cta-meta {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.derma-cta-meta > div {
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.derma-cta-meta strong {
    display: block;
    margin-bottom: 4px;
    color: var(--charcoal);
    font-size: 14px;
}

.derma-cta-meta span {
    color: var(--gray);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .desktop-button {
        display: none;
    }

    .nav-desktop {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-overlay {
        padding: 16px;
    }

    .nav-overlay-shell {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 32px);
    }

    .nav-overlay-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(31, 20, 17, 0.08);
        padding: 28px 24px;
    }

    .nav-overlay-main {
        padding: 28px 24px 32px;
    }

    .menu-button.active .menu-button-icon span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-button.active .menu-button-icon span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero-grid,
    .hero-stack,
    .about-grid,
    .technology-grid,
    .appointment-grid,
    .physio-hero-grid,
    .physio-results-shell,
    .dental-highlight,
    .dental-contact-shell,
    .derma-hero-grid,
    .derma-pathway,
    .derma-clinical-shell,
    .derma-surgery-shell,
    .derma-tech-shell,
    .derma-cta-panel {
        grid-template-columns: 1fr;
    }

    .hero-visual,
    .physio-hero-media {
        min-height: 420px;
    }

    .quick-links-grid,
    .services-grid,
    .doctors-grid,
    .locations-grid,
    .physio-feature-grid,
    .physio-therapy-grid,
    .physio-specialists-grid,
    .physio-conditions-grid,
    .physio-stat-grid,
    .dental-feature-grid,
    .dental-services-grid,
    .dental-diagnostics-grid,
    .dental-specialists-grid,
    .derma-specialists-rail,
    .derma-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .therapy-category-header {
        flex-direction: column;
        align-items: start;
    }

    .quick-card:nth-child(2) {
        border-right: 0;
    }

    .journey-timeline,
    .dental-journey,
    .derma-journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-card:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid var(--border);
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .section-image {
        max-width: 700px;
    }

    .dental-highlight,
    .dental-contact-shell {
        padding: 24px;
    }

    .experience-badge {
        right: 25px;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .investigation-picker-section {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    .investigation-toolbar {
        padding: 20px 18px 22px;
    }

    .investigation-search-shell {
        width: 100%;
        margin-bottom: 18px;
    }

    .investigation-category-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .dental-feature-grid,
    .dental-services-grid,
    .dental-diagnostics-grid,
    .dental-specialists-grid,
    .dental-journey,
    .derma-specialists-rail,
    .derma-gallery-grid,
    .derma-journey-grid {
        grid-template-columns: 1fr;
    }

    .investigation-category-list::-webkit-scrollbar {
        display: none;
    }

    .investigation-category-pill {
        flex: 0 0 auto;
    }

    .department-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        border-bottom-color: rgba(31, 20, 17, 0.1);
    }

    .department-nav-item {
        flex: 0 0 auto;
        min-width: 190px;
        padding-right: 18px;
        border-right: 1px solid rgba(31, 20, 17, 0.06);
        border-top: 0;
    }

    .department-nav-item:nth-child(2n) {
        border-right: 1px solid rgba(31, 20, 17, 0.06);
    }

    .department-nav-item:last-child {
        border-right: 0;
    }

    .navigation {
        min-height: 72px;
    }

    .nav-overlay {
        padding: 12px;
    }

    .nav-overlay-sidebar {
        padding: 22px 18px;
    }

    .nav-overlay-main {
        padding: 22px 18px 26px;
    }

    .nav-secondary-panel {
        grid-template-columns: 1fr;
    }

    .logo-image {
        height: 30px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
    }

    .hero-benefits div {
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .hero-visual {
        min-height: 420px;
    }

    .hero-media,
    .hero-image-placeholder {
        min-height: 420px;
        border-radius: 110px 15px 110px 15px;
    }

    .hero-media-badge {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .floating-card {
        left: 16px;
        bottom: 22px;
    }

    .quick-links-grid,
    .services-grid,
    .doctors-grid,
    .locations-grid,
    .technology-cards {
        grid-template-columns: 1fr;
    }

    .quick-card,
    .quick-card:first-child,
    .quick-card:last-child,
    .physio-feature-grid,
    .physio-therapy-grid,
    .physio-specialists-grid,
    .physio-conditions-grid,
    .physio-stat-grid,
    .journey-timeline,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery photos stay 2-up on mobile instead of collapsing to a single
       column like the other grids above — a tall stack of full-width photos
       reads worse here than two smaller columns. Flexbox rather than grid:
       this grid's items reach the container through a WP-generated
       display:contents wrapper (see .wp-block-group__inner-container above),
       and this specific browser doesn't promote contents-wrapped children
       into a CSS Grid's tracks — flex-wrap does, so it actually renders 2-up
       instead of silently collapsing to one column. */
    .physio-gallery-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .physio-gallery-card {
        min-width: 0;
        flex: 0 0 calc(50% - 5px);
    }

    .physio-gallery-card img {
        height: 140px;
    }

    .physio-gallery-card.wide-card {
        flex-basis: 100%;
    }

    .physio-gallery-card.wide-card img {
        height: 200px;
    }

    .physio-gallery-card div {
        padding: 14px 14px 16px;
    }

    .physio-gallery-card h3 {
        font-size: 16px;
        overflow-wrap: break-word;
    }

    .physio-gallery-card p {
        font-size: 12.5px;
        overflow-wrap: break-word;
    }

    .quick-card,
    .quick-card:first-child,
    .quick-card:last-child {
        grid-column: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .quick-card:first-child {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .quick-card:last-child {
        border-bottom: 0;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .section {
        padding: 80px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .section-image,
    .section-image .image-placeholder {
        min-height: 430px;
    }

    .experience-badge {
        right: 15px;
        bottom: 20px;
    }

    .department-nav {
        top: 78px;
        padding: 10px;
    }

    .department-navigation-shell {
        margin: 26px 0 72px;
    }

    .department-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        top: 78px;
    }

    .department-tile.wide {
        grid-column: span 2;
    }

    .department-grid,
    .department-grid-compact,
    .department-grid-hero,
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctor-directory-controls {
        grid-template-columns: 1fr;
    }

    .department-navigation-shell {
        margin: 18px 0 64px;
        padding: 14px;
    }

    .department-tiles {
        grid-template-columns: 1fr;
    }

    .department-tile.wide {
        grid-column: auto;
    }

    .department-grid,
    .department-grid-compact,
    .department-grid-hero,
    .department-grid-single,
    .doctors-grid,
    .investigation-grid,
    .guidance-grid {
        grid-template-columns: 1fr;
    }

    .doctor-photo {
        min-height: 340px;
    }

    .appointment-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 45px 25px;
    }

    .therapy-rail {
        grid-template-columns: 1fr;
    }

    .therapy-rail-nav {
        display: none;
    }

    .therapy-card {
        flex-basis: calc(100% - 8px);
    }

    .physio-hero-meta {
        grid-template-columns: 1fr;
    }

    .physio-hero-copy h1 {
        font-size: 42px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    /* ==============================
   INVESTIGATIONS HERO
============================== */

.investigations-hero-visual {
    position: relative;
}

.investigations-hero-image {
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 28px;
    background: #f3e6e3;
}

.investigations-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.investigations-hero-badge {
    position: absolute;
    left: 28px;
    bottom: 28px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 18px 22px;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);

    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.investigations-hero-badge span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b61f2b;
}

.investigations-hero-badge strong {
    font-size: 16px;
    font-weight: 600;
    color: #1f1411;
}


/* MOBILE */

@media (max-width: 768px) {

    .investigations-hero-image {
        height: 380px;
        border-radius: 20px;
    }

    .investigations-hero-badge {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

}
}
.nav-mega-menu-preview-column{
    display: none;
}

.nav-mega-menu-list-column{
    flex: 2 1 0;
}

.nav-mega-menu-sidebar{
    flex: 1 1 0;
}

.nav-mega-menu-inner{
    display: flex;
    gap: 40px;
    height: auto;
}

.nav-mega-menu{
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
}

.nav-mega-menu-list-scroll{
    overflow: visible;
    height: auto;
}

.nav-department-list{
    column-count: 2;
    column-gap: 32px;
    display: block;
}

.nav-department-list li{
    break-inside: avoid;
    margin-bottom: 4px;
}

.nav-mega-menu-list-hint,
.nav-mega-menu-list-scroll::after{
    display: none;
}

@media (max-width: 900px){
    .nav-mega-menu-inner{
        flex-direction: column;
        gap: 24px;
    }
    .nav-department-list{
        column-count: 1;
    }
}

 @media (max-width: 700px){
    .card-actions{
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .card-actions .button,
    .card-actions .button-secondary{
        width: 100% !important;
        text-align: center !important;
    }

    .investigation-card{
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    html, body{
        overflow-x: hidden;
        max-width: 100vw;
    }
}
/* ===== UNIVERSAL MOBILE FIX — важи за ЦЕЛИЯ сайт под 700px ===== */
@media (max-width: 700px){

    html, body{
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* хваща ВСЕКИ клас, който съдържа думата "grid" в името си —
       покрива department-grid, dental-services-grid, physio-feature-grid,
       derma-gallery-grid, journey-timeline и т.н. наведнъж */
    [class*="grid"]{
        grid-template-columns: 1fr !important;
    }

    /* класове с двуколонно оформление, които НЕ съдържат думата "grid"
       в името си, затова горното правило не ги хваща */
    .about-editorial,
    .service-featured,
    .appointment-panel,
    .form-row,
    .hero-stack,
    .locations-editorial,
    .location-map-panel,
    .derma-pathway,
    .derma-clinical-shell,
    .derma-surgery-shell,
    .derma-tech-shell,
    .derma-cta-panel,
    .dental-highlight,
    .dental-contact-shell,
    .editorial-doctors,
    .technology-immersive,
    .physio-results-shell,
    .physio-hero-meta,
    .nav-secondary-panel,
    .detail-hero-grid,
    .journey-timeline{
        display: block !important;
    }

    .about-editorial > *,
    .service-featured > *,
    .appointment-panel > *,
    .form-row > *,
    .hero-stack > *,
    .locations-editorial > *,
    .derma-pathway > *,
    .derma-clinical-shell > *,
    .derma-surgery-shell > *,
    .derma-tech-shell > *,
    .derma-cta-panel > *,
    .dental-highlight > *,
    .dental-contact-shell > *,
    .editorial-doctors > *,
    .technology-immersive > *,
    .physio-results-shell > *,
    .journey-timeline > *{
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* всеки текст/карта не бива да е по-широк от екрана */
    .investigation-card,
    .department-header,
    .guidance-card,
    .journey-step,
    .dental-card,
    .derma-rail-card,
    .therapy-card,
    p, h1, h2, h3, h4{
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* всички двойки бутони застават един под друг, на пълна ширина */
    .hero-actions,
    .card-actions,
    .detail-hero-actions,
    .derma-hero-actions,
    .derma-tech-actions,
    .location-actions{
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .hero-actions .button,
    .card-actions .button,
    .card-actions .button-secondary,
    .detail-hero-actions .button,
    .location-actions .button{
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* снимки никога не преливат извън контейнера си */
    img, video, svg, iframe{
        max-width: 100% !important;
        height: auto;
    }

    .container{
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }
}
.technology-section{
    padding: 60px 0 !important;
}

.technology-immersive{
    gap: 36px !important;
}

.technology-media{
    min-height: 320px !important;
}

.technology-list{
    margin-top: 20px !important;
    gap: 10px !important;
}

.technology-item{
    padding: 10px 0 !important;
}

.technology-item strong{
    font-size: 17px !important;
}

.technology-item p{
    display: none;
}
.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;
}

@media (max-width: 768px){
    .dental-specialists-slider .physio-slider-btn{
        display: none;
    }
    .dental-specialists-grid .dental-card{
        flex-basis: min(82vw, 300px);
    }
}
.technology-immersive{
    align-items: stretch !important;
}

.technology-media{
    position: relative !important;
    height: auto !important;
    min-height: 320px;
    overflow: hidden !important;
}

.technology-media img{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    display: block !important;
}
.detail-hero--blend{
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* The body-sculpting main hero's background photo breaks out of .container
   to span the full section width (not just the centered content column) —
   the bg div is a direct child of the section itself, not nested inside
   .detail-hero, so inset:0 here covers the whole viewport-width section. */
.bs-main-hero-section{
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

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

.bs-main-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-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 75% 70% at 50% 40%,
            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 75% 70% at 50% 40%,
            rgba(0,0,0,0.75) 0%,
            rgba(0,0,0,0.35) 55%,
            rgba(0,0,0,0) 85%
        );
    }
}
/* Scoped to the blend (custom-hero, background-photo) variant only — this
   used to be a bare .detail-hero-panel rule with no parent selector, which
   leaked these dental-hero tuning values onto EVERY department's hero panel
   (including the plain fallback hero on category.php pages with no custom
   hero image), shrinking it to 340px wide inside a much wider stretched grid
   cell and leaving a lot of dead space around it. */
.detail-hero--blend .detail-hero-panel{
    padding: 16px 18px !important;
    gap: 8px !important;
    max-width: 340px !important;
}

.detail-hero--blend .detail-hero-panel .detail-chip{
    padding: 5px 10px !important;
    font-size: 10px !important;
}

.detail-hero--blend .detail-hero-panel .detail-stat{
    padding-top: 8px !important;
}

.detail-hero--blend .detail-hero-panel .detail-stat strong{
    font-size: 14px !important;
    line-height: 1.25 !important;
}

.detail-hero--blend .detail-hero-panel .detail-stat span{
    font-size: 12px !important;
    line-height: 1.5 !important;
}
.detail-hero--blend{
    padding-top: 0 !important;
    padding-bottom: 70px !important;
    min-height: 720px;
}

.detail-hero-bg{
    inset: 0 !important;
    position: absolute !important;
}
/* Финна корекция на dental hero секцията */

/* 1) Панелът слиза по-надолу спрямо снимката */
.detail-hero--blend .detail-hero-grid{
    align-items: end;
}

/* 2) Снимката се измества по-нагоре в кадъра */
.detail-hero--blend .detail-hero-bg img{
    object-position: center 20%;   /* по-малко от 40% = по-нагоре */
}
/* ФИНАЛНА КОРЕКЦИЯ — dental hero: снимка нагоре, панел надолу */
.detail-hero--blend .detail-hero-grid{
    align-items: end !important;
}

.detail-hero--blend .detail-hero-panel{
    margin-top: 100px !important;
}

.detail-hero--blend .detail-hero-bg img{
    object-position: center 10% !important;
}
.detail-hero--blend .detail-hero-bg img{
    -webkit-mask-image: radial-gradient(
        ellipse 100% 100% at 50% 10%,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0) 95%
    ) !important;
    mask-image: radial-gradient(
        ellipse 100% 100% at 50% 10%,
        rgba(0,0,0,0.9) 0%,
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0) 95%
    ) !important;
}
/* Tablet (still roomy): keep hero two-up and quick-links as three even columns.
   Phones stack these — see assets/css/mobile.css. */
@media (min-width: 861px) and (max-width: 1024px){
    .quick-links-grid{
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .quick-card:nth-child(2){
        border-right: 1px solid var(--border) !important;
    }
    .quick-card:last-child{
        grid-column: auto !important;
        border-top: 0 !important;
        border-radius: 0 var(--radius) var(--radius) 0 !important;
    }
    .hero-grid,
    .hero-stack{
        grid-template-columns: 1.02fr 0.98fr !important;
    }
    .hero-visual{
        min-height: 560px !important;
    }
}