:root {
    --header-height: 90px;
    --primary: #194093;
    --secondary: #FFFFFF;
}

body {
    overflow-x: hidden;
}

header {
    height: 0;
    background: none;
}

header .navbar-brand img {
    padding: 0;
    margin: 0 20px 0 0;
    max-height: 60px !important;
}

.custom-toggler {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1056;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.32s ease;
}

.toggler-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background-color: #fff;
    display: block;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

    .toggler-icon::before,
    .toggler-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 20px;
        height: 2px;
        background-color: #fff;
        transition: transform 0.32s ease, opacity 0.32s ease;
    }

    .toggler-icon::before {
        top: -7px;
    }

    .toggler-icon::after {
        top: 7px;
    }

/* Активное состояние (крест) */
.custom-toggler.active .toggler-icon {
    background: transparent;
}

    .custom-toggler.active .toggler-icon::before {
        transform: translateY(7px) rotate(45deg);
    }

    .custom-toggler.active .toggler-icon::after {
        transform: translateY(-7px) rotate(-45deg);
    }

.offcanvas {
    width: 250px;
}

/* Сдвиг кнопки при открытом меню (на ширину offcanvas) */
.custom-toggler.move {
    transform: translateX(-250px);
}

/* Скрываем кнопку на больших экранах */
@media (min-width: 992px) {
    body {
        padding-top: var(--header-height);
    }

    header {
        background: url(/images/kaishe90/main-bg.jpg) center top no-repeat;
        background-size: cover;
        color: #fff;
        width: 100%;
        height: var(--header-height);
        z-index: 1055;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        color: var(--secondary) !important;
    }
}

section {
    scroll-margin-top: var(--header-height);
}


.section-title {
    text-align: center;
    padding-bottom: 30px;
    text-transform: uppercase;
}

    .section-title h2 {
        font-size: 34px;
        font-weight: bold;
        position: relative;
        color: var(--primary) !important;
    }

    .section-title p {
        margin: 15px 0 0 0;
    }

@media (max-width: 768px) {

    .section-title h2 {
        font-size: 24px;
    }

        .section-title h2::before,
        .section-title h2::after {
            width: 20px;
        }

        .section-title h2::before {
            margin: 0 10px 10px 0;
        }

        .section-title h2::after {
            margin: 0 0 10px 10px;
        }
}

.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
}

    .back-to-top i {
        font-size: 24px;
        color: #fff;
        line-height: 0;
    }

    .back-to-top:hover {
        background: var(--secondary);
        color: #fff;
    }

    .back-to-top.active {
        visibility: visible;
        opacity: 1;
    }

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
}

    #preloader:before {
        content: "";
        position: fixed;
        top: calc(50% - 30px);
        left: calc(50% - 30px);
        border: 6px solid var(--primary);
        border-top-color: #efefef;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: animate-preloader 1s linear infinite;
    }

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bg-primary {
    background-color: var(--primary) !important;
}

footer {
    background: url(/images/kaishe90/main-bg.jpg) center bottom;
    background-size: cover;
}

#supporters {
    background: #fff;
    padding: 60px 0;
}

    #supporters h5 {
        font-weight: 700;
        font-size: 20px;
        color: var(--primary);
        text-align: center;
    }

    #supporters .supporters-wrap {
        border-top: 1px solid #e0e5fa;
        border-left: 1px solid #e0e5fa;
        margin-bottom: 30px;
    }

    #supporters .supporter-logo {
        padding: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-right: 1px solid #e0e5fa;
        border-bottom: 1px solid #e0e5fa;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.5);
        min-height: 160px;
    }

        #supporters .supporter-logo:hover img {
            transform: scale(1.2);
        }

    #supporters img {
        transition: all 0.4s ease-in-out;
    }

#hero {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    background: url(/images/kaishe90/main-bg.jpg) no-repeat top center;
    background-size: cover;
}

    #hero .small {
        color: var(--secondary);
        font-size: 11px;
        line-height: 14px;
        margin-bottom: 25px;
    }

        #hero .small .border-end {
            border-left: 0;
            border-top: 0;
            border-bottom: 0;
            border-right: 3px !important;
            border-color: var(--secondary) !important;
            border-style: solid !important;
        }

    #hero h1 {
        font-size: 48px;
        font-weight: 700;
        line-height: 52px;
        color: var(--secondary) !important;
    }

    #hero h3 {
        font-size: 30px;
        font-weight: 700;
        line-height: 44px;
        color: var(--secondary) !important;
    }

    #hero h2 {
        color: var(--secondary) !important;
        font-size: 38px;
        font-weight: 800;
    }

.btn-get-started {
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    transition: 0.5s;
    color: var(--primary);
    background: var(--secondary);
    border: 2px solid var(--secondary);
    margin-bottom: 20px;
}

    .btn-get-started:hover {
        color: var(--secondary);
        background: transparent;
    }

#hero .animated {
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@media (min-width: 1024px) {
    #hero {
        background-attachment: fixed;
    }
}

@media (max-width: 991px) {
    #hero {
        padding-top: 100px;
        width: 100%;
        min-height: 100vh;
    }

        #hero .small .border-end {
            border: 0 !important;
        }

        #hero .animated {
            animation: none;
        }

        #hero .hero-img {
            text-align: center;
        }

            #hero .hero-img img {
                width: 50%;
            }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 28px;
        line-height: 36px;
    }

    #hero h1 {
        font-size: 32px;
        font-weight: 700;
        line-height: 25px;
        color: var(--secondary) !important;
    }

    #hero h2 {
        font-size: 24px;
        font-weight: 700;
        line-height: 28px;
        color: var(--secondary) !important;
    }

    #hero h3 {
        font-size: 24px;
        font-weight: 700;
        line-height: 28px;
        color: var(--secondary) !important;
    }

    #hero .hero-img img {
        width: 70%;
    }
}

@media (max-width: 575px) {
    #hero .hero-img img {
        width: 80%;
    }
}

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(-10px);
    }
}

#registration .info {
    color: #444444;
}

    #registration .info i {
        font-size: 32px;
        color: var(--primary);
        float: left;
        line-height: 1;
    }

    #registration .info p {
        padding: 0 0 10px 42px;
        line-height: 28px;
        font-size: 14px;
    }

#registration .php-email-form .error-message {
    display: none;
    color: #fff;
    background: var(--primary);
    text-align: left;
    padding: 15px;
    font-weight: 600;
}

    #registration .php-email-form .error-message br + br {
        margin-top: 25px;
    }

#registration .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: var(--primary);
    text-align: center;
    padding: 15px;
    font-weight: 600;
}

#registration .php-email-form .loading {
    display: none;
    background: var(--primary);
    text-align: center;
    padding: 15px;
}

    #registration .php-email-form .loading:before {
        content: "";
        display: inline-block;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        margin: 0 10px -6px 0;
        border: 3px solid var(--primary);
        border-top-color: #eee;
        animation: animate-loading 1s linear infinite;
    }

#registration .php-email-form .form-group {
    margin-bottom: 10px;
}

#registration .php-email-form input[type=text],
#registration .php-email-form select,
#registration .php-email-form textarea {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    padding: 10px 15px;
}

    #registration .php-email-form input:focus,
    #registration .php-email-form textarea:focus {
        border-color: var(--primary);
    }

#registration .php-email-form button[type=submit] {
    background: var(--primary);
    border: 0;
    padding: 10px 24px;
    color: #fff;
    transition: 0.4s;
    border-radius: 50px;
}

    #registration .php-email-form button[type=submit]:hover {
        background: var(--primary);
    }

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.floating-label {
    margin-bottom: 3px;
    margin-left: 7px;
    font-size: 14px;
    visibility: collapse;
    color: var(--primary);
}

select:valid ~ .floating-label,
textarea:not(:placeholder-shown) ~ .floating-label,
input:not(:placeholder-shown) ~ .floating-label {
    visibility: visible;
    animation: slide-in-top-label 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-in-top-label {
    0% {
        -webkit-transform: translateY(10px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-in-top-label {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


.form-group .text-danger {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
}

.doctors .member {
    position: relative;
    box-shadow: 0px 2px 15px rgba(44, 73, 100, 0.08);
    padding: 30px;
    border-radius: 10px;
    background: #FFF;
}

    .doctors .member img {
        transition: ease-in-out 0.3s;
        border-radius: 50%;
        width: 120px;
        height: 120px;
    }

    .doctors .member:hover img {
        transform: scale(1.1);
    }

    .doctors .member .member-info {
        padding-left: 30px;
    }

    .doctors .member h4 {
        font-weight: 700;
        margin-bottom: 5px;
        font-size: 20px;
        color: var(--primary) !important;
    }

    .doctors .member span {
        display: block;
        font-size: 15px;
        padding-bottom: 10px;
        position: relative;
        font-weight: 500;
    }

        .doctors .member span::after {
            content: "";
            position: absolute;
            display: block;
            width: 50px;
            height: 1px;
            background: #b2c8dd;
            bottom: 0;
            left: 0;
        }

    .doctors .member p {
        margin: 10px 0 0 0;
        font-size: 14px;
    }

    .doctors .member .social {
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

        .doctors .member .social a {
            transition: ease-in-out 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50px;
            width: 32px;
            height: 32px;
            background: #a0bcd5;
        }

            .doctors .member .social a i {
                color: #fff;
                font-size: 16px;
                margin: 0 2px;
            }

            .doctors .member .social a:hover {
                background: var(--primary);
            }

            .doctors .member .social a + a {
                margin-left: 8px;
            }

@media (max-width: 768px) {
    .doctors .member h4 {
        font-size: 16px;
    }
}

.btn-primary {
    background-color: var(--primary) !important;
}