:root {
    /* Основные цвета */
    --beige-brown: #A67B5B;
    --beige-brown-alt: #8B6B52;
    --khaki-green: #5C6F47;
    --khaki-green-alt: #61764B;
    --deep-brown: #3F2E2B;
    --deep-brown-alt: #4A3A38;
    
    /* Акцентные цвета */
    --orange-mustard: #D08B48;
    --orange-mustard-alt: #C87A2C;
    --black: #000000;
    
    /* Дополнительные цвета */
    --light-beige: #E8D9C5;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    
    /* Vision OS стиль - дополнительные цвета */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: rgba(0, 0, 0, 0.05);
    --backdrop-blur: 20px;
    
    /* Размеры для мобильной адаптации */
    --tab-bar-height: 75px;
    
    /* Анимации */
    --transition-speed: 0.3s;
}

/* Общие стили и основа */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--light-beige) 0%, #F7F3EE 50%, var(--white) 100%);
    font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, 'Roboto', sans-serif;
    color: var(--deep-brown);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Специальные стили для Telegram Mini App */
.tg-app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    padding-bottom: var(--tab-bar-height);
    padding-top: 20px;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Улучшенный дизайн карточек */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-out forwards;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.card-title {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--deep-brown);
    font-weight: 600;
    font-size: 22px;
}

.card-content {
    color: var(--deep-brown-alt);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card-content .btn {
    align-self: flex-start;
    margin-top: 16px;
}

.card-content ul,
.card-content ol {
    padding-left: 25px; 
    margin-top: 0.5em;
    margin-bottom: 1em;
}

.card-content li {
    margin-bottom: 0.6em; 
}

.card-content p,
.lesson-content p {
    margin-bottom: 1em;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(110deg, var(--deep-brown) 0%, var(--beige-brown) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.tg-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
    height: var(--tab-bar-height);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--deep-brown-alt);
    padding: 6px 0;
    transition: all var(--transition-speed);
    text-align: center;
    border-radius: 10px;
    margin: 4px;
}

.tab-item.active {
    color: var(--orange-mustard);
    background-color: rgba(208, 139, 72, 0.1);
}

.tab-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all var(--transition-speed);
}

.tab-item.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 12px;
    font-weight: 500;
}


.home-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233F2E2B"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
}

.tab-item.active .home-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D08B48"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>');
}

.profile-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233F2E2B"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.tab-item.active .profile-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D08B48"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
}

.info-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233F2E2B"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}

.tab-item.active .info-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D08B48"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}

.support-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233F2E2B"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>');
}

.tab-item.active .support-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D08B48"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"/></svg>');
}

/* Стили для выпадающего меню */
.tab-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 200px;
    z-index: 100;
    padding: 10px 0;
    margin-bottom: 10px;
}

.dropdown-menu:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 10px solid #fff;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.dropdown.show-dropdown .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover,
.dropdown-item:active {
    background-color: #f5f5f5;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: #A67B5B;
}

/* Темная тема */
.dark-theme .dropdown-menu {
    background-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .dropdown-menu:after {
    border-top-color: #333;
}

.dark-theme .dropdown-item {
    color: #fff;
}

.dark-theme .dropdown-item:hover,
.dark-theme .dropdown-item:active {
    background-color: #444;
}

/* Анимация для выпадающего меню */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Секции */
.section {
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease-out forwards;
}


.hero {
    padding: 40px 0;
    margin-bottom: 35px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(110deg, var(--deep-brown) 0%, var(--beige-brown) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--deep-brown-alt);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.hero-image {
    margin-top: 30px; 
    text-align: center; 
}

.hero-image img {
    max-width: 90%; 
    height: auto;
    max-height: 350px; 
    border-radius: 16px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
}

@media (min-width: 768px) {
    .hero {
        display: flex; 
        align-items: center;
        justify-content: space-between;
        gap: 40px;
    }
    .hero-content {
        max-width: 55%; 
        text-align: left;
        align-items: flex-start;
    }
    .hero-image {
        margin-top: 0; 
        max-width: 40%;
        text-align: right;
    }
    .hero-image img {
        max-width: 100%;
    }
}

/* Сетка функций */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--orange-mustard);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--orange-mustard-alt);
}

.btn-secondary {
    background-color: var(--beige-brown);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--beige-brown-alt);
}

.btn-outline {
    background-color: transparent;
    color: var(--orange-mustard);
    border: 2px solid var(--orange-mustard);
    padding: 10px 22px;
}

.btn-outline:hover {
    background-color: rgba(208, 139, 72, 0.1);
    color: var(--orange-mustard-alt);
    border-color: var(--orange-mustard-alt);
}

.btn-danger {
    background-color: #e74c3c;
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 10px;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--deep-brown);
    font-size: 14px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    color: var(--deep-brown);
    background-color: var(--white);
    background-clip: padding-box;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--orange-mustard);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05), 0 0 0 3px rgba(208, 139, 72, 0.15);
}

.form-control::placeholder {
    color: #aaa;
    opacity: 1;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Стили для профиля */
.profile-section {
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img,
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--beige-brown);
    color: var(--white);
    font-size: 32px;
    font-weight: 600;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--deep-brown);
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: var(--deep-brown-alt);
}

.profile-level,
.profile-subscription {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-level {
    font-weight: 500;
}

.subscription-progress {
    margin-top: 20px;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    height: 12px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--khaki-green), var(--khaki-green-alt));
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.progress-info {
    font-size: 14px;
    color: var(--deep-brown-alt);
    text-align: center;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: 10px;
}

.progress-stat-item {
    flex: 1;
    padding: 10px;
}

.progress-stat-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--deep-brown);
    margin-bottom: 5px;
}

.progress-stat-label {
    font-size: 14px;
    color: var(--deep-brown-alt);
}

/* Стили для страницы поддержки */
.faq-section {
    padding: 3rem 0;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(166, 123, 91, 0.05);
}

.faq-icon {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--beige-brown);
    width: 24px;
    text-align: center;
}

.faq-question h3 {
    margin: 0;
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--deep-brown);
}

.faq-toggle {
    font-size: 1rem;
    color: var(--beige-brown);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: var(--orange-mustard);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1rem 1.5rem 1.5rem 3.7rem;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: var(--deep-brown-alt);
    line-height: 1.6;
}

.faq-list {
    margin: 0;
    padding-left: 1.2rem;
}

.faq-list li {
    margin-bottom: 0.5rem;
    color: var(--deep-brown-alt);
    position: relative;
}

.faq-list li:before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--beige-brown);
}

.faq-list li:last-child {
    margin-bottom: 0;
}

/* Активный элемент FAQ */
.faq-item.active {
    border-color: var(--beige-brown);
    background-color: rgba(166, 123, 91, 0.03);
}

.faq-item.active .faq-icon {
    color: var(--orange-mustard);
}

/* Стили для уровней в FAQ */
.level-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 15px;
}

.level-item {
    position: relative;
    padding-left: 0;
    margin-bottom: 15px;
}

.level-badge {
    display: inline-block;
    background: linear-gradient(110deg, var(--beige-brown) 0%, var(--beige-brown-alt) 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.level-item p {
    margin: 0;
    color: var(--deep-brown-alt);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-top: 15px; 
    margin-bottom: 15px;
}

.contact-icon {
    width: 44px; 
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--beige-brown-alt); 
    color: var(--white); 
    border-radius: 12px; 
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    font-size: 15px; 
    color: var(--deep-brown-alt);
}

.contact-info strong {
    color: var(--deep-brown); 
    display: block;
    margin-bottom: 2px;
}

/* Стили для блока кнопок в контактах */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.contact-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
}

.contact-buttons .btn i {
    margin-right: 8px;
    font-size: 16px;
}

.contact-card {
    background: linear-gradient(145deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-card .card-title {
    display: flex;
    align-items: center;
    color: var(--beige-brown);
    font-size: 22px;
}

.contact-card .card-title i {
    margin-right: 10px;
    font-size: 24px;
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-buttons .btn {
        width: 100%;
    }
}

/* Стили для успешного сообщения */
.success-message {
    color: var(--khaki-green);
    padding: 16px;
    border-radius: 15px;
    background-color: rgba(92, 111, 71, 0.1);
    border-left: 3px solid var(--khaki-green);
    margin: 20px 0;
}

/* Стили для карточек на странице О нас */
.section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.section ul li {
    margin-bottom: 8px;
    position: relative;
}

.section ul li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--orange-mustard);
}

/* Стили для страницы ошибок */
.error-page {
    text-align: center;
    padding: 60px 0;
}

.error-page .card-title {
    font-size: 32px;
    margin-bottom: 24px;
}

.error-page .btn {
    margin-top: 24px;
}

/* Новости */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-radius: 16px; 
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    animation: fadeIn 0.5s ease-out forwards;
}

.news-item:hover {
    transform: translateY(-3px); 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07); 
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border); 
}

.news-content {
    padding: 20px; 
}

.news-title {
    margin-top: 0;
    font-size: 20px; 
    margin-bottom: 8px;
    color: var(--deep-brown);
    font-weight: 600;
}

.news-date {
    font-size: 13px; 
    color: var(--beige-brown-alt);
    margin-bottom: 12px; 
}

.news-content p {
    margin-bottom: 0; 
    font-size: 15px;
    color: var(--deep-brown-alt);
}

/* Empty State Style */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--deep-brown-alt);
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .card-content {
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .section-title, .card-title {
        text-align: center;
    }
    
    .section-title {
        font-size: 24px; 
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .lesson-meta {
        flex-direction: column; 
        gap: 8px; 
        align-items: center; 
        width: 100%; 
        margin-top: 15px; 
    }

    .lesson-meta .btn-sm {
        width: 100%; 
        max-width: 200px; 
    }

    .progress-stats {
        flex-direction: column; 
        gap: 15px; 
    }

    .contact-item {
        align-items: flex-start; 
    }

    .admin-overview {
        grid-template-columns: 1fr; 
    }

    .lesson-meta {
        flex-direction: column; 
        gap: 8px; 
        align-items: center; 
        width: 100%; 
        margin-top: 15px; 
    }
}

@media (min-width: 769px) {
    .container {
        padding: 0 40px;
    }
    
    .card {
        padding: 30px;
    }
}

/* Стили для Telegram аватара */
.profile-avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 16px rgba(166, 123, 91, 0.2);
    margin-right: 20px;
    border: 2px solid white;
}

/* Стили для страницы урока */
.lesson-section {
    padding-top: 10px;
}

.lesson-section .card:first-of-type {
    /* Опционально: Добавьте отступ, если необходимо */
}

.lesson-section .card + .card {
    margin-top: 25px; 
}

.lesson-video {
    position: relative; 
    margin-top: 15px; 
    margin-bottom: 30px; 
    border-radius: 10px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
}

.video-player {
    display: block; 
    width: 100%;
    height: auto;
    border-radius: 10px; 
    background-color: #000; 
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity var(--transition-speed);
    border-radius: 10px; 
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.video-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5); 
}

.play-button {
    transition: transform 0.2s;
}

.video-overlay:hover .play-button {
    transform: scale(1.1);
}

.lesson-content {
    line-height: 1.7; 
    color: var(--deep-brown); 
    margin-top: 20px; 
    padding-top: 20px; 
    border-top: 1px solid var(--glass-border); 
}

.lesson-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--deep-brown);
    font-weight: 500;
}

.lesson-content h1,
.lesson-content h2,
.lesson-content h3,
.lesson-content h4,
.lesson-content h5,
.lesson-content h6 {
    margin-top: 1.8em; 
    margin-bottom: 0.8em; 
    font-weight: 600;
    color: var(--deep-brown); 
    line-height: 1.3;
}

.lesson-content h1 { font-size: 1.8em; }
.lesson-content h2 { font-size: 1.5em; }
.lesson-content h3 { font-size: 1.3em; }
.lesson-content h4 { font-size: 1.1em; }

.lesson-content p {
    margin-bottom: 1.2em; 
}

.lesson-content ul,
.lesson-content ol {
    margin-bottom: 1.2em;
    padding-left: 25px; 
}

.lesson-content li {
    margin-bottom: 0.6em; 
}

.lesson-content code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    background-color: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.lesson-content pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; 
    margin-bottom: 1.2em;
}

.lesson-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.9em;
}

.lesson-content img {
    max-width: 100%;
    height: auto; 
    border-radius: 8px; 
    margin: 1.5em 0; 
    display: block; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lesson-content blockquote {
    border-left: 4px solid var(--beige-brown);
    padding-left: 15px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.2em;
    font-style: italic;
    color: var(--deep-brown-alt);
}

.lesson-content hr {
    border: none;
    height: 1px;
    background-color: var(--glass-border);
    margin: 2em 0;
}

.lesson-complete {
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid var(--glass-border); 
    text-align: center; 
}

/* Стили для контента урока */
.lesson-content h1, 
.lesson-content h2, 
.lesson-content h3 {
    color: var(--deep-brown);
    margin-top: 30px;
    margin-bottom: 15px;
}

.lesson-content h1 {
    font-size: 24px;
}

.lesson-content h2 {
    font-size: 22px;
}

.lesson-content h3 {
    font-size: 20px;
}

.lesson-content p {
    margin-bottom: 16px;
}

.lesson-content ul, 
.lesson-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.lesson-content li {
    margin-bottom: 8px;
}

.lesson-content code {
    font-family: monospace;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Стили для админ-панели */
.admin-section {
    padding-top: 20px;
}

.admin-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-actions {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.level-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.level-tab {
    padding: 8px 18px;
    border: 1px solid var(--glass-border);
    background-color: var(--glass-bg);
    color: var(--deep-brown-alt);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.level-tab:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: var(--beige-brown);
    color: var(--beige-brown);
}

.level-tab.active {
    background-color: var(--beige-brown);
    color: var(--white);
    border-color: var(--beige-brown);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(166, 123, 91, 0.2);
}

.lessons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lesson-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-out forwards;
}

.lesson-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.lesson-preview {
    height: 160px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lesson-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lesson-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--beige-brown-alt), var(--beige-brown));
    color: var(--white);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.level-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-weight: 600;
    font-size: 13px;
}

.lesson-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lesson-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--deep-brown);
}

.lesson-description {
    font-size: 14px;
    color: var(--deep-brown-alt);
    margin-bottom: 15px;
    flex-grow: 1;
}

.lesson-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 13px;
    color: var(--deep-brown-alt);
}

.lesson-level {
    font-weight: 500;
}

.lesson-meta .btn-sm {
    padding: 6px 14px;
}

/* Стили для админ-панели */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table th {
    background: var(--beige-brown);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.8);
}

.search-bar {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    outline: none;
    border-color: var(--orange-mustard);
    box-shadow: 0 0 0 2px rgba(208, 139, 72, 0.2);
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.level-change-form {
    display: flex;
    align-items: center;
}

.level-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.level-selector select {
    width: auto;
    padding: 8px 12px;
}

.user-level-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
}

.user-level-select:focus {
    outline: none;
    border-color: var(--orange-mustard);
}

/* Стили для флеш-сообщений */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.flash-message.error {
    background-color: rgba(229, 57, 53, 0.1);
    border-left: 4px solid #e53935;
    color: #b71c1c;
}

.flash-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.flash-message.info {
    background-color: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    color: #0D47A1;
}

.flash-message .close-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.flash-message .close-btn:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Иконка администратора */
.admin-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3Cpath d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z'%3E%3C/path%3E%3C/svg%3E");
}

/* Иконка уроков */
.lessons-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'%3E%3C/path%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'%3E%3C/path%3E%3C/svg%3E");
}

/* Стили для видео-плеера */
.video-player {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.responsive-video {
    width: 100%;
    height: auto;
    display: block;
}


video::-webkit-media-controls-play-button {
    background-color: rgba(255,255,255,0.7);
    border-radius: 50%;
    scale: 1.2;
}


.video-preview {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.video-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
}


.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
}

.responsive-table th,
.responsive-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.responsive-table th {
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
}

.responsive-table tr:last-child td {
    border-bottom: none;
}

.responsive-table tr:hover {
    background-color: rgba(0,0,0,0.03);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--light-gray);
    color: var(--deep-brown-alt);
}

.badge.success {
    background-color: var(--khaki-green);
    color: var(--white);
}

.badge.warning {
    background-color: var(--orange-mustard);
    color: var(--white);
}

.badge.error {
    background-color: #e74c3c;
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.actions-cell {
    display: flex;
    gap: 4px;
}


@media screen and (max-width: 768px) {
    .responsive-table {
        border: 0;
    }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        text-align: right;
        border-bottom: 1px solid var(--border-color);
    }
    
    .responsive-table td:last-child {
        border-bottom: 0;
    }
    
    .responsive-table td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 12px;
    }
    
    .actions-cell {
        justify-content: flex-end;
    }
}


.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 139, 72, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(214, 139, 72, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(214, 139, 72, 0);
    }
}

/* Микро-анимации и переходы */
.btn, a, button, input, select {
    transition: all 0.2s ease;
}

.btn:active, button:active {
    transform: scale(0.98);
}

/* Стилизованные уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.info {
    border-left: 4px solid var(--info-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px auto; 
    background-color: rgba(166, 123, 91, 0.1); 
    border-radius: 12px;
    display: flex; 
    align-items: center;
    justify-content: center;
    background-size: 60%; 
    background-repeat: no-repeat;
    background-position: center;
}

.icon-methodology {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A67B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cline x1='10' y1='9' x2='8' y2='9'%3E%3C/line%3E%3C/svg%3E");
}

.icon-progress {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A67B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E");
}

.icon-community {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A67B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E");
}

.subscription-options {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    margin-bottom: 30px; 
}

@media (min-width: 768px) {
    .subscription-options {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    }
}

.subscription-card .card-content {
    align-items: center; 
    text-align: center;
}

.subscription-price {
    font-size: 2.5em; 
    font-weight: 700;
    color: var(--deep-brown);
    margin-bottom: 5px;
}

.subscription-period {
    font-size: 1em;
    color: var(--deep-brown-alt);
    margin-bottom: 15px; 
}

.subscription-description {
    font-size: 0.95em;
    color: var(--deep-brown-alt);
    min-height: 3em; 
    margin-bottom: 25px; 
}

.subscription-card .btn {
    margin-top: auto; 
    width: 80%; 
    max-width: 250px;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1); 
    border-left-color: var(--orange-mustard); 
    border-radius: 50%;
    width: 40px; 
    height: 40px;
    animation: spin 1s linear infinite; 
    margin: 40px auto; 
    display: block; 
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.card, 
.news-item, 
.lesson-card 
{
    animation: fadeIn 0.5s ease-out forwards; 

} 


.lessons-grid {
    position: relative;
    z-index: 1;
    padding: 30px 0;
}

.lessons-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero-image.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(8px);
    z-index: -1;
}


.lesson-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--beige-brown-alt), var(--beige-brown));
    color: var(--white);
    font-size: 14px;
    text-align: center;
    padding: 10px;
}


.subscription-additional-options {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.toggle-option {
    margin-bottom: 15px;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.toggle-switch:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-checkbox:checked + .toggle-switch {
    background-color: var(--beige-brown);
}

.toggle-checkbox:checked + .toggle-switch:before {
    transform: translateX(24px);
}

.group-info {
    padding: 10px;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.next-group-info {
    margin: 0;
}

.total-price-container {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.options-details {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.options-details h4 {
    font-size: 16px;
    margin-bottom: 10px;
}


.lesson-verification-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.lesson-info-card {
    background-color: var(--tg-theme-bg-color, #ffffff);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.video-upload-container {
    background-color: var(--tg-theme-secondary-bg-color, #f0f0f0);
    border: 2px dashed var(--tg-theme-hint-color, #999999);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-upload-container:hover {
    border-color: var(--tg-theme-button-color, #2481cc);
}

.video-upload-container.active {
    border-color: var(--tg-theme-button-color, #2481cc);
    background-color: rgba(36, 129, 204, 0.05);
}

.video-preview-container {
    margin: 20px 0;
}

.video-preview-container video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upload-icon {
    font-size: 48px;
    color: var(--tg-theme-hint-color, #999999);
    margin-bottom: 10px;
}

.previous-attempts {
    margin-top: 30px;
}

.attempt-card {
    background-color: var(--tg-theme-bg-color, #ffffff);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.attempt-card.approved {
    border-left-color: var(--tg-theme-button-color, #2481cc);
}

.attempt-card.rejected {
    border-left-color: var(--tg-theme-destructive-text-color, #ff3b30);
}

.attempt-card.pending {
    border-left-color: var(--tg-theme-hint-color, #999999);
}

.attempt-feedback {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--tg-theme-secondary-bg-color, #f0f0f0);
    border-radius: 5px;
    font-style: italic;
}


.admin-verification-list {
    max-width: 900px;
    margin: 0 auto;
}

.admin-verification-card {
    background-color: var(--tg-theme-bg-color, #ffffff);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    margin-bottom: 30px;
    transition: opacity 0.5s ease;
}

.admin-verification-card .user-info {
    border-bottom: 1px solid var(--tg-theme-hint-color, #999999);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.admin-verification-card .lesson-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.admin-verification-card .video-container {
    margin: 20px 0;
}

.verification-video {
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-verification-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tg-theme-hint-color, #999999);
}

.feedback-text {
    width: 100%;
    border: 1px solid var(--tg-theme-hint-color, #999999);
    border-radius: 5px;
    padding: 10px;
    resize: vertical;
    margin-bottom: 15px;
    font-family: inherit;
    background-color: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #000000);
}

.verification-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.approve-btn {
    background-color: var(--tg-theme-button-color, #2481cc);
}

.reject-btn {
    background-color: var(--tg-theme-destructive-text-color, #ff3b30);
}


@media (max-width: 768px) {
    .verification-actions {
        flex-direction: column;
    }
    
    .verification-actions button {
        width: 100%;
    }
    
    .admin-verification-card .lesson-info {
        grid-template-columns: 1fr;
    }
}


.profile-actions-card {
    margin-top: 20px;
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.profile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-action-btn i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #A67B5B;
}

.profile-action-btn span {
    font-size: 14px;
    font-weight: 500;
}

.profile-action-btn:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-action-btn.admin {
    background-color: #f8f0ea;
}

.profile-action-btn.admin i {
    color: #8B5A2B;
}


@media (max-width: 768px) {
    .profile-actions {
        grid-template-columns: 1fr;
    }
}

.content-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--deep-brown);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}


.lesson-timers-card {
    margin-top: 20px;
}

.lesson-timers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lesson-timer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.3s;
}

.lesson-timer-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.lesson-timer-info {
    flex: 1;
}

.lesson-timer-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--deep-brown);
}

.lesson-timer-meta {
    font-size: 14px;
    color: var(--deep-brown-alt);
}

.lesson-timer-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.timer-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--orange-mustard);
    background: rgba(208, 139, 72, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.timer-actions {
    display: flex;
    gap: 8px;
}

.reset-timer-form {
    margin: 0;
}

.timer-info-text {
    margin-top: 20px;
    padding: 15px;
    background: rgba(92, 111, 71, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--khaki-green);
}

.timer-info-text p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--deep-brown);
}

.timer-info-text i {
    color: var(--khaki-green);
    margin-right: 5px;
}

@media (max-width: 768px) {
    .lesson-timer-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lesson-timer-countdown {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .timer-actions {
        flex-wrap: wrap;
    }
}


.payment-redirect-section,
.payment-error-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.payment-info {
    text-align: center;
    margin-bottom: 20px;
}

.payment-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.error-message {
    background-color: rgba(255, 99, 71, 0.1);
    border-left: 4px solid tomato;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.error-icon {
    color: tomato;
    font-size: 24px;
    margin-right: 15px;
}

.error-message p {
    margin: 0;
    color: var(--deep-brown);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 4px solid rgba(166, 123, 91, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--orange-mustard);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}


.auth-container {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.auth-container h2 {
    color: #0088cc; /* Цвет Telegram */
    margin-bottom: 20px;
    font-size: 24px;
}

.telegram-login-widget {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        padding: 15px;
        margin: 10px;
    }
}

/* Стили для контейнера авторизации через Telegram */
.auth-section {
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 30px auto;
    max-width: 800px;
}

.auth-container {
    text-align: center;
    padding: 30px;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.telegram-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    background-color: #0088cc;
    border-radius: 50%;
    color: white;
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
}

.auth-container h2 {
    color: #0088cc;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.auth-description {
    color: #555;
    margin: 15px 0 25px;
    line-height: 1.5;
    font-size: 16px;
}

.telegram-login-widget {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.auth-benefits {
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin: 10px;
    padding: 10px;
    flex: 1 1 28%;
    min-width: 120px;
}

.benefit-icon {
    font-size: 20px;
    margin-right: 10px;
}

.benefit-text {
    font-size: 14px;
    color: #555;
}

.user-authenticated {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    background-color: #f0f8ff;
    border-radius: 10px;
    max-width: 400px;
}

.logout-btn {
    display: inline-block;
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #d32f2f;
    text-decoration: none;
    color: white;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        padding: 20px;
        margin: 10px;
    }
    
    .auth-benefits {
        flex-direction: column;
    }
    
    .benefit-item {
        flex: 1 1 100%;
    }
}