/* =====================================================
   DOCTOR MAIN HEADER
===================================================== */

:root {
    --doctor-header-height: 84px;
}

html {
    scroll-padding-top: var(--doctor-header-height);
}

body {
    padding-top: var(--doctor-header-height);
}

.doctorMainHeader,
.doctorMainHeader * {
    box-sizing: border-box;
}

.doctorMainHeader {
    --header-bg: #294033;
    --header-bg-dark: #1d3026;
    --header-text: rgba(255, 255, 255, 0.76);
    --header-white: #ffffff;
    --header-green: #5efe90;
    --header-border: rgba(255, 255, 255, 0.14);
    --header-heading: "Telegraf", sans-serif;
    --header-body: "RM Neue", sans-serif;
    --header-height: var(--doctor-header-height);

    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    color: var(--header-white);
    background: var(--header-bg);
    font-family: var(--header-body);
    box-shadow: none;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

.doctorMainHeader.is-scrolled {
    background: rgba(41, 64, 51, 0.97);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.doctorMainHeader a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   CONTAINER AND LAYOUT
===================================================== */

.doctorMainHeader__container {
    height: 100%;
}

.doctorMainHeader__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid var(--header-border);
}


/* =====================================================
   DESKTOP NAVIGATION
===================================================== */

.doctorMainHeader__desktopNav {
    display: flex;
    align-items: center;
    gap: 11px;
}

.doctorMainHeader__desktopNav--left {
    justify-content: flex-start;
}

.doctorMainHeader__desktopNav--right {
    justify-content: flex-end;
}

.doctorMainHeader__navLink {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--header-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.doctorMainHeader__navLink:hover,
.doctorMainHeader__navLink.is-active {
    color: var(--header-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--header-border);
}

.doctorMainHeader__navLink:hover {
    transform: translateY(-2px);
}


/* =====================================================
   BRAND
===================================================== */

.doctorMainHeader__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 360px;
    padding: 0 25px;
    text-align: center;
}

.doctorMainHeader__brandName {
    display: block;
    color: var(--header-white);
    font-family: var(--header-heading);
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
}

.doctorMainHeader__brandSpeciality {
    display: block;
    margin-top: 6px;
    color: var(--header-green);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}


/* =====================================================
   CONTACT BUTTON
===================================================== */

.doctorMainHeader__contactLink {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 46px;
    padding: 6px 7px 6px 19px;
    border: 1px solid rgba(94, 254, 144, 0.75);
    border-radius: 999px;
    color: var(--header-white);
    font-size: 14px;
    font-weight: 600;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.doctorMainHeader__contactLink:hover {
    color: var(--header-bg);
    background: var(--header-green);
    transform: translateY(-2px);
}

.doctorMainHeader__contactArrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50%;
    color: var(--header-bg);
    background: var(--header-green);
    font-size: 15px;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.doctorMainHeader__contactLink:hover
.doctorMainHeader__contactArrow {
    color: var(--header-white);
    background: var(--header-bg);
    transform: rotate(45deg);
}


/* =====================================================
   HAMBURGER BUTTON
===================================================== */

.doctorMainHeader__menuButton {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--header-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--header-white);
    background: transparent;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.doctorMainHeader__menuButton:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.doctorMainHeader__menuLine {
    display: block;
    width: 19px;
    height: 1px;
    background: currentColor;
    transition:
        transform 0.35s ease,
        opacity 0.3s ease;
}

.doctorMainHeader__menuButton.is-open
.doctorMainHeader__menuLine:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.doctorMainHeader__menuButton.is-open
.doctorMainHeader__menuLine:nth-child(2) {
    opacity: 0;
}

.doctorMainHeader__menuButton.is-open
.doctorMainHeader__menuLine:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =====================================================
   MOBILE MENU PANEL
===================================================== */

.doctorMobileMenu {
    position: fixed;
    z-index: 999;
    inset: 0;
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    color: var(--header-white);
    background: var(--header-bg);
    transform: translateY(-20px);
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctorMobileMenu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.doctorMobileMenu .container {
    min-height: 100%;
}

.doctorMobileMenu__inner {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 30px 0;
}


/* =====================================================
   MOBILE MENU TOP
===================================================== */

.doctorMobileMenu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--header-border);
}

.doctorMobileMenu__label {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.doctorMobileMenu__close {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--header-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--header-white);
    background: transparent;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.doctorMobileMenu__close:hover {
    color: var(--header-bg);
    background: var(--header-white);
}


/* =====================================================
   MOBILE NAVIGATION
===================================================== */

.doctorMobileMenu__navigation {
    margin-top: 38px;
    border-top: 1px solid var(--header-border);
}

.doctorMobileMenu__navigation a {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--header-border);
    transition:
        color 0.3s ease,
        padding-left 0.3s ease;
}

.doctorMobileMenu__navigation a:hover {
    color: var(--header-green);
    padding-left: 8px;
}

.doctorMobileMenu__number {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
}

.doctorMobileMenu__text {
    font-family: var(--header-heading);
    font-size: clamp(34px, 7vw, 58px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
}

.doctorMobileMenu__arrow {
    font-size: 20px;
    text-align: right;
    transition: transform 0.3s ease;
}

.doctorMobileMenu__navigation a:hover
.doctorMobileMenu__arrow {
    transform: translate(4px, -4px);
}


/* =====================================================
   MOBILE MENU BOTTOM
===================================================== */

.doctorMobileMenu__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-top: auto;
    padding-top: 50px;
}

.doctorMobileMenu__contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.doctorMobileMenu__contactLabel {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.doctorMobileMenu__contact a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.doctorMobileMenu__contact a:hover {
    color: var(--header-white);
}

.doctorMobileMenu__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doctorMobileMenu__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--header-border);
    border-radius: 50%;
    color: var(--header-white);
    font-size: 17px;
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.doctorMobileMenu__social a:hover {
    color: var(--header-bg);
    background: var(--header-white);
    transform: translateY(-3px);
}


/* =====================================================
   MENU OPEN BODY STATE
===================================================== */

body.doctor-menu-open {
    overflow: hidden;
}


/* =====================================================
   LARGE DESKTOP
===================================================== */

@media (min-width: 1400px) {
    .doctorMainHeader__desktopNav {
        gap: 15px;
    }

    .doctorMainHeader__navLink {
        padding-right: 21px;
        padding-left: 21px;
    }

    .doctorMainHeader__brand {
        min-width: 390px;
    }
}


/* =====================================================
   SMALL DESKTOP
===================================================== */

@media (max-width: 1199px) {
    :root {
        --doctor-header-height: 86px;
    }

    .doctorMainHeader {
        --header-height: var(--doctor-header-height);
    }

    .doctorMainHeader__brand {
        min-width: 290px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .doctorMainHeader__brandName {
        font-size: 21px;
    }

    .doctorMainHeader__brandSpeciality {
        font-size: 9px;
    }

    .doctorMainHeader__desktopNav {
        gap: 5px;
    }

    .doctorMainHeader__navLink {
        min-height: 39px;
        padding: 9px 13px;
        font-size: 13px;
    }

    .doctorMainHeader__contactLink {
        min-height: 42px;
        padding-left: 15px;
        font-size: 13px;
    }

    .doctorMainHeader__contactArrow {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }
}


/* =====================================================
   TABLET AND MOBILE HEADER
===================================================== */

@media (max-width: 991px) {
    :root {
        --doctor-header-height: 78px;
    }

    .doctorMainHeader {
        --header-height: var(--doctor-header-height);
    }

    .doctorMainHeader__layout {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .doctorMainHeader__desktopNav {
        display: none;
    }

    .doctorMainHeader__brand {
        align-items: flex-start;
        justify-content: center;
        min-width: 0;
        padding: 0;
        text-align: left;
    }

    .doctorMainHeader__brandName {
        font-size: 20px;
    }

    .doctorMainHeader__brandSpeciality {
        margin-top: 6px;
        font-size: 8px;
    }

    .doctorMainHeader__menuButton {
        display: flex;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {
    :root {
        --doctor-header-height: 74px;
    }

    .doctorMainHeader {
        --header-height: var(--doctor-header-height);
    }

    .doctorMainHeader__brandName {
        font-size: 18px;
    }

    .doctorMainHeader__brandSpeciality {
        font-size: 7px;
        letter-spacing: 0.16em;
    }

    .doctorMainHeader__menuButton {
        width: 44px;
        height: 44px;
    }

    .doctorMobileMenu__inner {
        padding: 22px 0 28px;
    }

    .doctorMobileMenu__navigation {
        margin-top: 27px;
    }

    .doctorMobileMenu__navigation a {
        grid-template-columns: 38px minmax(0, 1fr) 30px;
        gap: 12px;
        padding: 19px 0;
    }

    .doctorMobileMenu__text {
        font-size: 36px;
    }

    .doctorMobileMenu__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 28px;
        padding-top: 38px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {
    .doctorMainHeader__brandName {
        max-width: 220px;
        font-size: 17px;
    }

    .doctorMainHeader__brandSpeciality {
        font-size: 7px;
    }

    .doctorMobileMenu__text {
        font-size: 32px;
    }

    .doctorMobileMenu__contact a {
        font-size: 13px;
    }

    .doctorMobileMenu__social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 375px) {
    .doctorMainHeader__brandName {
        max-width: 185px;
        font-size: 15px;
    }

    .doctorMainHeader__brandSpeciality {
        letter-spacing: 0.12em;
    }

    .doctorMainHeader__menuButton {
        width: 41px;
        height: 41px;
    }

    .doctorMobileMenu__navigation a {
        grid-template-columns: 31px minmax(0, 1fr) 25px;
    }

    .doctorMobileMenu__text {
        font-size: 29px;
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .doctorMainHeader,
    .doctorMainHeader__navLink,
    .doctorMainHeader__contactLink,
    .doctorMainHeader__contactArrow,
    .doctorMainHeader__menuLine,
    .doctorMobileMenu,
    .doctorMobileMenu__close,
    .doctorMobileMenu__navigation a,
    .doctorMobileMenu__arrow,
    .doctorMobileMenu__contact a,
    .doctorMobileMenu__social a {
        transition: none;
    }
}


/* =====================================================
   MOBILE MENU BRAND
===================================================== */

.doctorMobileMenu__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
    text-decoration: none;
}

.doctorMobileMenu__brandName {
    display: block;
    font-family: var(--header-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
}

.doctorMobileMenu__brandSpeciality {
    display: block;
    margin-top: 7px;
    color: var(--header-green);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .doctorMobileMenu__brandName {
        font-size: 18px;
    }

    .doctorMobileMenu__brandSpeciality {
        font-size: 7px;
        letter-spacing: 0.15em;
    }
}
