:root {
    color-scheme: light;
    --bg: #e9edf1;
    --bg-soft: #f3f6f8;
    --surface: rgba(255, 255, 255, 0.58);
    --surface-strong: rgba(255, 255, 255, 0.84);
    --text: #17202a;
    --muted: #68727d;
    --line: rgba(23, 32, 42, 0.12);
    --gold: #b59160;
    --gold-strong: #997345;
    --blue: #2f7df4;
    --blue-light: #63a5ff;
    --blue-dark: #1d5dcc;
    --blue-soft: rgba(47, 125, 244, 0.10);
    --danger: #d85151;
    --success: #2aa66f;
    --shadow: 0 22px 70px rgba(25, 39, 54, 0.10);
    --hero-opacity: 0.34;
    --hero-overlay-start: rgba(233, 237, 241, 0.95);
    --hero-overlay-mid: rgba(233, 237, 241, 0.72);
    --hero-overlay-end: rgba(233, 237, 241, 0.15);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #071018;
    --bg-soft: #0b1620;
    --surface: rgba(16, 29, 41, 0.62);
    --surface-strong: rgba(15, 28, 40, 0.88);
    --text: #eff4f7;
    --muted: #9da8b1;
    --line: rgba(255, 255, 255, 0.11);
    --gold: #c9a46e;
    --gold-strong: #dbb984;
    --blue: #4389f7;
    --blue-light: #75b1ff;
    --blue-dark: #2866d8;
    --blue-soft: rgba(67, 137, 247, 0.14);
    --danger: #ff7373;
    --success: #47c98f;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    --hero-opacity: 0.46;
    --hero-overlay-start: rgba(7, 16, 24, 0.96);
    --hero-overlay-mid: rgba(7, 16, 24, 0.70);
    --hero-overlay-end: rgba(7, 16, 24, 0.14);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 6%, rgba(47, 125, 244, 0.055), transparent 32%),
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    transition: background-color 0.35s ease, color 0.35s ease;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

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

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

button {
    border: 0;
}

img {
    max-width: 100%;
}

.section {
    width: min(1380px, calc(100% - 48px));
    margin-inline: auto;
}

.section-narrow {
    width: min(1380px, calc(100% - 48px));
    margin-inline: auto;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -3px;
}

.section-title em {
    color: var(--blue);
    font-weight: 400;
}

.muted-text {
    max-width: 650px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.button {
    min-height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

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

.button-primary {
    background: var(--gold);
    color: #111820;
}

.button-primary:hover {
    background: var(--gold-strong);
}

.button-blue {
    background: var(--blue);
    color: #fff;
}

.button-blue:hover {
    background: var(--blue-dark);
}

.button-ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.button-ghost:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1380px, calc(100% - 48px));
    min-height: 88px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1;
}

.logo-main {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    letter-spacing: -1px;
}

.logo-subtitle {
    margin-top: 7px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 3.4px;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    position: relative;
    padding: 12px 0;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.25s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 0;
    height: 1px;
    background: var(--blue);
    transition: width 0.25s ease;
}

.desktop-nav a:hover {
    color: var(--text);
}

.desktop-nav a:hover::after {
    width: 100%;
}

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

.header-booking-button {
    min-height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    background: var(--gold);
    color: #101820;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.header-booking-button:hover {
    transform: translateY(-2px);
    background: var(--gold-strong);
}

.menu-button {
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    width: 18px;
    height: 1px;
    background: var(--text);
    transition: transform 0.25s ease;
}

.menu-button.open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-button.open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 690px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-background-photo {
    position: absolute;
    inset: -45px;
    width: calc(100% + 90px);
    height: calc(100% + 90px);
    object-fit: cover;
    filter: blur(32px) saturate(0.82) contrast(0.92);
    transition: opacity 1.8s ease-in-out, transform 7s ease-out;
}

.hero-background-current {
    opacity: var(--hero-opacity);
    transform: scale(1.08);
}

.hero-background-current.is-hidden {
    opacity: 0;
    transform: scale(1.13);
}

.hero-background-next {
    opacity: 0;
    transform: scale(1.13);
}

.hero-background-next.is-visible {
    opacity: var(--hero-opacity);
    transform: scale(1.08);
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, var(--hero-overlay-start) 0%, var(--hero-overlay-mid) 45%, var(--hero-overlay-end) 100%);
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: min(1380px, calc(100% - 48px));
    min-height: 690px;
    margin-inline: auto;
    padding: 68px 0;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 70px;
}

.hero h1 {
    max-width: 760px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(55px, 6vw, 91px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -4px;
}

.hero h1 em {
    display: block;
    margin-top: 10px;
    color: var(--gold);
    font-weight: 400;
}

.hero-description {
    max-width: 540px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.hero-buttons {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    height: 525px;
    border-radius: 26px;
    background: var(--surface);
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: opacity 1.8s ease-in-out, transform 7s ease-out;
}

.hero-photo-current {
    opacity: 1;
    transform: scale(1);
}

.hero-photo-current.is-hidden {
    opacity: 0;
    transform: scale(1.025);
}

.hero-photo-next {
    opacity: 0;
    transform: scale(1.025);
}

.hero-photo-next.is-visible {
    opacity: 1;
    transform: scale(1);
}

.slider-caption,
.doctor-photo-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 4;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: rgba(5, 13, 21, 0.53);
    color: #fff;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.slider-caption span,
.doctor-photo-caption span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.slider-caption small,
.doctor-photo-caption small {
    color: rgba(255, 255, 255, 0.70);
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
}

.image-placeholder span {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 44px;
}

/* Doctor section with full-width video background */
.doctor-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    width: 100%;
    max-width: none;
    margin: 100px 0 0;
    padding:
        86px
        max(48px, calc((100vw - 1380px) / 2 + 24px));

    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 76px;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 0;
    border-right: 0;
    border-radius: 0;

    background: var(--bg-soft);
    box-shadow: none;
}

.doctor-video-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.doctor-background-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.88) contrast(0.96) brightness(0.72);
    transform: scale(1.025);
}

.doctor-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 10, 18, 0.82) 0%, rgba(4, 12, 22, 0.66) 48%, rgba(4, 12, 22, 0.84) 100%),
        linear-gradient(180deg, rgba(7, 16, 24, 0.08), rgba(7, 16, 24, 0.34));
}

html[data-theme="light"] .doctor-video-overlay {
    background:
        linear-gradient(90deg, rgba(235, 240, 244, 0.84) 0%, rgba(235, 240, 244, 0.69) 48%, rgba(235, 240, 244, 0.86) 100%),
        linear-gradient(180deg, rgba(235, 240, 244, 0.06), rgba(235, 240, 244, 0.34));
}

.doctor-photo-card,
.doctor-content {
    position: relative;
    z-index: 1;
}

.doctor-photo-card {
    overflow: hidden;
    min-height: 620px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.doctor-profile-photo {
    width: 100%;
    height: 100%;
    min-height: 620px;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.doctor-photo-card:hover .doctor-profile-photo {
    transform: scale(1.025);
}

.doctor-content {
    padding: 24px 0;
}

.doctor-lead {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.55;
}

.doctor-stats {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.doctor-stats article {
    min-height: 115px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 19px;
    background: rgba(7, 18, 28, 0.44);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

html[data-theme="light"] .doctor-stats article {
    border-color: rgba(23, 32, 42, 0.13);
    background: rgba(255, 255, 255, 0.48);
}

.doctor-stats article:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 125, 244, 0.48);
    background: rgba(47, 125, 244, 0.14);
}

.doctor-stats strong {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    font-weight: 400;
}

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

.doctor-tags {
    margin-top: 23px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doctor-tags span {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(7, 18, 28, 0.30);
    color: var(--text);
    font-size: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-theme="light"] .doctor-tags span {
    border-color: rgba(23, 32, 42, 0.13);
    background: rgba(255, 255, 255, 0.45);
}

.doctor-content > .button {
    margin-top: 30px;
}

.doctor-section-divider {
    height: 1px;
    margin-top: 34px;
    background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}

/* Mini features */
.mini-features {
    padding: 34px 0 95px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mini-feature {
    min-height: 178px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.018);
}


.mini-feature h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
}

.mini-feature p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Services */
.services-section {
    padding: 82px 0 120px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 48px;
}

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

.service-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 286px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.018);
    transition: transform 0.38s ease, border-color 0.38s ease;
}

.service-fill {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(145deg, var(--blue-light), var(--blue-dark));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}


.service-card h3 {
    margin-top: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    transition: color 0.35s ease;
}

.service-card p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.68;
    transition: color 0.35s ease;
}

.service-select {
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    transition: color 0.35s ease;
}

.service-select span:last-child {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 17px;
    transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-6px);
        border-color: transparent;
    }

    .service-card:hover .service-fill {
        transform: scaleY(1);
    }

    .service-card:hover h3,
    .service-card:hover p,
    .service-card:hover .service-select {
        color: #fff;
    }

    .service-card:hover .service-select span:last-child {
        transform: rotate(45deg);
        border-color: rgba(255, 255, 255, 0.38);
        background: rgba(255, 255, 255, 0.13);
    }
}

/* Booking */
.booking-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(47, 125, 244, 0.12), rgba(47, 125, 244, 0.025));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.booking-shell {
    display: grid;
    grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: 58px;
}

.booking-intro {
    position: sticky;
    top: 125px;
}

.booking-progress {
    margin-top: 42px;
    list-style: none;
    display: grid;
    gap: 12px;
}

.booking-progress li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    transition: color 0.25s ease;
}

.booking-progress li span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 11px;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.booking-progress li.active,
.booking-progress li.complete {
    color: var(--text);
}

.booking-progress li.active span,
.booking-progress li.complete span {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.booking-card {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: bookingStepIn 0.35s ease both;
}

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

.booking-step-heading {
    margin-bottom: 28px;
}

.booking-step-heading > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.booking-step-heading h3 {
    margin-top: 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 400;
    letter-spacing: -1.5px;
}

.booking-service-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.booking-service-options button {
    min-height: 96px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.booking-service-options button:hover {
    transform: translateY(-3px);
    border-color: var(--blue);
    background: var(--blue-soft);
}

.booking-service-options button.selected {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.booking-service-options button span {
    font-weight: 700;
}

.booking-service-options button small {
    color: var(--muted);
    font-size: 11px;
}

.booking-service-options button.selected small {
    color: rgba(255, 255, 255, 0.75);
}

.date-time-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
    gap: 18px;
}

.calendar-card,
.time-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.018);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.calendar-header button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.calendar-header button:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.calendar-header button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.calendar-header strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
    text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays {
    margin-top: 20px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.calendar-grid {
    margin-top: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.calendar-day:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--blue);
    background: var(--blue-soft);
}

.calendar-day.today {
    border-color: var(--gold);
}

.calendar-day.selected {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.calendar-day:disabled,
.calendar-day.empty {
    cursor: default;
    color: color-mix(in srgb, var(--muted) 45%, transparent);
    opacity: 0.42;
}

.time-card-heading {
    display: grid;
    gap: 7px;
}

.time-card-heading > span {
    color: var(--muted);
    font-size: 11px;
}

.time-card-heading strong {
    min-height: 38px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.time-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.time-grid button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    transition: border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.time-grid button:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    background: var(--blue-soft);
}

.time-grid button.selected {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.time-placeholder {
    grid-column: 1 / -1;
    padding: 18px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

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

.patient-form label,
.notification-field {
    display: grid;
    gap: 8px;
}

.patient-form label > span,
.notification-field legend {
    color: var(--muted);
    font-size: 12px;
}

.patient-form label > span small {
    opacity: 0.75;
}

.patient-form input,
.patient-form textarea,
.status-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.patient-form input {
    min-height: 50px;
    padding: 0 15px;
}

.patient-form textarea {
    resize: vertical;
    min-height: 96px;
    padding: 14px 15px;
}

.patient-form input:focus,
.patient-form textarea:focus,
.status-form input:focus {
    border-color: var(--blue);
    background: var(--blue-soft);
    box-shadow: 0 0 0 4px rgba(47, 125, 244, 0.10);
}

.patient-form .invalid {
    border-color: var(--danger);
}

.field-wide {
    grid-column: 1 / -1;
}

.notification-field {
    margin-top: 4px;
    padding: 0;
    border: 0;
}

.notification-field legend {
    margin-bottom: 9px;
}

.notification-field label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notification-field {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notification-field label {
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.notification-field label:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    background: var(--blue-soft);
}

.notification-field label:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-soft);
}

.notification-field label > span {
    display: grid;
    gap: 3px;
}

.notification-field label strong {
    color: var(--text);
    font-size: 12px;
}

.notification-field label small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.notification-field input {
    width: auto;
    min-height: auto;
    accent-color: var(--blue);
}

.booking-summary {
    display: grid;
    gap: 10px;
}

.summary-row {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 18px;
    border-bottom: 1px solid var(--line);
}

.summary-row span {
    color: var(--muted);
    font-size: 12px;
}

.summary-row strong {
    font-size: 14px;
    font-weight: 700;
}

.consent-row {
    margin-top: 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.consent-row input {
    margin-top: 2px;
    accent-color: var(--blue);
}

.booking-message {
    min-height: 22px;
    margin-top: 16px;
    color: var(--danger);
    font-size: 12px;
}

.booking-controls {
    margin-top: 26px;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
}


/* Anti-bot protection */
[hidden] {
    display: none !important;
}

.bot-trap-fields {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0.01 !important;
    pointer-events: none !important;
}

.booking-security {
    margin-top: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(47, 125, 244, 0.055);
}

.booking-security-copy {
    display: grid;
    gap: 5px;
}

.booking-security-copy strong {
    font-size: 13px;
}

.booking-security-copy span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.turnstile-wrap {
    min-width: 300px;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.booking-check-overlay {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: grid;
    place-items: center;
    padding: 24px;
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.booking-check-overlay.open {
    opacity: 1;
    visibility: visible;
}

.booking-check-dialog {
    width: min(360px, 100%);
    padding: 28px;
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-soft);
    box-shadow: var(--shadow);
    text-align: center;
}

.booking-check-dialog strong {
    margin-top: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
}

.booking-check-dialog small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.booking-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid var(--line);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: bookingSpinner 0.85s linear infinite;
}

@keyframes bookingSpinner {
    to { transform: rotate(360deg); }
}

/* Status */
.status-section {
    padding: 120px 0;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.15fr);
    align-items: center;
    gap: 75px;
}

.status-form {
    max-width: 560px;
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.status-form input {
    min-height: 52px;
    padding: 0 16px;
}

.status-demo-note {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
}

.work-status-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.work-status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.work-status-top small {
    color: var(--muted);
}

.status-badge {
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.status-waiting {
    background: rgba(148, 156, 166, 0.17);
    color: var(--muted);
}

.status-ready {
    background: rgba(42, 166, 111, 0.16);
    color: var(--success);
}

.work-status-card h3 {
    margin-top: 26px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
}

.work-status-card > p {
    margin-top: 13px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.status-timeline {
    margin-top: 38px;
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: start;
}

.status-point {
    width: 92px;
    display: grid;
    justify-items: center;
    gap: 9px;
    color: var(--muted);
    text-align: center;
}

.status-point > span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-soft);
    font-size: 11px;
}

.status-point.complete > span,
.status-point.current > span {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.status-point small {
    font-size: 10px;
    line-height: 1.35;
}

.status-line {
    position: relative;
    height: 2px;
    margin-top: 15px;
    overflow: hidden;
    background: var(--line);
}

.status-line i {
    position: absolute;
    inset: 0;
    display: block;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
}

.status-line.active i {
    transform: scaleX(1);
    animation: statusShimmer 2.2s ease-in-out infinite alternate;
}

@keyframes statusShimmer {
    from { opacity: 0.45; }
    to { opacity: 1; }
}

.status-result-message {
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}


/* Public appointment management */
.status-manage-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.status-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-actions .button {
    min-height: 46px;
}

.button-danger-outline {
    border: 1px solid rgba(219, 75, 75, 0.42);
    background: transparent;
    color: var(--danger);
}

.button-danger-outline:hover {
    border-color: var(--danger);
    background: rgba(219, 75, 75, 0.10);
}

.reschedule-panel {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-soft);
}

.reschedule-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.reschedule-panel-head > div {
    display: grid;
    gap: 5px;
}

.reschedule-panel-head small {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reschedule-panel-head strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
}

.reschedule-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.reschedule-date-field {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.reschedule-date-field span {
    color: var(--muted);
    font-size: 11px;
}

.reschedule-date-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}

.reschedule-times {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.reschedule-times > p {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
}

.reschedule-time {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.reschedule-time:hover,
.reschedule-time.selected {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}

.reschedule-message {
    min-height: 18px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.reschedule-message.error {
    color: var(--danger);
}

.reschedule-message.success {
    color: var(--success);
}

.reschedule-controls {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

[hidden] {
    display: none !important;
}

/* Contacts */
.contacts-section {
    padding: 100px 0;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.contacts-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: end;
    gap: 70px;
}

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

.contact-card {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.contact-card > span {
    color: var(--muted);
    font-size: 11px;
}

.contact-card a,
.contact-card p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.35;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1380px, calc(100% - 48px));
    min-height: 130px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p,
.footer-inner > a:last-child {
    color: var(--muted);
    font-size: 12px;
}

/* Modal */
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    padding: 20px;
    display: grid;
    place-items: center;
    background: rgba(4, 9, 14, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-modal.open {
    opacity: 1;
    visibility: visible;
}

.success-dialog {
    position: relative;
    width: min(520px, 100%);
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--bg-soft);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
    transform: translateY(15px) scale(0.98);
    transition: transform 0.3s ease;
}

.success-modal.open .success-dialog {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
}

.success-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 24px;
}

.success-dialog h2 {
    max-width: 390px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -1.5px;
}

.success-dialog > p:not(.eyebrow) {
    margin-top: 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.success-main-note {
    margin-top: 15px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.success-code {
    width: 100%;
    margin: 26px 0 18px;
    padding: 22px 18px;
    display: grid;
    justify-items: center;
    gap: 8px;
    border: 1px solid rgba(63, 130, 247, 0.32);
    border-radius: 20px;
    background: rgba(63, 130, 247, 0.08);
    color: inherit;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.success-code:hover,
.success-code:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(63, 130, 247, 0.62);
    background: rgba(63, 130, 247, 0.13);
    outline: none;
}

.success-code.copied {
    border-color: rgba(54, 190, 122, 0.62);
    background: rgba(54, 190, 122, 0.12);
}

.success-code span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.success-code strong {
    color: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 10vw, 78px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.16em;
    transform: translateX(0.08em);
}

.success-code small {
    color: var(--muted);
    font-size: 11px;
}

.success-booking-details {
    margin-bottom: 24px;
}

.post-success-bot-trap {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: auto !important;
    white-space: nowrap !important;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet */
@media (max-width: 1100px) {
    .desktop-nav {
        gap: 16px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
        gap: 38px;
    }

    .doctor-section {
        gap: 44px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-shell {
        grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
        gap: 34px;
    }

    .contacts-inner {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 860px) {
    html {
        scroll-padding-top: 75px;
    }

    .section,
    .section-narrow,
    .header-inner,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .site-header {
        position: sticky;
    }

    .header-inner {
        min-height: 74px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .header-booking-button {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        inset: 75px 0 auto;
        z-index: 99;
        padding: 20px 18px 28px;
        display: grid;
        gap: 8px;
        border-bottom: 1px solid var(--line);
        background: var(--bg-soft);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu a {
        padding: 15px 10px;
        border-bottom: 1px solid var(--line);
        font-family: Georgia, "Times New Roman", serif;
        font-size: 23px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        width: 100%;
        min-height: auto;
        padding: 58px 16px 34px;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero-background-overlay {
        background: linear-gradient(180deg, var(--hero-overlay-start) 0%, var(--hero-overlay-mid) 58%, var(--hero-overlay-end) 100%);
    }

    .hero h1 {
        font-size: clamp(47px, 14vw, 69px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-slider {
        height: 420px;
        border-radius: 23px;
    }

    .doctor-section {
        width: 100%;
        max-width: none;
        margin: 68px 0 0;
        padding: 56px 20px;
        grid-template-columns: 1fr;
        gap: 38px;
        border-radius: 0;
    }

    .doctor-section-divider {
        margin-top: 24px;
    }

    .doctor-photo-card,
    .doctor-profile-photo {
        min-height: 520px;
    }

    .doctor-content {
        padding: 0;
    }

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

    .mini-features {
        padding-bottom: 70px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mini-feature {
        min-height: auto;
    }

    .services-section {
        padding: 68px 0 85px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .service-card {
        min-height: 245px;
        border-radius: 21px;
    }

    .booking-section {
        padding: 75px 0;
    }

    .booking-shell {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .booking-intro {
        position: static;
    }

    .booking-progress {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .booking-progress li {
        padding: 0;
        display: grid;
        justify-items: center;
        gap: 7px;
        font-size: 9px;
        text-align: center;
    }

    .booking-card {
        min-height: 0;
        padding: 23px;
        border-radius: 23px;
    }

    .booking-service-options {
        grid-template-columns: 1fr;
    }

    .date-time-layout {
        grid-template-columns: 1fr;
    }

    .patient-form {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .notification-field {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-section {
        padding: 80px 0;
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: 120px;
    }

    .footer-inner {
        padding: 35px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .doctor-section {
        width: 100%;
        margin: 54px 0 0;
        padding: 44px 16px;
    }

    .section-title {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .eyebrow {
        letter-spacing: 2.5px;
    }

    .logo-main {
        font-size: 24px;
    }

    .hero-inner {
        padding-top: 48px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-slider {
        height: 340px;
    }

    .slider-caption small,
    .doctor-photo-caption small {
        display: none;
    }

    .doctor-photo-card,
    .doctor-profile-photo {
        min-height: 430px;
    }

    .doctor-stats {
        grid-template-columns: 1fr;
    }

    .doctor-stats article {
        min-height: 88px;
    }

    .booking-card {
        padding: 18px;
    }

    .calendar-card,
    .time-card {
        padding: 15px;
    }

    .calendar-grid,
    .calendar-weekdays {
        gap: 3px;
    }

    .calendar-day {
        border-radius: 9px;
        font-size: 12px;
    }

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

    .notification-field {
        grid-template-columns: 1fr;
    }

    .booking-controls {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .booking-controls .button {
        width: 100%;
    }

    .status-form {
        flex-direction: column;
    }

    .status-form .button {
        width: 100%;
    }

    .work-status-card {
        padding: 22px;
        border-radius: 22px;
    }

    .status-point {
        width: 66px;
    }

    .status-point small {
        font-size: 8px;
    }

    .success-dialog {
        padding: 30px 22px;
        border-radius: 22px;
    }
}


@media (max-width: 620px) {
    .status-actions,
    .reschedule-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .status-actions .button,
    .reschedule-controls .button {
        width: 100%;
    }

    .reschedule-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .reschedule-times {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


@media (max-width: 760px) {
    .booking-security {
        grid-template-columns: 1fr;
    }

    .turnstile-wrap {
        min-width: 0;
        justify-content: flex-start;
        overflow-x: auto;
    }
}

@media (max-width: 520px) {
    .notification-field {
        grid-template-columns: 1fr;
    }

    .booking-security {
        padding: 14px;
        border-radius: 15px;
    }

    .booking-check-dialog {
        padding: 24px 18px;
    }
}

/* ========================================
   MVP: подтверждение на сайте
======================================== */

.booking-direct-note {
    padding: 17px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(52, 120, 246, 0.24);
    border-radius: 16px;
    background: rgba(52, 120, 246, 0.07);
}

.booking-direct-note strong {
    color: var(--text);
    font-size: 13px;
}

.booking-direct-note span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.booking-message.error {
    color: var(--danger);
}

.booking-message.success {
    color: var(--success);
}

.status-neutral {
    background: rgba(148, 156, 166, 0.14);
    color: var(--muted);
}

.status-confirmed {
    background: rgba(52, 120, 246, 0.15);
    color: var(--blue);
}

.status-cancelled {
    background: rgba(224, 76, 76, 0.14);
    color: var(--danger);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links > a {
    color: var(--muted);
    font-size: 12px;
}

.doctor-access-link {
    opacity: 0.42;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.doctor-access-link:hover,
.doctor-access-link:focus-visible {
    opacity: 1;
    color: var(--text);
}

.success-code strong {
    cursor: copy;
    user-select: all;
}

@media (max-width: 860px) {
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .booking-direct-note {
        padding: 15px;
        border-radius: 14px;
    }
}

/* ========================================
   Логотип-кнопка и закрытый вход врача
======================================== */

.logo-trigger {
    appearance: none;
    -webkit-appearance: none;
    min-width: 166px;
    padding: 8px 10px 8px 8px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.logo-trigger:hover,
.logo-trigger:focus-visible {
    background: var(--surface);
    transform: translateY(-1px);
}

.logo-trigger:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--blue) 60%, transparent);
    outline-offset: 3px;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo-tooth {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--blue);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

.logo-tooth svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-trigger .logo-subtitle {
    margin-left: 34px;
}

.logo-trigger:hover .logo-tooth {
    color: var(--accent);
    transform: rotate(-7deg) scale(1.06);
}

body.modal-open {
    overflow: hidden;
}

.doctor-login-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.28s ease, opacity 0.28s ease;
}

.doctor-login-modal.open {
    visibility: visible;
    opacity: 1;
}

.doctor-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 14, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.doctor-login-dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    padding: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 0%, rgba(52, 120, 246, 0.18), transparent 36%),
        var(--surface-strong);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
    transform: translateY(18px) scale(0.97);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.doctor-login-modal.open .doctor-login-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.doctor-login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--muted);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.doctor-login-close:hover {
    color: var(--text);
    border-color: var(--blue);
    transform: rotate(5deg);
}

.doctor-login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 34px;
}

.doctor-login-tooth {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid rgba(52, 120, 246, 0.32);
    border-radius: 15px;
    background: var(--blue-soft);
    color: var(--blue);
}

.doctor-login-tooth svg {
    width: 100%;
    height: 100%;
}

.doctor-login-brand div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.doctor-login-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 400;
}

.doctor-login-brand span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
}

.doctor-login-dialog h2 {
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 7vw, 48px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -2px;
}

.doctor-login-description {
    max-width: 360px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.doctor-login-form {
    display: grid;
    gap: 15px;
}

.doctor-login-form label {
    display: grid;
    gap: 8px;
}

.doctor-login-form label > span {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.doctor-login-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-soft);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.doctor-login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.1);
}

.doctor-login-error {
    min-height: 20px;
    color: var(--danger);
    font-size: 12px;
    line-height: 1.45;
}

.doctor-login-submit {
    min-height: 54px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    border-radius: 15px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.doctor-login-submit:hover {
    transform: translateY(-2px);
    background: var(--blue-dark);
}

.doctor-login-submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.doctor-login-submit span:last-child {
    font-size: 19px;
}

.doctor-login-security {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

/* ========================================
   Отзывы и расположение в Яндекс Картах
======================================== */

.yandex-section {
    padding: 100px 0 44px;
}

.yandex-inner {
    display: grid;
    gap: 18px;
}

.yandex-review-panel {
    min-height: 190px;
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 0.55fr) minmax(290px, 1fr);
    align-items: center;
    gap: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 51, 51, 0.1), transparent 42%),
        var(--surface);
}

.yandex-brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yandex-mark {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #ff3333;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 31px;
    font-weight: 800;
}

.yandex-brand-block div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yandex-brand-block strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
}

.yandex-brand-block span:last-child {
    color: var(--muted);
    font-size: 12px;
}

.yandex-rating-block {
    min-width: 0;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: start;
    column-gap: 9px;
}

.yandex-rating-block strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1;
}

.yandex-star {
    color: #ffce24;
    font-size: 34px;
}

.yandex-rating-block small {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.yandex-review-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.yandex-button {
    min-height: 52px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.yandex-button:hover {
    transform: translateY(-2px);
}

.yandex-button-primary {
    border: 1px solid #ff3333;
    background: #ff3333;
    color: #fff;
}

.yandex-button-light {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.yandex-button-light:hover {
    border-color: #ff3333;
}

.yandex-map-card {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
}

.yandex-map-card iframe {
    width: 100%;
    height: 500px;
    display: block;
    border: 0;
    filter: saturate(0.92);
}

.map-open-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    min-height: 52px;
    padding: 0 19px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 15px;
    background: rgba(7, 16, 24, 0.84);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.map-open-button:hover {
    transform: translateY(-2px);
    background: rgba(7, 16, 24, 0.94);
}

.compact-contacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.compact-contact {
    min-height: 88px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.compact-contact > span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.compact-contact a,
.compact-contact p {
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.contacts-demo-note {
    margin-top: -2px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

@media (max-width: 900px) {
    .yandex-review-panel {
        grid-template-columns: 1fr 0.6fr;
    }

    .yandex-review-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .logo-trigger {
        min-width: 0;
        padding-inline: 4px;
    }

    .logo-trigger .logo-subtitle {
        margin-left: 30px;
    }

    .doctor-login-dialog {
        padding: 28px 22px 24px;
        border-radius: 23px;
    }

    .yandex-section {
        padding-top: 72px;
    }

    .yandex-review-panel {
        padding: 22px;
        grid-template-columns: 1fr;
        gap: 22px;
        border-radius: 22px;
    }

    .yandex-rating-block strong {
        font-size: 48px;
    }

    .yandex-review-actions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .yandex-map-card,
    .yandex-map-card iframe {
        min-height: 420px;
        height: 420px;
    }

    .map-open-button {
        left: 14px;
        right: 14px;
        bottom: 14px;
        justify-content: space-between;
    }

    .compact-contacts {
        grid-template-columns: 1fr;
    }

    .compact-contact {
        min-height: 72px;
        padding: 14px 16px;
    }
}

@media (max-width: 420px) {
    .logo-tooth {
        width: 22px;
        height: 22px;
    }

    .logo-trigger .logo-main {
        font-size: 23px;
    }

    .logo-trigger .logo-subtitle {
        margin-left: 28px;
        font-size: 8px;
        letter-spacing: 2.4px;
    }

    .doctor-login-modal {
        padding: 12px;
    }

    .doctor-login-brand {
        margin-bottom: 27px;
    }

    .yandex-map-card,
    .yandex-map-card iframe {
        min-height: 360px;
        height: 360px;
    }
}

/* ========================================
   Универсальное подтверждение действия
======================================== */

body.app-confirm-open {
    overflow: hidden;
}

.app-confirm {
    position: fixed;
    inset: 0;
    z-index: 12000;

    display: grid;
    place-items: center;
    padding: 20px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.24s ease,
        visibility 0.24s ease;
}

.app-confirm.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.app-confirm-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 9, 16, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.app-confirm-dialog {
    position: relative;
    z-index: 1;

    width: min(100%, 500px);
    padding: 30px;

    overflow: hidden;

    border: 1px solid rgba(126, 160, 196, 0.18);
    border-radius: 26px;

    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(61, 130, 247, 0.16),
            transparent 35%
        ),
        linear-gradient(
            155deg,
            rgba(15, 29, 42, 0.985),
            rgba(7, 17, 27, 0.995)
        );

    color: #f2f6fb;

    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);

    transform: translateY(16px) scale(0.97);
    opacity: 0;

    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.24s ease;
}

.app-confirm.is-open .app-confirm-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.app-confirm-close {
    position: absolute;
    top: 16px;
    right: 16px;

    width: 40px;
    height: 40px;

    display: inline-grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.035);
    color: rgba(242, 246, 251, 0.76);

    font-size: 23px;
    line-height: 1;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.app-confirm-close:hover {
    transform: rotate(5deg) scale(1.05);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.075);
}

.app-confirm-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(83, 148, 255, 0.28);
    border-radius: 19px;

    background: rgba(55, 126, 246, 0.15);
    color: #78adff;

    font-size: 25px;
    font-weight: 800;
}

.app-confirm-kicker {
    margin: 0 0 9px;

    color: #7eb0ff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.app-confirm-title {
    max-width: 410px;
    margin: 0;

    color: #f4f7fb;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 5vw, 35px);
    font-weight: 400;
    line-height: 1.12;
}

.app-confirm-message {
    max-width: 430px;
    margin: 14px 0 0;

    color: rgba(226, 234, 243, 0.72);

    font-size: 15px;
    line-height: 1.68;
}

.app-confirm-actions {
    margin-top: 30px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.app-confirm-cancel,
.app-confirm-submit {
    min-height: 52px;
    padding: 0 20px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.app-confirm-cancel {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
    color: #eef3f9;
}

.app-confirm-cancel:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.075);
}

.app-confirm-submit {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #4388ff, #2866db);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(45, 108, 221, 0.24);
}

.app-confirm-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(45, 108, 221, 0.34);
}

.app-confirm[data-tone="danger"] .app-confirm-dialog {
    background:
        radial-gradient(
            circle at 88% 8%,
            rgba(238, 79, 86, 0.16),
            transparent 35%
        ),
        linear-gradient(
            155deg,
            rgba(31, 21, 27, 0.985),
            rgba(15, 11, 17, 0.995)
        );
}

.app-confirm[data-tone="danger"] .app-confirm-icon {
    border-color: rgba(255, 105, 111, 0.3);
    background: rgba(236, 72, 78, 0.15);
    color: #ff7d82;
}

.app-confirm[data-tone="danger"] .app-confirm-kicker {
    color: #ff8b90;
}

.app-confirm[data-tone="danger"] .app-confirm-submit {
    background: linear-gradient(135deg, #f06066, #cb343c);
    box-shadow: 0 12px 28px rgba(207, 53, 61, 0.23);
}

.app-confirm[data-tone="warning"] .app-confirm-icon {
    border-color: rgba(232, 178, 86, 0.3);
    background: rgba(229, 166, 58, 0.14);
    color: #f2bd63;
}

.app-confirm[data-tone="warning"] .app-confirm-kicker {
    color: #efbd69;
}

.app-confirm[data-tone="warning"] .app-confirm-submit {
    background: linear-gradient(135deg, #dca64e, #b97923);
    box-shadow: 0 12px 28px rgba(183, 117, 31, 0.22);
}

.app-confirm[data-tone="success"] .app-confirm-icon {
    border-color: rgba(64, 194, 133, 0.3);
    background: rgba(47, 185, 119, 0.14);
    color: #62d69f;
}

.app-confirm[data-tone="success"] .app-confirm-kicker {
    color: #69dca6;
}

.app-confirm[data-tone="success"] .app-confirm-submit {
    background: linear-gradient(135deg, #35bf80, #178b5b);
    box-shadow: 0 12px 28px rgba(27, 143, 93, 0.22);
}

@media (max-width: 560px) {
    .app-confirm {
        align-items: end;
        padding: 12px;
    }

    .app-confirm-dialog {
        width: 100%;
        padding: 25px 20px 20px;
        border-radius: 24px;
        transform: translateY(30px) scale(0.99);
    }

    .app-confirm-icon {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    .app-confirm-actions {
        grid-template-columns: 1fr;
    }

    .app-confirm-cancel,
    .app-confirm-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-confirm,
    .app-confirm-dialog,
    .app-confirm-close,
    .app-confirm-cancel,
    .app-confirm-submit {
        transition: none !important;
    }
}



/* Запомнить вход врача */
.doctor-login-form .doctor-remember-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.doctor-login-form .doctor-remember-option:hover {
    border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
    background: color-mix(in srgb, var(--blue-soft) 58%, var(--surface));
}

.doctor-remember-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.doctor-remember-control {
    position: relative;
    width: 42px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.doctor-remember-control i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--muted);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.22s ease;
}

.doctor-remember-option > input:checked + .doctor-remember-control {
    border-color: var(--blue);
    background: var(--blue);
}

.doctor-remember-option > input:checked + .doctor-remember-control i {
    transform: translateX(18px);
    background: #fff;
}

.doctor-remember-option > input:focus-visible + .doctor-remember-control {
    box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.14);
}

.doctor-remember-copy {
    display: grid;
    gap: 3px;
}

.doctor-login-form .doctor-remember-copy strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.doctor-login-form .doctor-remember-copy small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}


@media (prefers-reduced-motion: reduce) {
    .doctor-background-video {
        display: none;
    }

    .doctor-video-background {
        background: url("/static/images/01.jpg") center / cover no-repeat;
    }
}
