@charset "UTF-8";

/* ==== Стили для страницы оплаты тарифов ==== */
.payment-page-wrapper {
    max-width: 600px !important;
    margin: 70px auto 30px;
    padding: 20px;
}

.payment-not-auth-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin-top: 100px;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
    animation: fadeInUp 0.6s ease;
}

.payment-not-auth-card .icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.payment-not-auth-card .message {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

.payment-tariff-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
    text-align: center;
}

.payment-tariff-card .tariff-title {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.payment-tariff-card .tariff-name {
    color: #7797C6;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 5px;
}

.payment-tariff-card .tariff-cost {
    color: #10b981;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 20px 0;
}

.payment-tariff-card .tariff-cost .currency {
    font-size: 1.5rem;
    color: #6b7280;
    margin-left: 5px;
}

.payment-form-card {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(119, 151, 198, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-form-card form {
    width: 100%;
    max-width: 400px !important;
}

.payment-form-card .tinkoffPayRow[type="submit"] {
    width: 100%;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.payment-form-card .tinkoffPayRow[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.payment-form-card .tinkoffPayRow[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Адаптив для страницы оплаты */
@media (max-width: 768px) {
    .payment-page-wrapper {
        margin: 0 auto;
        padding: 15px;
    }
    
    .payment-not-auth-card {
        margin-top: 20px;
        padding: 30px 20px;
    }
    
    .payment-tariff-card,
    .payment-form-card {
        padding: 25px 20px;
    }
}

/* ==== Стили для payment-блоков в referral-card ==== */
.referral-card .payment-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border-left: 4px solid #7797C6 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.referral-card .payment-amount {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-bottom: 0 !important;
}
.referral-card .payment-desc {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-top: 5px !important;
    width: 100% !important;
}
.referral-card .payment-divider {
    text-align: center !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #7797C6 !important;
    margin: 15px 0 !important;
    padding: 10px 0 !important;
    width: 100% !important;
}
/* ==== Фикс конфликтов с style_acount.css для реферальных карточек ==== */
.referral-card .card-content {
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
}
/* ==== Фикс конфликтов с style_acount.css для промо-карточек ==== */
.promotion-card .card-content {
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    justify-content: flex-start !important;
}
/* ============================================================================= */
/*                        ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦ САЙТА                      */
/*                    (about.php, ceo.php и другие)                          */
/* ============================================================================= */

/* ========== Базовые стили ========== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ========== Основные контейнеры ========== */
.site-container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 16px; /* Mobile-first padding */
}

/* Обёртка заголовка страницы (как ex-page-header) */
.site-page-header {
    margin: 8px 0 24px;
    text-align: center;
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: #fff !important;
    padding: 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.site-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
    animation: shimmer 20s linear infinite;
    opacity: 0;
    transition: opacity .5s ease;
}
.site-page-header:hover::before { opacity: 1; }
.site-page-header h1 { margin: 0; font-size: 30px !important; color: #fff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.site-page-header .subtitle { margin: 8px 0 0; color: rgba(255,255,255,0.92) !important; }

/* Внутренний блок заголовка без собственного фона (фон у обёртки) */
.site-header { background: transparent; position: relative; }

/* Обновлённые «хлебные крошки» под стиль ex-breadcrumb */
.breadcrumbs {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 30px 0 0;
    font-size: 14px;
    color: #475569;
}
.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.breadcrumbs a,
.breadcrumbs a.clr_grey { /* переопределяем возможные старые цвета */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.breadcrumbs a:hover {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    transform: translateY(-1px);
}
.breadcrumbs li:last-child {
    color: #1e293b;
    font-weight: 600;
}
.breadcrumbs li:last-child span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(59,130,246,0.1);
    border-radius: 8px;
}

/* Кастомные хлебные крошки с отступом 170px для десктопа */
.breadcrumbs-custom {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
    font-size: 14px;
    color: #475569;
}

.breadcrumbs-custom ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs-custom li {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.breadcrumbs-custom li:not(:last-child)::after {
    content: '→';
    margin: 0 8px;
    color: #94a3b8;
    font-weight: 700;
}

.breadcrumbs-custom a,
.breadcrumbs-custom a.clr_grey {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.breadcrumbs-custom a:hover {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    transform: translateY(-1px);
}

.breadcrumbs-custom li:last-child {
    color: #1e293b;
    font-weight: 600;
}

.breadcrumbs-custom li:last-child span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(59,130,246,0.1);
    border-radius: 8px;
}

/* Отступ для десктопной версии */
@media (min-width: 1024px) {
    .breadcrumbs-custom {
        margin-top: 30px;
    }
}

.site-header:hover::before {
    opacity: 1;
}

.site-header h1 {
    font-size: 2.8rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.site-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== Секции контента ========== */
.site-section {
    padding: 24px 16px; /* Mobile-first section spacing */
    border-bottom: 1px solid #f0f0f0;
}

.site-section:last-child {
    border-bottom: none;
}

.site-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-left: 10px;
}

.site-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(45deg, #7797C6, #a8c0e8);
    border-radius: 2px;
}

/* ========== Unsubscribe page ========== */
.unsubscribe-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.unsubscribe-card.is-success {
    border-left: 6px solid #6b7280;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.unsubscribe-card.is-error {
    border-left: 6px solid #e75656;
    background: linear-gradient(135deg, #fff5f5 0%, #ffecec 100%);
}
.unsubscribe-icon {
    font-size: 32px;
}
.unsubscribe-text h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}
.unsubscribe-text p {
    margin: 0;
    color: #475569;
}
.unsubscribe-actions { margin-top: 12px; }

/* ========== Подсветка важной информации ========== */

/* ============================================================================= */
/*                        СТИЛИ ДЛЯ СЛУЖЕБНЫХ СООБЩЕНИЙ                       */
/*              (list_support_message.php и связанные компоненты)             */
/* ============================================================================= */

/* ========== Контейнер центра поддержки ========== */
.support-center {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 20px auto;
    max-width: 1000px !important;
}

.support-header {
    background: #7797C6;
    color: white !important;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border-radius: 15px 15px 0 0;
    margin-top: 40px;
}

.support-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="white" opacity="0.1"/></svg>') repeat;
}

.support-header h1 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.support-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ========== Хлебные крошки для поддержки ========== */
.support-breadcrumbs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 30px;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.95rem;
    margin-top: 30px;
}

.support-breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.support-breadcrumbs a:hover {
    color: #495057;
    text-decoration: underline;
}

.support-breadcrumbs .current {
    color: #495057;
    font-weight: 600;
}

.support-breadcrumbs .guest-mode {
    color: #dc3545;
    font-weight: 700;
    background: rgba(220, 53, 69, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ========== Список сообщений ========== */
.messages-container {
    padding: 30px;
    min-height: 400px;
}

/* ========== Вкладки для фильтрации ========== */
.message-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    border-color: #7797C6;
    color: #7797C6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(119, 151, 198, 0.2);
}

.tab-button.active {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    border-color: #7797C6;
    color: white;
    box-shadow: 0 4px 15px rgba(119, 151, 198, 0.3);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #7797C6;
}

.tab-button span {
    font-size: 1rem;
}

/* Адаптивные вкладки */
@media (max-width: 768px) {
    .message-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-button {
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Анимация для появления сообщений */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.guest-demo-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 5px solid #ffc107;
    font-weight: 600;
    text-align: center;
}

/* ========== Карточки сообщений ========== */
.message-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.message-card.my-message {
    border-left: 5px solid #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
}

.message-card.admin-message {
    border-left: 5px solid #6b7280;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.message-card.admin-message.unread {
    border-left: 5px solid #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffe6e6 100%);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.15);
}

.message-header {
    padding: 10px 0 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.message-from {
    font-weight: 700;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-from .icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.message-datetime {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.message-content {
    padding: 0;
}

.message-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 5px;
}

.message-text a {
    color: #007bff;
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s ease;
}

.message-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* ========== Статусы сообщений ========== */
.message-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.status-sent {
    background: rgba(255, 162, 22, 0.2);
    color: #b45309;
}

.status-read {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-unread {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ========== Действия с сообщениями ========== */
.message-actions {
    padding: 15px 25px;
    background: rgba(248, 249, 250, 0.5);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    color: white !important;
    text-decoration: none;
}

.action-btn.mark-read {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.action-btn.mark-read:hover {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* ========== Пустое состояние ========== */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #6c757d;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.empty-state p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.empty-state .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white !important;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
    color: white !important;
    text-decoration: none;
}

/* ========== Telegram подписка ========== */
.telegram-subscription {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
}

.telegram-subscription a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.telegram-subscription a:hover {
    transform: scale(1.1);
}

.telegram-subscription img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.telegram-subscription img:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ========== Адаптивный дизайн ========== */
@media (max-width: 768px) {
    .support-center {
        margin: 10px;
        border-radius: 15px;
        position: relative;
        background: white !important;
    }
    
    .support-header {
        padding: 30px 20px;
    }
    
    .support-header h1 {
        font-size: 1.8rem;
    }
    
    .support-breadcrumbs {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .messages-container {
        padding: 20px;
    }
    
    .message-header,
    .message-content,
    .message-actions {
        padding-left: 0;
        padding-right: 0;
    }
    
    .message-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 5px;
    }
    
    .guest-demo-notice {
        padding: 15px 20px;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .telegram-subscription {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .support-header h1 {
        font-size: 1.5rem;
    }
    
    .support-header .subtitle {
        font-size: 1rem;
    }
    
    .message-card {
        border-radius: 10px;
    }
    
    .action-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
.highlight-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4f1f4 100%);
    border: 2px solid #7797C6;
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '🎯';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
}

.highlight-box p {
    font-size: 1.3rem;
    color: #2c5282;
    margin: 0;
    font-weight: 600;
}

/* ========== Списки ========== */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-list li {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #7797C6;
    line-height: 1.6;
    position: relative;
    transition: all 0.3s ease;
}

.styled-list li:hover {
    background: #f0f8ff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(119, 151, 198, 0.1);
}

.styled-list li strong {
    color: #2c5282;
}

.styled-list li a {
    color: #7797C6;
    text-decoration: none;
    font-weight: 500;
}

.styled-list li a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* ========== Карточки ========== */
.card-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: 16px;
    margin-top: 20px;
    position: relative;
}

.card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7797C6, #a8c0e8);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(119, 151, 198, 0.15);
    border-color: #7797C6;
}

.card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===== Legal documents (about.php → Правовая информация) ===== */
.legal-docs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: 8px;
}
.legal-doc-link {
    display: inline-block;
    color: #0b63c7;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.5px;
    line-height: 1.35;
}
.legal-doc-link .emoji { margin-right: 8px; }
.legal-doc-link:hover,
.legal-doc-link:focus-visible {
    color: #7796C6 !important;
    text-decoration: underline !important;
    text-decoration-color: #7796C6 !important;
}
@media (max-width: 480px) {
    .legal-doc-link { word-break: break-word; overflow-wrap: anywhere; }
}

/* ========== Временная линия ========== */
.site-section .timeline {
    position: relative;
    padding-left: 30px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    max-height: none !important;
    display: block !important;
    flex-direction: initial !important;
    gap: initial !important;
}

.site-section .timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, #7797C6, #a8c0e8);
}

.site-section .timeline-item {
    position: relative;
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.site-section .timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 25px;
    width: 12px;
    height: 12px;
    background: #7797C6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e9ecef;
}

.timeline-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.timeline-item ul {
    margin: 15px 0;
    padding-left: 20px;
}

.timeline-item ul li {
    margin: 8px 0;
    color: #666;
}

.timeline-item a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ========== Блок важной информации ========== */
.insight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.insight-box p {
    margin: 0;
    color: #8b4513;
    font-weight: 500;
}

/* ========== Призыв к действию ========== */
.cta-section {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    text-align: center;
    padding: 50px 40px;
    margin: 0 auto;
    border-radius: 0 0 15px 15px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.cta-section h2::before {
    display: none;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #7797C6;
    color: white;
}

.btn-primary:hover {
    background: #6687b6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(119, 151, 198, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #7797C6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========== Breadcrumbs ========== */
.site-breadcrumbs {
    background: white;
    padding: 15px 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    color: #6b7280;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: #d1d5db;
    font-size: 1.1rem;
}

.breadcrumb-link {
    color: #7797C6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #5a7cb8;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 600;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #6c757d;
    font-weight: bold;
}

.breadcrumbs a {
    color: #7797C6;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.breadcrumbs li:last-child {
    color: #6c757d;
    font-weight: 500;
}

/* ========== СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ CEO СТРАНИЦЫ ========== */

/* Профиль руководителя */
.ceo-profile {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first */
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.ceo-photo {
    text-align: center;
}

.ceo-photo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.ceo-photo img:hover {
    transform: scale(1.02);
}

.ceo-info h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.ceo-info .position {
    font-size: 1.2rem;
    color: #7797C6;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Секции данных */
.data-section {
    margin-bottom: 40px;
}

.data-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.positions-grid { display: grid; gap: 12px; }

.position-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #7797C6;
    transition: all 0.3s ease;
}

.position-item:hover {
    background: #f0f8ff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(119, 151, 198, 0.1);
}

.position-item h4 {
    font-size: 1.1rem;
    color: #2c5282;
    margin-bottom: 10px;
    font-weight: 600;
}

.position-item p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.position-item a {
    color: #7797C6;
    text-decoration: none;
    font-weight: 500;
}

.position-item a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* Образование */
.education-grid { display: grid; gap: 16px; }

/* ========== Mobile-first responsive enhancements ========== */
/* Fluid media */
.site-container img,
.site-container video,
.site-container iframe { max-width: 100%; height: auto; }

/* Tables: horizontal scroll on small screens */
.site-container table { width: 100%; border-collapse: collapse; }
.site-container .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-container .table-responsive table { min-width: 600px; }

/* Headings sizes scale up with breakpoints */
.site-header { padding: 32px 16px; }
.site-header h1 { font-size: 2rem; }

/* Breakpoints */
@media (min-width: 640px) {
    .site-container { padding: 20px; }
    .site-section { padding: 32px 24px; }
    .card-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
}

@media (min-width: 768px) {
    .site-header { padding: 40px 24px; }
    .site-header h1 { font-size: 2.4rem; }
    .site-section h2 { font-size: 1.8rem; }
    .ceo-profile { grid-template-columns: 300px 1fr; gap: 32px; margin-bottom: 32px; }
}

@media (min-width: 1024px) {
    .site-header { padding: 48px 32px; }
    .site-header h1 { font-size: 2.8rem; }
    .site-section { padding: 40px 32px; }
    .card-grid { gap: 25px; }
    .positions-grid { gap: 15px; }
    .education-grid { gap: 20px; }
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 767px) {
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-item {
        padding: 20px 15px;
    }
    
    .timeline-item::before {
        left: -32px;
    }
    
    .cta-section {
        padding: 40px 20px;
        margin: 0 auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 200px;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    /* CEO специфичные стили */
    .ceo-profile {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .ceo-info h1 {
        font-size: 1.8rem;
    }
    
    .positions-grid {
        gap: 12px;
    }
    
    .position-item {
        padding: 15px;
    }
    
    .education-grid {
        gap: 15px;
    }
    
    .education-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.8rem;
    }
    
    .site-section h2 {
        font-size: 1.4rem;
    }
    
    .highlight-box {
        padding: 15px;
    }
    
    .highlight-box p {
        font-size: 1.1rem;
    }
    
    .styled-list li {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .ceo-info h1 {
        font-size: 1.6rem;
    }
    
    .ceo-info .position {
        font-size: 1rem;
    }
}

/* ========== Анимации ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-content {
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item {
    animation: fadeInUp 0.6s ease-out;
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.position-item {
    animation: fadeInUp 0.6s ease-out;
}

.education-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Education Page Styles */
.education-intro {
    margin-bottom: 40px;
}

.course-card-featured {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #e75656 0%, #c74545 100%);
    color: white !important;
    padding: 30px;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(231, 86, 86, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(231, 86, 86, 0.4);
}

.course-icon {
    flex-shrink: 0;
}

.course-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.course-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

.course-content .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white !important;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.course-content .btn:hover {
    background: white;
    color: #e75656;
}

.education-tabs {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #333;
    background: #f8f9fa;
}

.tab-btn.tab-active {
    color: #e75656;
    border-bottom-color: #e75656;
    background: #fff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.tab-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.document-category {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.document-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.document-category h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.document-list li::before {
    content: "📄";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
}

.document-list a {
    color: #007bff;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
    border-radius: 6px;
    margin-left: -8px;
    padding-left: 28px;
}

.document-list a:hover {
    color: #e75656;
    background: #f8f9fa;
}

/* Enhanced responsive design for education */
@media (max-width: 768px) {
    .course-card-featured {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        padding: 12px 15px;
        text-align: center;
        border-bottom: 1px solid #e6e6e6;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .document-category {
        padding: 15px;
    }
}

/* Landing Page Styles */
.landing-hero {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    border-radius: 15px 15px 0 0;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: shimmer 20s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.landing-hero:hover::before {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    margin: 0 0 40px 0;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 14px;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.advantage-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-3px);
}

.step-number {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Guarantee Section */
.guarantee-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 50px 40px;
}

.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.guarantee-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e6e6;
}

.guarantee-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.guarantee-item h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.guarantee-item p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Contact Info - удалён конфликтующий блок для лендинга */

/* Enhanced responsive design for landing */
@media (max-width: 768px) {
    .landing-hero {
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .advantages-grid,
    .steps-container,
    .guarantee-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .advantage-card,
    .guarantee-item {
        padding: 20px;
    }
    
    .guarantee-section {
        padding: 30px 20px;
    }
}


/* ============================================================================= */
/*                        СТИЛИ ДЛЯ СОДЕРЖАНИЯ КУРСА                          */
/*                           (exam.php - course content)                       */
/* ============================================================================= */

/* ========== Основная секция содержания ========== */
.course-content-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 50px 32px;
    margin: 0;
    border-radius: 0;
    border-top: 1px solid #e2e8f0;
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
}

.content-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-header h2::before {
    display: none;
}

.content-description {
    font-size: 1.2rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Структура содержания ========== */
.content-structure {
    max-width: 900px;
    margin: 0 auto;
}

.chapter-intro {
    margin-bottom: 30px;
}

.intro-chapter {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(119, 151, 198, 0.3);
}

.intro-chapter .chapter-title {
    color: white !important;
}

.intro-chapter .chapter-title.black-text {
    color: #1e293b !important;
}

/* ========== Элементы глав ========== */
.chapter-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chapter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.chapter-item.expanded {
    border-color: #7797C6;
    box-shadow: 0 8px 25px rgba(119, 151, 198, 0.2);
}

.chapter-header {
    display: flex;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.chapter-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.chapter-item.expanded .chapter-header {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
}

.chapter-item.expanded .chapter-header .chapter-title {
    color: white !important;
}

.chapter-icon {
    font-size: 2rem;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(119, 151, 198, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.chapter-item.expanded .chapter-icon {
    background: rgba(255, 255, 255, 0.2);
}

.chapter-title {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #64748b;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.chapter-item.expanded .toggle-icon {
    color: white;
    transform: rotate(180deg);
}

/* ========== Содержимое глав ========== */
.chapter-content {
    padding: 0 28px 28px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Секции и подсекции ========== */
.section-item {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #7797C6;
    transition: all 0.3s ease;
}

.section-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(119, 151, 198, 0.1);
}

.section-item:last-child {
    margin-bottom: 0;
}

.section-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

/* ========== Списки ========== */
.subsection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subsection-list li {
    padding: 8px 0 8px 25px;
    color: #475569;
    line-height: 1.6;
    position: relative;
    transition: color 0.3s ease;
}

.subsection-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #7797C6;
    font-weight: bold;
    font-size: 1.2rem;
}

.subsection-list li:hover {
    color: #1e293b;
}

.sub-subsection-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 20px;
}

.sub-subsection-list li {
    padding: 5px 0 5px 20px;
    color: #64748b;
    font-size: 0.95rem;
    position: relative;
}

.sub-subsection-list li::before {
    content: '◦';
    position: absolute;
    left: 0;
    color: #94a3b8;
    font-size: 1rem;
}

/* ========== Подвал содержания ========== */
.content-footer {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.course-summary {
    text-align: center;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.course-summary h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 25px;
    font-weight: 700;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    max-width: 500px;
    margin: 0 auto;
}

.stat-box {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(119, 151, 198, 0.3);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

/* ========== Галерея материалов курса ========== */
.course-gallery {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-header h3 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}

.gallery-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e2e8f0;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========== Адаптивные стили для галереи ========== */
@media (max-width: 768px) {
    .course-gallery {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .gallery-header h3 {
        font-size: 1.4rem;
    }
    
    .gallery-header p {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        gap: 12px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        gap: 10px;
        padding: 0 5px;
    }
    
    .gallery-header h3 {
        font-size: 1.3rem;
    }
    
    .gallery-item {
        border-radius: 8px;
    }
}

/* ========== Адаптивный дизайн для содержания ========== */
@media (max-width: 768px) {
    .course-content-section {
        padding: 30px 20px;
    }
    
    .content-header h2 {
        font-size: 2rem;
    }
    
    .content-description {
        font-size: 1.1rem;
    }
    
    .chapter-header {
        padding: 20px 20px;
        flex-wrap: wrap;
    }
    
    .chapter-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .chapter-title {
        font-size: 1.2rem;
    }
    
    .chapter-content {
        padding: 0 20px 20px;
    }
    
    .section-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-item h4 {
        font-size: 1rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .course-summary {
        padding: 25px 20px;
    }
    
    .course-summary h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-header h2 {
        font-size: 1.8rem;
    }
    
    .chapter-header {
        padding: 15px;
    }
    
    .chapter-title {
        font-size: 1.1rem;
    }
    
    .chapter-icon {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .subsection-list li {
        padding-left: 20px;
        font-size: 0.95rem;
    }
    
    .stat-box {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ========== Анимации и переходы ========== */
@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-content-section {
    animation: contentFadeIn 0.8s ease-out;
}

.chapter-item {
    animation: contentFadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.chapter-item:nth-child(1) { animation-delay: 0.1s; }
.chapter-item:nth-child(2) { animation-delay: 0.2s; }
.chapter-item:nth-child(3) { animation-delay: 0.3s; }
.chapter-item:nth-child(4) { animation-delay: 0.4s; }
.chapter-item:nth-child(5) { animation-delay: 0.5s; }
.chapter-item:nth-child(6) { animation-delay: 0.6s; }
.chapter-item:nth-child(7) { animation-delay: 0.7s; }

/* ========== Кнопка "Содержание курса" ========== */
.course-actions {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
}

.btn-course-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    padding: 16px 32px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(119, 151, 198, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    border: none;
    cursor: pointer;
}

.btn-course-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-course-content:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(119, 151, 198, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.btn-course-content:hover::before {
    left: 100%;
}

.btn-course-content:active {
    transform: translateY(-1px) scale(1.01);
    transition: transform 0.1s ease;
}

.btn-course-content:focus {
    outline: 2px solid #7797C6;
    outline-offset: 4px;
}

/* Анимация подсветки секции содержания */
@keyframes highlightSection {
    0% {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    }
    50% {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        transform: scale(1.01);
    }
    100% {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        transform: scale(1);
    }
}

/* Адаптивные стили для кнопки */
@media (max-width: 768px) {
    .course-actions {
        margin: 20px 0;
        padding: 15px 0;
    }
    
    .btn-course-content {
        padding: 14px 24px;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .btn-course-content {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-width: 160px;
    }
}

/* ========== Улучшения доступности ========== */
.chapter-header:focus {
    outline: 2px solid #7797C6;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .chapter-item,
    .course-content-section,
    .chapter-header,
    .section-item,
    .stat-box {
        animation: none !important;
        transition: none !important;
    }
}

/* Course Page Styles */
.course-header {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    border-radius: 15px 15px 0 0;
}

.course-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.course-header h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 15px 0;
    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: white !important;
}

.course-subtitle {
    position: relative;
    z-index: 1;
    font-size: 20px !important;
    margin: 0 !important;
    opacity: 0.9 !important;
    color: white !important;
}

.course-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.course-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.course-stats .stat-item {
    text-align: center;
}

.course-stats .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #7797C6;
    margin-bottom: 5px;
}

.course-stats .stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.course-description h3 {
    margin: 30px 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6b7280;
    font-weight: bold;
    font-size: 16px;
}

.benefit-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
    align-items: stretch;
}

.benefit-card {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 32px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.benefit-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.benefit-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    flex-grow: 1;
}

/* ========== Специализированные карточки курса ========== */
.stats-card .course-stats-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.stat-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 6px;
    border-left: 3px solid #7797C6;
}

.stat-number-inline {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-label-inline {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.feature-list-card {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    text-align: left;
    flex-grow: 1;
}

.feature-list-card li {
    padding: 5px 0 5px 20px;
    color: #475569;
    line-height: 1.4;
    position: relative;
    font-size: 13px;
}

.feature-list-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7797C6;
    font-weight: bold;
    font-size: 14px;
}

.card-action {
    margin-top: 12px;
    text-align: center;
    flex-shrink: 0;
}

.btn-card-action {
    display: inline-block;
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 16px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(119, 151, 198, 0.3);
    color: white !important;
    text-decoration: none !important;
}

/* ========== Карточка автора ========== */
.author-card {
    text-align: left !important;
}

.author-info {
    display: flex;
    gap: 12px;
    margin: 10px 0;
    align-items: flex-start;
    flex-grow: 1;
}

.author-photo {
    flex-shrink: 0;
}

.author-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7797C6;
    box-shadow: 0 3px 8px rgba(119, 151, 198, 0.2);
}

.author-details h4 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.author-details p {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #475569;
}

.author-card .card-action {
    text-align: center;
}

/* ========== Адаптивные стили для карточек курса ========== */
@media (max-width: 768px) {
    .benefit-cards {
        gap: 12px;
        margin: 16px 0;
    }
    
    .benefit-card {
        padding: 15px;
        min-height: 140px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .author-photo img {
        width: 50px;
        height: 50px;
    }
    
    .stat-inline {
        padding: 5px 10px;
    }
    
    .stat-number-inline {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .benefit-card {
        padding: 12px;
        min-height: 120px;
    }
    
    .benefit-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .benefit-card h3 {
        font-size: 15px;
    }
    
    .benefit-card p {
        font-size: 12px;
    }
    
    .author-photo img {
        width: 45px;
        height: 45px;
    }
    
    .author-details h4 {
        font-size: 0.95rem;
    }
    
    .author-details p {
        font-size: 11px;
    }
    
    .btn-card-action {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

.status-example {
    margin-top: 30px;
    text-align: center;
}

.status-example h3 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.status-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.important-info {
    background: #fff9e6;
    border-radius: 15px;
    padding: 40px;
    border-left: 5px solid #ffa500;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #7797C6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.info-card.warning {
    border-left-color: #dc3545;
}

.info-card.registration {
    border-left-color: #ffc107;
}

.info-card.preview {
    border-left-color: #6b7280;
}

.info-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.info-card p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.video-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
}

.video-intro {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.video-container {
    max-width: 800px !important;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.course-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    border: none;
}

/* Course responsive design */
@media (max-width: 768px) {
    .course-header {
        padding: 40px 20px;
    }
    
    .course-header h1 {
        font-size: 28px !important;
    }
    
    .course-subtitle {
        font-size: 16px !important;
    }
    
    .course-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .course-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .important-info,
    .video-section {
        padding: 25px 20px;
    }
    
    .benefit-card,
    .info-card {
        padding: 20px;
    }
}

/* === Payment Page Styles === */
.payment-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #7797C6 0%, #5a7bb8 100%);
    color: white !important;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.payment-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: shimmer 20s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.payment-header:hover::before {
    opacity: 1;
}

.payment-header h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.payment-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.subscription-status {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.subscription-status.active {
    background: linear-gradient(135deg, #7797C6 0%, #5a7bb8 100%);
    color: white !important;
}

.subscription-status.inactive {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #d69e2e;
}

.status-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.status-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.status-content p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tariff-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.tariff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tariff-card.current-tariff {
    border-color: #7797C6;
    box-shadow: 0 10px 30px rgba(119, 151, 198, 0.3);
}

.tariff-header {
    background: linear-gradient(135deg, #7797C6 0%, #5a7bb8 100%);
    color: white !important;
    padding: 2rem;
    text-align: center;
}

.tariff-name {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.tariff-price {
    margin: 1rem 0;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-currency {
    font-size: 1.2rem;
    opacity: 0.8;
}

.tariff-features {
    padding: 2rem;
}

.tariff-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tariff-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: #666;
}

.tariff-features li:last-child {
    border-bottom: none;
}

.tariff-action {
    padding: 2rem;
    text-align: center;
}

.benefits-section {
    margin: 3rem 0;
}

/* Payment responsive design */
@media (max-width: 768px) {
    .payment-header h1 {
        font-size: 2rem;
    }
    
    .payment-subtitle {
        font-size: 1rem;
    }
    
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-status {
        flex-direction: column;
        text-align: center;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* === Official Document Styles === */
.official-document {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.document-header {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.document-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: shimmer 20s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.document-header:hover::before {
    opacity: 1;
}

.document-title {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin: 0 0 1rem 0;
    line-height: 1.3 !important;
}

.document-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-style: italic;
}

.table-of-contents {
    background: #f8fafc;
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.table-of-contents h3 {
    margin: 0 0 1.5rem 0;
    color: #2d3748;
    text-align: center;
    font-size: 1.3rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.toc-list li {
    margin: 0;
}

.toc-list a {
    display: block;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-list a:hover {
    border-color: #7797C6;
    background: #e6f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(119, 151, 198, 0.2);
}

.document-content {
    padding: 2rem;
}

.document-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.document-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #7797C6;
    font-weight: 600;
}

.subsection-title {
    font-size: 1.4rem !important;
    color: #4a5568 !important;
    margin: 2rem 0 1rem 0;
    font-weight: 600 !important;
}

.organization-info {
    background: linear-gradient(135deg, #e6fffa 0%, #b2f5ea 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #38b2ac;
}

.legal-notice {
    margin: 0;
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.6;
    font-weight: 500;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.term-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 3px solid #cbd5e0;
    line-height: 1.6;
}

.term-item.important-term {
    background: #fffaf0;
    border-left-color: #ed8936;
}

.term-item.key-definition {
    background: #f0fff4;
    border-left-color: #38a169;
    font-weight: 500;
}

.term-item.contract-definition {
    background: #ebf8ff;
    border-left-color: #3182ce;
}

.term-item.important-restriction {
    background: #fff5f5;
    border-left-color: #e53e3e;
}

.restriction-note {
    color: #c53030;
    font-weight: 600;
    background: #fed7d7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.rights-subsection {
    margin-bottom: 2rem;
}

.numbered-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
    margin: 0;
}

.numbered-list li {
    counter-increment: item;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #7797C6;
    position: relative;
    line-height: 1.6;
}

.platform-responsibilities {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.platform-responsibilities h4 {
    color: #0369a1;
    margin-top: 0;
}

.financial-section {
    background: #fffbeb;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #f59e0b;
}

.cost-highlight {
    background: #fef3c7;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: #92400e;
    margin: 0.5rem 0;
}

.rating-system {
    background: #f3e8ff;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #8b5cf6;
}

.responsibility-section {
    background: #fef2f2;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #ef4444;
}

.final-provisions {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #6b7280;
    text-align: center;
}

/* Official document responsive design */
@media (max-width: 768px) {
    .official-document {
        margin: 1rem;
        border-radius: 10px;
    }
    
    .document-header {
        padding: 2rem 1rem;
    }
    
    .document-title {
        font-size: 1.8rem;
    }
    
    .document-subtitle {
        font-size: 1rem;
    }
    
    .document-content {
        padding: 1rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .subsection-title {
        font-size: 1.2rem;
    }
    
    .rights-list {
        margin-left: 0;
    }
    
    .numbered-list li::before {
        position: static;
        display: inline-block;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .numbered-list li {
        padding-top: 0.5rem;
    }
}

/* === Quiz/Exam Styles === */
.quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.quiz-timer-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.timer-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.timer-text {
    flex: 1;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d68910;
    margin-top: 0.5rem;
    font-family: 'Courier New', monospace;
}

.quiz-timeout-notice {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.timeout-content {
    max-width: 500px;
    margin: 0 auto;
}

.timeout-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.timeout-content h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeout-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quiz-form {
    padding: 2rem;
}

.quiz-questions {
    margin-bottom: 2rem;
}

.quiz-question-block {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #7797C6;
}

.question-title {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.question-text {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-weight: 500;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: #7797C6;
    background: #f0f8ff;
}

.answer-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #7797C6;
}

.answer-option:has(input:checked) {
    border-color: #7797C6;
    background: #e6f3ff;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.quiz-submit-section {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.quiz-submit-btn {
    background: linear-gradient(135deg, #7797C6 0%, #5a7bb8 100%);
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(119, 151, 198, 0.3);
}

.quiz-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(119, 151, 198, 0.4);
}

.quiz-submit-btn:active {
    transform: translateY(0);
}

.quiz-help-text {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

/* Quiz responsive design */
@media (max-width: 768px) {
    .quiz-container {
        margin: 1rem;
        border-radius: 10px;
    }
    
    .quiz-form {
        padding: 1rem;
    }
    
    .quiz-question-block {
        padding: 1rem;
    }
    
    .quiz-timer-notice {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .timer-display {
        font-size: 1.2rem;
    }
    
    .question-title {
        font-size: 1.1rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .answer-option {
        padding: 0.5rem;
    }
    
    .quiz-submit-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================================================= */
/*                        СТИЛИ ДЛЯ СТРАНИЦЫ АКЦИИ                           */
/*                        (promotion_info.php)                               */
/* ============================================================================= */

/* ========== Заголовок акции ========== */
.promotion-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #ff6b6b 100%);
    position: relative;
    overflow: hidden;
}

.promotion-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.promotion-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ========== Алерт с информацией о акции ========== */
.promotion-alert {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9ff 100%);
    border: 2px solid #6b7280;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.promotion-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #6b7280, #4b5563);
}

.alert-icon {
    font-size: 2.5rem;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.alert-content h2 {
    margin: 0 0 15px 0;
    color: #16a34a;
    font-size: 1.5rem;
    font-weight: 700;
}

.alert-content p {
    margin: 0 0 15px 0;
    color: #374151;
    line-height: 1.6;
}

.highlight-number {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2em;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.regions-info {
    background: rgba(255,255,255,0.7);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #6b7280;
    color: #1f2937;
    font-weight: 500;
}

/* ========== Сетка карточек ========== */
.promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.promotion-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    padding: 0 0 20px 0;
}

.promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-icon {
    font-size: 2rem;
    background: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}
.promotion-card .card-content {
    padding: 30px 25px 0 25px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* ========== Информация о выплатах ========== */
.promotion-card .payment-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border-left: 4px solid #7797C6 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.promotion-card .payment-amount {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin-bottom: 0 !important;
}

.payment-amount.primary {
    color: #6b7280;
}

.payment-amount.secondary {
    color: #f59e0b;
}

.promotion-card .payment-desc {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-top: 5px !important;
    width: 100% !important;
}

.promotion-card .payment-divider {
    text-align: center !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #7797C6 !important;
    margin: 15px 0 !important;
    padding: 10px 0 !important;
    width: 100% !important;
}

/* ========== Список требований ========== */
.requirement-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #7797C6;
}

.req-number {
    background: #7797C6;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.req-text {
    color: #374151;
    line-height: 1.5;
}

.req-text a {
    color: #7797C6;
    text-decoration: underline;
    font-weight: 600;
}

.req-text a:hover {
    color: #5a7cb8;
}

/* ========== Условия участия ========== */
.participation-section {
    margin: 40px 0;
}

.participation-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1f2937;
    text-align: center;
}

.condition-step {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.step-number {
    background: linear-gradient(135deg, #7797C6, #a8c0e8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(119, 151, 198, 0.3);
}

.step-content h3 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
}

.step-content p {
    margin: 0 0 15px 0;
    color: #6b7280;
    line-height: 1.6;
}

/* ========== Кнопки регистрации ========== */
.registration-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* ========== Методы закрепления ========== */
.method-list {
    margin: 15px 0;
}

.method-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #6b7280;
    color: #374151;
    line-height: 1.5;
}

.method-item strong {
    color: #6b7280;
}

/* Удалён конфликтующий блок contact-info из reviews */

.email-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    background: white;
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.email-link:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

/* ========== Предупреждение ========== */
.warning-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 15px;
    padding: 25px;
    margin: 40px 0;
}

.warning-icon {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.warning-content h3 {
    margin: 0 0 15px 0;
    color: #92400e;
    font-size: 1.3rem;
    font-weight: 700;
}

.warning-content p {
    margin: 0;
    color: #78350f;
    line-height: 1.6;
    font-weight: 500;
}

/* ========== Таблица выплат ========== */
.payments-table-section {
    margin: 40px 0;
}

.payments-table-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1f2937;
    font-size: 1.8rem;
}

.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th {
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.payments-table td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.empty-table {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 40px 20px !important;
}

/* ========== Адаптивный дизайн ========== */
@media (max-width: 768px) {
    .breadcrumb-list {
        font-size: 0.85rem;
        gap: 6px;
    }
    
    .breadcrumb-list li:not(:last-child)::after {
        margin: 0 6px;
    }
    
    .promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promotion-alert {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .condition-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .warning-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .payment-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .payment-amount {
        font-size: 2rem;
    }
    
    .registration-buttons {
        justify-content: center;
    }
    
    .requirement-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .highlight-number {
        font-size: 1rem;
        padding: 5px 12px;
    }
}

/* ============================================================================= */
/*                      СТИЛИ ДЛЯ РЕФЕРАЛЬНОЙ ПРОГРАММЫ                       */
/*                        (referal_info.php)                                 */
/* ============================================================================= */

/* ========== Заголовок реферальной программы ========== */
.referral-header {
    background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    position: relative;
    overflow: hidden;
}

.referral-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: shimmer 20s linear infinite;
}

.referral-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ========== Алерт с реферальной ссылкой ========== */
.referral-alert {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 2px solid #10b981;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.referral-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #10b981, #059669);
}

.referral-link-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    width: 100%;
}

.referral-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    color: #6b7280;
    transition: border-color 0.2s ease;
}

.referral-link-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.copy-link-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    min-width: 50px;
}

.copy-link-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.referral-instruction {
    color: #374151;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ========== Сетка карточек реферальной программы ========== */
.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.referral-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.referral-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ========== Таблица учета выплат ========== */
.referral-table-section {
    margin: 40px 0;
}

.referral-table-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #1f2937;
    font-size: 1.8rem;
}

.referral-table {
    width: 100%;
    border-collapse: collapse;
}

.referral-table th {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.referral-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    font-size: 0.9rem;
}

.referral-table th:first-child,
.referral-table td:first-child {
    padding-left: 20px;
}

.referral-table th:last-child,
.referral-table td:last-child {
    padding-right: 20px;
}

/* ========== Адаптивный дизайн для реферальной программы ========== */
@media (max-width: 768px) {
    .referral-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .referral-alert {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .referral-link-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .referral-table {
        font-size: 0.8rem;
    }
    
    .referral-table th,
    .referral-table td {
        padding: 10px 8px;
    }
    
    .referral-table th:first-child,
    .referral-table td:first-child,
    .referral-table th:last-child,
    .referral-table td:last-child {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ============================================================================= */
/*                      СТИЛИ ДЛЯ СТРАНИЦЫ ПОДДЕРЖКИ                          */
/*                        (support.php)                                       */
/* ============================================================================= */

/* ========== Основная страница поддержки ========== */
.support-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* ========== Заголовок страницы поддержки ========== */
.support-page .support-header {
    background: #7797C6;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    color: white !important;
}

.support-page .support-header h1 {
    color: white !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-align: center;
    position: relative;
    z-index: 2;
}

.support-page .support-header .subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.support-page .support-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: shimmer 20s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.support-page .support-header:hover::before {
    opacity: 1;
}

.support-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
}

/* ========== Алерт поддержки ========== */
.support-alert {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 2px solid #3b82f6;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.support-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
}

.support-alert h2 {
    color: #1f2937;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.support-alert p {
    color: #6b7280;
    margin: 0;
    font-size: 1.1rem;
}

/* ========== Секции поддержки ========== */
.support-page .site-section {
    background: white;
    padding: 30px;
    margin-bottom: 0;
    border-radius: 0 0 15px 15px;
}

.support-page .organization-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.support-page .organization-section h2 {
    color: #1f2937;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* ========== Анимации для контактных карточек ========== */
@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes shimmerMove {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ========== Сетка контактов ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 140px !important;
    max-height: 140px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Блик как отдельный элемент */
.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 10;
    border-radius: 15px;
}

.contact-card:hover .shine-effect {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}

.contact-card:focus {
    outline: 3px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    position: relative;
    z-index: 2;
}

.contact-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 90px !important;
    max-height: 90px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    height: 1.4em !important;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s ease;
    height: 1.4em !important;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-shrink: 0;
    pointer-events: none;
}

.contact-card:hover .contact-link {
    color: #1d4ed8;
}

.contact-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    height: 2.8em !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* ========== Секция организации ========== */
.organization-section {
    margin: 40px 0;
}

.organization-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1f2937;
    text-align: center;
}

.organization-card,
.banking-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    margin-bottom: 25px;
    overflow: hidden;
}

.org-header,
.bank-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.org-icon,
.bank-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.org-header h3,
.bank-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
}

.org-content,
.bank-content {
    padding: 25px;
}

.org-field,
.bank-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 20px;
}

.org-field:last-child,
.bank-field:last-child {
    border-bottom: none;
}

.field-label {
    font-weight: 600;
    color: #4b5563;
    min-width: 150px;
    flex-shrink: 0;
}

.field-value {
    color: #1f2937;
    text-align: right;
    flex: 1;
    position: relative;
}

.field-value.highlight {
    background: linear-gradient(135deg, #fee68a 0%, #fef3c7 100%);
    padding: 5px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background: #1d4ed8;
}

/* ========== Секция баннеров ========== */
.banners-section {
    margin: 40px 0;
}

.banners-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1f2937;
    text-align: center;
}

.banners-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.banners-info p {
    margin: 0;
    color: #4b5563;
    font-size: 1.1rem;
}

.banner-preview {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-selector {
    text-align: center;
}

.selector-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.banner-select {
    padding: 12px 20px;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    color: #374151;
    min-width: 300px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.banner-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ========== Адаптивный дизайн для поддержки ========== */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-card {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        min-height: 120px;
        height: auto;
        align-items: flex-start;
        padding: 20px;
    }
    
    .contact-info {
        min-height: 80px;
        text-align: left;
        align-items: flex-start;
    }
    
    .contact-info h3 {
        height: 1.2em;
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .contact-link {
        height: 1.2em;
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .contact-desc {
        height: 2.4em;
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .support-alert {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .org-field,
    .bank-field {
        flex-direction: column;
        text-align: left;
        gap: 8px;
    }
    
    .field-label {
        min-width: auto;
    }
    
    .field-value {
        text-align: left;
    }
    
    .banner-select {
        min-width: 280px;
        max-width: 100%;
    }
    
    .selector-label {
        font-size: 1rem;
    }
}

/* ===== СТИЛИ ДЛЯ ВИДЕОКУРСА ===== */

/* Стили для видеокурса */
.video-course-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.course-header {
    text-align: center;
    background: linear-gradient(135deg, #7797C6 0%, #a8c0e8 100%);
    color: white !important;
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
    animation: shimmer 20s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.course-header:hover::before {
    opacity: 1;
}

.course-badge {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-subtitle {
    font-size: 1.2rem;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.course-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    color: black;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 450px;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 25px;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    min-height: 300px;
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1f2937;
    line-height: 1.4;
}

.video-duration {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 auto 0 !important;
    min-height: 4.5em !important;
    flex-grow: 1;
    display: block;
}

.video-player {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    margin-left: -25px;
    margin-right: -25px;
    margin-bottom: -25px;
    padding: 15px 25px 25px;
    height: 177px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 10px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #1d4ed8;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #9ca3af;
}

.breadcrumb-current {
    color: #6b7280;
    font-weight: 500;
}

@media (max-width: 768px) {
    .course-header {
        padding: 40px 20px;
    }
    
    .course-title {
        font-size: 2rem;
    }
    
    .course-stats {
        gap: 15px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-card {
        margin: 0 10px;
    }
}

/* ============================================================================= */
/*                     СТИЛИ ДЛЯ РЕЗУЛЬТАТОВ ЭКЗАМЕНА                        */
/*                     (checking_exam_fixed.php)                             */
/* ============================================================================= */

/* ========== Контейнер результатов экзамена ========== */
.exam-result-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.exam-result {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 600px;
    text-align: center;
}

.success-result {
    border-top: 5px solid #6b7280;
}

.error-result {
    border-top: 5px solid #ef4444;
}

.result-icon {
    margin-bottom: 2rem;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.result-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* ========== Детали завершения и руководство ========== */
.completion-details,
.retry-guidance {
    text-align: left;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.achievement-list,
.guidance-steps {
    margin: 1rem 0;
    padding-left: 1rem;
}

.achievement-list li,
.guidance-steps li {
    margin: 0.5rem 0;
    color: #374151;
}

.success-note,
.motivation {
    font-weight: 600;
    color: #059669;
    margin-top: 1rem;
}

.result-actions {
    margin-top: 2rem;
}

/* ========== Кнопки результатов ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success {
    background: #6b7280;
    color: white;
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn-primary {
    background: #7797C6;
    color: white;
}

.btn-primary:hover {
    background: #6687b6;
    transform: translateY(-2px);
}

/* ========== Адаптивность результатов экзамена ========== */
@media (max-width: 768px) {
    .exam-result {
        padding: 2rem;
        margin: 1rem;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
}

/* ========== Дополнительные фиксы для promotion-card ========== */
.site-content .promotion-card .card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.site-content .promotion-card .payment-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #7797C6 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    width: auto !important;
    min-height: auto !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
}

.site-content .promotion-card .payment-amount {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.site-content .promotion-card .payment-desc {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
}

/* ========== Мобильная адаптация для реферальной страницы ========== */

/* Базовые контейнеры */
.site-content {
    width: 100%;
    max-width: 1200px !important;
    box-sizing: border-box !important;
    margin: 0 auto;
}

/* Контроль переполнения для всех элементов */
.site-content * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.site-content img {
    max-width: 100%;
    height: auto;
}

.site-content table {
    width: 100%;
    table-layout: fixed;
    overflow-x: auto;
}

/* Мобильные стили для реферальной страницы */
@media (max-width: 768px) {
    .referral-header {
        padding: 24px 16px;
        margin-top: 20px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .referral-header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .referral-header .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .referral-badge {
        width: 50px;
        height: 50px;
        top: 16px;
        right: 16px;
    }
    
    .referral-alert {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .alert-icon {
        align-self: center;
        font-size: 2rem;
    }
    
    .referral-link-container {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .referral-link-input {
        width: 100%;
        font-size: 16px; /* Предотвращение зума на iOS */
        padding: 14px 16px;
        word-break: break-all;
        text-align: center;
    }
    
    .copy-link-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        justify-content: center;
    }
    
    .referral-instruction {
        font-size: 0.9rem;
        text-align: center;
        line-height: 1.4;
    }
    
    /* Карточки реферальной программы */
    .referral-card {
        margin-bottom: 16px;
        padding: 16px;
    }
    
    .referral-card .payment-item {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .referral-card .payment-amount {
        font-size: 2rem !important;
    }
    
    .referral-card .payment-desc {
        font-size: 0.9rem !important;
    }
    
    /* Сетки и списки */
    .referral-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 16px 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .site-section {
        padding: 16px 12px;
    }
    
    /* Хлебные крошки */
    .site-breadcrumbs {
        padding: 12px 16px;
        overflow-x: auto;
        margin: 0;
    }
    
    .breadcrumb-list {
        flex-wrap: nowrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .referral-header {
        padding: 20px 12px;
        margin-top: 16px !important;
    }
    
    .referral-header h1 {
        font-size: 1.5rem;
    }
    
    .referral-header .subtitle {
        font-size: 0.9rem;
    }
    
    .referral-badge {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
        font-size: 1.2rem;
    }
    
    .referral-alert {
        padding: 12px;
        gap: 10px;
    }
    
    .referral-link {
        font-size: 0.8rem;
        padding: 10px;
        word-break: break-all;
    }
    
    .site-section {
        padding: 12px 8px;
        position: relative;
        background: white;
    }
    
    .referral-card {
        padding: 12px;
    }
    
    .referral-card .payment-amount {
        font-size: 1.8rem !important;
    }
    
    .referral-card .payment-desc {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    /* Кнопки на маленьких экранах */
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding: 14px 20px;
        font-size: 16px; /* Предотвращение зума на iOS */
    }
    .breadcrumbs{
        margin: 0;
    }
}

/* ==== СТИЛИ ДЛЯ АГЕНТСКОГО ДОГОВОРА ==== */

/* Навигация (хлебные крошки) */
.contract-breadcrumbs {
    margin: 20px auto;
    max-width: 900px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border-left: 4px solid #7796c6;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #7796c6;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #9ca3af;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 600;
}

/* Основной контейнер документа */
.contract-document {
    max-width: 900px !important;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Шапка документа */
.contract-header {
    background: linear-gradient(135deg, #7796c6 0%, #6b82b3 100%);
    padding: 30px;
    color: white;
}

.contract-download {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contract-icon {
    width: 50px;
    height: 50px;
}

.contract-download-link {
    color: white !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.contract-download-link:hover {
    opacity: 0.8;
    color: white;
}

/* Содержимое договора */
.contract-content {
    padding: 40px;
    line-height: 1.6;
    color: #374151;
}

/* Заголовок договора */
.contract-title {
    text-align: center;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 30px !important;
    border-bottom: 3px solid #7796c6;
    padding-bottom: 20px;
}

/* Мета-информация (место и дата) */
.contract-meta {
    text-align: right;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contract-location {
    margin-bottom: 10px;
    font-weight: 600;
}

.contract-date {
    margin-bottom: 0;
}

/* Стороны договора - упрощенный стиль */
.contract-parties {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    position: relative;
}

.contract-parties::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7796c6, #ffa216);
    border-radius: 15px 15px 0 0;
}

.contract-parties p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contract-conjunction {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    margin: 20px 0;
}

.contract-conclusion {
    font-weight: 600;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #d1d5db;
}

/* Разделы договора */
.contract-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    position: relative;
}

.contract-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7796c6, #ffa216);
    border-radius: 15px 15px 0 0;
}

/* Contract editor specific overrides and quick navigation */
html {
    scroll-behavior: smooth;
}

.section-status::before {
    content: none !important;
}

.contract-section.contract-section-static:hover {
    border-color: #e5e7eb !important;
    box-shadow: 0 0 10px #58d68e !important;
    transform: none !important;
}

.contract-section.contract-section-static::before,
.contract-section.contract-section-static:hover::before {
    opacity: 0 !important;
    content: none !important;
}

.contract-section.contract-section-static .section-text:hover {
    background: #f8f9fa !important;
}

.contract-quick-nav {
    position: fixed;
    right: 18px;
    bottom: 180px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contract-quick-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffa216;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.contract-quick-nav a:hover {
    background: #e28f00;
}

.contract-section-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 25px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Подразделы */
.contract-subsection {
    margin-bottom: 25px;
}

.contract-subsection-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 15px !important;
    padding-left: 15px;
    border-left: 3px solid #7796c6;
}

/* Определения */
.contract-definitions {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.contract-definition {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #7796c6;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.contract-definition:last-child {
    margin-bottom: 0;
}

/* Пункты договора */
.contract-clause {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    position: relative;
    padding-left: 60px; /* Увеличен отступ для трехзначных номеров */
}

.clause-number {
    position: absolute;
    left: 15px;
    top: 15px;
    font-weight: 700;
    color: #7796c6;
    font-size: 1.1rem;
    min-width: 35px; /* Минимальная ширина для трехзначных номеров */
}

/* Списки */
.contract-list {
    list-style-type: none;
    padding-left: 0;
    margin: 15px 0;
}

.contract-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.contract-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #7796c6;
    font-weight: bold;
    font-size: 1.2rem;
}

.contract-task-features {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Структура платежей */
.contract-payment-structure {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.payment-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #ffa216;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.payment-item:last-child {
    margin-bottom: 0;
}

/* Платежи администратора */
.contract-admin-payments {
    background: linear-gradient(135deg, #fef3e2 0%, #fed7aa 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

/* Примечания */
.contract-note {
    background: #fef3e2;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffa216;
    font-style: italic;
    margin: 20px 0;
}

/* Подписи */
.contract-signatures {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.signature-block {
    background: #f9fafb;
    padding: 25px;
    border-radius: 15px;
}

.signature-block h3 {
    color: #7796c6 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #7796c6;
    padding-bottom: 10px;
}

.signature-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.signature-line {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #d1d5db;
    font-weight: 600;
}

/* Приложения */
.contract-appendix {
    background: #f3f4f6;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    border: 2px dashed #9ca3af;
}

.appendix-title {
    text-align: center !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    margin-bottom: 20px !important;
}

.appendix-subtitle {
    text-align: center !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 30px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Формы в приложении */
.form-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-section h4 {
    color: #7796c6;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #7796c6;
    padding-bottom: 8px;
}

.form-field {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.form-field label {
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 10px;
}

.form-line {
    display: inline-block;
    border-bottom: 2px solid #d1d5db;
    min-width: 200px;
    margin-left: 10px;
    margin-right: 10px;
}

.form-numbered-list {
    margin-top: 10px;
}

.form-numbered-list > div {
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .contract-content {
        padding: 30px 25px;
    }
    
    .contract-title {
        font-size: 1.7rem;
    }
    
    .contract-section-title {
        font-size: 1.3rem;
    }
    
    .contract-signatures {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .contract-document {
        margin: 10px;
        border-radius: 15px;
    }
    
    .contract-header {
        padding: 20px;
    }
    
    .contract-download {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contract-content {
        padding: 25px 20px;
    }
    
    .contract-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .contract-section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .contract-section-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .contract-parties {
        padding: 20px 15px;
    }
    
    .contract-clause {
        padding: 12px;
        padding-left: 50px; /* Адаптированный отступ для мобильных */
        margin-bottom: 12px;
    }
    
    .clause-number {
        left: 12px;
        top: 12px;
        font-size: 1rem;
        min-width: 30px; /* Минимальная ширина для мобильных */
    }
    
    .signature-block {
        padding: 20px 15px;
    }

    .contract-quick-nav {
        right: 12px;
        bottom: 12px;
    }

    .contract-quick-nav a {
        min-width: 112px;
        padding: 9px 12px;
        font-size: 14px;
    }
    
    .contract-appendix {
        padding: 20px 15px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .form-field {
        padding: 12px;
    }
    
    .form-line {
        min-width: 150px;
        display: block;
        margin: 5px 0;
    }
    
    .contract-breadcrumbs {
        margin: 10px;
        padding: 15px;
        font-size: 0.85rem;
    }
    
    .breadcrumb-current {
        display: block;
        margin-top: 5px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .contract-content {
        padding: 20px 15px;
    }
    
    .contract-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
    
    .contract-section-title {
        font-size: 1.1rem !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contract-download-link {
        font-size: 1rem !important;
    }
    
    .payment-item,
    .contract-definition,
    .contract-clause {
        padding: 10px;
        padding-left: 45px; /* Увеличенный отступ для маленьких экранов */
    }
    
    .clause-number {
        min-width: 25px; /* Минимальная ширина для очень маленьких экранов */
    }
    
    .signature-details p {
        font-size: 0.9rem;
    }
    
    .appendix-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    
    .appendix-subtitle {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }
}

/* Стили для таблиц задач */
.tasks-table {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    background: #ffffff;
}

.tasks-header {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    background: #7796c6;
    color: white;
    font-weight: 700;
    padding: 15px 10px;
    border-bottom: 2px solid #5a7ba8;
}

.task-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 10px;
    transition: background-color 0.2s ease;
}

.task-row:hover {
    background-color: #f8fafc;
}

.task-row:nth-child(even) {
    background-color: #f9fafb;
}

.task-row:nth-child(even):hover {
    background-color: #f1f5f9;
}

.contract-task-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #374151;
    background-color: #e5e7eb;
    border-radius: 6px;
    min-width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.tasks-header .contract-task-number {
    color: white;
    background-color: transparent;
    font-size: 1rem;
}

.task-name {
    display: flex;
    align-items: center;
    padding: 0 15px;
    line-height: 1.4;
    color: #334155;
    font-size: 0.95rem;
}

.tasks-header .task-name {
    color: white;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
}

.task-days {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #7796c6;
    font-size: 0.9rem;
}

.tasks-header .task-days {
    color: white;
    font-size: 1rem;
}

/* Мобильная адаптация для таблиц задач */
@media (max-width: 768px) {
    .tasks-header,
    .task-row {
        grid-template-columns: 50px 1fr 60px;
        padding: 10px 8px;
    }
    
    .task-name {
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .contract-task-number,
    .task-days {
        font-size: 0.85rem;
    }
    
    .tasks-header .contract-task-number,
    .tasks-header .task-name,
    .tasks-header .task-days {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tasks-header,
    .task-row {
        grid-template-columns: 40px 1fr 50px;
        padding: 8px 5px;
    }
    
    .task-name {
        padding: 0 8px;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .contract-task-number,
    .task-days {
        font-size: 0.8rem;
    }
    
    .tasks-header .contract-task-number,
    .tasks-header .task-name,
    .tasks-header .task-days {
        font-size: 0.85rem;
    }
}

/* CEO Page Gallery Styles */
.course-gallery-section {
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.course-gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7797C6;
    margin-bottom: 20px;
}

.gallery-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .course-gallery-section {
        padding: 60px 0;
    }
    
    .gallery-header h2 {
        font-size: 2rem;
    }
    
    .gallery-header p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .course-gallery-section {
        padding: 40px 0;
    }
    
    .course-gallery-section .container {
        padding: 0 15px;
    }
    
    .gallery-header {
        margin-bottom: 40px;
    }
    
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .gallery-header p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        gap: 15px;
        margin-top: 30px;
    }
    
    .gallery-item {
        border-radius: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}
.auth-notification {
    text-align: center;
    box-shadow: 0px 0px 7px 3px #e75656;
    width: 700px;
    margin: 0 auto;
    padding: 40px 0;
    border-radius: 8px;
}