:root {
    --color-bg: #f7f8fa;
    --color-bg-secondary: #fff;
    --color-text: #232a3a;
    --color-text-secondary: #444;
    --color-accent: #4d7cff;
    --color-accent-hover: #2dabc4;
    --color-card-bg: #fff;
    --color-card-shadow: 0 2px 16px #e3e8f0;
    --color-btn-bg: #4d7cff;
    --color-btn-text: #fff;
    --color-navbar-bg: #cfe2ff;
    --color-navbar-link: #232a3a;
    --color-navbar-link-hover: #4d7cff;
    --color-footer-bg: #cfe2ff;
    --color-footer-bottom-bg: #c1d8fc;
    --color-footer-text: #232a3a;
    --color-footer-link: #232a3a;
    --color-footer-link-hover: #4d7cff;
    --color-footer-accent: #4d7cff;
    --color-footer-tagline: #444;
    --color-footer-border: #e3e8f0;
    --color-card-border: #e3e8f0;
    --color-card-title: #232a3a;
    --color-card-desc: #444;
    --color-hero-face-label: #232a3a;
    --color-hero-face-bg: #fff;
    --color-hero-face-shadow: 0 2px 16px #e3e8f0;
    --color-overlay-bg: rgba(255,255,255,0.92);
    --color-overlay-text: #232a3a;
    --color-carousel-indicator: #232a3a;
    --color-carousel-indicator-active: #4d7cff;
    --color-carousel-arrow: #4d7cff;
    --color-carousel-shadow: #e3e8f0;
    --color-btn-secondary-bg: #e3e8f0;
    --color-btn-secondary-text: #4d7cff;
    --color-input-bg: #fff;
    --color-input-text: #232a3a;
    --color-border: #e3e8f0;
    --color-progress-bar: #4CAF50;
    --color-success: #28a745;
    --color-success-hover: #218838;
    --color-danger: #dc3545;
    --color-danger-hover: #bb2d3b;
    --color-link: #4d7cff;
    --color-link-hover: #2dabc4;
    --color-hero-gradient: #e3e8f0;
    --color-hero-btn-bg: var(--color-accent);
    --color-hero-btn-text: #fff;
    --color-hero-btn-hover-bg: var(--color-accent);
    --color-hero-btn-hover-text: #fff;
    --primary-font: "Onest", sans-serif;

}




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


body {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    flex-direction: column;
    font-family: var(--primary-font);
}

.captcha{
    width:clamp(50px,100px,200px);
    height: clamp(30px, 50px, 100px);
}

/* Цвет наименования полей во crispy form */
.form-label{
    color: rgb(255, 0, 0);
}

button{
    cursor: default;
}

header{
    display: flex;
    place-content: center;
    width: 100%;
    position: relative;
}

/* Стили для гирлянды */
#gir {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-image: url("../imgs/gir.8e8a61c394ab.png");
    background-repeat: repeat-x;
    background-size: auto 123px;
    height: 41px;
    width: 100%;
    overflow: hidden;
    z-index: 101;
    pointer-events: none;
}

.gir_1 {
    background-position-y: 0;
}

.gir_2 {
    background-position-y: -41px;
}

.gir_3 {
    background-position-y: -82px;
}
/* Конец стилей для гирлянды */

.navbar {
    background-color: var(--color-navbar-bg) !important; /* Переопределяем фон */
    width: 100%;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar #logopng{
    width: clamp(100px, 15vw, 200px);
    transition: width 0.3s ease;
}

.navbar #logolink{
    position: relative;
    font-size: 2em;
    color:#797878;
}

.navbar-nav .nav-link {
    color: var(--color-navbar-link) !important; /* Цвет текста */
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--color-navbar-link-hover) !important; /* Цвет текста при наведении */
}

.nav-profile-actions {
    position: absolute;
    right: 30px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.custom-navbar .navbar-nav {
    margin-right: 120px; /* чтобы не налезали на profile-actions */
}

.form-group{
    width: 50%;
    place-self: center;
    margin-bottom: 10px;
}

main {
    flex: 1;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 100px;
}

main section {
    display: flex;
    position: relative;
    width: 95%;
    height: 80vh;
    /* border: 5px solid red; */
    justify-self: center;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}



#clinicajpg {
    width: 40%;
    position: absolute;
    bottom: 5%;
    right: 5%;

    transition: all 0.5s ease 0s;
}

#doc1_image {
    width: 260px;
    height: 360px;
    position: absolute;
    bottom: 30%;
    right: 75%;
    border: 1px solid darkgoldenrod;
    border-radius: 10%;
    box-shadow: -5px 10px 5px -5px rgb(0 0 100 / 0.6);

    transition: all 0.5s ease 0.5s;
}

#doc2_image {
    width: 220px;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 1px solid darkgoldenrod;
    border-radius: 10%;
    box-shadow: -5px 10px 5px -5px rgb(0 0 100 / 0.6);

    transition: all 0.5s ease 0.5s;
}

.section__inner-text{
    position: absolute;
    font-size: .9rem;
    left: 37%;
    top: 35%;
    width: 30%;
    height: 400px;
}


#section-3{
    height: 50vh;
}

    /* Стили только для новой карусели сотрудников */
    #staffCarousel {
        width: 97vw;
        margin-left: calc(-50vw + 50%);
        height: 75vh;
        overflow: hidden;
        position: relative;
    }

    #staffCarousel .carousel-inner,
    #staffCarousel .carousel-item {
        height: 100%;
        
    }

    #staffCarousel .carousel-item img {
        width: 80%;
        place-self: center;
        height: 40vh;
        object-fit: cover;
    }



    /* Кастомные индикаторы только для этой карусели */
    #staffCarousel .staff-indicators {
        bottom: 35%;
        gap: 12px;
    }

    #staffCarousel .staff-indicators button {
        width: 14px;
        height: 14px;
        border: 2px solid var(--color-carousel-indicator);
        background: transparent;
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    #staffCarousel .staff-indicators .active {
        background: var(--color-carousel-indicator-active);
        opacity: 1;
        transform: scale(1.2);
    }

    /* Стили для текстового блока */
    #staffCarousel .text-overlay {
        position: absolute;
        top: 27%;
        left: 29%;
        transform: translate(-50%, -50%);
        width: 70%;
        max-width: 30%;
        max-height: 50%;
        background: var(--color-overlay-bg);
        padding: 2rem;
        border-radius: 10px;
        z-index: 2;
        color: var(--color-overlay-text);

        overflow: hidden;
    }

    #staffCarousel .text-overlay p {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.8rem;
        text-align: center;
    }

    #staffCarousel .text-overlay ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    #staffCarousel .text-overlay li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }

    #staffCarousel .text-overlay li:before {
        content: "•";
        position: absolute;
        left: 0;
        color: #4CAF50;
        font-size: 1.2rem;
    }


    /* отображение видео в деталях урока */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Адаптация iframe видео из CKEditor для мобильных устройств */
@media (max-width: 768px) {
    .lesson-content iframe[src*="rutube.ru"] {
        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 480px) {
    .lesson-content iframe[src*="rutube.ru"] {
        width: 328px !important;
        height: 200px !important;
        max-width: 100% !important;
    }
}

.scale_on_hover:hover{
    scale: 1.5;
}

.fixed {
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
    z-index: 500;
}


.persons__item {
	opacity: 0;
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}


.persons__item.animation-class {
	opacity: 1;
	transform: translateX(-30px);
	transition: opacity 0.3s ease-in-out, transform 1.3s ease-in-out;
}



.persons__item.animation-class:nth-child(2) {
	transform: translateX(30px);
    transition-delay: 1s;
}


main > section > .text-block {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    max-width: 50%;
    font-size: 1.3em;
}

main > section > .text-block-2 {
    position: absolute;
    top: 0;
    left: 70%;
    padding: 10px;
    max-width: 50%;
    font-size: 1.3em;
}


.cards-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15%;
    margin-bottom: 15%;
}


.cards-box .box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30vw;
    height: 28vh;
    border: 3px solid var(--color-card-border);
    border-radius: 15%;
}

.cards-box > .box > svg{
    margin: auto;
}

.box h5{
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
}

.box p{
    margin-bottom: 15%;
    text-align: center;
    font-size: 0.8em;
    
}
.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.2s ease-in-out 0.2s;
}

.show {
    opacity: 1;
    transform: scale(1);
}
/* course_detail.html styles */
.progress {
    height: 25px;
    border-radius: 12px;
}

.progress-bar {
    background-color: var(--color-progress-bar);
    transition: width 0.5s ease-in-out;
}

.btn-success {
    background-color: var(--color-success);
    border-color: var(--color-success);
}

.btn-success:hover {
    background-color: var(--color-success-hover);
    border-color: var(--color-success-hover);
}


.list-group-item-action {
    transition: all 0.3s ease;
}

.badge {
    font-size: 0.9em;
    padding: 0.5em 0.75em;
}


/* --- */
.content-section{
    font-family: var(--primary-font);
}

.content-section h1{
    text-align: center;
    margin-bottom: 2vh;
    padding-bottom: 2vh;
    border-bottom: 1px solid var(--color-border);
}

.lesson-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.lesson-navigation .btn {
    min-width: 200px;
}

.lesson-actions {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.lesson-actions form{
    display: inline-block;
}

.lesson-actions .btn-success {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}


.login-out-actions .btn {
    border-radius: 20px; /* Закругленные края */
    font-weight: bold;  /* Жирный текст */
    transition: all 0.3s ease; /* Плавный переход при наведении */
}

.login-out-actions .btn:hover {
    background-color: var(--color-link); /* Цвет при наведении */
    color: var(--color-btn-text); /* Цвет текста при наведении */
}


.warning-info-about{
    position: relative;
    margin-top: 90px;
    left: 70%;
    padding: 15px;
    display: flex;
    /* border: 5px dotted rgb(162, 159, 159); */
    align-self: center;
    flex-direction: column;
    font-family: cursive;
    font-style: italic;
}

.warning-info-about a a:hover{
    cursor: default;
}

#show_all_courses_btn{
    background-color: var(--color-link);
    width: fit-content;
    height: fit-content;
}

.course-info-block {
    place-self: center;
    text-align: center;
    height: 150px;
    width: 80%;
    margin-top: 20px;
    padding: 20px;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.course-info-block h5 {
    font-family: 'Montserrat', serif;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.course-info-block a{
    text-decoration: none;
}

.course-info-block p {
    font-size: 1em;
    font-family: 'Open Sans', sans-serif; /* Хорошо читаемый шрифт */
    color: var(--color-card-desc);
    
}

.carousel-item img {
    /* max-width: 700px; */
    height: 400px;
    object-fit: cover; /* Чтобы сохранить пропорции */
    border-radius: 10%;
    box-shadow: 3px 3px 10px var(--color-carousel-shadow);
}

.carousel-control-prev,
.carousel-control-next{
    height: 35%;
    padding-top: 13%;
}

#show_all_courses_btn:hover{
    color:var(--color-btn-text);
}

#course_detail_img{
    width: 90%;
    max-height: 400px;
    margin-left: 15px;
    margin-top: 10px;
}

.course-detail-content{
    place-self: center;
}

.course-detail-content li {
    padding: 5px;
}

/* Для правильного отображения кнопок */
.course-actions, .lesson-actions {
    margin: 20px 0;
}

/* Навигация в lesson_detail */
.lesson-navigation {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.lesson-navigation .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin: 0 5px;
}
.course-actions{
    display: flex!important;
    flex-direction: row!important;
    justify-content: space-around;
    font: 1em sans-serif;
}

.card .btn{
    width: 100px;
}

.card-body a{
    cursor: default;
}

.course-actions a, .course-actions .btn {
    cursor: default;
}

.lesson-actions{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
/* Кнопка удаления */
.btn-danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
}

.btn-danger:hover {
    background-color: var(--color-danger-hover);
    border-color: var(--color-danger-hover);
}

/* Цвет текста по умолчанию для ввода поля ввода в форме создании урока */
.ck-editor__main {
    color: #333 !important;
    background-color: white !important;
}

    /* Стили для выравнивания изображений */
    /* Выравнивание изображений */
    .image-style-align-left {
        float: left;
        margin-right: 1.5rem;
        margin-bottom: 1rem;
        max-width: 50%;
    }

    .image-style-align-right {
        float: right !important;
        margin-left: 1.5rem !important;
        margin-bottom: 1rem !important;
        max-width: 50%;
        clear: right;
    }

    .image-style-align-center {
        display: block;
        margin: 1rem auto;
        max-width: 80%;
    }

    figure.image img{
        width: 100%;
        height: auto;
    }

    /* Очистка потока */
    .lesson-content::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Размеры шрифта */
    .ck-content {
        font-size: 16px;
        line-height: 1.6;
    }

    .ck-content p, .ck-content li {
        font-size: inherit;
    }

    .ck-content h1 { font-size: 2.0em; }
    .ck-content h2 { font-size: 1.8em; }
    .ck-content h3 { font-size: 1.6em; }

    /* Исправление конфликтов с Bootstrap */
    .lesson-content p {
        overflow: auto;
    }

    

    .lesson-content img {
        max-width: 100%;
        height: auto;
    }

.lesson-btns{
    height: var(--btn-height-at-lesson-detail);
    width: var(--btn-width-at-lesson-detail);
}

/* CKEditor content */
.lesson-content {
    color: #212529;
    font-size: 1rem;
    line-height: 1.5;
    overflow: visible;
    position: relative;
}
.lesson-content a {
    color: #0d6efd;
    text-decoration: underline;
}
.lesson-content a:hover {
    color: #0a58ca;
}

.lesson-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    background: #fafbfc;
    font-size: 1em;
    position: relative;
    z-index: 1;
    display: table;
    table-layout: auto;
}
.lesson-content th, .lesson-content td {
    border: 1px solid #bbb;
    padding: 8px 12px;
    text-align: left;
    position: relative;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.lesson-content th {
    background: #f3f3f3;
    font-weight: 600;
    text-align: center;
}
.lesson-content tr {
    position: relative;
    z-index: 1;
    display: table-row;
}
.lesson-content tr:nth-child(even) {
    background: #f7f7f7;
}

/* Дополнительные стили для предотвращения наложения таблиц */
.lesson-content table + table {
    margin-top: 24px;
}

.lesson-content table tbody {
    display: table-row-group;
}

.lesson-content table thead {
    display: table-header-group;
}

.lesson-content table tfoot {
    display: table-footer-group;
}

.lesson-content table colgroup {
    display: table-column-group;
}

.lesson-content table col {
    display: table-column;
}
/* CKEditor wrappers: fix overlay caused by inline heights and bootstrap .table clash */
.lesson-content figure.table {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto !important; /* override inline height like style="height:71px;" */
    overflow: visible;
    margin: 16px 0;
    background: transparent;
    border: 0;
}
.lesson-content figure.table > table {
    width: 100% !important;
    margin: 0;
}
.lesson-content figure.image {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 16px 0;
}
.lesson-content .raw-html-embed {
    display: flex;
    width: 100%;
    margin: 16px 0;
    overflow: visible;
    justify-content: center;
}
.lesson-content .raw-html-embed iframe {
    display: block;
    width: 100%;
    max-width: 960px; /* ограничение на десктопе */
    aspect-ratio: 16/9; /* сохраняем пропорции видео */
    height: auto;
}

/* На случай, если iframe вставлен без .raw-html-embed */
.lesson-content iframe[src*="rutube.ru"],
.lesson-content iframe[src*="youtube.com"],
.lesson-content iframe[src*="youtu.be"] {
    display: block;
    margin: 16px auto;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16/9;
    height: auto;
}

/* Оформление заглушки для «битых» картинок */
/* Убрал, так как нет необходимости, восстановить если будет картинка */
/* .img-fallback {
    object-fit: contain;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    padding: 8px;
    width: 30%;
} */
/* Подпись к таблице */
.lesson-content figcaption {
    caption-side: top;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: #444;
    background: #f3f3f3;
    padding: 8px 0 8px 0;
    border-radius: 4px 4px 0 0;
    letter-spacing: 0.02em;
}
.lesson-content p {
    margin: 0 0 12px 0;
    color: var(--color-text);
}
.lesson-content h1, .lesson-content h2, .lesson-content h3 {
    margin: 18px 0 10px 0;
    font-weight: 700;
}
/* .lesson-content ul, .lesson-content ol {
    margin: 0 0 12px 24px;
} Возможно затирают иконки в навигации */ 
.lesson-content img {
    max-width: 100%;
    height: auto;
    display: block;
    /* margin: 12px 0; */
}



/* Анимация завершения курса */
.completion-animation {
    /* Убираем display: none из стилей */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; /* По умолчанию видим */
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: fadeIn 0.5s ease-in-out;
    cursor: pointer;
}

.completion-message {
    cursor: default;
    pointer-events: none; 
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: scaleUp 0.5s ease-in-out;
}

.completion-message h2 {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.completion-message p {
    font-size: 1.5rem;
    color: #333;
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("confetti.08a1e6cd65ac.gif") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}
/* ---- */



#id_image_helptext, #id_allowed_groups_helptext,
#id_video_id_helptext{
    color: var(--color-text);
}

/* во вкладке регистрации текст с информацией о требованиях к имени пользователя */
#id_username_helptext{
    color: #333;
}
/* во вкладке регистрации текст с информацией о требованиях к паролю */
#id_password1_helptext{
    color: var(--color-text);
}
/* во вкладке регистрации текст с информацией о подтверждении пароля */
#id_password2_helptext{
    color: var(--color-text);
}
/* Текст "Уже есть аккаунт" стилизуется непосредственно в templates/users/register.html */

/* Footer new */
.footer-main {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    width: 100%;
    padding: 40px 0 0 0;
    border-top: 2px solid var(--color-footer-border);
    font-family: var(--primary-font);
    margin-top: 40px;
    z-index: 100;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    gap: 32px;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 200px;
    margin-bottom: 24px;
}

.footer-brand {
    max-width: 260px;
}
.footer-logo {
    width: 200px;
    margin-bottom: 12%;
    display: block;
}

/* Дублированный логотип для мобильных устройств */
.footer-logo-mobile {
    display: none;
    width: 80px;
    margin: 8px auto 8px auto;
    max-width: 100%;
    height: auto;
}

.footer-tagline {
    font-size: 1em;
    color: var(--color-footer-tagline);
    margin-top: 6px;
    font-style: italic;
}

.footer-links h5,
.footer-social h5,
.footer-contact h5 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--color-footer-accent);
    letter-spacing: 0.5px;
}
.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 7px;
}
.footer-links a,
.footer-contact a {
    color: var(--color-footer-link);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-footer-link-hover);
    text-decoration: underline;
}

.footer__social-media {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 3px;
}
.footer__social-media-elem {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #333;
    padding: 4px;
    transition: background 0.2s, transform 0.2s;
}
.footer__social-media-elem:hover {
    background: var(--color-footer-accent);
    transform: scale(1.12);
}

.footer-bottom {
    border-top: 1px solid var(--color-footer-border);
    margin-top: 12px;
    padding: 16px 32px 8px 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.98em;
    background: var(--color-footer-bottom-bg);
    overflow-x: hidden;
}
.footer-text {
    color: var(--color-footer-text);
    font-size: 0.95em;
    font-style: italic;
    text-align: center;
    /* flex: 1 1 200px; */
}
.site-version {
    color: var(--color-footer-accent);
    font-size: 0.95em;
    font-weight: 600;
    margin-right: 18px;
}
.footer-policy {
    color: var(--color-footer-link);
    text-decoration: none;
    margin-left: 18px;
    transition: color 0.2s;
    font-size: 0.95em;
}
.footer-policy:hover {
    color: var(--color-footer-link-hover);
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 900px) {

    .footer-main {
        margin-top: 210px;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 12px;
        gap: 18px;
    }
    .footer-col {
        width: 100%;
        min-width: unset;
        margin-bottom: 14px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        /* padding: 12px 12px 8px 12px; */
        gap: 8px;
        overflow-x: hidden;
    }
    .footer-policy, .site-version, .footer-text {
        margin: 0;
        font-size: 0.92em;
    }
    
    /* На планшетах тоже показываем мобильный логотип */
    .footer-logo {
        display: none;
    }
    .footer-logo-mobile {
        display: block;
        width: 90px;
        margin-top: 10px;
        margin-bottom: 6px;
    }
}


/* Для больших экранов */
@media (min-width: 2300px){
    main section #clinicajpg {
        width: 700px;
        position: absolute;
        bottom: 5%;
        right: 0;
    }

    .section__inner-text{
        font-size: 1.3rem;
    }

    #doc1_image {
        width: 360px;
        height: 500px;
        position: absolute;
        bottom: 25%;
        right: 80%;
        
        

    }
    
    #doc2_image {
        width: 360px;
        position: absolute;
        bottom: 5%;
        right: 0;
        
         z-index: 2;  /* Индекс для наложения поверх текста section__inner-text во время наведения курсора*/

    }

    main > section > .text-block-2 {
        position: absolute;
        top: -20%;
        left: 50%;
        padding: 10px;
        max-width: 50%;
    }
    
    
}

@media (min-width: 1700px){
    main > section > .text-block-2 {
        position: absolute;
        top: 20%;
        left: 70%;
        padding: 10px;
        max-width: 50%;
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    
    body {
        display: flex;
        height: 100vh;
        max-width: 768px;
    }

    .navbar .navbar-toggler{
        font-size: smaller;
    }

    /* .navbar #logopng{
        width: 100px;
    } */

    .custom-navbar .navbar-nav {
        margin-right: 0px;
    }

    .nav-profile-actions, .custom-nav-list .nav-item.staff-icons-row {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 0px;
    }

    /* Карточка с действиями курса в course-details */
    .card{
        margin-top: 1vh;
    }

    main {
        flex: 1;
        place-content: center;
        padding: 5px;
        position: relative;
    
    }

    

    #clinicajpg {
        width: 260px;
        position: absolute;
        bottom: 5%;
        right: 0;
    }

    
    /* Стили только для новой карусели сотрудников */
    #staffCarousel {
        width: 900px;
        margin-left: calc(-50vw + 40%);
        height: 75vh;
        overflow: hidden;
        position: relative;
    }

    #staffCarousel .carousel-inner,
    #staffCarousel .carousel-item {
        height: 100%;
        
    }

    #staffCarousel .carousel-item img {
        width: 100%;
        place-self: center;
        height: 20vh;
        object-fit: cover;
    }



    /* Кастомные индикаторы только для этой карусели */
    #staffCarousel .staff-indicators {
        bottom: 55%;
        gap: 12px;
    }

    #staffCarousel .staff-indicators button {
        width: 7px;
        height: 7px;
        border: 2px solid var(--color-carousel-indicator);
        background: transparent;
        opacity: 0.7;
        transition: all 0.3s ease;
    }

    #staffCarousel .staff-indicators .active {
        background: var(--color-carousel-indicator-active);
        opacity: 1;
        transform: scale(1.2);
    }

    /* Стили для текстового блока */
    #staffCarousel .text-overlay {
        position: absolute;
        top: 12%;
        left: 38%;
        transform: translate(-50%, -50%);
        width: 40%;
        height: 20%;
        max-width: 580px;
        max-height: 240px;
        background: var(--color-overlay-bg);
        padding: 2rem;
        border-radius: 10px;
        z-index: 2;
        color: var(--color-overlay-text);
        font-size: 0.5em;

        overflow: scroll;
    }

    #staffCarousel .text-overlay p {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        text-align: center;
    }


    .card .btn {
        font-size: 0.6em;
        width: 70px;
        height: 40px;

        overflow: hidden;
    }
    

    #doc1_image {
        width: 150px;
        height: 280px;
        position: absolute;
        bottom: 20%;
        right: 70%;

        transition: all 0s ease 0s;
    }
    
    #doc2_image {
        width: 150px;
        position: absolute;
        bottom: 5%;
        right: 0;

        transition: all 0s ease 0s;
    }

    .scale_on_hover:hover{
        scale: 1;
    }

    .carousel-block {
        margin-left: -15px;
        width: calc(100% + 30px);
    }
    
    #staticCarousel,
    .carousel-item {
        height: 70vh;
    }

    main > section > .text-block {
        position: absolute;
        top: 0;
        left: 0;
        padding: 5px;
        max-width: 300px;
        font-size: 0.9em;
    }

    .login-out-actions{
        margin-left: 2%;
    }


    .warning-info-about{
        margin-top: 45px;
        padding: 8px;
        left: 20%;

    }

    .course-info-block {
        height: 75px;
        font-size: 1.25rem;
        margin-top: 10px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }
    
    .course-info-block h5 {
        font-size: 0.8em;
        margin-bottom: 5px;
    }
    
    .course-info-block p {
        font-size: 0.5em;
    }

    .carousel-item img {
        max-width: 70%;
        height: 200px;
        object-fit: cover; /* Чтобы сохранить пропорции */
    }

    .content-section{
        place-self: center;
        width: 100%;
        padding: 5%;
    }

    .content-section .form-group{
        width: 100%;
    }

    .lesson-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        align-content: center;
        flex-direction: column;
        width: 100%;
    }

    .lesson-actions .lesson-btns{
        width: 85%;
        margin-top: 3%;
    }
    
    .lesson-actions form{
        display: inline-block;
    }

    .lesson-actions .btn-danger{
        width: 100%;
    }
    
    .lesson-actions .btn-success {
        font-size: 1rem;
    }
    
    
}

@media (max-width: 600px) {
    .footer-main {
        padding: 24px 0 0 0;
    }
    .footer-logo {
        display: none; /* Скрываем оригинальный логотип на мобильных */
    }
    .footer-logo-mobile {
        display: block; /* Показываем дублированный логотип в footer-bottom */
    }
    .footer__social-media-elem {
        width: 28px;
        height: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
        /* padding: 12px 4px 8px 4px; */
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .footer-policy {
        margin-left: 0;
        margin-top: 8px;
        display: block;
        text-align: center;
        width: 100%;
        word-break: break-word;
        font-size: 0.95em;
    }
    
    .footer-text, .site-version {
        text-align: center;
        width: 100%;
        font-size: 0.92em;
    }
}


 @media (max-width: 512px)/* Временно сменил на 768  (было 512) */{ 
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-version{
        font-size: 0.6em!important;
        position: absolute;
        left: 1%;
    }


    /* Hero section */
    .hero {
        padding: 2rem;
        
    }

    section:first-child{
        height: 50%;
        width: 95vw;
        font-size: smaller;
        margin-bottom: 10%;
    }

    section:nth-child(2){
        height: 15%;
        width: 80vw;
    }

    section:nth-child(3){
        font-size: smaller;
        width: 80vw;
    }

    .text-block-2{
        position: relative;
        display: block;
        width: 100px;
        height: 100px;
        text-align: center;
    }

    .text-block-2 h5{
        position: absolute;
        bottom: 25%;
        right: 9%;
        font-size: 0.8rem!important;
    }

    /* Hero section */
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .text-block {
        position: static!important;
        max-width: 100%!important;
        padding: 15px!important;
    }

    #clinicajpg {
        position: relative!important;
        width: 80%!important;
        bottom: auto!important;
        right: auto!important;
        margin: 10px auto;
    }

    /* Staff Carousel */
    #staffCarousel {
        width: 100%!important;
        margin-left: 0!important;
        height: 50vh!important;
    }

    #staffCarousel .text-overlay {
        top: 35%!important;
        left: 50%!important;
        width: 90%!important;
        height: auto;
        max-height: 50%;
        padding: 10px!important;
        transform: translateX(-50%)!important;
    }

    #staffCarousel .staff-indicators{
        bottom: 70%;
    }

    #staffCarousel .staff-indicators button {
        width: 4px;
        height: 4px;
        border: 1px solid var(--color-carousel-indicator);
    }

    #staffCarousel .text-overlay p {
        font-size: 0.8rem!important;
        margin-bottom: 0.5rem!important;
    }

    #staffCarousel .text-overlay ul {
        padding-left: 15px;
        font-size: 0.7rem;
    }

    #staffCarousel .carousel-item img {
        height: 10vh!important;
        max-width: 95%;
    }

    /* Section 3 - Doctors */
    #doc1_image {
        position: relative!important;
        width: 40%!important;
        height: auto!important;
        margin-right: 70px;
        right: auto!important;
        bottom: auto!important;
        top: -20%;
    }

    #doc2_image{
        position: relative!important;
        width: 40%!important;
        margin-left: 10%;
        height: auto!important;
        margin: 10px auto!important;
        right: auto!important;
        bottom: auto!important;
    }

    .section__inner-text {
        display: none;
        padding: 0 15px;
        text-align: center;
        max-height: 200px;
        overflow: auto;
    }

    /* Навигация lesson_detail */
    .lesson-navigation {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 15px 0;
    }

    .lesson-navigation .btn {
        width: 100%;
        font-size: 1rem;
        padding: 12px 0;
        text-align: center;
        margin: 0;
    }

    /* Cards grid */
    .cards-box {
        flex-direction: column;
        padding: 0 10px;
    }

    .cards-box .box {
        width: 80%!important;
        margin: 10px 0;
        padding: 15px!important;
    }

    .cards-box .box h5{
        font-size: 0.6em!important;
        /* margin-top: 15px; */
    }

    .cards-box .box p{
        font-size: 0.4em!important;
        /* margin-top: 15px; */
    }
    
    .cards-box svg {
        width: 48px!important;
        height: 48px!important;
    }

    /* Courses Carousel */
    #courseCarousel{
        height: 20%;
    }

    #courseCarousel .carousel-item{
        height: fit-content!important;
    }

    #courseCarousel .course-info-block {
        padding: 5px!important;
        margin: 5px!important;
    }

    #courseCarousel .course-info-block h5 {
        font-size: 0.9rem!important;
    }

    #courseCarousel .course-info-block p {
        display: none; /* Скрываем длинное описание */
    }

    #courseCarousel img {
        max-width: 90%!important;
        height: 150px!important;
    }

    /* Общие правки */
    h1 { font-size: 1.5rem!important; }
    h5 { font-size: 1rem!important; }
    p { font-size: 0.8rem!important; }

    #show_all_courses_btn {
        width: 90%;
        margin: 10px auto;
        display: block;
        text-decoration: none;
    }

    .carousel-control-prev,
    .carousel-control-next {
        display: none; /* Скрываем стрелки для экономии места */
    }
    /* Футер */
    footer {
    width: 100%;
    background-color: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0 10px 0 !important;
    /* margin-top: 30%; */
  }

  .footer-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
  }

  .footer-col {
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
  }

  .footer-logo {
    display: none; /* Скрываем оригинальный логотип на очень маленьких экранах */
  }
  
  .footer-logo-mobile {
    display: block;
    width: 120px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .footer-tagline {
    display: none; /* Скрываем теглайн для мобильных устройств */
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .footer-col h5 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

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

  .footer-col ul li {
    margin-bottom: 2px;
    font-size: 0.97rem;
  }

  .footer__social-media {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 8px 0;
    flex-wrap: wrap;
  }

  .footer__social-media-elem {
    width: 28px;
    height: 28px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
    font-size: 0.85rem;
    max-height: 45vh;
    overflow-x: hidden;
  }

  .footer-text {
    font-size: 0.85rem !important;
    color: var(--color-footer-text);
    text-align: center;
    margin-top: 22px;
    width: 100%;
    line-height: 1.3;
    font-style: italic;
  }
    
}

/* Media для горизонтального отображения на телефоне */
@media (max-width: 1200px) and (max-height: 500px){
    
    body {
        display: flex;
        height: 100vh;
        width: 100vw;
    }

    .navbar .navbar-toggler{
        font-size: smaller;
    }

    /* .navbar #logopng{
        width: 100px;
    } */

    .navbar-collapse {
        flex-direction: row !important;
        justify-content: space-between;
        padding: 10px;
    }
    .navbar-nav {
        flex-direction: row !important;
        justify-content: space-between;
        width: 100%;
    }
    .navbar-nav li {
        margin-right: 20px;
    }

    main {
        flex: 1;
        place-content: center;
        padding: 5px;
        position: relative;
    
    }


    main section #clinicajpg {
        width: 260px;
        position: absolute;
        bottom: 5%;
        right: 0;
    }
    
    main > section > .text-block {
        position: absolute;
        top: 0;
        left: 0;
        padding: 5px;
        max-width: 300px;
        font-size: 0.9em;
    }


    .content-section{
        place-self: center;
        width: 90%;
        padding: 5%;
    }

    /* Навигация lesson_detail */
    .lesson-navigation {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        margin: 15px 0;
    }

    .lesson-navigation .btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .lesson-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 2rem;
        width: 100%;
        max-height: 50px;
        justify-content: center;
        align-items: center;
        align-content: center;
        overflow: hidden;
    }

    .lesson-actions .lesson-btns{
        width: 85%;
        height: auto;
        margin-top: 3%;
    }
    
    .lesson-actions form{
        display: inline-block;
        height: auto;
    }

    .lesson-actions .btn-warning{
        width: 20%;
        margin-bottom: 30px;
    }

    .lesson-actions .btn-danger{
        width: 100%;
        margin-bottom: 13px;
    }
    
    .lesson-actions .btn-success {
        font-size: 1rem;
        margin-top: 2px;
    }
    

    .carousel-arrows{
        margin-bottom: 25px;
    }


    .warning-info-about{
        position: absolute;
        margin-right: 10px;
        top: 50%;
        padding: 8px;
    }

    .course-info-block {
        height: 75px;
        font-size: 1.3rem;
        margin-top: 10px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 0 5px rgba(0,0,0,0.1);
    }
    
    .course-info-block h5 {
        font-size: 0.8em;
        margin-bottom: 5px;
    }
    
    .course-info-block p {
        font-size: 0.5em;
    }

    .carousel-item img {
        max-width: 350px;
        height: 200px;
        object-fit: cover; /* Чтобы сохранить пропорции */
    }
    
}

/* --- CUSTOM NAVIGATION STYLES --- */
.custom-navbar {
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-navbar-bg) !important;
    transition: box-shadow 0.3s;
}
.custom-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    scrollbar-width: thin;
    scrollbar-color: #ffb300 #222;
}
.custom-nav-list::-webkit-scrollbar {
    height: 6px;
}
.custom-nav-list::-webkit-scrollbar-thumb {
    background: #ffb300;
    border-radius: 4px;
}
.custom-nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--color-navbar-link) !important;
    position: relative;
    transition: color 0.2s, transform 0.2s;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    background: transparent;
}
.custom-nav-link i {
    font-size: 1.1em;
    transition: color 0.2s, transform 0.2s;
}
.custom-nav-link:hover, .custom-nav-link:focus {
    color: #ffb300 !important;
    background: rgba(255,179,0,0.08);
    transform: translateY(-2px) scale(1.06);
    text-shadow: 0 2px 8px rgba(255,179,0,0.12);
}
.custom-nav-link:hover i, .custom-nav-link:focus i {
    color: #ffb300;
    transform: scale(1.2) rotate(-8deg);
}
.custom-divider {
    border-top: 2px dashed #ffb300;
    margin: 0 0.5rem;
    opacity: 0.5;
}
@media (max-width: 900px) {
    .custom-nav-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.1rem;
    }
    .custom-nav-link {
        font-size: 0.98em;
        padding: 0.5rem 0.7rem !important;
    }
    
}
@media (max-width: 600px) {
    .custom-navbar {
        padding: 0.2rem 0.2rem;
    }
    .custom-nav-link {
        font-size: 0.93em;
        padding: 0.4rem 0.5rem !important;
    }
    .custom-nav-list {
        overflow-x: auto;
    }
}
/* Delight: логотип анимируется при наведении */
/* #logopng {
    transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}
#logolink:hover #logopng {
    transform: rotate(-8deg) scale(1.08);
} */


.header.always-visible {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white; /* или какой у тебя фон */
  }

/* --- HERO LANDING (Skillbox style, адаптация под палитру сайта) --- */
  .hero-landing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(280deg, var(--color-hero-gradient) 60%, rgba(76, 175, 170, 0.1) 100%);
  color: var(--color-text);
  border-radius: 24px;
  padding: 48px 32px;
  margin-bottom: 32px;
  transition: background 0.3s ease, color 0.3s ease;
}
  .hero-landing__left { flex: 1 1 320px; min-width: 300px; }
  .hero-landing__right { flex: 1 1 420px; min-width: 320px; display: flex; justify-content: center; }
  .hero-landing__stats { display: flex; gap: 32px; margin: 24px 0; }
  .hero-landing__stat-num { font-size: 2.2rem; font-weight: bold; color: var(--color-accent); transition: color 0.3s ease; }
  .hero-landing__stat-label { display: block; font-size: 1rem; color: var(--color-text-secondary); transition: color 0.3s ease; }
  .hero-landing__categories { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
  .hero-landing__categories button { 
    background: var(--color-hero-btn-bg); 
    color: var(--color-hero-btn-text);
    border: none; 
    border-radius: 20px; 
    padding: 8px 20px; 
    font-size: 1rem;  
    cursor: pointer; 
    transition: background 0.2s, color 0.2s;
  }

  .hero-landing__categories button:hover { 
    border: none;  
    background: var(--color-hero-btn-hover-bg); 
    color: var(--color-hero-btn-hover-text);
  }

  .hero-landing__cta {
    display: inline-block; margin-top: 12px; background: var(--color-accent); color: #fff; padding: 10px 28px; border-radius: 24px; text-decoration: none; font-weight: 500; transition: background 0.2s;
  }
  .hero-landing__cta:hover { background: var(--color-accent-hover); }
  .hero-landing__faces {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    justify-content: flex-end;
    align-items: flex-end;
    max-width: 420px;
  }
  .hero-face-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .hero-face {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: var(--color-hero-face-bg);
  }
  .hero-face-label {
    font-size: 0.95rem;
    color: var(--color-hero-face-label);
    text-align: center;
    transition: color 0.3s ease;
  }
  .hero-emoji { font-size: 3.2rem; }
  @media (max-width: 900px) {
    .hero-landing { flex-direction: column; padding: 32px 12px; }
    .hero-landing__right, .hero-landing__left { min-width: unset; width: 100%; }
    .hero-landing__faces { justify-content: center; }
  }
  






.navbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    margin-left: 8px;
    transition: box-shadow 0.2s;
}
.navbar-avatar:hover, .navbar-avatar:focus {
    box-shadow: 0 0 0 2px #ffb300;
}
@media (max-width: 900px) {
    .navbar-avatar {
        width: 32px;
        height: 32px;
        margin-left: 0;
    }
    .nav-item.dropdown {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .navbar-avatar {
        margin: 0 auto;
        display: block;
        float: none;
    }
    .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        min-width: 140px;
    }
}

/* Стили для бургер меню - делаем его черным */
.navbar-toggler {
    border-color: #000 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

/* Стили для мобильного колокольчика уведомлений */
@media (max-width: 991px) {
    .navbar .d-lg-none .nav-link {
        padding: 0.5rem 0.75rem;
        color: inherit !important;
    }
    
    .navbar .d-lg-none .nav-link:hover {
        color: inherit !important;
        opacity: 0.8;
    }
    
    .navbar .d-lg-none .dropdown-menu {
        margin-top: 0.5rem;
        border: 1px solid rgba(0,0,0,.15);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
        margin-left: -2.5rem;
    }
    
    /* Группировка колокольчика и бургер меню */
    .navbar .d-flex.align-items-center {
        margin-left: auto;
    }
}

/* Стили для плавающей кнопки чата поддержки */
.support-chat-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: var(--color-btn-text);
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Индикатор новых тикетов (красная точка) */
.new-tickets-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
    animation: ticketPulse 1.5s infinite;
}

@keyframes ticketPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.support-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    color: var(--color-btn-text);
    text-decoration: none;
}

.support-chat-button:acitve{
    transform: scale(0.95);
}

.support-chat-button .pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.5
    }
    100%{
        transform: scale(1.5);
        opacity: 0;
    }
}
@media (max-width: 768px) {
    .support-chat-button {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}