:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #172033;
    --text-muted: #667085;
    --border: #dfe4ec;
    --primary: #1769e0;
    --primary-dark: #0d56c7;
    --header-bg: #ffffff;
    --shadow: 0 8px 30px rgba(20, 40, 80, 0.08);
    --radius: 18px;
}

html[data-theme="dark"] {
    --bg: #0f1720;
    --surface: #18222e;
    --surface-soft: #202c39;
    --text: #f1f5f9;
    --text-muted: #a8b3c2;
    --border: #334155;
    --primary: #4d9cff;
    --primary-dark: #3185eb;
    --header-bg: #151e29;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.30);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    transition: background 0.25s ease;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

button,
select,
input {
    font: inherit;
}

button,
select {
    -webkit-tap-highlight-color: transparent;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.header-inner {
    width: 100%;
    max-width: 1100px;
    min-height: 64px;
    margin: 0 auto;
    padding: 8px 16px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 25% 50% 25%;
    align-items: center;
}

.header-slot {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    min-width: 0;
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text);
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.header-right {
    justify-content: flex-end;
}

.logo-icon {
    width: 100%;
    height: 52px;

    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    font-size: 20px;

    overflow: hidden;
}

.logo-icon img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;
}

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

.header-button {
    min-width: 44px;
    min-height: 40px;
    padding: 7px 10px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface);
    color: var(--text);

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

.header-button:active {
    transform: scale(0.96);
}

/* =========================
   MAIN
========================= */

.main-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 14px 50px;
}

/* =========================
   HERO
========================= */

.hero {
    text-align: center;
    padding: 18px 8px 22px;
}

.hero-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background: var(--primary);
    color: #ffffff;

    font-size: 34px;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0;
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* =========================
   SEARCH CARD
========================= */

.search-card {
    padding: 20px 16px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.search-card h2 {
    margin: 0 0 18px;
    font-size: 21px;
}

/* =========================
   FORM
========================= */

.field-group {
    margin-bottom: 14px;
}

.field-group label {
    display: block;
    margin-bottom: 7px;

    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

.field-group select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-soft);
    color: var(--text);

    outline: none;
    cursor: pointer;

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

.field-group select:focus {
    border-color: var(--primary);
}

.field-group select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* =========================
   NEARBY
========================= */

.nearby-option {
    min-height: 44px;
    margin: 4px 0 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--text);
    font-size: 15px;
    cursor: pointer;
}

.nearby-option input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* =========================
   SEARCH BUTTON
========================= */

.search-button {
    width: 100%;
    min-height: 50px;

    border: 0;
    border-radius: 13px;

    background: var(--primary);
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 7px 18px rgba(23, 105, 224, 0.20);

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

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

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

/* =========================
   RESULTS
========================= */

.results-section {
    margin-top: 18px;
}

.result-card {
    padding: 16px;
    margin-bottom: 12px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
}

/* =========================
   LANGUAGE MODAL
========================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.language-panel {
    position: absolute;
    left: 50%;
    bottom: 0;

    width: 100%;
    max-width: 520px;

    transform: translateX(-50%);

    padding: 18px 16px 24px;

    background: var(--surface);
    color: var(--text);

    border-radius: 22px 22px 0 0;

    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.20);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}

.modal-header h3 {
    margin: 0;
    font-size: 19px;
}

.close-button {
    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 10px;

    background: var(--surface-soft);
    color: var(--text);

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.language-list {
    display: grid;
    gap: 8px;
}

.language-list button {
    width: 100%;
    min-height: 46px;

    padding: 10px 13px;

    text-align: left;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface-soft);
    color: var(--text);

    cursor: pointer;

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

.language-list button:hover {
    border-color: var(--primary);
}

.language-list button.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

/* =========================
   TABLET / DESKTOP
========================= */

@media (min-width: 700px) {

    .header-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .main-content {
        padding-top: 32px;
    }

    .hero {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .search-card {
        padding: 26px;
    }
}


/* =========================
   PROFILE MENU
========================= */

.profile-menu {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.profile-menu.hidden {
    display: none;
}

.profile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.profile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    background: var(--surface, #ffffff);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
    padding: 20px;
    overflow-y: auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    font-size: 22px;
    flex-shrink: 0;
}

.profile-title {
    flex: 1;
    min-width: 0;
}

.profile-title strong,
.profile-title span {
    display: block;
}

.profile-title strong {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-title span {
    margin-top: 3px;
    font-size: 13px;
    opacity: 0.65;
}

.profile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.profile-menu-item {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--surface-secondary, #f3f4f6);
    color: inherit;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
}

.profile-menu-item:active {
    transform: scale(0.98);
}

@media (min-width: 700px) {
    .profile-panel {
        width: 360px;
    }
}

/* =========================
   CENTERED SITE LOGO
========================= */

.site-header .header-inner {
    position: relative;
}

.site-header .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0;
}

.site-header .logo-icon {
    width: auto;
    height: 44px;
    min-width: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header .logo-icon img {
    display: block;
    width: auto;
    height: 44px;
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .site-header .logo-icon img {
        max-width: 150px;
        height: 40px;
    }

    .site-header .logo-icon {
        height: 40px;
    }

    .site-header .logo {
        height: 40px;
    }
}

/* =========================
   EXTRA TALL HEADER
========================= */

.site-header {
    min-height: 90px;
}

.site-header .header-inner {
    min-height: 90px;
    height: 90px;
}

.site-header .logo {
    height: 64px;
}

.site-header .logo-icon {
    height: 64px;
}

.site-header .logo-icon img {
    height: 64px;
    max-width: 260px;
}

@media (max-width: 480px) {
    .site-header {
        min-height: 82px;
    }

    .site-header .header-inner {
        min-height: 82px;
        height: 82px;
    }

    .site-header .logo,
    .site-header .logo-icon {
        height: 58px;
    }

    .site-header .logo-icon img {
        height: 58px;
        max-width: 230px;
    }
}


/* =====================================================
   MAIN PAGE SEARCH + SPECIALTIES
===================================================== */

.main-search-entry {
    width: 100%;
    margin: -5px 0 10px;
}

.main-search-button {
    width: 100%;
    height: 50px;
    min-height: 50px;

    padding: 6px 12px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 14px;

    border-radius: 18px;

    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #e5e7eb);

    color: var(--text, #111827);
    text-decoration: none;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.main-search-button:active {
    transform: scale(0.98);
}

.main-search-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--primary, #2563eb);
    color: #ffffff;

    font-size: 23px;
}

.main-search-text {
    font-size: 18px;
    font-weight: 700;
}


.specialties-section {
    width: 100%;
    margin: 0 0 30px;
}

.specialties-title {
    margin: 0 0 16px;

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


.specialties-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.specialty-card {
    position: relative;
    min-height: 150px;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    display: block;
    box-sizing: border-box;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 18px;
    background: var(--surface, #ffffff);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.specialty-card:active {
    transform: scale(0.97);
}

.specialty-icon {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary, #2563eb);
    color: #ffffff;
    font-size: 36px;
    overflow: hidden;
}

.specialty-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.specialty-name {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 24px 8px 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.78));
}


.specialties-empty {
    grid-column: 1 / -1;

    padding: 24px;

    text-align: center;

    color: var(--muted, #6b7280);
}


@media (min-width: 700px) {

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

}

/* =====================================================
   DOCTOR SEARCH RESULTS
===================================================== */

.search-loading,
.search-empty {
    width: 100%;
    box-sizing: border-box;
    padding: 28px 20px;
    text-align: center;
    border-radius: 20px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    margin-top: 18px;
}

.search-empty-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.search-empty-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 7px;
}

.search-empty-text {
    font-size: 14px;
    opacity: .7;
}

.doctor-card {
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
}

.doctor-card-top {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.doctor-card-photo,
.doctor-card-avatar {
    width: 82px;
    height: 82px;
    min-width: 82px;
    border-radius: 50%;
}

.doctor-card-photo {
    object-fit: cover;
    display: block;
}

.doctor-card-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    font-size: 38px;
}

.doctor-card-main {
    min-width: 0;
    flex: 1;
}

.doctor-card-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.doctor-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    margin-left: 5px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    font-size: 13px;
    vertical-align: middle;
}

.doctor-card-rating {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.doctor-card-rating span {
    opacity: .6;
    font-weight: 400;
}

.doctor-card-line {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.doctor-card-bio {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.55;
    opacity: .8;
}

.doctor-card-info {
    margin-top: 12px;
}

.doctor-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.doctor-card-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.doctor-online {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
}

.doctor-distance {
    font-size: 13px;
    opacity: .75;
}

.doctor-card-button {
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}


.doctor-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.doctor-favorite-button,
.favorite-remove-button {
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: #234267;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.doctor-favorite-button.is-favorite {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.doctor-favorite-button:disabled,
.favorite-remove-button:disabled {
    opacity: .6;
    cursor: wait;
}

.favorites-list {
    display: grid;
    gap: 14px;
}

.favorite-doctor-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    background: var(--card-bg, #fff);
}

.favorite-doctor-photo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 14px;
    object-fit: cover;
}

.favorite-doctor-placeholder {
    display: grid;
    place-items: center;
    background: #eef4fb;
    font-size: 30px;
}

.favorite-doctor-info {
    min-width: 0;
    flex: 1;
}

.favorite-doctor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.doctor-card-button:active {
    transform: scale(.98);
}

@media (max-width: 600px) {

    .doctor-card {
        padding: 15px;
        border-radius: 18px;
    }

    .doctor-card-photo,
    .doctor-card-avatar {
        width: 68px;
        height: 68px;
        min-width: 68px;
    }

    .doctor-card-avatar {
        font-size: 31px;
    }

    .doctor-card-name {
        font-size: 16px;
    }

    .doctor-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .doctor-card-actions {
        width: 100%;
        flex-direction: column;
    }

    .doctor-favorite-button,
    .doctor-card-actions .doctor-card-button {
        width: 100%;
    }

    .doctor-card-button {
        width: 100%;
    }
}


/* =====================================================
   DOCTOR CARD — DARK BLUE TEXT
===================================================== */

.doctor-card {
    color: #0f2747;
}

.doctor-card-name {
    color: #0b2a52;
}

.doctor-card-rating {
    color: #123b6d;
}

.doctor-card-rating span {
    color: #49627d;
    opacity: 1;
}

.doctor-card-line {
    color: #173b63;
}

.doctor-card-bio {
    color: #294b70;
    opacity: 1;
}

.doctor-distance {
    color: #294b70;
    opacity: 1;
}

.doctor-online {
    color: #14532d;
}

.search-empty-title,
.search-empty-text {
    color: #0f2747;
}

@media (prefers-color-scheme: dark) {

    .doctor-card {
        color: #dbeafe;
    }

    .doctor-card-name {
        color: #e0efff;
    }

    .doctor-card-rating {
        color: #c9e2ff;
    }

    .doctor-card-rating span {
        color: #a9c2dc;
    }

    .doctor-card-line {
        color: #c4d9ee;
    }

    .doctor-card-bio,
    .doctor-distance {
        color: #b8cee3;
    }

    .search-empty-title,
    .search-empty-text {
        color: #dbeafe;
    }
}


/* =====================================================
   DOCTOR CARD — EXTRA DARK TEXT
===================================================== */

.doctor-card {
    color: #071a33;
}

.doctor-card-name {
    color: #04152b;
    font-weight: 800;
}

.doctor-card-rating {
    color: #071d3a;
    font-weight: 700;
}

.doctor-card-rating span {
    color: #193653;
    opacity: 1;
}

.doctor-card-line {
    color: #0a2342;
    font-weight: 500;
}

.doctor-card-bio {
    color: #102d4d;
    opacity: 1;
}

.doctor-card-distance,
.doctor-distance {
    color: #0a2342;
    opacity: 1;
    font-weight: 600;
}

.doctor-card-info {
    color: #0a2342;
}

.search-empty-title {
    color: #04152b;
}

.search-empty-text {
    color: #102d4d;
    opacity: 1;
}



/* =====================================================
   CLINIC@ UNIFIED AUTH MODAL
   ===================================================== */

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.hidden {
    display: none;
}

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 21, 43, 0.58);
}

.auth-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px 22px 24px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 15px 50px rgba(0,0,0,.22);
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #52677d;
    cursor: pointer;
}

.auth-modal-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.auth-modal-title {
    margin: 0;
    text-align: center;
    color: #071a33;
    font-size: 25px;
    font-weight: 800;
}

.auth-modal-subtitle {
    margin: 7px 0 22px;
    text-align: center;
    color: #60758b;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    color: #193653;
    font-weight: 700;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    margin-bottom: 16px;
    border: 1px solid #ccd8e4;
    border-radius: 13px;
    background: #fff;
    color: #071a33;
    font-size: 16px;
    outline: none;
}

.auth-input:focus {
    border-color: #5d8fbe;
}

.auth-submit {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 14px;
    background: #0b5cab;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.auth-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.auth-login-error {
    display: none;
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff0f0;
    color: #a32222;
    font-size: 14px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.auth-link-button {
    width: 100%;
    padding: 11px;
    border: 0;
    background: transparent;
    color: #315b7d;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}



/* =====================================================
   CLINIC@ HEADER
   ICON | FULL LOGO | PROFILE
===================================================== */

.site-header {
    width: 100%;
    min-height: 90px;
}

.site-header .header-inner {
    width: 100%;
    max-width: 1100px;
    height: 90px;
    min-height: 90px;
    margin: 0 auto;
    padding: 6px 8px;

    box-sizing: border-box;

    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
    align-items: center;
    gap: 0;
}

/* LEFT */
.site-header .header-left {
    grid-column: 1;
    width: 48px;
    min-width: 48px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* CENTER */
.site-header .header-center {
    grid-column: 2;

    width: 100%;
    min-width: 0;
    height: 78px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

/* LOGO CONTAINER */
.site-header .header-center .logo-icon {
    display: block;

    width: 100%;
    height: 78px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    overflow: hidden;
}

/* ACTUAL IMAGE */
.site-header .header-center .logo-icon img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: fill;
    object-position: center;

    transform: none;
}

/* RIGHT */
.site-header .header-right {
    grid-column: 3;

    width: 48px;
    min-width: 48px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-header .header-actions {
    width: 48px;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-header .profile-button {
    margin: 0;
    flex-shrink: 0;
}

/* MOBILE */
@media (max-width: 480px) {

    .site-header .header-inner {
        grid-template-columns: 44px minmax(0, 1fr) 44px !important;
        height: 78px;
        min-height: 78px;
        padding: 5px 4px;
    }

    .site-header .header-left,
    .site-header .header-right {
        width: 44px;
        min-width: 44px;
    }

    .site-header .header-center {
        height: 68px;
    }

    .site-header .header-center .logo-icon {
        height: 68px;
    }

    .site-header .header-center .logo-icon img {
        width: 100%;
        height: 100%;
    }

    .site-header .header-actions {
        width: 44px;
    }
}


/* =====================================================
   CLINIC@ — BEAUTIFUL 16:9 LOGO
   NO DISTORTION
===================================================== */

.site-header .header-center {
    overflow: hidden !important;
}

.site-header .header-center .logo-icon {
    width: 100% !important;
    height: 78px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
}

.site-header .header-center .logo-icon img {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 78px !important;

    object-fit: contain !important;
    object-position: center !important;

    transform: none !important;
}

/* RIGHT PROFILE */
.site-header .header-right {
    justify-content: flex-end !important;
}

.site-header .header-actions {
    justify-content: flex-end !important;
}

/* MOBILE */
@media (max-width: 480px) {

    .site-header .header-center {
        height: 68px !important;
    }

    .site-header .header-center .logo-icon {
        height: 68px !important;
    }

    .site-header .header-center .logo-icon img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 68px !important;

        object-fit: contain !important;
    }
}


/* =====================================================
   CLINIC@ HEADER — DIRECT LOGO IMAGE
   ===================================================== */

.site-header .header-inner {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1100px !important;
    height: 90px !important;
    min-height: 90px !important;
    padding: 5px 6px !important;
    box-sizing: border-box !important;
}

.site-header .header-left {
    grid-column: 1 !important;
    width: 52px !important;
    min-width: 52px !important;
}

.site-header .header-center.logo {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.site-header .clinic-header-logo {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 80px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}

.site-header .header-right {
    grid-column: 3 !important;
    width: 52px !important;
    min-width: 52px !important;
}

.site-header .header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

@media (max-width: 480px) {
    .site-header .header-inner {
        grid-template-columns: 46px minmax(0, 1fr) 46px !important;
        height: 80px !important;
        min-height: 80px !important;
        padding: 5px 4px !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        width: 46px !important;
        min-width: 46px !important;
    }

    .site-header .header-center.logo {
        height: 70px !important;
    }

    .site-header .clinic-header-logo {
        max-height: 70px !important;
    }
}


/* =====================================================
   CLINIC@ — LOGO FULL WIDTH / KEEP 16:9
   ===================================================== */

.site-header .header-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 4px 6px !important;
}

.site-header .header-center.logo {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.site-header .clinic-header-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 480px) {
    .site-header .header-center.logo {
        height: auto !important;
    }

    .site-header .clinic-header-logo {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
}


/* =====================================================
   CLINIC@ — FINAL HEADER FIT
   ===================================================== */

.site-header .header-inner {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    align-items: center !important;
    height: 82px !important;
    min-height: 82px !important;
    padding: 4px 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.site-header .header-center.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 74px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.site-header .clinic-header-logo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 74px !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 480px) {
    .site-header .header-inner {
        grid-template-columns: 46px minmax(0, 1fr) 46px !important;
        height: 76px !important;
        min-height: 76px !important;
    }

    .site-header .header-center.logo {
        height: 68px !important;
    }

    .site-header .clinic-header-logo {
        max-height: 68px !important;
    }
}


/* =====================================================
   CLINIC@ — TRUE 16:9 HEADER LOGO
   ===================================================== */

.site-header .header-inner {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    align-items: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.site-header .header-left {
    width: 52px !important;
    min-width: 52px !important;
}

.site-header .header-center.logo {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    line-height: 0 !important;
}

.site-header .clinic-header-logo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
}

.site-header .header-right {
    width: 52px !important;
    min-width: 52px !important;
}

@media (max-width: 480px) {
    .site-header .header-inner {
        grid-template-columns: 46px minmax(0, 1fr) 46px !important;
        padding: 0 4px !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        width: 46px !important;
        min-width: 46px !important;
    }
}


/* =====================================================
   CLINIC@ — OVERRIDE OLD ABSOLUTE LOGO
   ===================================================== */

.site-header .header-inner {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1100px !important;
    height: 90px !important;
    min-height: 90px !important;
    padding: 5px 6px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.site-header .header-left {
    grid-column: 1 !important;
    width: 52px !important;
    min-width: 52px !important;
}

.site-header .header-center.logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;

    grid-column: 2 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 80px !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    line-height: 0 !important;
}

.site-header .clinic-header-logo {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 80px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center !important;
}

.site-header .header-right {
    grid-column: 3 !important;
    width: 52px !important;
    min-width: 52px !important;
}

@media (max-width: 480px) {

    .site-header .header-inner {
        grid-template-columns: 46px minmax(0, 1fr) 46px !important;
        height: 80px !important;
        min-height: 80px !important;
        padding: 5px 4px !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        width: 46px !important;
        min-width: 46px !important;
    }

    .site-header .header-center.logo {
        height: 70px !important;
    }

    .site-header .clinic-header-logo {
        max-height: 70px !important;
    }
}


/* =====================================================
   CLINIC@ HEADER — CLEAN FINAL LAYOUT
   ===================================================== */

.site-header {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.site-header .header-inner {
    position: relative !important;

    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;

    align-items: center !important;

    width: 100% !important;
    max-width: 1100px !important;

    height: 90px !important;
    min-height: 90px !important;

    margin: 0 auto !important;
    padding: 5px 6px !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

.site-header .header-slot {
    position: static !important;
    transform: none !important;
}

.site-header .header-left {
    grid-column: 1 !important;

    width: 52px !important;
    min-width: 52px !important;
    height: 80px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.site-header .header-center.logo {
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;

    grid-column: 2 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-width: 0 !important;

    height: 80px !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    line-height: 0 !important;
    font-size: 0 !important;
}

.site-header .clinic-header-logo {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 80px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    object-fit: contain !important;
    object-position: center !important;
}

.site-header .header-right {
    grid-column: 3 !important;

    width: 52px !important;
    min-width: 52px !important;
    height: 80px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.site-header .header-actions {
    width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

@media (max-width: 480px) {

    .site-header .header-inner {
        grid-template-columns: 46px minmax(0, 1fr) 46px !important;
        height: 82px !important;
        min-height: 82px !important;
        padding: 4px !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        width: 46px !important;
        min-width: 46px !important;
        height: 74px !important;
    }

    .site-header .header-center.logo {
        height: 74px !important;
    }

    .site-header .clinic-header-logo {
        max-height: 74px !important;
    }
}


/* =====================================================
   CLINIC@ — WIDE LOGO LIKE SALONLINE
   ===================================================== */

.site-header .header-center.logo {
    width: 100% !important;
    height: 80px !important;
    overflow: hidden !important;
}

.site-header .clinic-header-logo {
    width: 100% !important;
    height: 80px !important;
    max-width: none !important;
    max-height: none !important;

    object-fit: fill !important;
    object-position: center !important;
}

@media (max-width: 480px) {
    .site-header .header-center.logo {
        height: 74px !important;
    }

    .site-header .clinic-header-logo {
        width: 100% !important;
        height: 74px !important;
    }
}


/* =====================================================
   CLINIC@ — LARGE FULL HEADER LOGO
   ===================================================== */

.site-header .header-inner {
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
    height: 120px !important;
    min-height: 120px !important;
    padding: 4px 6px !important;
}

.site-header .header-center.logo {
    width: 100% !important;
    height: 112px !important;
    min-height: 112px !important;
    overflow: hidden !important;
}

.site-header .clinic-header-logo {
    display: block !important;
    width: 100% !important;
    height: 112px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: fill !important;
    object-position: center !important;
}

.site-header .header-left,
.site-header .header-right {
    height: 112px !important;
}

@media (max-width: 480px) {

    .site-header .header-inner {
        grid-template-columns: 46px minmax(0, 1fr) 46px !important;
        height: 105px !important;
        min-height: 105px !important;
        padding: 4px !important;
    }

    .site-header .header-center.logo {
        height: 97px !important;
        min-height: 97px !important;
    }

    .site-header .clinic-header-logo {
        width: 100% !important;
        height: 97px !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        height: 97px !important;
    }
}


/* =====================================================
   CLINIC@ — LOGO 100% WIDTH + BUTTONS OVER LOGO
   ===================================================== */

.site-header .header-inner {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    max-width: 1100px !important;

    height: 120px !important;
    min-height: 120px !important;

    padding: 0 !important;
    margin: 0 auto !important;

    overflow: hidden !important;
}

/* LOGO — FULL HEADER WIDTH */
.site-header .header-center.logo {
    position: absolute !important;

    left: 0 !important;
    top: 0 !important;

    width: 100% !important;
    height: 120px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    transform: none !important;

    overflow: hidden !important;
    z-index: 1 !important;
}

.site-header .clinic-header-logo {
    display: block !important;

    width: 100% !important;
    height: 120px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: fill !important;
    object-position: center !important;
}

/* LEFT BUTTON OVER LOGO */
.site-header .header-left {
    position: absolute !important;

    left: 8px !important;
    top: 0 !important;

    width: 52px !important;
    height: 120px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    z-index: 5 !important;
}

/* RIGHT BUTTON OVER LOGO */
.site-header .header-right {
    position: absolute !important;

    right: 8px !important;
    top: 0 !important;

    width: 52px !important;
    height: 120px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    z-index: 5 !important;
}

.site-header .header-actions {
    position: relative !important;
    z-index: 6 !important;
}

@media (max-width: 480px) {

    .site-header .header-inner {
        height: 105px !important;
        min-height: 105px !important;
    }

    .site-header .header-center.logo {
        height: 105px !important;
    }

    .site-header .clinic-header-logo {
        width: 100% !important;
        height: 105px !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        height: 105px !important;
    }
}


/* =====================================================
   CLINIC@ — PROPORTIONAL LOGO / NO DISTORTION
   ===================================================== */

/* HEADER */
.site-header .header-inner {
    position: relative !important;
    width: 100% !important;
    max-width: 1100px !important;
    height: 120px !important;
    min-height: 120px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

/* LOGO AREA */
.site-header .header-center.logo {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 120px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
    overflow: hidden !important;

    z-index: 1 !important;
}

/* LOGO — KEEP ORIGINAL PROPORTIONS */
.site-header .clinic-header-logo {
    display: block !important;

    width: 100% !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 120px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* BUTTONS ABOVE LOGO */
.site-header .header-left {
    position: absolute !important;
    left: 8px !important;
    top: 0 !important;

    width: 52px !important;
    height: 120px !important;

    display: flex !important;
    align-items: center !important;

    z-index: 10 !important;
}

.site-header .header-right {
    position: absolute !important;
    right: 8px !important;
    top: 0 !important;

    width: 52px !important;
    height: 120px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    z-index: 10 !important;
}

/* =====================================================
   ADMIN IMAGE PREVIEW
   ===================================================== */

img {
    max-width: 100%;
}

@media (max-width: 480px) {

    .site-header .header-inner,
    .site-header .header-center.logo {
        height: 105px !important;
        min-height: 105px !important;
    }

    .site-header .clinic-header-logo {
        max-height: 105px !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        height: 105px !important;
    }
}


/* =====================================================
   HEADER LOGO — FULL WIDTH
   ===================================================== */

.site-header .header-inner {
    position: relative !important;
    width: 100% !important;
    max-width: 1100px !important;
    height: 120px !important;
    min-height: 120px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

/* LOGO НА ВСЮ ШАПКУ */
.site-header .header-center.logo {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;

    width: 100% !important;
    height: 120px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    transform: none !important;
    overflow: hidden !important;

    z-index: 1 !important;
}

/* САМА КАРТИНКА */
.site-header .clinic-header-logo {
    display: block !important;

    width: 100% !important;
    height: 120px !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center !important;
}

/* 👤 ПОВЕРХ ЛОГОТИПА */
.site-header .header-right {
    position: absolute !important;
    right: 8px !important;
    top: 0 !important;

    width: 52px !important;
    height: 120px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    z-index: 10 !important;
}

/* 🔔 ПОВЕРХ ЛОГОТИПА */
.site-header .header-left {
    position: absolute !important;
    left: 8px !important;
    top: 0 !important;

    width: 52px !important;
    height: 120px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    z-index: 10 !important;
}

@media (max-width: 480px) {

    .site-header .header-inner {
        height: 105px !important;
        min-height: 105px !important;
    }

    .site-header .header-center.logo {
        height: 105px !important;
    }

    .site-header .clinic-header-logo {
        width: 100% !important;
        height: 105px !important;
        object-fit: cover !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        height: 105px !important;
    }
}


/* =====================================================
   HEADER LOGO — FULL WIDTH, NO CROPPING
   ===================================================== */

.site-header .header-center.logo {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;

    width: 100% !important;
    height: 120px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    z-index: 1 !important;
}

.site-header .clinic-header-logo {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center !important;
}

/* BUTTONS ABOVE LOGO */

.site-header .header-left {
    z-index: 10 !important;
}

.site-header .header-right {
    z-index: 10 !important;
}

@media (max-width: 480px) {

    .site-header .header-center.logo {
        height: 105px !important;
    }

    .site-header .clinic-header-logo {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
}


/* =====================================================
   CLINIC@ HEADER — FORCE FULL WIDTH + FULL HEIGHT
   ===================================================== */

.site-header .header-inner {
    position: relative !important;
    display: block !important;

    width: 100% !important;
    max-width: 1100px !important;

    height: 120px !important;
    min-height: 120px !important;

    padding: 0 !important;
    margin: 0 auto !important;

    overflow: hidden !important;
}

.site-header .header-center.logo {
    position: absolute !important;

    left: 0 !important;
    top: 0 !important;

    width: 100% !important;
    height: 120px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    transform: none !important;
    overflow: hidden !important;

    z-index: 1 !important;
}

.site-header .clinic-header-logo {
    display: block !important;

    position: absolute !important;
    left: 0 !important;
    top: 0 !important;

    width: 100% !important;
    height: 120px !important;

    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: fill !important;
    object-position: center !important;

    border: 0 !important;
    border-radius: 0 !important;
}

/* BUTTONS ABOVE LOGO */

.site-header .header-left {
    position: absolute !important;
    left: 8px !important;
    top: 0 !important;

    width: 52px !important;
    height: 120px !important;

    z-index: 20 !important;
}

.site-header .header-right {
    position: absolute !important;
    right: 8px !important;
    top: 0 !important;

    width: 52px !important;
    height: 120px !important;

    z-index: 20 !important;
}

@media (max-width: 480px) {

    .site-header .header-inner {
        height: 105px !important;
        min-height: 105px !important;
    }

    .site-header .header-center.logo {
        height: 105px !important;
    }

    .site-header .clinic-header-logo {
        width: 100% !important;
        height: 105px !important;
    }

    .site-header .header-left,
    .site-header .header-right {
        height: 105px !important;
    }
}


/* CLINIC@ HEADER — пропорции логотипа без сдавливания */
.site-header .clinic-header-logo {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    object-position: center center !important;
}


.site-header .clinic-header-logo {
    transform: translate(-2px, -2px) !important;
}


.site-header .clinic-header-logo {
    transform: translate(-4px, -4px) !important;
}


.site-header .clinic-header-logo {
    transform: translate(-6px, -6px) !important;
}


.site-header .clinic-header-logo {
    transform: translate(-7px, -7px) !important;
}


/* Объёмное сердце избранного в поиске врачей */
.doctor-card-actions .doctor-favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #edf1f7);
    color: #64748b;
    font-size: 25px;
    line-height: 1;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .16);
    box-shadow: 0 3px 0 #d8dee8, 0 4px 7px rgba(15, 23, 42, .12);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.doctor-card-actions .doctor-favorite-button.is-favorite {
    border-color: #fecdd3;
    background: linear-gradient(145deg, #fff1f2, #ffe0e6);
    color: #e11d48;
    box-shadow: 0 3px 0 #f5b5c1, 0 4px 8px rgba(190, 18, 60, .18);
}

.doctor-card-actions .doctor-favorite-button:active {
    transform: translateY(2px);
}

.doctor-card-actions .doctor-favorite-button:disabled {
    opacity: .6;
    cursor: wait;
}



/* Гостевой логотип в меню профиля MEDonline */
.profile-title-guest .profile-guest-logo {
    display: block;
    max-width: 150px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.profile-title-guest:has(#profileUserRole) {
    /* Размеры логотипа задаются отдельно, чтобы не влиять на имя пользователя. */
}

/* В гостевом меню показываем логотип без названия и роли */
.profile-title-guest #profileUserName[hidden],
.profile-title-guest #profileUserRole[hidden] {
    display: none !important;
}

/* Логотип на всю ширину шапки гостевого меню */
.profile-title-guest {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.profile-title-guest .profile-guest-logo {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
    margin: 0 auto;
}

/* Текстовый логотип CLINIC@ в гостевом меню */
.profile-header:has(.profile-title-guest) .profile-avatar {
    display: none !important;
}

.profile-header:has(.profile-title-guest) .profile-title-guest {
    display: flex !important;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.profile-title-guest .profile-guest-logo-text {
    display: block;
    width: 100%;
    margin: 0;
    color: var(--primary, #1769e0);
    font-size: clamp(26px, 6vw, 38px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
}
