/* =========================================================
   Empress Dental Studio
   Brushed-navy plaque + engraved silver type (from the logo sign),
   porcelain-white content. One 5/7 grid axis across the site.
   ========================================================= */

:root {
    --navy-950: #0D1322;
    --navy-900: #121A2E;
    --navy-800: #182239;
    --navy-700: #24304D;
    --silver-50: #F3F4F7;
    --silver-200: #D3D7DF;
    --silver-400: #A1A8B6;
    --silver-600: #6F7789;
    --porcelain: #F2F4F7;
    --paper: #FFFFFF;
    --ink: #172038;
    --ink-soft: #4E5770;
    --line: #DCE0E7;
    --line-dark: rgba(211, 215, 223, .18);
    --ice: #9DB2DD;
    --ok: #9BD8B8;
    --err: #F1ACA5;

    --font-display: "Forum", "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container: 1200px;
    --gutter: 16px;
    --header-h: 116px;
    --header-top: 20px;
    --header-h-scrolled: 108px;
    --section-y: clamp(80px, 10vw, 140px);
    --cols: minmax(0, 5fr) minmax(0, 7fr);
    --col-gap: clamp(40px, 6vw, 96px);

    --engrave: linear-gradient(178deg, #FFFFFF 0%, #DCDFE6 30%, #9DA4B2 54%, #C9CED7 72%, #F0F2F5 100%);
    --brushed: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='1.2 0.005' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.11 0 0 0 0'/></filter><rect width='600' height='600' filter='url(%23b)'/></svg>");
}

@media (min-width: 640px) {
    :root { --gutter: 32px; }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h-scrolled) + 8px);
}

html, body { overflow-x: clip; }

body {
    margin: 0;
    font: 400 17px/1.65 var(--font-body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

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

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--paper);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
}
.skip-link:focus { top: 16px; }

.icon { flex: none; }

/* ---------- brushed plaque & engraved type ---------- */

.plaque {
    position: relative;
    isolation: isolate;
    color: var(--silver-200);
    background-color: var(--navy-800);
    background-image:
        radial-gradient(110% 70% at 18% 0%, rgba(132, 152, 204, .17), transparent 62%),
        radial-gradient(80% 70% at 100% 100%, rgba(6, 10, 22, .55), transparent 70%),
        var(--brushed);
}

.engraved {
    color: var(--silver-50);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .engraved {
        background-image: var(--engrave);
        background-size: 100% 1lh;
        background-repeat: repeat-y;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 1px 0 rgba(4, 7, 16, .7)) drop-shadow(0 10px 22px rgba(4, 7, 16, .35));
    }

    /* single light sweep across the name on load */
    .glint {
        background-image:
            linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%),
            var(--engrave);
        background-size: 300% 100%, 100% 1lh;
        background-repeat: no-repeat, repeat-y;
        background-position: 100% 0, 0 0;
        animation: glint 2.4s cubic-bezier(.45, .05, .2, 1) .6s 1 both;
    }
}

@keyframes glint {
    from { background-position: 100% 0, 0 0; }
    to   { background-position: 0% 0, 0 0; }
}

/* ---------- buttons & links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    font: 600 15px/1.1 var(--font-body);
    letter-spacing: .01em;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-position .6s ease, background-color .2s, border-color .2s, color .2s;
}

.btn-metal {
    color: var(--navy-900);
    background-image: linear-gradient(100deg, #BFC5CF 0%, #F5F6F8 28%, #B5BCC7 52%, #EBEDF1 78%, #C3C8D1 100%);
    background-size: 220% 100%;
    background-position: 100% 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 12px 26px -14px rgba(0, 0, 0, .7);
}
.btn-metal:hover { background-position: 0 0; }

.btn-ghost,
.btn-ghost-dark {
    color: var(--silver-50);
    border-color: rgba(211, 215, 223, .4);
    background: transparent;
}
.btn-ghost:hover,
.btn-ghost-dark:hover {
    border-color: var(--silver-50);
    background-color: rgba(255, 255, 255, .05);
}

.btn-navy {
    color: var(--silver-50);
    background: var(--navy-800);
}
.btn-navy:hover { background: var(--navy-700); }

.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }

.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.link-underline {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}
.link-underline:hover { text-decoration-thickness: 2px; }

.section-title {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem);
    line-height: 1.08;
    color: var(--ink);
}

/* ---------- header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
    background: rgba(18, 26, 46, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line-dark);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
    padding-top: var(--header-top);
    transition: height .3s, padding-top .3s;
}
.site-header.is-scrolled .header-inner {
    height: var(--header-h-scrolled);
    padding-top: 0;
}

.logo {
    position: relative;
    z-index: 2;
    display: inline-grid;
    justify-items: center;
    line-height: 1;
    color: var(--silver-200);
    text-decoration: none;
}
.logo-mark {
    width: 18px;
    height: 18px;
    margin-bottom: 8px;
    color: #E8EAEE;
}
.logo-word {
    font-family: var(--font-display);
    font-size: 38px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--silver-50);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .logo-word {
        background: var(--engrave);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}
.logo-sub {
    margin-top: 8px;
    padding-left: .38em;
    font-family: var(--font-display);
    font-size: 12.5px;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--silver-200);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-list > li > a {
    display: inline-block;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--silver-200);
    text-decoration: none;
}
.nav-list > li > a:hover { color: #fff; }
.nav-list > li > a[aria-current="page"] {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 8px;
}

.has-sub {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
}
.sub-toggle {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--silver-400);
    background: none;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
}
.sub-toggle svg { transition: transform .2s; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.sub {
    position: absolute;
    top: 100%;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 36px;
    width: min(760px, 92vw);
    margin-top: 16px;
    padding: 30px 34px;
    color: var(--ink);
    background: var(--paper);
    border-radius: 3px;
    box-shadow: 0 30px 70px -24px rgba(8, 12, 24, .55);
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s, visibility .18s;
}
.sub::before {
    content: "";
    position: absolute;
    inset: -18px 0 auto;
    height: 18px;
}
.has-sub:hover .sub,
.has-sub.is-open .sub {
    visibility: visible;
    opacity: 1;
}
.sub-cat {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.2;
    color: var(--ink);
}
.sub ul { margin: 0; padding: 0; list-style: none; }
.sub li a {
    display: block;
    padding: 4px 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink-soft);
    text-decoration: none;
}
.sub li a:hover,
.sub li a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-contacts {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--silver-200);
    text-decoration: none;
    white-space: nowrap;
}
.nav-phone:hover { color: #fff; }
.nav-phone .icon { width: 17px; height: 17px; color: var(--silver-400); }

.nav-toggle {
    position: relative;
    z-index: 2;
    display: none;
    width: 46px;
    height: 46px;
    margin-right: -10px;
    padding: 0;
    color: var(--silver-50);
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    position: absolute;
    left: 12px;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    transition: transform .25s, opacity .2s;
}
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- home hero ---------- */

.hero {
    display: flex;
    flex-direction: column;
    min-height: min(100svh, 980px);
    padding-top: calc(var(--header-h) + 32px);
}

.hero-grid {
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: min(640px, 54%);
    padding-block: 24px clamp(48px, 7vw, 88px);
}

.hero-h1 { margin: 0; font-weight: 400; }

.hero-role {
    display: block;
    margin-bottom: 22px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--silver-400);
}

.hero-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.4rem);
    line-height: .98;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 33em;
    margin: 30px 0 38px;
    font-size: 1.125rem;
    color: var(--silver-200);
}

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

/* full-bleed photo on the right half, dissolving into the brushed navy:
   left edge fades out, top fades under the menu, bottom under the facts row */
.hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 56%;
    margin: 0;
    pointer-events: none;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    filter: saturate(.92) brightness(.96);
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .85) 34%, #000 48%),
        linear-gradient(to bottom, rgba(0, 0, 0, .25) 0, #000 22%, #000 74%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 16%, rgba(0, 0, 0, .85) 34%, #000 48%),
        linear-gradient(to bottom, rgba(0, 0, 0, .25) 0, #000 22%, #000 74%, transparent 100%);
    mask-composite: intersect;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 22px 0 30px;
    border-top: 1px solid var(--line-dark);
}
.hero-facts dt {
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--silver-400);
}
.hero-facts dd {
    margin: 0;
    font-size: 15.5px;
    color: var(--silver-50);
}
.hero-facts a { text-decoration: none; }
.hero-facts a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- about ---------- */

.about { padding-block: var(--section-y); }

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--col-gap);
    align-items: start;
}

.about-text { padding-top: 8px; }
.about-text p { color: var(--ink-soft); }
.about-lead {
    margin-bottom: 28px !important;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem);
    line-height: 1.32;
    color: var(--ink) !important;
}
.about-mobicard {
    margin-top: 32px;
    padding-top: 20px;
    font-size: 15px;
    border-top: 1px solid var(--line);
}
.about-mobicard a {
    color: var(--ink);
    font-weight: 600;
    text-underline-offset: 4px;
}

.approach {
    display: grid;
    grid-template-columns: var(--cols);
    gap: var(--col-gap);
    margin-top: clamp(64px, 8vw, 120px);
}
.approach-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem);
    line-height: 1.1;
}
.approach-photo { margin: 32px 0 0; }
.approach-photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 2px;
}
.approach-list {
    align-self: end;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.approach-list li {
    padding-top: 18px;
    border-top: 1px solid var(--ink);
}
.approach-list h4 {
    margin: 0 0 10px;
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.3;
}
.approach-list p {
    margin: 0;
    font-size: 16px;
    color: var(--ink-soft);
}

/* ---------- services list ---------- */

.services {
    padding-block: var(--section-y);
    background: var(--porcelain);
}

.section-head {
    display: grid;
    grid-template-columns: var(--cols);
    gap: 16px var(--col-gap);
    align-items: end;
    margin-bottom: 48px;
}
.section-head .section-title { margin: 0; }
.section-head p {
    max-width: 32em;
    margin: 0;
    color: var(--ink-soft);
}

.svc-group {
    display: grid;
    grid-template-columns: var(--cols);
    gap: 12px var(--col-gap);
    padding: 34px 0;
    border-top: 1px solid var(--line);
}
.svc-group:last-of-type { border-bottom: 1px solid var(--line); }

.svc-cat {
    margin: 0;
    padding-top: 12px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.2;
}

.svc-list { margin: 0; padding: 0; list-style: none; }
.svc-list li + li { border-top: 1px solid var(--line); }

.svc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 32px;
    padding: 16px 0;
    color: var(--ink);
    text-decoration: none;
}
.svc-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
}
.svc-desc {
    grid-column: 1;
    max-width: 36em;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}
.svc-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-align: right;
    white-space: nowrap;
}
.svc-row:hover .svc-name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.services-more {
    margin: 36px 0 0;
    text-align: right;
}

/* ---------- gallery ---------- */

.gallery { padding-block: var(--section-y); }

.gallery-strip {
    --edge: max(var(--gutter), (100vw - var(--container)) / 2);
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 8px var(--edge) 20px;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    scrollbar-width: thin;
    scrollbar-color: var(--silver-400) transparent;
}
.gallery-strip li {
    flex: none;
    scroll-snap-align: start;
}
.gallery-strip figure { margin: 0; }
.gallery-strip img {
    width: auto;
    max-width: 82vw;
    height: clamp(300px, 38vw, 460px);
    object-fit: cover;
    border-radius: 2px;
}
.gallery-strip figcaption {
    max-width: 32ch;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ---------- booking (footer, every page) ---------- */

.booking { padding-block: clamp(80px, 10vw, 130px); }

.booking-grid {
    display: grid;
    grid-template-columns: var(--cols);
    gap: var(--col-gap);
    align-items: start;
}

.booking-title {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem);
    line-height: 1.04;
}
.booking-lead {
    max-width: 28em;
    margin-bottom: 44px;
    color: var(--silver-200);
}

.alt-title {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--silver-400);
}
.alt-list {
    max-width: 380px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--line-dark);
}
.alt-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    font-weight: 500;
    color: var(--silver-50);
    text-decoration: none;
    border-top: 1px solid var(--line-dark);
}
.alt-link .icon { color: var(--silver-400); }
.alt-link:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.alt-link:hover .icon { color: var(--silver-50); }

.booking-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: clamp(24px, 3.4vw, 44px);
    background: rgba(8, 12, 24, .32);
    border: 1px solid var(--line-dark);
    border-radius: 3px;
}

.field { display: grid; gap: 8px; align-content: start; }
.field-wide { grid-column: 1 / -1; }

.field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--silver-200);
}
.field .opt { font-weight: 400; color: var(--silver-400); }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    color: var(--silver-50);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(211, 215, 223, .26);
    border-radius: 2px;
    transition: border-color .2s, background-color .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(161, 168, 182, .75); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(211, 215, 223, .45); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    border-color: var(--silver-50);
    background-color: rgba(255, 255, 255, .07);
    outline-offset: 1px;
}
.field input:user-invalid { border-color: var(--err); }
.field textarea { min-height: 100px; resize: vertical; }
.field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='m2.5 4.5 3.5 3.5 3.5-3.5' fill='none' stroke='%23D3D7DF' stroke-width='1.4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.field select option { color: var(--ink); background: var(--paper); }

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 4px;
}
.form-note {
    margin: 0;
    font-size: 13px;
    color: var(--silver-400);
}

.form-status {
    margin: 0;
    padding: 12px 16px;
    font-size: 15px;
    border-left: 2px solid currentColor;
    background: rgba(255, 255, 255, .04);
}
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--err); }

/* ---------- contacts & map ---------- */

.contacts {
    position: relative;
    background: var(--navy-950);
}

.map {
    position: relative;
    height: clamp(400px, 46vw, 540px);
}
.map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) contrast(1.06) brightness(.97);
}
.map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #7F92C4;
    mix-blend-mode: multiply;
    opacity: .28;
    pointer-events: none;
}

.contacts-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.contacts-card {
    width: min(410px, 100%);
    padding: 36px;
    color: var(--silver-200);
    background: var(--navy-900);
    border-radius: 3px;
    box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .7);
    pointer-events: auto;
}
.contacts-title {
    margin: 0 0 22px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--silver-50);
}
.contacts-list {
    display: grid;
    gap: 14px;
    margin: 0 0 28px;
    font-style: normal;
}
.contacts-list p {
    display: flex;
    gap: 12px;
    margin: 0;
    line-height: 1.5;
}
.contacts-list .icon { margin-top: 2px; color: var(--silver-400); }
.contacts-list small { font-size: 14px; color: var(--silver-400); }
.contacts-list a {
    color: var(--silver-50);
    font-weight: 600;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.contacts-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- site footer ---------- */

.site-footer {
    padding: 72px 0 32px;
    font-size: 15px;
    color: var(--silver-400);
    background: var(--navy-950);
    border-top: 1px solid var(--line-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr);
    gap: 48px;
}
.footer-tagline {
    max-width: 26em;
    margin: 26px 0 0;
    line-height: 1.6;
}
.footer-head {
    margin: 0 0 16px;
    font-weight: 600;
    color: var(--silver-50);
}
.footer-col ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-col a {
    color: var(--silver-200);
    text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }

.mobicard-link {
    display: grid;
    gap: 3px;
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px solid var(--line-dark);
    border-radius: 3px;
    text-decoration: none !important;
}
.mobicard-label { font-weight: 600; color: var(--silver-50); }
.mobicard-url { font-size: 13px; color: var(--silver-400); }
.mobicard-link:hover { border-color: var(--silver-400); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 56px;
    padding-top: 24px;
    font-size: 13px;
    border-top: 1px solid var(--line-dark);
}
.footer-bottom p { margin: 0; }

/* ---------- inner page hero ---------- */

.page-hero {
    padding: calc(var(--header-h) + 36px) 0 clamp(56px, 7vw, 96px);
}

.page-hero-grid { display: block; }
.page-hero-photo .page-hero-text { max-width: min(640px, 54%); }
.page-hero-photo { min-height: min(86svh, 760px); display: flex; align-items: center; }
.page-hero-photo > .container { width: min(var(--container), 100% - 2 * var(--gutter)); }
.hero-photo-service { width: 52%; }
.hero-photo-service img { object-position: 50% 40%; }

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--silver-400);
}
.crumbs li + li::before {
    content: "/";
    margin-right: 10px;
    opacity: .5;
}
.crumbs a {
    color: var(--silver-200);
    text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-title {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem);
    line-height: 1.04;
}

.page-lead {
    max-width: 36em;
    margin-bottom: 30px;
    font-size: 1.125rem;
    color: var(--silver-200);
}

.page-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    max-width: 33em;
    margin: 0 0 34px;
    padding: 14px 0;
    border-block: 1px solid var(--line-dark);
}
.page-price span { font-size: 14px; color: var(--silver-400); }
.page-price strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--silver-50);
}

.page-hero-short { padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero-short .page-lead { margin-bottom: 0; }

/* ---------- service body ---------- */

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--col-gap);
    align-items: start;
    padding-block: clamp(64px, 8vw, 112px);
}

.prose {
    max-width: 40em;
    font-size: 1.0625rem;
}
.prose h2 {
    margin: 2.1em 0 .6em;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
    line-height: 1.15;
}
.prose p,
.prose li { color: var(--ink-soft); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul,
.prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin: .45em 0; padding-left: .3em; }
.prose li::marker { color: var(--silver-600); }
.prose ol li::marker { font-weight: 600; }
.prose a {
    color: var(--ink);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.prose a:hover { text-decoration-thickness: 2px; }

.doctor-note {
    margin: 0;
    padding: 28px 32px;
    background: var(--porcelain);
    border-left: 2px solid var(--navy-800);
}
.doctor-note blockquote { margin: 0; }
.doctor-note blockquote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.32rem;
    line-height: 1.45;
    color: var(--ink);
}
.doctor-note figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
}
.doctor-note figcaption img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
}
.doctor-note small {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-soft);
}

.prose-figure { margin: 2em 0; }
.prose-figure img {
    width: auto;
    max-height: 520px;
    border-radius: 2px;
}
.prose-figure figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--ink-soft);
}

.service-aside {
    position: sticky;
    top: calc(var(--header-h-scrolled) + 24px);
    display: grid;
    gap: 16px;
}

.price-card {
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 3px;
}
.price-card-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
}
.price-rows { margin: 0 0 16px; }
.price-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.price-rows dt {
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink-soft);
}
.price-rows dd {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.price-note {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.doctor-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 3px;
}
.doctor-mini img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
}
.doctor-mini strong { display: block; font-weight: 600; }
.doctor-mini small { font-size: 14px; color: var(--ink-soft); }
.doctor-mini:hover { border-color: var(--silver-400); }

/* ---------- FAQ ---------- */

.faq {
    padding-block: clamp(64px, 8vw, 112px);
    background: var(--porcelain);
}
.faq-grid {
    display: grid;
    grid-template-columns: var(--cols);
    gap: 16px var(--col-gap);
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
    position: relative;
    padding: 22px 44px 22px 0;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item p {
    max-width: 40em;
    margin: -4px 0 24px;
    color: var(--ink-soft);
}

/* ---------- related ---------- */

.related { padding-block: clamp(64px, 8vw, 112px); }

.related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 36px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}
.related-list a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    height: 100%;
    padding: 18px 0;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.related-list small {
    font-weight: 400;
    font-size: 14px;
    color: var(--ink-soft);
    white-space: nowrap;
}
.related-list a:hover span {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- price list page ---------- */

.pricelist {
    padding-block: clamp(64px, 8vw, 112px);
    background: var(--porcelain);
}

.pricelist-card {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 72px);
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 50px 90px -60px rgba(23, 32, 56, .45);
}
.pricelist-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3.4rem, 2rem + 6vw, 6rem);
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy-800);
}
.pricelist-sub {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink-soft);
}
.pricelist-mark {
    width: 20px;
    height: 20px;
    margin: 24px auto 20px;
    color: var(--silver-600);
}
.pricelist-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}
.pricelist-table th,
.pricelist-table td {
    padding: 18px 0;
    vertical-align: baseline;
    border-bottom: 1px solid var(--line);
}
.pricelist-table tbody tr:first-child th,
.pricelist-table tbody tr:first-child td { border-top: 1px solid var(--line); }
.pricelist-table th {
    padding-right: 24px;
    font-weight: 500;
    line-height: 1.4;
}
.pricelist-table th a {
    color: var(--ink);
    text-decoration: none;
}
.pricelist-table th a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.pricelist-table td {
    font-family: var(--font-display);
    font-size: 1.4rem;
    text-align: right;
    white-space: nowrap;
}
.pricelist-foot {
    margin: 32px 0 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink-soft);
}

.services-page { background: var(--paper); }

/* ---------- 404 ---------- */

.notfound-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
    .nav-toggle { display: block; }

    /* backdrop-filter would become the containing block of the fixed menu overlay */
    .site-header.is-scrolled {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(18, 26, 46, .97);
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
        padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
        overflow-y: auto;
        background-color: var(--navy-900);
        background-image: var(--brushed);
        visibility: hidden;
        opacity: 0;
        transition: opacity .25s, visibility .25s;
    }
    .nav-open .main-nav { visibility: visible; opacity: 1; }
    .nav-open { overflow: hidden; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .nav-list > li { border-bottom: 1px solid var(--line-dark); }
    .nav-list > li > a {
        display: block;
        padding: 16px 0;
        font-family: var(--font-display);
        font-size: 1.6rem;
        color: var(--silver-50);
    }
    .has-sub { flex-wrap: wrap; }
    .has-sub > a { flex: 1; }
    .sub-toggle { display: none; }

    .sub {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 24px;
        width: 100%;
        margin: 0;
        padding: 4px 0 24px;
        color: var(--silver-200);
        background: none;
        box-shadow: none;
        transform: none;
        visibility: visible;
        opacity: 1;
    }
    .sub::before { display: none; }
    .sub-cat { font-size: 13px; font-family: var(--font-body); color: var(--silver-400); margin-bottom: 4px; }
    .sub li a { color: var(--silver-200); padding: 6px 0; }
    .sub li a:hover,
    .sub li a[aria-current="page"] { color: #fff; }

    .nav-contacts {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .nav-phone { font-size: 18px; }
    .nav-contacts .btn { min-height: 52px; font-size: 15px; }
}

@media (max-width: 860px) {
    :root { --header-h: 100px; --header-top: 12px; --header-h-scrolled: 90px; }

    .logo-word { font-size: 30px; }
    .logo-sub { font-size: 10px; text-shadow: 0 1px 8px rgba(13, 19, 34, .95), 0 0 2px rgba(13, 19, 34, .8); }

    /* photo moves on top, dissolving downward into the text */
    .hero { min-height: 0; padding-top: 0; }
    .hero-photo {
        position: relative;
        width: 100%;
        height: min(118vw, 620px);
    }
    .hero-photo img {
        object-position: 50% 18%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 13%, #000 28%, #000 48%, transparent 88%);
        mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 13%, #000 28%, #000 48%, transparent 88%);
    }
    .hero-grid { display: block; margin-top: max(-26vw, -150px); }
    .hero-role { color: var(--silver-200); text-shadow: 0 1px 12px rgba(13, 19, 34, .8); }
    .hero-text { max-width: none; padding: 0 0 40px; }
    .hero-facts { grid-template-columns: 1fr; gap: 14px; }

    .page-hero.page-hero-photo { display: block; min-height: 0; padding-top: 0; }
    .page-hero-photo .page-hero-text { max-width: none; }
    .page-hero-photo .page-hero-grid { margin-top: -64px; }
    .hero-photo-service { height: min(80vw, 420px); }

    .about-grid,
    .approach,
    .section-head,
    .svc-group,
    .booking-grid,
    .faq-grid,
    .page-hero-grid,
    .service-layout { grid-template-columns: 1fr; }

    .about-grid { gap: 40px; }
    .approach { gap: 28px; }
    .approach-list { grid-template-columns: 1fr; gap: 32px; }
    .svc-group { gap: 4px; padding: 28px 0 16px; }
    .svc-cat { padding-top: 0; }
    .booking-grid { gap: 48px; }

    .contacts { display: flex; flex-direction: column-reverse; }
    .contacts-wrap { position: static; display: block; width: 100%; }
    .contacts-card {
        width: 100%;
        padding: 48px 0 40px;
        background: none;
        box-shadow: none;
    }
    .map { height: 360px; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }

    .page-hero { padding-top: calc(var(--header-h) + 32px); }
    .service-aside { position: static; }
    .related-list { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-width: 1080px) {
    .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .booking-form { grid-template-columns: 1fr; padding: 22px 18px; }
    .hero-actions .btn,
    .form-foot .btn { width: 100%; }
    .svc-row { grid-template-columns: 1fr; }
    .svc-price {
        grid-column: 1;
        grid-row: auto;
        margin-top: 6px;
        font-size: 1.25rem;
        text-align: left;
    }
    .sub { grid-template-columns: 1fr; }
    .doctor-note { padding: 22px 20px; }
    .pricelist-card { padding: 32px 18px; }
    .pricelist-table td { font-size: 1.15rem; }
    .pricelist-table th { padding-right: 12px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
