html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    background-color: var(--background-color);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
}

main {
    padding-bottom: 2rem;
}

.min-content-height {
    min-height: 60vh;
}

/* CSS переменные */
:root {
    --primary-color: #ABB591;
    --secondary-color: #D0D3B4;
    --accent-color: #E74C3C;
    --hover-color: #E06A0F;
    --background-color: #F8F7F3;
    --text-dark: #343C32;
    --text-light: #6C757D;
    --white: #F8F8F8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-btn: 50px;
    --font-heading: 'Alumni Sans', sans-serif;
    --font-body: 'SF UI Display', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

/* Typography */
p {
    font-size: 1.15rem;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--hover-color);
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: var(--hover-color);
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--secondary-color);
}

.form-select:focus {
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--secondary-color);
}

.form-check-input:focus {
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--secondary-color);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4,
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
}

.display-4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Навбар */
.navbar {
    background-color: var(--white) !important;
    box-shadow: var(--shadow);
    /*padding: 1rem 0;*/
    border-bottom: none;
}

.nav-link {
    color: var(--text-light) !important;
}

.nav-link:hover {
    color: var(--text-dark) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
    padding-top: 0px;
    scroll-padding-bottom: 0px;
}

    .navbar-brand:hover {
        color: var(--secondary-color) !important;
    }

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius-btn);
    transition: all 0.3s ease;
    border: 2px solid var(--text-dark);
    font-size: 1rem;

}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: var(--hover-color);
        color: var(--white) !important;
        transform: translateY(-2px);
        
    }

    .navbar-nav .nav-link.active {
        background-color: var(--primary-color);
    }

/* Выпадающие списки навбара */
.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    
}

.navbar .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    
}

    .dropdown-item:hover {
        background-color: var(--primary-color);
        color: var(--white);
        transform: translateX(5px);
    }

    .navbar, .dropdown-item:active {
        color: #fff;
        text-decoration: none;
        background-color: var(--primary-color);
    }

/* Кнопки */
.btn {
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

    .btn-primary:hover {
        background-color: var(--hover-color);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--text-dark);
    }

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--text-dark);
}

    .btn-secondary:hover {
        background-color: #E74C3C;
        transform: translateY(-2px);
        border: 2px solid var(--text-dark);
    }

.btn-success {
    background-color: var(--hover-color) !important;
    color: var(--white) !important;
    border: 2px solid var(--text-dark) !important;
}

    .btn-success:hover {
        background-color: #9f4f12 !important;
        transform: translateY(-2px) !important;
        border: 2px solid var(--text-dark) !important;
    }

/* Карточки и списки */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
    }

    .card-title {
        font-size: 2rem;
    }

    .card-text {
        color: var(--hover-color);
    }

    .card-body {
        background-color: var(--background-color);
    }

.list-group-item {
    border: none;
    padding: 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .list-group-item:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .list-group-item h5 {
        font-size: 2rem;
    }
 
    .modal-content {
        border: none;
        border-radius: var(--border-radius);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-bottom: none;
}

    .modal-header .btn-close {
        filter: invert(1);
    }

/* Секция лого */
.hero-section {
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), #e1853e);
    background-size: 400% 400%;
    color: var(--white);
    animation: gradient 15s ease infinite;
    padding: 2.5rem 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 3rem;
    background-attachment: fixed;
}

    .hero-section h1 {
        color: var(--text-dark);
        font-size: 5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-section .lead {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        font-size: 1.5rem;
        animation: fadeInUp 1s ease-out 0.5s both;
    }

    .hero-section .btn {
        background: var(--background-color);
        backdrop-filter: blur(10px);
        border: 2px solid var(--text-dark);
        color: var(--text-dark);
        font-weight: 600;
        padding: 1rem 2rem;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        animation: fadeInUp 1s ease-out 0.8s both;
    }

        .hero-section .btn:hover {
            background: var(--hover-color);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            color: var(--background-color);
        }

.hero-logo {
    max-height: 200px;
    animation: fadeInScale 1.2s ease-out 0.3s both;
}

/* Карточки фич */
.feature-card-wrapper {
    perspective: 1000px;
    height: 100%;
}

.feature-card {
    background: linear-gradient(135deg, #f8f8f8 0%, #f8f9fa 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    /*text-align: center;*/
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #E06A0F 0%, #ef8534 100%);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .feature-card:hover {
        transform: translateY(-12px) rotateX(5deg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

.feature-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #b14e01 0%, #e06A0f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 2rem;
    /*color: white;*/
    color: #F8EAC8;
    transition: transform 0.3s ease;
    margin-bottom: 0px !important;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.feature-content {
    color: #4a5568;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .feature-content ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

        .feature-content ul li {
            display: flex;
            font-size: 1.2rem;
            align-items: center;
            justify-content: center;
            gap: 0.8rem;
            padding: 0.6rem;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 12px;
            transition: all 0.3s ease;
            border: 1px solid rgba(102, 126, 234, 0.1);
            margin-bottom: 0.8rem;
            text-align: center;
        }
            .feature-content ul li:last-child {
                margin-bottom: 0;
            }
/*
            .feature-content ul li:hover {
                background: rgb(232, 104, 20, 0.3);
                transform: translateX(5px);
            }*/

.language-section {
    width: 100%;
}

.language-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    width: 100%;
}

.language-item {
    display: flex;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-bottom: 0.8rem;
    text-align: center;
}

/*    .language-item:hover {
        background: rgb(232, 104, 20, 0.3);
        transform: translateX(5px);
    }*/

.flag-container {
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.feature-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #6fe2a11b 0%, #21965324 100%);
    transition: all 0.6s ease;
}

.circle-1 {
    width: 60px;
    height: 60px;
    top: -20px;
    right: -20px;
}

.circle-2 {
    width: 40px;
    height: 40px;
    bottom: 30px;
    left: -15px;
}

.circle-3 {
    width: 25px;
    height: 25px;
    bottom: -10px;
    right: 30%;
}

.feature-card:hover .circle-1 {
    transform: scale(1.2) translate(-5px, -5px);
}

.feature-card:hover .circle-2 {
    transform: scale(1.3) translate(5px, -5px);
}

.feature-card:hover .circle-3 {
    transform: scale(1.4) translate(-3px, 3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .feature-card {
        padding: 2rem 1rem;
    }

    .feature-icon-container {
        width: 70px;
        height: 70px;
    }

    .feature-icon {
        font-size: 1.8rem;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .language-grid {
        gap: 0.6rem;
    }

    .language-item {
        padding: 0.5rem;
        gap: 0.6rem;
    }
}

/* Секция преподов */
.teacher-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

    .teacher-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

.teacher-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

    .teacher-image img,
    .teacher-placeholder {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.teacher-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: #6c757d;
}

.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.teacher-card:hover .teacher-overlay {
    opacity: 1;
}

.teacher-bio-overlay {
    text-align: center;
    max-height: 100%;
    overflow-y: auto;
}

.teacher-info {
    padding: 15px;
    text-align: center;
}

.teacher-name {
    margin-bottom: 0;
    font-weight: 600;
    color: #2c3e50;
    font-size: 2rem;
}

/* Карусель преподов */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-item {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

/* Анимации */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    from, to {
        border-color: transparent;
    }

    50% {
        border-color: white;
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    }

    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }

    70% {
        transform: scale(0.95) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Классы анимаций */
.hero-title {
    animation-duration: 1.2s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

    .hero-title.fade-in-up {
        animation-name: fadeInUp;
    }

    .hero-title.fade-in-scale {
        animation-name: fadeInScale;
    }

    .hero-title.slide-in-left {
        animation-name: slideInFromLeft;
    }

    .hero-title.bounce-in {
        animation-name: bounceIn;
    }

.typewriter-container {
    display: inline-block;
    position: relative;
}

.typewriter-text {
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 1px;
    animation: typewriter 2s steps(40, end), blinkCursor 0.75s step-end infinite;
    border-right: 3px solid white;
}

.glow-text {
    animation: glow 3s ease-in-out infinite;
}

.hero-badge {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Адаптивность */
@media (max-width: 991.98px) {
    .hero-section .row {
        text-align: center;
    }

    .hero-logo {
        margin-top: 30px;
        max-height: 150px;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .display-4 {
        font-size: 2rem;
    }

    .carousel-container {
        padding: 0 40px;
    }

    .teacher-card {
        flex: 0 0 250px;
    }

    .teacher-image {
        height: 200px;
    }

    .carousel-btn {
        font-size: 20px;
        padding: 8px 12px;
    }

    .feature-content ul li {
        padding: 0.5rem;
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .language-item {
        padding: 0.5rem;
        gap: 0.6rem;
    }
}

@media (max-width: 576px) {
    .carousel-container {
        padding: 0 30px;
    }

    .teacher-card {
        flex: 0 0 200px;
    }

    .teacher-image {
        height: 150px;
    }

    .teacher-info {
        padding: 15px;
    }
}



@media (max-width: 767.98px) {
    .calendar-table {
        display: none !important;
    }

    .calendar-container .card-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .month-navigation {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .month-nav-btn {
        min-width: 70px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .card-body {
        padding: 1rem !important;
    }

    .card-header {
        padding: 0.75rem 1rem !important;
    }

    .month-navigation {
        margin-top: 10px;
        width: 100%;
    }

    /* Убедитесь, что календарь скрыт на мобильных */
    .calendar-table {
        display: none !important;
    }

    #mobile-sessions {
        display: block !important;
        margin-top: 1rem !important;
    }

    /* Улучшение мобильных карточек */
    .session-card-mobile {
        padding: 12px 10px !important;
    }

    .book-btn-mobile {
        min-height: 40px !important;
    }

    /* Мобильные карточки сессий */
    .session-card-mobile {
        border: none;
        border-bottom: 1px solid #e9ecef;
        padding: 16px 12px;
        transition: background-color 0.2s ease;
    }

        .session-card-mobile:last-child {
            border-bottom: none;
        }

        .session-card-mobile:hover {
            background-color: #f8f9fa;
        }

    .session-header-mobile .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .session-topic-mobile {
        font-size: 0.9rem;
        line-height: 1.3;
        color: #333;
        margin-bottom: 8px;
    }

    .session-teacher-mobile {
        font-size: 0.8rem;
    }

    .book-btn-mobile {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 6px;
        min-height: 44px; /* Минимальная высота для удобного тапа */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

        .book-btn-mobile:active {
            transform: scale(0.98);
        }

 /* Улучшения для очень маленьких экранов */
        @media (max-width: 360px) {
            .session-card-mobile {
                padding: 12px 8px;
            }

            .session-header-mobile .badge {
                font-size: 0.7rem;
                padding: 3px 6px;
            }

            .session-topic-mobile {
                font-size: 0.85rem;
            }

            .book-btn-mobile {
                padding: 8px 12px;
                font-size: 0.85rem;
                min-height: 40px;
            }

            .container-fluid {
                padding-left: 8px;
                padding-right: 8px;
            }
        }
    }

/* Десктопные улучшения */
@media (min-width: 768px) {
    #mobile-sessions {
        display: none !important;
    }

    .calendar-table {
        display: table !important;
    }

    /* Улучшенные кнопки для десктопа */
    .book-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-height: 32px;
    }

    /* Ховер-эффекты только для десктопа */
    .session-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

/*    .calendar-day:hover {
        background-color: #f8f9fa;
        transform: scale(1.02);
        z-index: 1;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }*/

}
@media (max-width: 767.98px) {
    .session-card-mobile.past-session {
        border-left: 3px solid #6c757d;
    }

    .session-card-mobile:not(.past-session) {
        border-left: 3px solid #007bff;
    }
}

/* Десктопные улучшения */
@media (min-width: 768px) {
    .session-item.past-session {
        border-left: 2px solid #6c757d;
    }

    .session-item:not(.past-session) {
        border-left: 2px solid #28a745;
    }

    .past-session-badge {
       /* position: absolute;*/
        top: 4px;
        right: 4px;
    }
}

@media (max-width: 360px) {
    .past-session-badge {
        font-size: 0.6em;
        padding: 1px 4px;
    }

    .past-session-label {
        font-size: 0.7em;
        padding: 3px 6px;
    }

    .session-item.past-session {
        padding: 4px;
    }
}

/* Анимации для плавности */
.session-card-mobile {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенная прокрутка для мобильных */
.sessions-list::-webkit-scrollbar {
    width: 3px;
}

.sessions-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* Оптимизация тапов на мобильных */
@media (max-width: 767.98px) {
    .btn, .form-check-label, .session-card-mobile {
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }

        .btn:active, .session-card-mobile:active {
            opacity: 0.8;
        }
}


.session-item {
    transition: all 0.3s ease;
}

.session-item:not(.past-session):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Стили для прошедших сессий */
    .session-item.past-session {
        background-color: #f8f9fa;
        border-color: #e9ecef;
        opacity: 0.7;
        transform: scale(0.98);
    }

    .session-item.past-session .session-time {
        color: #6c757d;
    }

    .session-item.past-session .session-group {
        color: #868e96;
    }

    .session-item.past-session .session-topic {
        color: #adb5bd;
    }

    .session-item.past-session .session-teacher {
        color: #6c757d;
    }

/* Индикатор прошедшей сессии */
.past-session-badge {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65em;
    font-weight: 500;
    margin-top: 4px;
}

/* Мобильные стили для прошедших сессий */
.session-card-mobile.past-session {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    opacity: 0.8;
}

    .session-card-mobile.past-session .session-time-mobile {
        background: #6c757d !important;
    }

    .session-card-mobile.past-session .session-group-mobile {
        background: #868e96 !important;
    }

    .session-card-mobile.past-session .session-topic-mobile {
        color: #6c757d;
    }

.past-session-label {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

/* Дашборд юзера */
.form-check-input:checked {
    background-color: #E06A0F;
    border-color: #E06A0F;
}

.alert-info {
    color: #055160;
    background-color: var(--secondary-color);
    border-color: #b6effb;
    border: 2px solid var(--text-dark);
    font-size: 1.1rem;
    border-radius: var(--border-radius-btn);

}

/* Стили для акционных карточек */
.special-offer-card {
    border: 2px solid var(--hover-color) !important;
    position: relative;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.special-offer-badge {
    right: -10px;
    background: var(--hover-color);
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Анимация для акционных карточек */
.special-offer-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Стили для перечеркнутой цены */
.text-decoration-line-through {
    text-decoration: line-through !important;
}

/* Стили для таблицы в админке */
.table-secondary {
    opacity: 0.6;
}


.subscription-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

    .subscription-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.price-section {
    color: var(--hover-color);
}

.text-price {
    color: var(--text-dark);
}

/* Admin Dashboard */

.input-group-append{
    margin-left: 8px !important;
    margin-right: 8px !important;
}

/* Футер */
.footer {
    /*background-color: var(--white);*/
    background: linear-gradient(135deg, #bfdccf96 0%, #e4741d7d 100%) !important;
    color: var(--text-dark);
    border-top: 1px solid var(--secondary-color);
    font-family: var(--font-body);
    position: relative !important;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--text-dark);
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: var(--hover-color);
        border-radius: var(--border-radius);
    }

.footer-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-link {
    color: var(--text-light) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    position: relative;
}

    .footer-link:hover {
        color: var(--hover-color) !important;
        padding-left: 5px;
    }

    .footer-link::before {
       /* content: '›';*/
        position: absolute;
       /* left: -15px;*/
        opacity: 0;
        transition: all 0.3s ease;
        color: var(--hover-color);
    }

    .footer-link:hover::before {
        opacity: 1;
        left: -10px;
    }

.footer-contacts .contact-item {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.4;
}

    .footer-contacts .contact-item .fw-bold {
        color: var(--text-dark);
        font-weight: var(--font-weight-bold);
    }

.footer-social {
    display: flex;
    gap: 1rem;
    /*margin-bottom: 0px !important;*/
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

    .social-link:hover {
        background-color: #f18d41;
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }
.social-icon {
    font-size: 2em;
    color: #e06A0f;
}

.legal-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

    .legal-link::before {
        /* content: '›';*/
        position: absolute;
        /* left: -15px;*/
        opacity: 0;
        transition: all 0.3s ease;
        color: var(--hover-color);
    }

    .legal-link:hover::before {
        opacity: 1;
        left: -10px;
    }



.footer hr {
    border-color: var(--secondary-color);
    opacity: 0.3;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-link:hover {
        padding-left: 0;
    }

    .footer-link::before {
        display: none;
    }

    .footer-text {
        font-size: 1rem;
    }

    .legal-link {
        font-size: 1rem;
    }


}

@media (min-width: 1024px) {

    .footer {
        font-size: 1.2rem;
    }

    .footer-text {
        font-size: 1.1rem;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-title::after {
        font-size: 1.2rem;
    }

    .footer-social {
        font-size: 1.2rem;
    }

    .footer-link{
        font-size: 1.2rem;
    }

    .footer-link:hover {
        font-size: 1.2rem;
    }

    .footer-link::before {
        font-size: 1.2rem;
    }

    .legal-link {
        font-size: 1.2rem;
    }
}


@media (max-width: 425px) {
    .footer-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .footer-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .footer-text {
        font-size: 0.7rem;
    }
}

/* Плавное появление */
.footer {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшение читаемости на маленьких экранах */
@media (max-width: 768px) {
    .footer-text br.d-none.d-sm-block {
        display: none !important;
    }


    .footer-text {
        text-align: center;
    }
}

/* Ховер-эффекты для тач-устройств */
@media (hover: none) {
    .footer-link:hover {
        padding-left: 0;
    }

        .footer-link:hover::before {
            opacity: 0;
        }

    .social-link:hover {
        transform: none;
    }
}

.form-group {
    margin-bottom: 1.3rem;
}


/* Форма подписки */
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px 0 0 6px;
    font-size: 0.85rem;
}

    .newsletter-form .form-control::placeholder {
        color: #888;
    }

    .newsletter-form .form-control:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: #667eea;
        color: #fff;
        box-shadow: none;
    }

.newsletter-form .btn {
    border-radius: 0 6px 6px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.375rem 0.75rem;
}

    .newsletter-form .btn:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
        transform: none;
    }

/* Юридические ссылки */
.legal-link {
    color: #888 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}


/* Стили для юридических документов */
.legal-document {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
}

.legal-header {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 1.5rem;
}

    .legal-header h1 {
        color: var(--text-dark);
        font-family: var(--font-heading);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.legal-content {
    counter-reset: section;
}

    .legal-content h2 {
        counter-reset: subsection;
        position: relative;
        padding-left: 2rem;
        margin-top: 2.5rem;
        margin-bottom: 1.5rem;
        color: var(--text-dark);
        font-weight: 600;
        border-bottom: 1px solid var(--secondary-color);
        padding-bottom: 0.5rem;
    }

        .legal-content h2::before {
            counter-increment: section;
            content: counter(section) ". ";
            position: absolute;
            left: 0;
            color: var(--hover-color);
            font-weight: bold;
        }

    .legal-content h3 {
        counter-reset: subsubsection;
        position: relative;
        padding-left: 2.5rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--text-dark);
        font-weight: 500;
    }

        .legal-content h3::before {
            counter-increment: subsection;
            content: counter(section) "." counter(subsection) ". ";
            position: absolute;
            left: 0;
            color: var(--text-light);
            font-weight: bold;
        }

    .legal-content h4 {
        position: relative;
        padding-left: 3rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        color: var(--text-dark);
    }

        .legal-content h4::before {
            counter-increment: subsubsection;
            content: counter(section) "." counter(subsection) "." counter(subsubsection) ". ";
            position: absolute;
            left: 0;
            color: var(--text-light);
        }

    .legal-content p {
        margin-bottom: 1.25rem;
        text-align: justify;
        hyphens: auto;
    }

    .legal-content ul,
    .legal-content ol {
        margin-bottom: 1.5rem;
        padding-left: 3rem;
    }

    .legal-content li {
        margin-bottom: 0.75rem;
        position: relative;
    }

    .legal-content ul li::before {
        content: "•";
        color: var(--hover-color);
        font-weight: bold;
        position: absolute;
        left: -1.5rem;
    }

    .legal-content ol {
        counter-reset: item;
    }

        .legal-content ol li {
            counter-increment: item;
        }

            .legal-content ol li::before {
                content: counter(item) ".";
                color: var(--hover-color);
                font-weight: bold;
                position: absolute;
                left: -1.5rem;
            }

.legal-definitions p {
    position: relative;
    padding-left: 1.5rem;
}

.legal-definitions strong {
    color: var(--text-dark);
}

.contact-info {
    background-color: rgba(171, 181, 145, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.legal-preamble {
    border-left: 4px solid var(--hover-color);
    background-color: rgba(224, 106, 15, 0.05);
}

.legal-content section {
    page-break-inside: avoid;
}

.legal-content .border {
    border-color: var(--secondary-color) !important;
}

.legal-content .alert-light {
    background-color: rgba(248, 248, 248, 0.9);
    border-color: var(--secondary-color);
}

/* Нумерация статей для оферты */
.legal-content h2[h3] {
    counter-reset: article;
}

    .legal-content h2[h3]::before {
        content: "Статья " counter(section) ". ";
    }

/* Адаптивность юридических документов */
@media (max-width: 768px) {
    .legal-content h2 {
        padding-left: 0;
        font-size: 1.5rem;
    }

        .legal-content h2::before {
            position: static;
            display: block;
            margin-bottom: 0.5rem;
        }

    .legal-content h3 {
        padding-left: 0;
        font-size: 1.3rem;
    }

        .legal-content h3::before {
            position: static;
            display: block;
            margin-bottom: 0.5rem;
        }

    .legal-content ul,
    .legal-content ol {
        padding-left: 1.5rem;
    }

    .legal-content li::before {
        left: -1rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }
}

/* Печать юридических документов */
@media print {
    .legal-document {
        font-size: 12pt;
        line-height: 1.5;
    }

    .legal-header {
        page-break-after: avoid;
    }

    .legal-content section {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .legal-content h2 {
        page-break-after: avoid;
    }

    .legal-content h3 {
        page-break-after: avoid;
    }

    .legal-content p {
        orphans: 3;
        widows: 3;
    }
}

/* Registration page specific styles */
.register-form .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.register-form .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

    .password-strength.weak {
        color: #e74c3c;
    }

    .password-strength.medium {
        color: #f39c12;
    }

    .password-strength.strong {
        color: #27ae60;
    }

.password-requirements {
    background-color: rgba(171, 181, 145, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

    .password-requirements ul {
        margin-bottom: 0;
        padding-left: 1.5rem;
    }

    .password-requirements li {
        margin-bottom: 0.25rem;
    }

/* Terms checkbox styling */
.form-check-input:checked {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
}

/* Success button styling */
.btn-success {
    background-color: #27ae60;
    border: none;
    transition: all 0.3s ease;
}

    .btn-success:hover {
        background-color: #219653;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    }

/* Card header success gradient */
.bg-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
}

/* Form validation styles */
.field-validation-error {
    display: block;
    margin-top: 0.25rem;
    color: var(--accent-color);
}

/* Responsive adjustments for registration form */
@media (max-width: 768px) {
    .register-form .row {
        margin-left: 0;
        margin-right: 0;
    }

    .register-form .col-md-6 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
}

/* Manage Account Pages */
.manage-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

    .manage-nav .nav-link:hover {
        background-color: rgba(171, 181, 145, 0.1);
        border-left-color: var(--secondary-color);
        color: var(--text-dark);
        transform: translateX(5px);
    }

    .manage-nav .nav-link.active {
        background-color: var(--primary-color);
        color: var(--white);
        border-left-color: var(--hover-color);
    }

    .manage-nav .nav-link i {
        width: 20px;
        text-align: center;
    }

/* Password strength indicator */
.password-strength .progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.password-strength .progress-bar {
    transition: width 0.3s ease;
}

.password-requirements ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.password-requirements li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.alert-info {
    background-color: rgba(171, 181, 145, 0.1);
    border-left: 4px solid var(--primary-color);
    color: var(--text-dark);
}

/* Card headers */
.card-header {
    /*background: linear-gradient(135deg, var(--primary-color), var(--hover-color));*/
    background: var(--primary-color) !important;
    color: var(--white);
    border-bottom: none;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .manage-nav {
        margin-bottom: 1.5rem;
    }

        .manage-nav .nav-link {
            display: inline-block;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            border-left: none;
            border-bottom: 2px solid transparent;
        }

            .manage-nav .nav-link:hover,
            .manage-nav .nav-link.active {
                border-left: none;
                border-bottom-color: var(--hover-color);
                transform: translateY(-2px);
            }
}

/* Error Pages Styling */
.error-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

    .error-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .error-card .card-body {
        padding: 3rem;
    }

.error-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.error-code {
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-title {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    margin-top: 2rem;
}

    .error-actions .btn {
        min-width: 200px;
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        border-radius: var(--border-radius-btn);
    }

.error-info {
    background-color: rgba(171, 181, 145, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

    .error-info code {
        background-color: rgba(0, 0, 0, 0.05);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-family: 'Courier New', monospace;
    }

/* Responsive error pages */
@media (max-width: 768px) {
    .error-card .card-body {
        padding: 2rem;
    }

    .error-code {
        font-size: 3.5rem;
    }

    .error-icon {
        font-size: 3.5rem;
    }

    .error-actions .btn {
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animation for error pages */
@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-container .card {
    animation: fadeInError 0.6s ease-out;
}

/* Password Reset Pages */
.password-strength-indicator .progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.password-strength-indicator .progress-bar {
    transition: width 0.3s ease;
}

/* Success pages */
.identity-card .fa-check-circle {
    color: #28a745;
}

.identity-card .fa-envelope {
    color: #17a2b8;
}

/* Alert styling for password pages */
.alert-info h5 {
    color: #0c5460;
}

/* Form instructions */
.form-text {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive adjustments for password pages */
@media (max-width: 768px) {
    .password-strength-indicator {
        margin-bottom: 1rem;
    }

    .identity-card .card-body {
        padding: 1.5rem;
    }
}

/* Animation for success icons */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fa-check-circle {
    animation: bounceIn 0.6s ease;
}

/* List styling for instructions */
.identity-card ul:not(.list-unstyled) {
    padding-left: 1.5rem;
}

    .identity-card ul:not(.list-unstyled) li {
        margin-bottom: 0.5rem;
        position: relative;
    }

        .identity-card ul:not(.list-unstyled) li:before {
            content: "•";
            color: var(--hover-color);
            font-weight: bold;
            position: absolute;
            left: -1rem;
        }

/* календарь */
@media (min-width: 425px) and (max-width: 1440px) {
    .calendar-table {
        min-width: 100%;
        table-layout: fixed;
    }

    .calendar-day {
        min-height: 120px;
        max-height: 180px;
        overflow-y: auto;
        position: relative;
        padding: 8px 4px !important;
    }

        .calendar-day .day-number {
            position: absolute;
            top: 4px;
            right: 4px;
            font-weight: bold;
            font-size: 0.9em;
            background-color: rgba(0, 0, 0, 0.1);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .sessions-list {
        margin-top: 20px;
        font-size: 0.85em;
    }

    .session-item {
        padding: 4px;
        margin-bottom: 4px;
        border-radius: 4px;
        background-color: rgba(171, 181, 145, 0.1);
    }

    .session-time {
        font-weight: bold;
        font-size: 0.8em;
        margin-bottom: 2px;
    }

    .session-group {
        font-size: 0.75em;
        color: var(--text-light);
        margin-bottom: 2px;
    }

    .session-topic {
        font-size: 0.8em;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .session-teacher {
        font-size: 0.75em;
        color: var(--text-light);
        margin-top: 2px;
    }

    .book-btn {
        padding: 2px 4px !important;
        font-size: 0.75em !important;
        min-height: 28px;
        margin-top: 4px !important;
    }

    .past-session-badge {
        font-size: 0.65em !important;
        padding: 1px 3px !important;
        margin-top: 2px;
    }

    .no-sessions {
        font-size: 0.8em;
        margin-top: 25px;
        color: var(--text-light);
        text-align: center;
    }

    /* Для очень узких экранов от 425px до 768px */
    @media (min-width: 425px) and (max-width: 768px) {
        .calendar-day {
            min-height: 100px;
            max-height: 150px;
        }

        .sessions-list {
            font-size: 0.75em;
        }

        .session-topic {
            -webkit-line-clamp: 1;
        }

        .calendar-day .day-number {
            width: 20px;
            height: 20px;
            font-size: 0.8em;
        }
    }

    /* Для средних экранов от 768px до 1024px */
    @media (min-width: 768px) and (max-width: 1024px) {
        .calendar-day {
            min-height: 140px;
            max-height: 200px;
        }

        .sessions-list {
            font-size: 0.85em;
        }

        .book-btn {
            padding: 4px 6px !important;
            font-size: 0.85em !important;
        }
    }

    /* Для больших экранов от 1024px до 1440px */
    @media (min-width: 1024px) and (max-width: 1440px) {
        .calendar-day {
            min-height: 150px;
            max-height: 220px;
        }

        .sessions-list {
            font-size: 0.9em;
        }
    }
}

/* Улучшение responsive table */
.table-responsive {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Специфические стили для календаря на всех разрешениях */
.calendar-day.other-month {
    background-color: #f8f9fa;
    opacity: 0.5;
}

.calendar-day.today {
    background-color: rgba(224, 106, 15, 0.1) !important;
    border: 2px solid var(--hover-color) !important;
}

.calendar-day.has-sessions {
    background-color: rgba(171, 181, 145, 0.05);
}

/* Ховер-эффекты для десктопа */
@media (min-width: 768px) {
    .calendar-day:hover:not(.other-month) {
        background-color: rgba(224, 106, 15, 0.05);
        /*transform: scale(1.02);*/
        z-index: 1;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
}

/* Для очень маленьких экранов (до 425px) календарь скрыт, но на всякий случай */
@media (max-width: 424px) {
    .calendar-table {
        display: none !important;
    }

    #mobile-sessions {
        display: block !important;
    }
}

/* Улучшение отображения дней недели */
.calendar-table th {
    text-align: center;
    padding: 10px 5px !important;
    background-color: rgba(171, 181, 145, 0.2);
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color) !important;
}

/* Улучшение скролла внутри ячеек */
.calendar-day::-webkit-scrollbar {
    width: 4px;
}

.calendar-day::-webkit-scrollbar-thumb {
    background-color: rgba(171, 181, 145, 0.5);
    border-radius: 2px;
}

.calendar-day::-webkit-scrollbar-track {
    background-color: transparent;
}

@media (max-width: 425px) {
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .card {
        border-radius: 8px !important;
    }

    .session-card-mobile {
        padding: 10px 8px !important;
    }

    .session-time-mobile.badge {
        font-size: 0.7rem !important;
        padding: 3px 6px !important;
    }
}

/* Десктопная версия календаря (от 768px) */
@media (min-width: 768px) {
    .calendar-day {
        min-height: 100px;
        position: relative;
        cursor: default;
        transition: all 0.2s ease;
        padding: 8px 4px;
        vertical-align: top;
    }
    
    .clickable-day {
        cursor: pointer !important;
    }
    
    .clickable-day:hover {
        background-color: rgba(224, 106, 15, 0.08) !important;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1;
    }
    
    .calendar-day .day-number {
        position: absolute;
        top: 4px;
        right: 4px;
        font-weight: bold;
        font-size: 1.1em;
        color: var(--text-dark);
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    
    .calendar-day.today .day-number {
        background-color: var(--hover-color) !important;
        color: white !important;
        font-weight: bold;
    }
    
    .day-sessions-preview {
        margin-top: 25px;
        font-size: 0.8em;
        position: relative;
        z-index: 1;
    }
    
    .session-preview-item {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        padding: 2px 4px;
        border-radius: 4px;
        background-color: rgba(171, 181, 145, 0.1);
        transition: background-color 0.2s ease;
    }
    
    .clickable-day:hover .session-preview-item {
        background-color: rgba(171, 181, 145, 0.2);
    }
    
    .session-group-badge {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--primary-color);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7em;
        font-weight: bold;
        margin-right: 6px;
        flex-shrink: 0;
    }
    
    .session-times {
        font-size: 0.85em;
        color: var(--text-dark);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .more-sessions {
        font-size: 0.75em;
        color: var(--text-light);
        text-align: center;
        padding: 2px;
        font-style: italic;
    }
    
    .no-sessions-preview {
        margin-top: 35px;
        text-align: center;
        color: var(--text-light);
        font-size: 0.85em;
        font-style: italic;
    }
    
    .calendar-day.other-month {
        background-color: #f8f9fa !important;
        opacity: 0.6;
    }
    
    .calendar-day.other-month .day-number {
        color: #adb5bd;
        background-color: #e9ecef;
    }
    
    .calendar-day.has-sessions {
        background-color: rgba(171, 181, 145, 0.03);
    }
    
    /* Стили для модального окна сессий */
    .session-modal-item {
        border-left: 3px solid var(--primary-color);
        margin-bottom: 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
        padding: 15px !important;
    }
    
    .session-modal-item:hover {
        transform: translateX(2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .session-modal-item.past-session {
        border-left-color: #6c757d;
        opacity: 0.7;
        background-color: #f8f9fa;
    }
    
    .session-modal-item.past-session h6 {
        text-decoration: line-through;
    }
    
    .book-btn-modal {
        min-width: 120px;
        white-space: nowrap;
    }
    
    .session-time-modal.badge {
        font-size: 0.9em;
        padding: 5px 8px;
    }
    
    .session-group-modal.badge {
        font-size: 0.85em;
        padding: 5px 8px;
    }
}

/* Для очень больших экранов */
@media (min-width: 1200px) {
    .calendar-day {
        min-height: 120px;
    }
    
    .day-sessions-preview {
        margin-top: 30px;
        font-size: 0.85em;
    }
    
    .session-group-badge {
        width: 22px;
        height: 22px;
        font-size: 0.8em;
    }
}

/* Адаптация для узких десктопов */
@media (min-width: 768px) and (max-width: 992px) {
    .calendar-day {
        min-height: 90px;
        padding: 6px 2px;
    }
    
    .day-sessions-preview {
        margin-top: 20px;
        font-size: 0.75em;
    }
    
    .calendar-day .day-number {
        width: 24px;
        height: 24px;
        font-size: 0.9em;
    }
    
    .session-group-badge {
        width: 18px;
        height: 18px;
        font-size: 0.65em;
        margin-right: 4px;
    }
    
    .session-times {
        font-size: 0.8em;
    }
}

/* Убедитесь, что на мобильных календарь скрыт */
@media (max-width: 767.98px) {
    #calendar {
        display: none !important;
    }
    
    #mobile-sessions {
        display: block !important;
    }
}

/* Улучшение таблицы для адаптивности */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.calendar-table {
    min-width: 700px;
}

@media (min-width: 1200px) {
    .calendar-table {
        min-width: auto;
    }
}

/* Cookie уведомление */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--hover-color);
    animation: slideInUp 0.3s ease-out;
}

.cookie-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .cookie-content p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .cookie-content .btn {
        align-self: flex-end;
        padding: 6px 16px;
        font-size: 0.85rem;
    }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-consent {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 10px;
    }
}