:root {
    --color-green: #1F8F61;
    --color-green-dark: #178A5A;
    --color-green-deep: #0D3B31;
    --color-green-soft: #EAF3EE;
    --color-page: #F7FAF8;
    --color-white: #ffffff;
    --color-text: #1F2D29;
    --color-muted: #66736E;
    --color-border: #DFE8E4;
    --color-warm: #D7B56D;
    --shadow-soft: 0 16px 36px rgba(18, 58, 49, 0.08);
    --shadow-card: 0 8px 22px rgba(18, 58, 49, 0.07);
    --radius: 8px;
    --radius-pill: 999px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 999px;
    --shadow-sm: 0 6px 18px rgba(15, 48, 74, 0.06);
    --shadow-md: 0 10px 26px rgba(15, 48, 74, 0.10);
    --shadow-lg: 0 18px 44px rgba(15, 48, 74, 0.12);
    --shadow-btn: 0 6px 16px rgba(31, 143, 97, 0.28);
    --color-text-soft: #94a3b8;
    --color-emerald: #10B981;
    --color-emerald-dark: #059669;
    --color-emerald-soft: #D1FAE5;
    --color-page-bg: #fafbfc;
    --color-hero-bg: #f7f9fb;
    --color-card-bg: #ffffff;
    --color-text-dark: #1a2332;
    --color-text-body: #4a5568;
    --color-text-muted: #64748b;
    --color-text-hint: #94a3b8;
    --color-border-card: #e8ecf0;
    --color-border-line: #e2e8f0;
    --space-section: 72px;
    --space-section-mobile: 52px;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-page);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

a,
button,
input,
textarea,
select {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(47, 155, 116, 0.25);
    outline-offset: 3px;
}

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

p {
    margin: 0;
}

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

/* === СТРАНИЦА О КЛИНИКЕ === */
.page-about {
    padding: 32px 0 80px;
    background: var(--color-page-bg);
}

.page-about__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 24px 0 32px;
    color: var(--color-text-dark);
    letter-spacing: 0;
}

.page-about__content {
    max-width: 920px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text-body);
    margin-bottom: 56px;
}

.page-about__content p {
    margin: 0 0 16px;
}

.page-about__content h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin: 32px 0 16px;
    color: var(--color-text-dark);
    letter-spacing: 0;
}

.page-about__content ul,
.page-about__content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.page-about__section {
    margin-bottom: 64px;
}

.page-about__section-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 28px;
    color: var(--color-text-dark);
    letter-spacing: 0;
}

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

.license-item {
    display: block;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border-card);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-sm);
}

.license-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.license-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.clinic-photo-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
}

.clinic-photo-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

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

/* === СТРАНИЦА КОНТАКТЫ === */
.page-contacts {
    padding: 32px 0 80px;
    background: var(--color-page-bg);
}

.page-contacts__title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 24px 0 12px;
    color: var(--color-text-dark);
    letter-spacing: 0;
}

.page-contacts__subtitle {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.page-contacts__license {
    font-size: 15px;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 40px;
}

.contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contacts-block__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--color-text-dark);
    letter-spacing: 0;
}

.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 17px;
    color: var(--color-text-dark);
}

.contacts-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border-line);
    color: var(--color-emerald);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.contacts-list__item a {
    color: var(--color-text-dark);
    text-decoration: none;
}

.contacts-list__item a:hover {
    color: var(--color-emerald);
}

.contacts-directions {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-body);
}

.contacts-directions p {
    margin: 0 0 12px;
}

.contacts-directions ul {
    padding-left: 20px;
    margin: 0;
}

.contacts-directions li {
    margin-bottom: 8px;
}

.contacts-map {
    position: relative;
}

.contacts-map__wrap {
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contacts-map__wrap iframe {
    width: 100% !important;
    height: 500px !important;
    border: 0;
    display: block;
}

.contacts-map__placeholder {
    background: var(--color-card-bg);
    border: 2px dashed var(--color-emerald);
    border-radius: 20px;
    padding: 60px 32px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 15px;
}

.contacts-map__route {
    min-height: 260px;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.meddiya-breadcrumbs {
    padding: 16px 0 12px;
    font-size: 13px;
    line-height: 1.4;
}

.meddiya-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.meddiya-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-hint);
    font-weight: 500;
}

.meddiya-breadcrumbs__link {
    color: var(--color-text-hint);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.meddiya-breadcrumbs__link:hover {
    color: var(--color-text-hint);
    background: transparent;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.meddiya-breadcrumbs__current {
    color: var(--color-text-dark);
    font-weight: 600;
    padding: 6px 12px;
}

.meddiya-breadcrumbs__sep {
    margin: 0 2px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1;
}

.meddiya-breadcrumbs__item:first-child .meddiya-breadcrumbs__link {
    padding-left: 0;
}

.site-main {
    overflow: hidden;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 30px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

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

.btn-primary,
.button--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--color-green);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-primary:hover,
.button--primary:hover {
    background: var(--color-green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn);
    color: #fff;
}

.btn-secondary,
.button--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    border: 2px solid var(--color-green);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--color-green);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.btn-secondary:hover,
.button--secondary:hover {
    background: var(--color-green);
    color: #fff;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-green);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s ease;
}

.btn-ghost:hover {
    opacity: .75;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-green);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header__top {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.site-header__top-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 0;
}

.site-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.site-logo__image {
    display: block;
    width: auto;
    height: 72px;
    object-fit: contain;
}

.site-logo__title {
    display: block;
    color: var(--color-green-dark);
    font-size: 25px;
    line-height: 1.05;
    font-weight: 900;
}

.site-logo__subtitle {
    display: block;
    color: var(--color-muted);
    font-size: 13px;
}

.site-header__slogan {
    flex: 1 1 auto;
    margin-left: 12px;
    color: var(--color-green-dark);
    font-size: 17px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
}

.site-header__info {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    color: #1f302d;
    font-size: 15px;
    font-weight: 650;
}

.site-header__info a:hover {
    color: var(--color-green-dark);
}

.site-header__info-item {
    color: var(--color-muted);
}

.site-header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.site-header__phone {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.site-header__phone:hover {
    color: var(--color-green-dark);
}

.site-header__messenger {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
    font-size: 12px;
    font-weight: 900;
}

.site-header__instagram {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.site-header__social-icon,
.site-header__messenger svg,
.site-header__instagram svg {
    width: 30px;
    height: 30px;
    display: block;
}

.site-header__messenger:hover,
.site-header__instagram:hover {
    transform: translateY(-1px);
}

.site-header__messenger:hover {
    box-shadow: none;
}

.site-header__instagram:hover {
    box-shadow: none;
}

.service-nav {
    background: var(--color-green);
    border-bottom: 0;
    box-shadow: none;
}

.service-nav__inner {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: visible;
}

.service-nav__inner > a,
.site-nav__list a {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 750;
    white-space: nowrap;
}

.service-nav__inner > a:hover,
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
    background: rgba(255, 255, 255, 0.18);
    color: var(--color-white);
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list li {
    position: relative;
}

.site-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    margin: 0;
    padding: 6px 0;
    list-style: none;
    border: 1px solid var(--color-border);
    border-top: 0;
    border-radius: 0 0 var(--r-md) var(--r-md);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__list .sub-menu a {
    width: 100%;
    height: auto;
    min-height: 38px;
    justify-content: flex-start;
    padding: 9px 16px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
}

.site-nav__list .sub-menu a:hover,
.site-nav__list .sub-menu .current-menu-item > a,
.site-nav__list .sub-menu .current_page_item > a {
    background: var(--color-green-soft);
    color: var(--color-text);
}

.floating-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-contact__links {
    display: grid;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.floating-contact.is-open .floating-contact__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-contact__link {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--r-pill);
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.floating-contact__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
}

.floating-contact__link--whatsapp .floating-contact__icon {
    color: #25d366;
}

.floating-contact__link--instagram .floating-contact__icon {
    color: #e1306c;
}

@keyframes fab-pulse {
    0%,
    100% {
        box-shadow: 0 12px 28px rgba(31, 143, 97, 0.40), 0 4px 10px rgba(31, 143, 97, 0.25);
    }

    50% {
        box-shadow: 0 12px 36px rgba(31, 143, 97, 0.55), 0 4px 14px rgba(31, 143, 97, 0.35);
    }
}

.floating-contact__button {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--color-green);
    color: var(--color-white);
    box-shadow: 0 12px 28px rgba(31, 143, 97, 0.40), 0 4px 10px rgba(31, 143, 97, 0.25);
    cursor: pointer;
    transition: transform .25s ease;
    animation: fab-pulse 2.4s ease-in-out infinite;
}

.floating-contact__button:hover {
    background: var(--color-green);
    transform: scale(1.08);
    animation-play-state: paused;
}

.floating-contact__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
}

.floating-contact__button-icon svg {
    width: 26px;
    height: 26px;
}

.floating-contact__button-icon--chat {
    width: 26px;
    height: 26px;
}

.floating-contact__button-icon--chat svg {
    display: none;
}

.floating-contact__button-icon--chat::before {
    content: "";
    width: 26px;
    height: 26px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M6.6%203.3c.5-.3%201.2-.2%201.5.3l2%203c.3.4.3%201%200%201.4l-1%201.5c.8%201.7%202.1%203%203.8%203.8l1.5-1c.4-.3%201-.3%201.4%200l3%202c.5.3.6%201%20.3%201.5l-1.3%202.1c-.4.6-1.1.9-1.8.8A12.3%2012.3%200%200%201%205.3%208c-.1-.7.2-1.4.8-1.8l.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M6.6%203.3c.5-.3%201.2-.2%201.5.3l2%203c.3.4.3%201%200%201.4l-1%201.5c.8%201.7%202.1%203%203.8%203.8l1.5-1c.4-.3%201-.3%201.4%200l3%202c.5.3.6%201%20.3%201.5l-1.3%202.1c-.4.6-1.1.9-1.8.8A12.3%2012.3%200%200%201%205.3%208c-.1-.7.2-1.4.8-1.8l.5-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.floating-contact__button-icon--close,
.floating-contact.is-open .floating-contact__button-icon--chat {
    display: none;
}

.floating-contact.is-open .floating-contact__button-icon--close {
    display: inline-flex;
}

.home-hero {
    min-height: 600px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-hero-bg);
    background-size: cover;
    background-position: center;
}

.home-hero--has-image {
    background-image: var(--home-hero-image);
}

.home-hero__mobile-media {
    display: none;
}

.home-hero__inner {
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 72px 0;
}

.home-hero__card {
    width: min(560px, 100%);
    margin-left: auto;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--r-xl);
    background: var(--color-white);
    box-shadow: 0 24px 60px rgba(15, 48, 74, 0.18);
}

.home-about__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 5px 11px;
    border: 1px solid rgba(47, 155, 116, 0.18);
    border-radius: var(--r-pill);
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-transform: uppercase;
}

.home-hero__title {
    margin: 0;
    color: var(--color-text);
    font-size: 44px;
    line-height: 1.12;
    font-weight: 900;
}

.home-intro {
    position: relative;
    z-index: 3;
    margin-top: -38px;
}

.home-intro__card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    box-shadow: var(--shadow-md);
}

.home-intro__col {
    padding: 32px 38px;
    color: var(--color-white);
}

.home-intro__label {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-intro__col h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.18;
}

.home-intro__col p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
}

.home-intro__col a:not(.home-intro__phone) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 11px 28px;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.home-intro__col a:not(.home-intro__phone):hover {
    background: var(--color-white);
    color: var(--color-green);
}

.home-intro__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.home-intro__phone svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #fff;
}

.home-intro__phone:hover {
    color: #fff;
    opacity: .82;
}

.section {
    padding-block: var(--space-section);
    padding-inline: 0;
    background: var(--color-white);
}

.section--services,
.section--doctors,
.section--reviews {
    background: var(--color-white);
}

.section--prices {
    background: var(--color-page);
}

.appointment-section {
    background: var(--color-white);
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section__title {
    margin: 0;
    color: var(--color-text);
    font-size: 32px;
    line-height: 1.16;
    font-weight: 900;
}

.section__text {
    max-width: 760px;
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 17px;
    line-height: 1.65;
}

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

.home-about__card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 36px;
    align-items: stretch;
    border-radius: 0;
    background: transparent;
}

.home-about__content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-about__text {
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 1.8;
}

.home-about__text p {
    margin: 0 0 16px;
}

.home-about__text p:last-child {
    margin-bottom: 0;
}

.service-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 14px;
    font-weight: 800;
}

.home-about__visual {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-lg);
    background: var(--color-green-soft);
    color: rgba(31, 143, 97, 0.15);
    font-size: 58px;
    font-weight: 900;
    overflow: hidden;
}

.home-about__visual--image {
    background: var(--color-green-soft);
    color: inherit;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.cards-grid {
    display: grid;
    gap: 18px;
}

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

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

.service-card,
.doctor-card,
.review-card,
.promo-card {
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card,
.review-card,
.promo-card {
    padding: 24px;
}

.service-card {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-green);
}

.doctor-card:hover,
.review-card:hover,
.promo-card:hover,
.price-item:hover,
.contacts-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-green);
}

.service-card__media {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: var(--color-green-soft);
}

.service-card__media img,
.service-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0.55;
}

.service-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.service-card__title,
.doctor-card__title,
.price-item__title,
.promo-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 850;
}

.service-card__title a:hover {
    color: var(--color-green-dark);
}

.service-card__text,
.doctor-card__text,
.price-item__note,
.review-card__text,
.promo-card__text {
    color: var(--color-muted);
}

.service-card__text {
    margin-top: 12px;
}

.service-card__price {
    margin-top: auto;
    padding-top: 20px;
    color: var(--color-green-dark);
    font-size: 19px;
    font-weight: 900;
}

.service-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.service-card__link,
.doctor-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-green);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s ease;
}

.service-card__link:hover,
.doctor-card__link:hover {
    opacity: .75;
}

.service-card__appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 18px;
    border: 2px solid var(--color-green);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--color-green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.service-card__appointment:hover {
    background: var(--color-green);
    color: #fff;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.home-service-card {
    min-width: 0;
    transition: transform .25s ease;
}

.home-service-card:hover {
    transform: translateY(-4px);
}

.home-service-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.home-service-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--color-green-soft);
}

.home-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.home-service-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 22px;
    font-weight: 900;
    opacity: .48;
}

.home-service-card__body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    padding: 14px 4px 0;
    text-align: center;
}

.home-service-card__title {
    margin: 0;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
}

.section--stats {
    padding-block: 28px 12px;
}

.section--stats .stats-card {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 56px 40px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
    box-shadow: var(--shadow-lg);
}

.section--stats .stats-card::before,
.section--stats .stats-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.section--stats .stats-card::before {
    top: -90px;
    left: -70px;
}

.section--stats .stats-card::after {
    right: -80px;
    bottom: -100px;
}

.section--stats .stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: center;
    box-shadow: none;
}

.section--stats .stats-item {
    min-width: 0;
}

.section--stats .stats-num {
    color: #fff;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.section--stats .stats-label {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    line-height: 1.5;
}

.doctor-card {
    overflow: hidden;
}

.doctor-card__image {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f6ef, #f6faf8);
    color: var(--color-muted);
    font-weight: 850;
}

.doctor-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card__content {
    padding: 22px;
}

.doctor-card__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.doctor-card__position {
    margin-top: 8px;
    color: var(--color-green-dark);
    font-weight: 850;
}

.doctor-card__text {
    margin-top: 12px;
    font-size: 15px;
}

.doctor-card__link {
    margin-top: 16px;
}

.price-list {
    display: grid;
    gap: 10px;
}

.price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.price-item__note {
    margin-top: 6px;
    font-size: 15px;
}

.price-item__value {
    flex: 0 0 auto;
    color: var(--color-green-dark);
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.section--promotions {
    background: var(--color-white);
}

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

.promo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: var(--color-white);
}

.promo-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.promo-card__img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--color-green-soft);
}

.promo-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-card__body {
    padding: 18px 20px;
}

.promo-card__excerpt {
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-card__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.promo-card__prices .price-old {
    color: var(--color-text-muted);
    font-size: 14px;
    text-decoration: line-through;
}

.promo-card__prices .price-new {
    color: var(--color-emerald);
    font-size: 20px;
    font-weight: 800;
}

.promo-card__dates {
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.promo-card__cta {
    margin-top: auto;
    padding: 0 20px 18px;
}

.promo-card__cta .btn-book-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 24px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--color-green);
    color: var(--color-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.promo-card__cta .btn-book-modal:hover {
    background: var(--color-green-dark);
}

.promo-card__badge {
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 13px;
    font-weight: 850;
}

.promo-card__text {
    margin: 12px 0 20px;
}

.promo-card__text p {
    margin: 0;
}

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

.review-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 850;
}

.review-card__author {
    color: var(--color-text);
    font-weight: 850;
}

.review-card__source {
    color: var(--color-muted);
    font-size: 13px;
}

.review-card__rating {
    margin-bottom: 10px;
    color: var(--color-warm);
    font-size: 15px;
}

.review-card__text p {
    margin: 0;
}

.home-slider {
    --home-slider-gap: 20px;
    --home-slider-visible: 3;
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    column-gap: 12px;
    min-width: 0;
}

.home-slider__track {
    grid-column: 2;
    min-width: 0;
    display: flex;
    gap: var(--home-slider-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 0 12px;
}

.home-slider--doctors .home-slider__track {
    align-items: stretch;
}

.home-slider--doctors .doctor-card {
    height: auto;
}

.home-slider__track::-webkit-scrollbar {
    display: none;
}

.home-slider__track > * {
    flex: 0 0 calc((100% - (var(--home-slider-gap) * (var(--home-slider-visible) - 1))) / var(--home-slider-visible));
    scroll-snap-align: start;
}

.home-slider__nav {
    position: static;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-emerald);
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-emerald);
    font-family: inherit;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transform: none;
}

.home-slider__nav:hover {
    background: var(--color-emerald);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.home-slider__nav:disabled {
    opacity: .42;
    cursor: default;
    background: var(--color-white);
    color: var(--color-emerald);
    transform: none;
    box-shadow: none;
}

.home-slider__nav--prev {
    grid-column: 1;
    justify-self: start;
}

.home-slider__nav--next {
    grid-column: 3;
    justify-self: end;
}

.appointment-section {
    padding-block: var(--space-section);
    padding-inline: 0;
}

.appointment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 32px;
    align-items: stretch;
    padding: 42px 46px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, #e8f6ef 0%, #d9f0e7 100%);
    box-shadow: var(--shadow-md);
}

.appointment__list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.appointment__list li {
    color: var(--color-text);
    font-weight: 650;
}

.appointment__box {
    padding: 0 0 0 32px;
    border-left: 1px solid rgba(31, 143, 97, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.appointment__box-title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.appointment__notice {
    margin-top: 12px;
    color: var(--color-muted);
}

.appointment__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.appointment__box .fluentform {
    margin-top: 22px;
}

.appointment__box .fluentform .ff-el-group {
    margin-bottom: 14px;
}

.appointment__box .fluentform input,
.appointment__box .fluentform select,
.appointment__box .fluentform textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--r-sm);
    background: var(--color-white);
    color: var(--color-text);
    font: inherit;
    padding: 12px 14px;
}

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

.contacts-card {
    display: grid;
    gap: 0;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    background: linear-gradient(155deg, var(--color-white) 0%, #f4faf7 100%);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.contacts-item {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.contacts-item + .contacts-item {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.contacts-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.contacts-item a,
.contacts-item p {
    color: var(--color-text);
    font-size: 17px;
    font-weight: 650;
}

.contacts-item a {
    display: block;
    overflow-wrap: anywhere;
}

.contacts-item a + a {
    margin-top: 4px;
}

.contacts-item em {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
}

.map-placeholder {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 30px;
    border-radius: var(--r-lg);
    background:
        linear-gradient(135deg, rgba(232, 246, 239, 0.9), rgba(255, 255, 255, 0.72)),
        linear-gradient(90deg, rgba(18, 58, 49, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(18, 58, 49, 0.08) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    box-shadow: var(--shadow-sm);
}

.map-placeholder__label {
    width: fit-content;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: var(--color-white);
    color: var(--color-green-dark);
    font-size: 13px;
    font-weight: 850;
}

.map-placeholder strong {
    max-width: 460px;
    color: var(--color-text);
    font-size: 30px;
    line-height: 1.18;
    font-weight: 900;
}

.map-placeholder span:last-child {
    max-width: 460px;
    color: var(--color-muted);
}

.map-placeholder--iframe {
    min-height: 340px;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
    background: var(--color-green-soft);
}

.map-placeholder--iframe iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

/* ===== ПОДВАЛ ===== */
.site-footer {
    background: #0F4A33;
    color: rgba(255, 255, 255, 0.85);
    padding: 32px 0 0;
    margin-top: 40px;
}

.site-footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1fr 0.8fr;
    align-items: start;
    gap: 32px;
    padding-bottom: 24px;
}

.footer-col__title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.3;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
}

.footer-logo img {
    max-width: 90px;
    height: auto;
}

.footer-logo span {
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts__item {
    padding: 4px 0 4px 26px;
    position: relative;
    font-size: 13.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contacts__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.7;
}

.footer-contacts__item--phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

.footer-contacts__item--email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.footer-contacts__item--address::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.footer-menu,
.footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li,
.footer__menu li {
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.35;
}

.footer-menu li a,
.footer__menu li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 150ms ease;
}

.footer-menu li a:hover,
.footer__menu li a:hover {
    color: #ffffff;
}

.footer-socials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.footer-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.footer-social--phone {
    background: #5DADE2;
}

.footer-social--whatsapp {
    background: #25D366;
}

.footer-social--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.footer-bottom__sep {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.page-default {
    padding: 32px 0 80px;
    background: var(--color-page-bg);
}

.page-default__article {
    max-width: 920px;
}

.page-default__title {
    margin: 24px 0 32px;
    color: var(--color-text-dark);
    font-size: 48px;
    line-height: 1.12;
    font-weight: 800;
}

.page-template-default .entry-content h2,
body.page-privacy .entry-content h2,
body.page-consent .entry-content h2 {
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 22px;
    color: var(--color-text-dark);
}

.page-template-default .entry-content p,
body.page-privacy .entry-content p,
body.page-consent .entry-content p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--color-text-body);
}

.page-template-default .entry-content ul {
    margin: 12px 0 18px 24px;
    line-height: 1.7;
    color: var(--color-text-body);
}

.page-template-default .entry-content li {
    margin-bottom: 6px;
}

.reviews-page {
    background: var(--color-page-bg);
}

.reviews-page__hero {
    padding: 56px 0 28px;
    background: var(--color-hero-bg);
}

.reviews-page__title {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 46px;
    font-weight: 900;
    line-height: 1.12;
}

.reviews-page__subtitle {
    max-width: 760px;
    margin-top: 14px;
    color: var(--color-text-muted);
    font-size: 17px;
    line-height: 1.65;
}

.reviews-page__section {
    background: var(--color-page-bg);
    padding-top: 40px;
}

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

.reviews-page-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--color-border-card);
    border-radius: var(--r-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.reviews-page-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reviews-page-card__avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.reviews-page-card__author {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.3;
}

.reviews-page-card__meta {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.reviews-page-card__rating {
    margin-top: 18px;
    color: #d6dce2;
    font-size: 17px;
    letter-spacing: 0;
}

.reviews-page-card__rating .is-active {
    color: var(--color-warm);
}

.reviews-page-card__text {
    margin-top: 14px;
    color: var(--color-text-body);
    font-size: 15px;
    line-height: 1.7;
}

.reviews-page-card__text p {
    margin: 0 0 12px;
}

.reviews-page-card__text p:last-child {
    margin-bottom: 0;
}

.reviews-page-card__date {
    margin-top: auto;
    padding-top: 18px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.reviews-page__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.reviews-page__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 800;
}

.reviews-page__pagination .page-numbers.current,
.reviews-page__pagination .page-numbers:hover {
    border-color: var(--color-green);
    background: var(--color-green);
    color: #fff;
}

.reviews-page__empty {
    color: var(--color-text-muted);
}

@media (max-width: 1180px) {
    .site-header__top-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .site-header__info {
        justify-content: flex-start;
        order: 3;
        width: 100%;
    }

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

@media (max-width: 900px) {
    .container {
        width: min(100% - 32px, 1380px);
    }

    body.admin-bar .site-header {
        top: 46px;
    }

    .site-nav__list .sub-menu {
        position: static;
        width: max-content;
        min-width: 100%;
        max-width: none;
        border-top: 1px solid var(--color-border);
        border-color: var(--color-border);
        border-radius: 0;
        background: var(--color-white);
        box-shadow: none;
        transform: none;
    }

    .site-nav__list li:hover > .sub-menu,
    .site-nav__list li:focus-within > .sub-menu {
        opacity: 0;
        visibility: hidden;
    }

    .site-nav__list li.is-open > .sub-menu {
        opacity: 1;
        visibility: visible;
    }

    .home-hero,
    .home-hero__inner {
        min-height: 560px;
    }

    .home-hero__inner {
        padding: 56px 0;
    }

    .home-hero__card {
        width: min(520px, 100%);
        padding: 36px;
    }

    .home-hero__title {
        font-size: 34px;
    }

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

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

    .home-intro__card,
    .home-about__card,
    .appointment,
    .contacts-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .reviews-grid,
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .appointment__box {
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(31, 143, 97, 0.18);
    }

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

@media (max-width: 768px) {
    .home-hero {
        min-height: 0;
        background: var(--color-hero-bg);
    }

    .home-hero--has-image {
        background-image: none;
    }

    .home-hero__mobile-media {
        display: block;
        height: 320px;
        overflow: hidden;
        background: var(--color-green-soft);
    }

    .home-hero__mobile-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        image-rendering: auto;
    }

    .home-hero__inner {
        display: block;
        min-height: 0;
        padding: 0 0 40px;
    }

    .home-hero__card {
        position: relative;
        width: 100%;
        margin: -34px 0 0;
        padding: 30px 28px;
        border-radius: var(--r-lg);
    }

    .home-intro {
        margin-top: 0;
    }

    .section,
    .home-about,
    .appointment-section {
        padding-block: var(--space-section-mobile);
    }

    .section--stats {
        padding-block: 28px 12px;
    }

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

    .section--stats .stats-item {
        padding: 20px;
    }

    .section--stats .stats-item + .stats-item {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .reviews-page__title {
        font-size: 34px;
    }

    .home-slider {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "track track"
            "prev next";
        row-gap: 14px;
        column-gap: 12px;
    }

    .home-slider__track {
        grid-area: track;
    }

    .home-slider__nav {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .home-slider__nav--prev {
        grid-area: prev;
        justify-self: end;
    }

    .home-slider__nav--next {
        grid-area: next;
        justify-self: start;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .cards-grid--doctors {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cards-grid--doctors {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .section--stats .stats-card {
        padding: 40px 28px;
    }

    .section--stats .stats-num {
        font-size: 48px;
    }
}

@media (max-width: 640px) {
    .site-header__top-inner {
        gap: 12px;
    }

    .site-logo__image {
        height: 52px;
    }

    .site-header__slogan {
        display: none;
    }

    .site-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .service-nav__inner > a,
    .site-nav__list a {
        padding: 0 13px;
        font-size: 14px;
    }

    .home-hero,
    .home-hero__inner {
        min-height: 0;
    }

    .home-hero__card {
        padding: 24px 22px;
    }

    .home-hero__mobile-media,
    .home-about__visual {
        min-height: 260px;
        height: 260px;
    }

    .home-hero__title,
    .section__title {
        font-size: 28px;
    }

    .appointment__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .home-intro__col,
    .appointment,
    .contacts-card,
    .map-placeholder {
        padding: 24px;
    }

    .cards-grid--services {
        grid-template-columns: 1fr;
    }

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

    .reviews-page__grid {
        grid-template-columns: 1fr;
    }

    .price-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .price-item__value {
        white-space: normal;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .site-footer .container {
        padding: 0 24px;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }

    .footer-col--socials {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom__sep {
        display: none;
    }

    .footer-bottom__docs a {
        display: block;
        margin: 4px 0;
    }
}

/* archive-services */
.section--archive-hero {
    padding-block: 48px 24px;
}

.section--archive-hero .section__title {
    margin-bottom: 12px;
}

.services-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.filter-chip:hover {
    background: var(--color-green);
    color: #fff;
}

.filter-chip.is-active {
    background: var(--color-green);
    color: #fff;
}

.services-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.services-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: var(--r-md);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.services-pagination .page-numbers:hover {
    background: var(--color-green-soft);
    border-color: var(--color-green);
    color: var(--color-green-dark);
}

.services-pagination .page-numbers.current {
    background: var(--color-green);
    border-color: var(--color-green);
    color: #fff;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--color-muted);
}

/* single-services */
.service-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 32px;
    align-items: start;
}

.service-single__content,
.service-single__aside {
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.service-single__content {
    padding: 34px;
}

.service-single__aside {
    position: sticky;
    top: 128px;
    display: grid;
    gap: 22px;
    padding: 28px;
}

.service-single__lead {
    margin-top: 16px;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.65;
}

.service-single__media {
    margin-top: 28px;
    overflow: hidden;
    border-radius: var(--r-lg);
}

.service-single__media img {
    width: 100%;
    height: auto;
}

.service-single__body {
    margin-top: 28px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.8;
}

.service-single__body > * + * {
    margin-top: 16px;
}

.service-single__meta {
    display: grid;
    gap: 16px;
}

.service-single__meta-item,
.service-single__categories,
.service-single__notice {
    display: grid;
    gap: 8px;
}

.service-single__meta-item span,
.service-single__categories > span,
.service-single__notice span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.service-single__meta-item strong {
    color: var(--color-green-dark);
    font-size: 22px;
    line-height: 1.25;
}

.service-single__categories div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-single__notice {
    padding: 16px;
    border-radius: var(--r-md);
    background: var(--color-green-soft);
}

.service-single__notice p {
    color: var(--color-muted);
}

.service-single__cta {
    width: 100%;
}

@media (max-width: 900px) {
    .service-single__layout {
        grid-template-columns: 1fr;
    }

    .service-single__aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .service-single__content,
    .service-single__aside {
        padding: 24px;
    }
}

/* doctors */
.doctors-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) auto auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 32px;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.doctors-filter label {
    display: grid;
    gap: 8px;
}

.doctors-filter label span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.doctors-filter input,
.doctors-filter select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--r-md);
    background: var(--color-white);
    color: var(--color-text);
    font: inherit;
}

.doctors-filter__submit {
    min-height: 46px;
}

.doctors-filter__reset {
    min-height: 46px;
    align-items: center;
}

.doctors-archive__grid .doctor-card {
    display: flex;
    flex-direction: column;
}

.doctors-archive__grid .doctor-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.doctor-card__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.doctor-card__specialties a {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: var(--r-pill);
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    font-size: 12px;
    font-weight: 650;
}

.doctor-card__price {
    margin-top: 14px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 850;
}

.doctor-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
}

.doctor-card__appointment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 18px;
    border: 2px solid var(--color-green);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--color-green);
    font-size: 14px;
    font-weight: 600;
}

.doctor-card__appointment:hover {
    background: var(--color-green);
    color: #fff;
}

.doctor-hero {
    background: var(--color-page);
}

.doctor-hero__layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 36px;
    align-items: stretch;
}

.doctor-hero__photo,
.doctor-hero__content,
.doctor-content-card {
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.doctor-hero__photo {
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    color: var(--color-muted);
    font-size: 18px;
    font-weight: 850;
}

.doctor-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.doctor-hero__position {
    margin-top: 14px;
    color: var(--color-green-dark);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.45;
}

.doctor-hero__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.doctor-hero__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.doctor-hero__facts div {
    padding: 16px;
    border-radius: var(--r-md);
    background: var(--color-green-soft);
}

.doctor-hero__facts span {
    display: block;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.doctor-hero__facts strong {
    display: block;
    margin-top: 6px;
    color: var(--color-text);
    font-size: 20px;
    line-height: 1.25;
}

.doctor-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.doctor-content-card {
    padding: 34px;
}

.doctor-content-card__lead {
    margin-top: 16px;
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.7;
}

.doctor-content-card__body {
    margin-top: 24px;
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.8;
}

.doctor-content-card__body > * + * {
    margin-top: 16px;
}

@media (max-width: 1023px) {
    .doctors-filter {
        grid-template-columns: 1fr 1fr;
    }

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

    .doctor-hero__photo {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .doctors-filter {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .doctor-hero__content,
    .doctor-content-card {
        padding: 24px;
    }

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

    .doctor-hero__actions,
    .doctor-card__actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* doctor pages */
/* === КАРТОЧКА ВРАЧА (используется на главной, в архиве, в "другие специалисты") === */
.doctor-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-green);
}

.doctor-card__image {
    height: 240px;
    width: 100%;
    background: var(--color-green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.doctor-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-card__image > span {
    color: var(--color-green);
    opacity: 0.3;
    font-size: 14px;
    font-weight: 600;
}

.doctor-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor-card__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--r-pill);
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    margin-bottom: 4px;
}

.doctor-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin: 0 0 4px;
}

.doctor-card__title a {
    color: inherit;
    text-decoration: none;
}

.doctor-card__title a:hover {
    color: var(--color-green);
}

.doctor-card__position {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-green);
    margin: 0 0 8px;
}

.doctor-card__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-muted);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-card__link {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--color-green);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--color-green);
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.doctor-card__link:hover {
    background: var(--color-green);
    color: #fff;
    opacity: 1;
}

.doctor-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.doctor-card__actions .btn-secondary,
.doctor-card__actions .btn-primary {
    padding: 9px 18px;
    font-size: 13px;
    flex: 1;
    white-space: nowrap;
}

.doctor-card__actions .doctor-card__link {
    align-self: auto;
    margin-top: 0;
}

.doctor-card__actions .doctor-card__appointment.btn-primary {
    border: 0;
    background: var(--color-green);
    color: #fff;
}

.doctor-card__actions .doctor-card__appointment.btn-primary:hover {
    background: var(--color-green-dark);
    color: #fff;
}

/* === СЕТКА ВРАЧЕЙ === */
.cards-grid--doctors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1199px) {
    .cards-grid--doctors {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-grid--doctors {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .cards-grid--doctors {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* === ОБЩАЯ КАРТОЧКА ВРАЧА ДЛЯ PARTIAL doctor-card.php === */
.doctor-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    overflow: visible;
    border: 1px solid var(--color-border-card);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.doctor-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-emerald);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.doctor-card__link {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
    opacity: 1;
    transition: none;
}

.doctor-card__link:hover {
    background: transparent;
    color: inherit;
    opacity: 1;
}

.doctor-card__photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 14px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-green-soft);
}

.doctor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.doctor-card__photo--fallback {
    border: 1px solid var(--color-border-card);
    background: transparent;
}

.doctor-card__photo--fallback img {
    object-fit: contain;
    object-position: center;
    padding: 26px;
}

.page-doctors-archive .doctor-card .doctor-card__photo--fallback img {
    object-fit: contain;
    object-position: center;
    padding: 26px;
}

.single-doctor-page .doctor-card .doctor-card__photo--fallback img {
    object-fit: contain;
    object-position: center;
    padding: 26px;
}

.doctor-card__badge-wrap {
    text-align: center;
}

.doctor-card__badge {
    display: inline-block;
    width: auto;
    margin: 0 auto 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--color-emerald);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.doctor-card__name {
    margin: 0 0 6px;
    color: var(--color-text-dark);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.doctor-card__position {
    margin: 0 0 12px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.doctor-card__desc {
    margin: 0 0 14px;
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.doctor-card__price {
    margin: 0 0 14px;
    color: var(--color-emerald);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.doctor-card__cta {
    margin-top: auto;
    text-align: center;
}

.doctor-card__cta .btn-book-modal {
    width: 100%;
    min-height: 42px;
    padding: 11px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--color-green);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.doctor-card__cta .btn-book-modal:hover {
    background: var(--color-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31, 143, 97, .24);
}

/* === SINGLE DOCTOR HERO === */
.section--doctor-hero {
    padding-block: 48px 24px;
}

.doctor-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
}

.doctor-hero__image {
    width: 360px;
    height: 360px;
    max-width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--color-green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-hero__image > span {
    color: var(--color-green);
    opacity: 0.3;
    font-size: 16px;
    font-weight: 600;
}

.doctor-hero__info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.doctor-hero__name {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    color: var(--color-text);
    line-height: 1.2;
}

.doctor-hero__position {
    font-size: 18px;
    color: var(--color-green);
    font-weight: 600;
    margin: 0;
}

.doctor-hero__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    background: var(--color-green-soft);
    color: var(--color-green-dark);
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
}

.doctor-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .doctor-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .doctor-hero__image {
        width: 100%;
        max-width: 360px;
        height: 360px;
        margin: 0 auto;
    }

    .doctor-hero__name {
        font-size: 28px;
    }
}

/* doctor sticky nav (адаптировано из ЗС .anchor-bar) */
.site-main.single-doctor {
    overflow: visible;
}

.doctor-nav {
    position: sticky;
    top: 136px;
    z-index: 50;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid #e2e8f0;
    margin-top: 0;
}

body.admin-bar .doctor-nav {
    top: 168px;
}

.doctor-nav__inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
    padding-left: 24px;
    padding-right: 24px;
}

.doctor-nav__inner::-webkit-scrollbar {
    display: none;
}

.doctor-nav__link {
    position: relative;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    white-space: nowrap;
    transition: color .2s;
    cursor: pointer;
    font-family: inherit;
}

.doctor-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-green);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .2s;
}

.doctor-nav__link:hover {
    color: var(--color-text);
}

.doctor-nav__link.is-active {
    color: var(--color-text);
}

.doctor-nav__link.is-active::after {
    transform: scaleX(1);
}

.section--doctor-about,
.section--doctor-education {
    scroll-margin-top: 216px;
}

/* doctor education timeline (адаптировано из ЗС vrach-gadzhiev.html) */
.section--doctor-education {
    padding: 48px 0;
    border-bottom: 1px solid #f0f0f0;
}

.section--doctor-education:last-child {
    border-bottom: none;
}

.doctor-education__title {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-text);
    display: inline-block;
    border-bottom: 4px solid var(--color-green);
    padding-bottom: 10px;
    margin: 0 0 28px;
}

.doctor-timeline {
    position: relative;
    padding-left: 32px;
}

.doctor-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}

.doctor-timeline__item {
    position: relative;
    padding-bottom: 28px;
    display: flex;
    gap: 20px;
}

.doctor-timeline__item:last-child {
    padding-bottom: 0;
}

.doctor-timeline__item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-green);
    z-index: 1;
}

.doctor-timeline__year {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-green);
    min-width: 48px;
    flex-shrink: 0;
    line-height: 1.5;
}

.doctor-timeline__desc {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
}

.doctor-chips-block {
    margin-bottom: 28px;
}

.doctor-chips-block__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 14px;
}

.doctor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.section--doctor-about .prose {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

.section--doctor-about .prose p {
    margin: 0 0 16px;
}

@media (max-width: 768px) {
    .doctor-nav__link {
        padding: 14px 20px;
        font-size: 14px;
    }

    .doctor-education__title {
        font-size: 24px;
    }

    .doctor-timeline {
        padding-left: 28px;
    }

    .doctor-timeline__item::before {
        left: -28px;
    }

    .doctor-timeline__item {
        flex-direction: column;
        gap: 6px;
    }

    .doctor-timeline__year {
        min-width: 0;
    }
}

.section--doctor-other {
    padding-block: 32px 64px;
}

/* doctor single — MEDDIYA v2 */
.single-doctor-page {
    background: var(--color-page-bg);
}

.single-doctor-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.single-doctor-page .doctor-hero {
    display: block;
    max-width: none;
    background: var(--color-hero-bg);
    border-radius: 0 0 24px 24px;
    padding: 48px 0;
    margin-bottom: 0;
}

.single-doctor-page .doctor-hero__inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
}

.single-doctor-page .doctor-hero__photo {
    width: 220px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-doctor-page .doctor-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-doctor-page .doctor-hero__photo-placeholder {
    color: var(--color-emerald);
    opacity: 0.4;
    font-size: 14px;
    font-weight: 500;
}

.single-doctor-page .doctor-hero__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.single-doctor-page .doctor-hero__name {
    font-size: 34px;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin: 0;
}

.single-doctor-page .doctor-hero__position {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 0;
}

.single-doctor-page .doctor-hero__badge {
    display: inline-block;
    background: var(--color-emerald);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0 8px;
}

.single-doctor-page .doctor-hero__actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-self: stretch;
    width: 100%;
    min-width: 0;
}

.single-doctor-page .doctor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 14px;
    transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.single-doctor-page .doctor-btn--primary {
    background: var(--color-green, #1F8F61);
    color: #fff;
    padding: 16px 36px;
    font-size: 16px;
    min-height: 56px;
}

.single-doctor-page .doctor-btn--primary:hover {
    background: var(--color-green-dark, #178A5A);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 143, 97, .25);
    color: #fff;
}

.single-doctor-page .doctor-btn--secondary {
    background: #fff;
    border-color: var(--color-border-card);
    color: var(--color-text-dark);
    padding: 16px 28px;
    font-size: 16px;
    min-height: 56px;
}

.single-doctor-page .doctor-btn--secondary:hover {
    border-color: var(--color-emerald);
    color: var(--color-emerald-dark);
    transform: translateY(-2px);
}

.single-doctor-page .doctor-btn--outline {
    background: #fff;
    border-color: var(--color-emerald);
    color: var(--color-emerald-dark);
    padding: 10px 20px;
    font-size: 13px;
    min-height: 0;
}

.single-doctor-page .doctor-btn--outline:hover {
    background: var(--color-emerald-soft);
    color: var(--color-emerald-dark);
}

.single-doctor-page .doctor-nav {
    position: sticky;
    top: 136px;
    z-index: 50;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid var(--color-border-line);
}

body.admin-bar .single-doctor-page .doctor-nav {
    top: 168px;
}

.single-doctor-page .doctor-nav__inner {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.single-doctor-page .doctor-nav__inner::-webkit-scrollbar {
    display: none;
}

.single-doctor-page .doctor-nav__link {
    position: relative;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-hint);
    background: none;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: color .2s;
}

.single-doctor-page .doctor-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: var(--color-emerald);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .2s;
}

.single-doctor-page .doctor-nav__link:hover {
    color: var(--color-text-dark);
}

.single-doctor-page .doctor-nav__link.is-active {
    color: var(--color-text-dark);
}

.single-doctor-page .doctor-nav__link.is-active::after {
    transform: scaleX(1);
}

.single-doctor-page .doctor-section {
    padding: 48px 0;
    scroll-margin-top: 216px;
}

.single-doctor-page .doctor-section + .doctor-section {
    border-top: 1px solid #f0f0f0;
}

.single-doctor-page .doctor-section__title {
    display: inline-block;
    font-size: 30px;
    font-weight: 800;
    color: var(--color-text-dark);
    border-bottom: 4px solid var(--color-emerald);
    padding-bottom: 10px;
    margin: 0 0 28px;
}

.single-doctor-page .doctor-section__subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0 0 14px;
}

.single-doctor-page .doctor-section__body {
    margin-top: 20px;
}

.single-doctor-page .doctor-section__body p {
    font-size: 17px;
    color: var(--color-text-body);
    line-height: 1.75;
    margin: 0 0 16px;
}

.single-doctor-page .doctor-section__body p:last-child {
    margin-bottom: 0;
}

.single-doctor-page .doctor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.single-doctor-page .doctor-chip {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--color-border-line);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dark);
    transition: border-color .2s, color .2s, background .2s;
}

.single-doctor-page .doctor-chip:hover {
    border-color: var(--color-emerald);
    color: var(--color-emerald-dark);
    background: var(--color-emerald-soft);
}

.single-doctor-page .doctor-timeline {
    position: relative;
    padding-left: 32px;
}

.single-doctor-page .doctor-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-border-line);
}

.single-doctor-page .doctor-timeline__item {
    position: relative;
    padding-bottom: 28px;
    display: flex;
    gap: 20px;
}

.single-doctor-page .doctor-timeline__item:last-child {
    padding-bottom: 0;
}

.single-doctor-page .doctor-timeline__item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-emerald);
    z-index: 1;
}

.single-doctor-page .doctor-timeline__year {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-emerald);
    min-width: 56px;
    flex-shrink: 0;
    line-height: 1.5;
}

.single-doctor-page .doctor-timeline__desc {
    font-size: 16px;
    color: var(--color-text-body);
    line-height: 1.6;
    flex: 1;
}

.single-doctor-page .section--other-doctors {
    border-top: 1px solid #f0f0f0;
}

.single-doctor-page .doctor-other-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.single-doctor-page .doctor-card {
    background: #fff;
    border: 1px solid var(--color-border-card);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.single-doctor-page .doctor-card:hover {
    border-color: var(--color-emerald);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.single-doctor-page .doctor-card__photo {
    width: 100%;
    height: 220px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.single-doctor-page .doctor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-doctor-page .doctor-card__placeholder {
    color: var(--color-emerald);
    opacity: 0.4;
    font-size: 13px;
    font-weight: 500;
}

.single-doctor-page .doctor-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.single-doctor-page .doctor-card__badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--color-emerald-soft);
    color: var(--color-emerald-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.single-doctor-page .doctor-card__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.3;
}

.single-doctor-page .doctor-card__position {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-emerald);
    margin: 0;
}

.single-doctor-page .doctor-card__bio {
    font-size: 13px;
    color: var(--color-text-body);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-doctor-page .doctor-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.single-doctor-page .doctor-card__actions .doctor-btn {
    flex: 1;
    font-size: 12px;
    padding: 9px 12px;
}

@media (max-width: 1199px) {
    .single-doctor-page .doctor-other-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .single-doctor-page .doctor-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .single-doctor-page .doctor-hero__photo {
        margin: 0 auto;
    }

    .single-doctor-page .doctor-hero__info {
        align-items: center;
    }

    .single-doctor-page .doctor-hero__name {
        font-size: 28px;
    }

    .single-doctor-page .doctor-hero__actions {
        justify-content: center;
        width: 100%;
    }

    .single-doctor-page .doctor-other-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-doctor-page .doctor-nav__link {
        padding: 14px 20px;
        font-size: 14px;
    }

    .single-doctor-page .doctor-section__title {
        font-size: 24px;
    }

    .single-doctor-page .doctor-timeline__item {
        flex-direction: column;
        gap: 6px;
    }

    .single-doctor-page .doctor-timeline__year {
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .single-doctor-page .doctor-other-grid {
        grid-template-columns: 1fr;
    }

    .single-doctor-page .doctor-hero__actions {
        flex-direction: column;
    }

    .single-doctor-page .doctor-hero__actions .doctor-btn {
        width: 100%;
    }
}

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

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

    .page-about__title,
    .page-contacts__title {
        font-size: 40px;
    }

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

@media (max-width: 640px) {
    .page-about,
    .page-contacts {
        padding: 24px 0 60px;
    }

    .page-about__title,
    .page-contacts__title {
        font-size: 32px;
    }

    .page-about__section-title {
        font-size: 26px;
    }

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

    .clinic-photos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .contacts-list__item {
        align-items: flex-start;
        font-size: 15px;
    }

    .contacts-map__wrap iframe {
        height: 360px !important;
    }
}

/* ============================================================
   MEDDIYA — MOBILE PASS (Tasks 1-12 + Booking modal)
   Adds: burger drawer, booking modal, plus mobile refinements.
   Desktop styles above are NOT modified.
   ============================================================ */

/* ---------- Booking modal (all viewports) ---------- */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.booking-modal.is-open { display: flex; }
.booking-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.booking-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 36px 32px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}
.booking-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #f1f5f4;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms, color 150ms;
}
.booking-modal__close:hover { background: #e2e8f0; color: #1f2d29; }
.booking-modal__logo {
    text-align: center;
    margin-bottom: 14px;
}
.booking-modal__logo img {
    height: 56px;
    width: auto;
    display: inline-block;
}
.booking-modal__title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
}
.booking-modal__subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}
.booking-modal__field {
    position: relative;
    margin-bottom: 18px;
}
.booking-modal__field input,
.booking-modal__field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d0d5dd;
    padding: 18px 0 8px;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    outline: none;
    color: var(--color-text);
    transition: border-color 150ms;
    box-sizing: border-box;
}
.booking-modal__field textarea {
    resize: vertical;
    min-height: 60px;
}
.booking-modal__field input:focus,
.booking-modal__field textarea:focus {
    border-bottom-color: var(--color-emerald);
}
.booking-modal__field label {
    position: absolute;
    left: 0;
    top: 18px;
    font-size: 16px;
    color: #98a2b3;
    pointer-events: none;
    transition: all 150ms ease;
    background: transparent;
}
.booking-modal__field input:focus + label,
.booking-modal__field input:not(:placeholder-shown) + label,
.booking-modal__field textarea:focus + label,
.booking-modal__field textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 12px;
    color: var(--color-emerald);
}
.booking-modal__field .req { color: #ef4444; }
.booking-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 20px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    cursor: pointer;
}
.booking-modal__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-emerald);
    cursor: pointer;
}
.booking-modal__consent a {
    color: var(--color-emerald);
    text-decoration: underline;
}
.booking-modal__submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 30px;
    background: var(--color-emerald);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 150ms, transform 150ms;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}
.booking-modal__submit:hover:not(:disabled) { background: var(--color-emerald-dark); }
.booking-modal__submit:active:not(:disabled) { transform: translateY(1px); }
.booking-modal__submit:disabled { opacity: 0.7; cursor: wait; }
.booking-modal__success {
    text-align: center;
    padding: 12px 0;
}
.booking-modal__success h3 {
    font-size: 20px;
    color: var(--color-emerald);
    margin: 0 0 10px;
}
.booking-modal__success p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}
.booking-modal__close-btn {
    background: var(--color-emerald);
    color: #fff;
    border: 0;
    border-radius: 30px;
    padding: 12px 32px;
    font-weight: 600;
    cursor: pointer;
}
body.booking-open { overflow: hidden; }

/* ---------- Burger button (visible only on mobile) ---------- */
.site-header__burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid var(--color-green);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 auto;
}
.site-header__burger-lines {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}
.site-header__burger-lines span {
    display: block;
    height: 2px;
    background: var(--color-green);
    border-radius: 2px;
}

/* ---------- Mobile menu drawer ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    transition: opacity 250ms ease;
}
.mobile-menu.is-open .mobile-menu__overlay { opacity: 1; }
.mobile-menu__drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 90%);
    background: #fff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 250ms ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px 20px 24px;
}
.mobile-menu.is-open .mobile-menu__drawer { transform: translateX(0); }
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f0;
    margin-bottom: 14px;
}
.mobile-menu__logo img { height: 40px; width: auto; display: block; }
.mobile-menu__logo span { font-weight: 800; color: var(--color-green); }
.mobile-menu__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: #f1f5f4;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-green);
    text-decoration: none;
    padding: 8px 0 14px;
}
.mobile-menu__phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-emerald-soft);
    color: var(--color-green);
}
.mobile-menu__cta {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: var(--color-green);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: 0 6px 16px rgba(31, 143, 97, 0.28);
}
.mobile-menu__cta:hover { background: var(--color-green-dark); }
.mobile-menu__nav { margin-top: 4px; }
.mobile-menu__list,
.mobile-menu__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu__list > li {
    border-bottom: 1px solid #eef2f0;
}
.mobile-menu__list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 4px;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}
.mobile-menu__list > li.menu-item-has-children > a::after,
.mobile-menu__list > li.has-submenu > a::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 200ms ease;
    margin-right: 6px;
}
.mobile-menu__list > li.menu-item-has-children.is-open > a,
.mobile-menu__list > li.has-submenu.is-open > a {
    background: var(--color-emerald-soft);
    color: var(--color-green-dark);
    padding-left: 12px;
    border-radius: 8px;
}
.mobile-menu__list > li.menu-item-has-children.is-open > a::after,
.mobile-menu__list > li.has-submenu.is-open > a::after {
    transform: rotate(-135deg) translate(-2px, -2px);
    border-color: var(--color-green-dark);
}
.mobile-menu__list .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease;
}
.mobile-menu__list > li.is-open > .sub-menu {
    max-height: 1000px;
    padding: 4px 0 10px 16px;
}
.mobile-menu__list .sub-menu li a {
    display: block;
    padding: 12px 8px;
    font-size: 15px;
    color: var(--color-text-body);
    text-decoration: none;
    border-bottom: 1px solid #f4f6f5;
}
.mobile-menu__list .sub-menu li:last-child a { border-bottom: 0; }
.mobile-menu__footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eef2f0;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.mobile-menu__hours { margin-top: 8px; color: var(--color-green); font-weight: 600; }
body.menu-open { overflow: hidden; }

/* ---------- Floating contact buttons (mobile rework) ---------- */
@media (max-width: 1023px) {
    .floating-contact {
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 90;
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: transparent;
    }
    .floating-contact__links,
    .floating-contact__button { display: none !important; }
    .floating-contact__fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        text-decoration: none;
        color: #fff;
        box-shadow: 0 8px 22px rgba(15, 48, 74, 0.22);
        transition: transform 150ms;
    }
    .floating-contact__fab:active { transform: scale(0.95); }
    .floating-contact__fab--whatsapp { background: #25D366; }
    .floating-contact__fab--phone { background: var(--color-emerald); }
}
@media (min-width: 1024px) {
    .floating-contact__fab { display: none; }
}

/* ============================================================
   MOBILE LAYOUT (≤767px) — Tasks 1-12
   ============================================================ */
@media (max-width: 767px) {

    /* ----- Task 1: header ----- */
    .site-header { position: sticky; top: 0; z-index: 100; }
    .site-header__top {
        background: #fff;
        box-shadow: 0 1px 6px rgba(15, 48, 74, 0.06);
    }
    .site-header__top-inner {
        min-height: 64px;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 10px;
        flex-wrap: nowrap;
        align-items: center;
    }
    .site-logo { flex: 0 0 auto; order: 1; }
    .site-logo__image { height: 40px; width: auto; }
    .site-header__slogan {
        order: 2;
        font-size: 12px;
        font-style: italic;
        color: var(--color-text-muted);
        font-weight: 400;
        flex: 1 1 auto;
        white-space: nowrap;
        text-align: left;
        padding-left: 4px;
    }
    .site-header__info { display: none !important; }
    .site-header__actions {
        order: 3;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
    }
    .site-header__messenger,
    .site-header__instagram {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        padding: 0;
    }
    .site-header__messenger { background: #25D366; }
    .site-header__messenger svg path { fill: #fff !important; }
    .site-header__instagram {
        background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
    }
    .site-header__instagram svg { width: 22px; height: 22px; }
    .site-header__instagram svg path { fill: #fff !important; }
    .site-header__phone,
    .site-header__button { display: none !important; }
    .site-header__burger { display: inline-flex; }
    .service-nav { display: none !important; }

    /* hide slogan on very narrow */
    @media (max-width: 479px) {
        .site-header__slogan { display: none; }
    }

    /* ----- Task 2: front-page ----- */
    /* Hero — show people fully, card below */
    .home-hero { padding: 0 !important; }
    .home-hero__inner {
        display: block;
        padding: 0;
    }
    .home-hero__visual,
    .home-hero__media {
        display: block !important;
        width: 100%;
        height: auto;
        min-height: 220px;
        background-position: center top !important;
        background-size: cover !important;
    }
    .home-hero__mobile-media {
        display: block;
        width: 100%;
        height: 260px;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
    }
    .home-hero__card {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 16px;
        padding: 20px;
        box-shadow: var(--shadow-card);
    }
    .home-hero__title { font-size: 24px; line-height: 1.2; }
    .home-hero__subtitle,
    .home-hero__lead { font-size: 14px; color: var(--color-text-muted); }
    .home-hero__actions { display: none; }

    /* Intro (Добро пожаловать) */
    .home-intro { margin-top: 16px; padding: 0 16px; }
    .home-intro__card {
        grid-template-columns: 1fr !important;
        padding: 20px;
        gap: 16px;
        border-radius: 18px;
    }
    .home-intro__col { padding: 0; }
    .home-intro__col .button,
    .home-intro__col .button--primary { width: 100%; }

    /* About (МЕДДИЯ с любовью к делу) */
    .home-about__card {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 20px;
    }
    .home-about__visual,
    .home-about__visual--image {
        min-height: 200px;
        border-radius: 16px;
        order: 2;
    }
    .home-about__content { order: 1; }

    /* Stats — 2 cols if 4 items, else 1 col */
    .stats-card { padding: 28px 20px; }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px;
    }
    .stats-item { padding: 12px 8px; }
    .stats-num { font-size: 36px !important; }
    .stats-label { font-size: 13px; }

    /* Advantages — 1 col */
    .cards-grid--services,
    .section--advantages .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    /* Services (directions) — 2 cols */
    .home-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
    .home-service-card__media { aspect-ratio: 1 / 1; }
    .home-service-card__title { font-size: 14px; }

    /* Doctors — slider 1 card visible, 85% width */
    .cards-grid--doctors {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .home-slider--doctors .home-slider__track,
    .home-slider--reviews .home-slider__track,
    .home-slider--promotions .home-slider__track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 16px 8px;
        scroll-padding-left: 16px;
    }
    .home-slider--doctors .home-slider__track > *,
    .home-slider--reviews .home-slider__track > *,
    .home-slider--promotions .home-slider__track > * {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }
    .home-slider__nav { display: none !important; }

    /* Reviews — 1 card slider */
    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    /* Promotions */
    .promo-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    /* Prices (home) — cards */
    .price-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
        padding: 16px 18px;
    }
    .price-item__value { white-space: normal !important; align-self: flex-end; }

    /* Appointment */
    .appointment {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 24px 18px;
    }
    .appointment__box {
        padding: 20px 0 0 !important;
        border-left: 0 !important;
        border-top: 1px solid var(--color-border-line);
    }
    .appointment__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .appointment__actions .button { width: 100%; }
    .appointment__list { display: grid; gap: 10px; }

    /* Contacts on home */
    .contacts-grid { grid-template-columns: 1fr !important; gap: 16px; }
    .contacts-card { padding: 20px; }
    .map-placeholder,
    .map-placeholder--iframe { min-height: 240px; }
    .contacts-map__wrap iframe { height: 240px !important; }

    /* ----- Task 3: /services/ ----- */
    .services-archive-title { font-size: 28px !important; }
    .services-search-wrap,
    .services-search {
        flex-direction: column;
        gap: 12px;
    }
    .services-search input,
    .services-search-input {
        width: 100%;
        height: 48px;
    }
    .services-tabs { flex-wrap: wrap; gap: 8px; }
    .services-tab { flex: 1 1 calc(50% - 4px); text-align: center; min-height: 44px; }
    .services-index-wrap { padding: 20px 16px; border-radius: 16px; }
    .services-index { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px; }
    .services-index-group { grid-template-columns: 28px 1fr; gap: 8px; }
    .services-index-item { font-size: 15px; }

    /* ----- Task 4: taxonomy-service_category ----- */
    .svc-hero { min-height: 220px !important; padding: 24px 16px !important; }
    .svc-hero-title { font-size: 26px !important; line-height: 1.2; }
    .svc-layout { grid-template-columns: 1fr !important; }
    .svc-intro { grid-template-columns: 1fr !important; gap: 16px; }
    .svc-intro-photo { aspect-ratio: 16 / 10; border-radius: 14px; }
    .svc-intro-title { font-size: 22px !important; }
    .svc-intro-desc { font-size: 15px; }
    .svc-intro-btn { width: 100%; min-height: 48px; justify-content: center; }
    .svc-benefits { grid-template-columns: 1fr !important; gap: 12px; }
    .svc-benefit { padding: 22px 18px; }
    .svc-prices-list { padding: 4px 16px; border-radius: 16px; }
    .svc-price-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px;
        padding: 14px 0;
    }
    .svc-price-name { font-size: 15px; }
    .svc-price-amount { font-size: 18px; font-weight: 700; color: var(--color-emerald); }
    .svc-price-action { justify-self: stretch; }
    .svc-price-book { width: 100%; min-height: 44px; }
    .svc-sidebar { margin-top: 24px; }
    .svc-sidebar-item a { font-size: 16px; }

    /* ----- Task 5: /doctors/ ----- */
    .doctors-archive-title { font-size: 28px !important; }
    .doctors-archive-subtitle { font-size: 14px; }
    .doctors-toolbar {
        flex-direction: column !important;
        gap: 12px;
    }
    .doctors-search,
    .doctors-select { width: 100%; flex: 1 1 auto; }
    .doctors-search-input,
    .doctors-select-trigger { height: 48px !important; }
    .doctors-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .doctor-card { padding: 18px; }
    .doctor-card__cta .btn-book-modal,
    .doctor-card__book { width: 100%; min-height: 44px; }

    /* ----- Task 6: single doctor ----- */
    .doc-hero { padding: 20px 16px !important; border-radius: 0 0 18px 18px; }
    .doc-hero-inner {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .doctor-single__photo {
        width: 100% !important;
        max-width: 280px;
        height: auto !important;
        aspect-ratio: 4 / 5;
        border-radius: 18px;
    }
    .doc-hero-name { font-size: 22px !important; }
    .doc-hero-spec { font-size: 15px; }
    .doc-hero-actions {
        flex-direction: column !important;
        width: 100%;
        gap: 10px;
    }
    .doc-hero-btn,
    .doc-hero-phone { width: 100%; justify-content: center; min-height: 48px; }
    .doctor-nav { overflow-x: auto; }
    .doctor-section__title { font-size: 20px; }
    .doctors-others-grid { grid-template-columns: 1fr !important; gap: 14px; }

    /* ----- Task 7: /prices/ ----- */
    .prices-title { font-size: 28px !important; }
    .prices-search-wrap,
    .prices-search {
        flex-direction: column;
        gap: 12px;
    }
    .prices-search input { width: 100%; height: 48px; }
    .prices-filters { gap: 8px; }
    .prices-filter { padding: 10px 16px; font-size: 14px; }
    .prices-group { border-radius: 16px; }
    .prices-group-head { padding: 20px 18px 10px; }
    .prices-group-title { font-size: 18px !important; }
    .prices-list { padding: 0 18px 16px; }
    .prices-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px;
        padding: 14px 0;
        border-bottom: 1px solid #eef2f0;
    }
    .prices-row-name { font-size: 15px !important; }
    .prices-row-price { font-size: 17px !important; font-weight: 700; color: var(--color-emerald); text-align: left !important; }
    .prices-row-action { justify-self: stretch; }
    .prices-row-book { width: 100%; min-height: 44px; }

    /* ----- Task 8: /promotions/ ----- */
    .promotions-title { font-size: 28px !important; }
    .promotions-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .promo-card__img-wrap { height: 200px; }

    /* single promotion */
    .promo-single__inner { grid-template-columns: 1fr !important; gap: 20px; padding: 0 16px; }
    .promo-single__hero { max-height: 220px; }
    .promo-single__title { font-size: 22px !important; }
    .promo-single__offer { flex-direction: column !important; gap: 14px; }
    .promo-single__cta { width: 100%; justify-content: center; min-height: 48px; }
    .promo-sidebar { margin-top: 16px; }

    /* ----- Task 9: /reviews/ ----- */
    .reviews-page__title { font-size: 28px; }
    .reviews-page__subtitle { font-size: 14px; }
    .reviews-page__grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .reviews-page-card { padding: 18px; }

    /* ----- Task 10: /about/ /contacts/ ----- */
    .page-about__title,
    .page-contacts__title { font-size: 26px; }
    .page-about__content,
    .page-about__section { padding: 0 16px; }
    .licenses-grid,
    .clinic-photos-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }
    .license-item img,
    .clinic-photo-item img { width: 100%; height: auto; display: block; border-radius: 8px; }

    .contacts-layout { display: block !important; padding: 0 16px; }
    .contacts-info { width: 100%; }
    .contacts-block { margin-bottom: 20px; }
    .contacts-block__title { font-size: 16px; }
    .contacts-list__item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #eef2f0;
    }
    .contacts-list__icon {
        flex: 0 0 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--color-emerald);
    }
    .contacts-map,
    .contacts-map__wrap { width: 100%; margin-top: 16px; }
    .contacts-map__wrap iframe { height: 240px !important; width: 100% !important; }

    /* ----- Task 11: footer ----- */
    .site-footer { padding: 28px 0 80px; }
    .footer-cols {
        grid-template-columns: 1fr !important;
        gap: 26px;
    }
    .footer-col--brand { text-align: left; }
    .footer-logo img { max-width: 120px; height: auto; }
    .footer-contacts { padding: 0; margin: 14px 0 0; }
    .footer-contacts__item { padding: 6px 0 6px 26px; }
    .footer-col__title { font-size: 15px; margin-bottom: 10px; }
    .footer-menu li,
    .footer__menu li { padding: 6px 0; }
    .footer-col--socials { text-align: center; }
    .footer-socials {
        justify-content: center;
        gap: 14px;
        margin: 10px 0 0;
        padding: 0;
        list-style: none;
        display: flex;
    }
    .footer-social {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }
    .footer-social--phone { background: #5DADE2; }
    .footer-social--whatsapp { background: #25D366; }
    .footer-social--instagram {
        background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 18px 0 0;
        font-size: 12px;
    }
    .footer-bottom__docs {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .footer-bottom__sep { display: none; }

    /* Universal: all .btn-book-modal full-width on mobile inside cards */
    .doctor-card .btn-book-modal,
    .promo-card .btn-book-modal,
    .svc-price-action .btn-book-modal,
    .prices-row-action .btn-book-modal { width: 100%; }

    /* Container side padding tightening on tiny screens */
    .container { width: min(100% - 24px, 1380px); }

    /* Booking modal — almost fullscreen */
    .booking-modal { padding: 0; align-items: flex-end; }
    .booking-modal__dialog {
        max-width: 100%;
        width: 100%;
        border-radius: 18px 18px 0 0;
        padding: 28px 22px 24px;
        max-height: 92vh;
    }
    .booking-modal__title { font-size: 19px; }
}

/* ---------- Tablet refinements (768-1023) ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
    .home-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .cards-grid--services { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ============================================================
   MEDDIYA — PASS 33 (modal polish, FAB, doctor-card uniform height,
   initials fallback, mobile-menu socials, services tabs row)
   ============================================================ */

/* ---------- Booking modal: compact desktop ---------- */
.booking-modal__dialog {
    max-width: 420px;
    padding: 28px 32px;
    border-radius: 18px;
}
.booking-modal__logo img { height: 48px; }
.booking-modal__title {
    font-size: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.booking-modal__subtitle {
    font-size: 13px;
    margin-bottom: 20px;
}
.booking-modal__field { margin-bottom: 16px; }
.booking-modal__field input,
.booking-modal__field textarea { padding: 14px 0 6px; font-size: 15px; }
.booking-modal__field label { top: 14px; font-size: 15px; }
.booking-modal__field input:focus + label,
.booking-modal__field input:not(:placeholder-shown) + label,
.booking-modal__field textarea:focus + label,
.booking-modal__field textarea:not(:placeholder-shown) + label {
    font-size: 11px;
}
.booking-modal__consent { font-size: 12px; margin: 4px 0 18px; }
.booking-modal__submit {
    min-height: 48px;
    font-size: 15px;
}

@media (max-width: 767px) {
    .booking-modal { padding: 0; align-items: center; }
    .booking-modal__dialog {
        width: calc(100% - 24px);
        max-width: 380px;
        padding: 24px 20px;
        border-radius: 16px;
        max-height: calc(100vh - 24px);
    }
    .booking-modal__title { font-size: 18px; }
    .booking-modal__logo img { height: 44px; }
}

/* Bottom-sheet fallback when viewport is very short (e.g. landscape phone) */
@media (max-width: 767px) and (max-height: 640px) {
    .booking-modal { align-items: flex-end; }
    .booking-modal__dialog {
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
    }
}

/* ---------- Contact FAB ---------- */
.contact-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.contact-fab.is-hidden { display: none !important; }
.contact-fab__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-emerald);
    color: #fff;
    border: 0;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
    padding: 0;
}
.contact-fab__toggle:hover {
    background: var(--color-emerald-dark);
    transform: scale(1.05);
}
.contact-fab__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
}
.contact-fab__icon-close { display: none; }
.contact-fab.is-open .contact-fab__icon-phone { display: none; }
.contact-fab.is-open .contact-fab__icon-close { display: inline-block; }
.contact-fab.is-open .contact-fab__toggle {
    background: var(--color-emerald-dark);
}
.contact-fab__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    animation: fabSlideIn 220ms ease;
    margin: 0;
    padding: 0;
}
@keyframes fabSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.contact-fab__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--color-text);
    padding: 0 16px 0 18px;
    height: 44px;
    border-radius: 22px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 150ms ease, box-shadow 150ms ease;
    white-space: nowrap;
}
.contact-fab__item:hover {
    transform: translateX(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    color: var(--color-text);
}
.contact-fab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    flex: 0 0 32px;
}
.contact-fab__item--phone .contact-fab__icon { background: var(--color-emerald); }
.contact-fab__item--whatsapp .contact-fab__icon { background: #25D366; }
.contact-fab__item--instagram .contact-fab__icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.contact-fab__label { line-height: 1; }

/* Hide FAB while booking modal or burger menu is open */
body.menu-open .contact-fab,
body.booking-open .contact-fab { display: none !important; }

@media (max-width: 767px) {
    .contact-fab { right: 14px; bottom: 14px; gap: 10px; }
    .contact-fab__toggle { width: 52px; height: 52px; }
    .contact-fab__item { height: 40px; font-size: 13px; padding: 0 14px 0 16px; }
    .contact-fab__icon { width: 28px; height: 28px; flex-basis: 28px; }
}

/* ---------- Mobile menu — socials in footer ---------- */
.mobile-menu__socials {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f0;
}
.mobile-menu__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}
.mobile-menu__social--whatsapp { background: #25D366; }
.mobile-menu__social--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Separator between CTA and menu list in burger */
.mobile-menu__cta { margin-bottom: 16px; }
.mobile-menu__nav { padding-top: 16px; border-top: 1px solid #eef2f0; }

/* ---------- Doctor card — uniform height, initials fallback ---------- */
.doctor-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
}
.doctor-card__link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}
.doctor-card__photo-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
}
.doctor-card__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    background: var(--color-emerald-soft);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doctor-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.doctor-card__photo--initials {
    background: var(--color-emerald-soft);
}
.doctor-card__initials {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-emerald-dark);
    letter-spacing: 1px;
    line-height: 1;
    user-select: none;
}
.doctor-card__badge-wrap {
    min-height: 32px;
    margin-top: 12px;
    text-align: center;
}
.doctor-card__badge--empty { background: transparent !important; box-shadow: none !important; visibility: hidden; }
.doctor-card__name {
    min-height: 48px;
    margin: 8px 0 4px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doctor-card__position {
    min-height: 22px;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doctor-card__desc {
    min-height: 54px;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
    text-align: center;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doctor-card__price {
    min-height: 26px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-emerald);
    margin-top: auto;
    padding-top: 8px;
}
.doctor-card__price--empty {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 13px;
}
.doctor-card__placeholder { display: inline-block; }
.doctor-card__cta {
    margin-top: 12px;
    flex: 0 0 auto;
}
.doctor-card__cta .btn-book-modal,
.doctor-card__book {
    width: 100%;
    min-height: 44px;
}

/* Make sliders/grids stretch children to equal height */
.home-slider--doctors .home-slider__track,
.cards-grid--doctors,
.doctors-grid,
.doctors-others-grid { align-items: stretch; }
.home-slider--doctors .home-slider__track > *,
.cards-grid--doctors > *,
.doctors-grid > *,
.doctors-others-grid > * { display: flex; }
.home-slider--doctors .home-slider__track > * > .doctor-card,
.cards-grid--doctors > * > .doctor-card,
.doctors-grid > * > .doctor-card,
.doctors-others-grid > * > .doctor-card { flex: 1; }

@media (max-width: 767px) {
    .doctor-card { min-height: 460px; }
    .doctor-card__photo { width: 120px; height: 120px; }
    .doctor-card__initials { font-size: 32px; }
}

/* Hide brand-logo fallback (kept for back-compat in older partials) */
.doctor-card__photo--fallback img {
    object-fit: contain;
    padding: 18px;
    background: var(--color-emerald-soft);
}

/* ---------- Services page (mobile fix) ---------- */
@media (max-width: 767px) {
    .services-tabs {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .services-tab {
        flex: 1 1 50%;
        min-height: 44px;
        padding: 10px 8px;
        border-radius: 12px;
        border: 1.5px solid var(--color-emerald);
        background: #fff;
        color: var(--color-emerald-dark);
        font-weight: 600;
        font-size: 14px;
        text-align: center;
        cursor: pointer;
    }
    .services-tab.is-active,
    .services-tab[aria-selected="true"] {
        background: var(--color-emerald);
        color: #fff;
        border-color: var(--color-emerald);
    }
    .services-search-input,
    .services-search input[type="search"],
    .services-search input[type="text"] {
        width: 100%;
        height: 48px;
        padding: 0 14px 0 42px;
        border: 1px solid #d0d5dd;
        border-radius: 12px;
        font-size: 15px;
        background-color: #fff;
        box-sizing: border-box;
    }
    .services-search { position: relative; }
    .services-search-icon {
        left: 14px !important;
        color: var(--color-text-muted);
    }
    .page-services-archive { padding-bottom: 90px; }
}


/* ============================================================
   MEDDIYA — PASS 35 (FINAL doctor-card, FAB closed, hero mobile,
   doctors-search lupa inside on mobile, /services/ untouched)
   ============================================================ */

/* ---------- FAB: closed-by-default + bigger ---------- */
.contact-fab__menu[hidden] { display: none !important; }
.contact-fab__menu { display: flex; }

.contact-fab__toggle {
    width: 64px;
    height: 64px;
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
}
.contact-fab__toggle-icon { width: 26px; height: 26px; }
.contact-fab__icon { width: 40px; height: 40px; flex: 0 0 40px; }
.contact-fab__item { font-size: 14px; height: 48px; }

@media (max-width: 767px) {
    .contact-fab__toggle { width: 60px; height: 60px; }
    .contact-fab__toggle-icon { width: 24px; height: 24px; }
    .contact-fab__icon { width: 36px; height: 36px; flex: 0 0 36px; }
    .contact-fab__item { font-size: 13px; height: 44px; }
}

/* ---------- FINAL DOCTOR CARD ---------- */
.doctor-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 20px;
    padding: 28px 20px 24px;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
}
.doctor-card:hover {
    border-color: var(--color-emerald);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.08);
}
/* Hide cards filtered out by search/specialty — beats display:flex */
.doctor-card.is-hidden { display: none !important; }

/* Photo / initials — STRICT fixed size 120×120 */
.doctor-card__photo,
.doctor-card__initials {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    margin: 0 auto 16px !important;
    flex: 0 0 120px !important;
    overflow: hidden;
    box-sizing: border-box;
}
.doctor-card__photo {
    display: block;
    object-fit: cover;
    background: var(--color-emerald-soft);
    padding: 0;
    border: 0;
}
.doctor-card__initials {
    background: var(--color-emerald-soft) !important;
    color: var(--color-emerald-dark) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 36px !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    line-height: 1;
    user-select: none;
}

/* Experience badge */
.doctor-card__experience {
    display: inline-block;
    background: var(--color-emerald);
    color: #fff;
    padding: 6px 18px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 auto 14px;
    align-self: center;
}

.doctor-card__name {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
    margin: 0 0 8px;
    min-height: 44px;
}
.doctor-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color 150ms ease;
}
.doctor-card__name a:hover {
    color: var(--color-emerald);
}
.doctor-card__specialty {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0 0 8px;
    min-height: 22px;
}
.doctor-card__description {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 16px;
    min-height: 56px;
}
.doctor-card__price {
    color: var(--color-emerald-dark);
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 16px;
    min-height: 24px;
}
.doctor-card__price--empty {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
}
.doctor-card__spacer { flex: 1 1 auto; }

.doctor-card__button,
.doctor-card__cta .btn-book-modal,
.doctor-card__book {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 14px 16px;
    background: var(--color-emerald);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease;
    position: relative;
    z-index: 2;
}
.doctor-card__button:hover,
.doctor-card__cta .btn-book-modal:hover,
.doctor-card__book:hover {
    background: var(--color-emerald-dark);
}

/* Home slider — equal height across all cards */
.home-slider--doctors .home-slider__track,
.cards-grid--doctors,
.doctors-others-grid { align-items: stretch; }
.home-slider--doctors .home-slider__track > *,
.cards-grid--doctors > *,
.doctors-others-grid > * { display: flex; }
.home-slider--doctors .home-slider__track > * > .doctor-card,
.cards-grid--doctors > * > .doctor-card,
.doctors-others-grid > * > .doctor-card { flex: 1; width: 100%; }
.home-slider--doctors .doctor-card { min-height: 500px; }

/* === MOBILE === */
@media (max-width: 767px) {
    .doctor-card { padding: 24px 18px 20px; }
    .doctor-card__photo,
    .doctor-card__initials {
        width: 100px !important;
        height: 100px !important;
        flex-basis: 100px !important;
    }
    .doctor-card__initials { font-size: 30px !important; }
    .doctor-card__name { font-size: 16px; min-height: 0; }
    .doctor-card__specialty { min-height: 0; }
    .doctor-card__description { min-height: 0; margin-bottom: 12px; }
    .doctor-card__price { min-height: 0; margin-bottom: 12px; }

    /* In horizontal home-slider keep equal heights for the 1 visible card */
    .home-slider--doctors .doctor-card { min-height: 0; }
}

/* Override old archive-doctors.php inline rules for photo
   (it sets width: 140px on .doctor-card__photo; we want strict 120). */
.page-doctors-archive .doctor-card__photo,
.page-doctors-archive .doctor-card__initials {
    width: 120px !important;
    height: 120px !important;
}
@media (max-width: 767px) {
    .page-doctors-archive .doctor-card__photo,
    .page-doctors-archive .doctor-card__initials {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ---------- /doctors/ — single column on mobile, search lupa inside ---------- */
@media (max-width: 767px) {
    .doctors-toolbar {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .doctors-search { width: 100%; flex: 1 1 auto !important; position: relative; }
    .doctors-search-icon {
        position: absolute !important;
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 18px !important;
        height: 18px !important;
        pointer-events: none;
    }
    .doctors-search-input {
        width: 100% !important;
        height: 48px !important;
        padding: 0 16px 0 44px !important;
        font-size: 15px !important;
        box-sizing: border-box;
    }
    .doctors-select { width: 100% !important; max-width: none !important; flex: 1 1 auto !important; }
    .doctors-select-trigger { height: 48px !important; }
    .doctors-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* ---------- /prices/ — lupa inside input on mobile ---------- */
@media (max-width: 767px) {
    .prices-search-wrap,
    .prices-search-wrap > .prices-search { flex-direction: row !important; }
    .prices-search {
        position: relative !important;
        padding: 0 !important;
        border-bottom: 0 !important;
        gap: 0 !important;
        display: block !important;
    }
    .prices-search-icon {
        position: absolute !important;
        left: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 20px !important;
        height: 20px !important;
        pointer-events: none;
    }
    .prices-search-input {
        width: 100% !important;
        height: 48px !important;
        padding: 0 14px 0 42px !important;
        font-size: 15px !important;
        border: 1px solid #d0d5dd !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: none !important;
    }
}

/* /services/ — DO NOT override here; archive-services.php has its own
   inline styles and the design is intentionally restored to the
   pre-Promt-34 state (alphabetical index + tabs Взрослое/Детское). */

/* ---------- Hero mobile ---------- */
@media (max-width: 767px) {
    .home-hero { padding: 0 !important; }
    .home-hero__inner { display: block !important; padding: 0 !important; }
    .home-hero__visual,
    .home-hero__media,
    .home-hero__background,
    .home-hero__mobile-media {
        display: block !important;
        width: 100% !important;
        height: 320px !important;
        min-height: 320px !important;
        background-size: cover !important;
        background-position: 30% center !important;
        background-repeat: no-repeat !important;
    }
    .home-hero__visual img,
    .home-hero__media img,
    .home-hero__background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 30% center;
    }
    .home-hero__card {
        width: calc(100% - 24px) !important;
        margin: -24px 12px 0 !important;
        max-width: none !important;
        border-radius: 16px !important;
        padding: 20px !important;
        background: #fff !important;
        box-shadow: 0 16px 36px rgba(18, 58, 49, 0.08) !important;
        position: relative;
        z-index: 2;
    }
}
