/* Основные стили - Светлая тема */
:root {
    --primary-color: #8b0000;
    --secondary-color: #a52a2a;
    --background-color: #ffffff;
    --text-color: #000000;
    --card-color: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --telegram-color: #0088cc;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #34b7f1);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.telegram-btn:hover {
    background: linear-gradient(135deg, #0077b5, #2aa8e0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-btn i {
    font-size: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .bee {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Кнопка входа в хедере */
.btn-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b0000 0%, #5a0000 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.btn-auth::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.5s;
}

.btn-auth:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

.btn-auth.authenticated {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.btn-auth.authenticated:hover {
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.telegram-btn {
    background-color: var(--telegram-color);
    color: white;
    border: none;
}

.telegram-btn:hover {
    background-color: #0077b3;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pricing Table */
.pricing-table {
    overflow-x: auto;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-color);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: rgba(139, 0, 0, 0.05);
}

/* Order Form */
.order-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input {
    width: auto;
}

/* Согласие с документами в форме заказа */
.consent-box {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 20px 0;
}

.consent-box label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.consent-box a {
    color: var(--primary-color);
    text-decoration: underline;
}

.consent-box a:hover {
    color: var(--secondary-color);
}

.required {
    color: var(--danger-color);
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #aaa;
}

/* Стили для юридической информации в футере */
.legal-notice {
    background-color: rgba(139, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 3px solid var(--primary-color);
}

.legal-notice p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.legal-notice i {
    color: var(--primary-color);
    margin-right: 8px;
}

.tax-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #666;
}

.tax-info small {
    color: #888;
    font-size: 0.8rem;
}

/* Методы оплаты в футере */
.payment-methods {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods i {
    font-size: 1.5rem;
    color: #666;
}

.payment-methods span {
    color: #666;
    font-size: 0.9rem;
}

/* ========== МОДАЛЬНОЕ ОКНО АВТОРИЗАЦИИ ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    max-height: 700px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    display: flex;
    animation: modalSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 0, 0, 0.1);
    border: none;
    color: #8b0000;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #8b0000;
    color: white;
    transform: rotate(90deg);
}

/* Левый блок */
.modal-left {
    flex: 1;
    background: linear-gradient(135deg, #8b0000 0%, #5a0000 100%);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modal-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modal-left::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.welcome-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo-auth h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.logo-auth .bee {
    color: #ffd700;
}

.logo-auth p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.welcome-features {
    margin: 40px 0;
    flex-grow: 1;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #ffd700;
}

.feature-text h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.feature-text p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.85rem;
}

.auth-stats {
    display: flex;
    gap: 30px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Правый блок */
.modal-right {
    flex: 1.2;
    padding: 50px 40px;
    overflow-y: auto;
}

.auth-tabs {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.auth-tab.active {
    background: white;
    color: #8b0000;
    box-shadow: 0 2px 10px rgba(139, 0, 0, 0.1);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.auth-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Социальные кнопки */
.auth-social-btn {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc 0%, #0077b3 100%);
    border: none;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: transform 0.5s;
}

.telegram-btn:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

.social-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Разделитель */
.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

/* Формы */
.auth-email-form {
    animation: fadeIn 0.5s ease;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.password-input {
    position: relative;
}

.password-input .fa-lock {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.password-input input {
    width: 100%;
    padding: 15px 50px 15px 45px !important; /* Важно: больше отступ справа */
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    z-index: 3;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #8b0000;
}

/* Убираем старые стили для кнопок переключения пароля */
.input-with-icon input {
    width: 100%;
    padding: 15px 15px 15px 45px; /* Стандартный отступ справа */
    /* ... остальные стили ... */
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-label input:checked + .checkmark {
    background: #8b0000;
    border-color: #8b0000;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-password {
    color: #8b0000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #5a0000;
    text-decoration: underline;
}

/* Кнопка отправки */
.auth-submit-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.btn-icon {
    transition: transform 0.3s;
}

.auth-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Согласие в форме */
.auth-form .consent-box {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.auth-form .consent-box label {
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}
btn.username-display {
    background: rgba(139, 0, 0, 0.1) !important;
    border: 1px solid rgba(139, 0, 0, 0.2) !important;
    color: #8b0000 !important;
    cursor: default !important;
    pointer-events: none !important;
    opacity: 0.8 !important;
}

.btn.username-display:hover {
    background: rgba(139, 0, 0, 0.1) !important;
    transform: none !important;
    box-shadow: none !important;
}

.username-text {
    font-weight: 500;
    color: #8b0000;
}

/* Делаем кнопку "Личный кабинет" более заметной */
#account-btn.visible {
    background: linear-gradient(135deg, #8b0000, #a52a2a) !important;
    border-color: #8b0000 !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.2);
}

#account-btn.visible:hover {
    background: linear-gradient(135deg, #a52a2a, #8b0000) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

/* Навигационные элементы в хедере */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .nav-controls {
        gap: 5px;
    }
    
    .btn.username-display span {
        display: none; /* На мобильных скрываем текст, оставляем только иконку */
    }
    
    .btn.username-display .username-text {
        display: none;
    }
    
    #account-btn.visible {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Анимация успешного входа */
@keyframes successCheckmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-animation {
    animation: successCheckmark 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .modal-container {
        flex-direction: column;
        height: 90vh;
        max-height: none;
        width: 95%;
    }
    
    .modal-left {
        display: none;
    }
    
    .modal-right {
        padding: 30px 20px;
    }
    
    .auth-tabs {
        margin-bottom: 20px;
    }
    
    .auth-form h3 {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== ЛИЧНЫЙ КАБИНЕТ ==================== */
.account-container {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    min-height: calc(100vh - 200px);
}

/* Боковая панель */
.account-sidebar {
    width: 280px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: fit-content;
}

.user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8b0000, #5a0000);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

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

.user-stats .stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b0000;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-item:hover {
    background: #f8f9fa;
    color: #8b0000;
}

.nav-item.active {
    background: rgba(139, 0, 0, 0.1);
    color: #8b0000;
    font-weight: 500;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.badge {
    background: #8b0000;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: auto;
}

/* Основной контент */
.account-content {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    color: #333;
    font-size: 1.5rem;
}

/* Заказы */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #8b0000;
    transition: transform 0.3s;
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.order-id {
    font-weight: bold;
    color: #8b0000;
    font-size: 1.1rem;
}

.order-date {
    color: #666;
    font-size: 0.9rem;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-new { background: #d4edda; color: #155724; }
.status-in-progress { background: #fff3cd; color: #856404; }
.status-review { background: #d1ecf1; color: #0c5460; }
.status-completed { background: #cce5ff; color: #004085; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.order-details {
    margin: 15px 0;
}

.order-details p {
    margin: 5px 0;
    color: #555;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

/* Сообщения */
.messages-container {
    display: flex;
    gap: 20px;
    height: 500px;
}

.chat-list {
    width: 300px;
    border-right: 1px solid #eee;
    overflow-y: auto;
}

.chat-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-item:hover {
    background: #f8f9fa;
}

.chat-item.active {
    background: rgba(139, 0, 0, 0.05);
    border-right: 3px solid #8b0000;
}

.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.chat-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 15px;
    position: relative;
}

.message-incoming {
    background: #f0f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message-outgoing {
    background: #8b0000;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-family: inherit;
}

.empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.empty-chat i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Форма профиля */
.profile-form {
    max-width: 500px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    justify-content: flex-start; /* Важно: выравнивание по левому краю */
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.checkbox-group span {
    flex-grow: 1;
}

/* Стили для чата */
.chat-container {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.chat-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b0000, #5a0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.chat-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.chat-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.online {
    background-color: #28a745;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fafafa;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 15px;
    position: relative;
}

.message.bot {
    background: #e9ecef;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.user {
    background: #8b0000;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0 0 8px 0;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 3px 0;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    text-align: right;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input-container {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    background: white;
}

.quick-questions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.quick-question {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-question:hover {
    background: #e9ecef;
    border-color: #8b0000;
    color: #8b0000;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-wrapper textarea {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    resize: none;
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 46px;
    max-height: 120px;
}

.chat-input-wrapper textarea:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.chat-hint {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    border-left: 3px solid #0088cc;
}

.chat-hint i {
    color: #0088cc;
    margin-right: 5px;
}

.welcome-message .message.bot {
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 992px) {
    .account-container {
        flex-direction: column;
    }
    
    .account-sidebar {
        width: 100%;
    }
    
    .messages-container {
        flex-direction: column;
        height: auto;
    }
    
    .chat-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* Темная тема */
[data-theme="dark"] {
    --primary-color: #8b0000;
    --secondary-color: #a52a2a;
    --background-color: #000000;
    --text-color: #ffffff;
    --card-color: #1a1a1a;
    --border-color: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body[data-theme="dark"] {
    background-color: var(--background-color);
    color: var(--text-color);
}

body[data-theme="dark"] .header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

body[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

body[data-theme="dark"] .hero p {
    color: #aaa;
}

body[data-theme="dark"] .service-card,
body[data-theme="dark"] .order-form,
body[data-theme="dark"] table {
    background-color: var(--card-color);
}


body[data-theme="dark"] .btn-outline {
    color: var(--text-color);
}

body[data-theme="dark"] .nav-menu a {
    color: var(--text-color);
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
    background-color: #2a2a2a;
    color: var(--text-color);
    border-color: var(--border-color);
}

body[data-theme="dark"] .modal-container {
    background: var(--card-color);
    color: var(--text-color);
}

body[data-theme="dark"] .auth-tabs {
    background: #2a2a2a;
}

body[data-theme="dark"] .auth-tab {
    color: #aaa;
}

body[data-theme="dark"] .auth-tab.active {
    background: var(--background-color);
    color: var(--primary-color);
}

body[data-theme="dark"] .input-with-icon input {
    background: #2a2a2a;
    border-color: var(--border-color);
    color: var(--text-color);
}

body[data-theme="dark"] .consent-box,
body[data-theme="dark"] .auth-form .consent-box {
    background: #2a2a2a;
    border-color: var(--border-color);
}

/* Стили для кнопок в навигации */
.nav-controls .btn {
    transition: all 0.3s ease;
}

/* Логотип */
.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

/* Форма авторизации */
.modal-container {
    transition: background 0.3s ease, color 0.3s ease;
}

.auth-form h3,
.auth-subtitle,
.feature-text h4,
.feature-text p,
.stat-number,
.stat-label,
.form-group label,
.form-options a,
.auth-footer p {
    transition: color 0.3s ease;
}

.input-with-icon {
    transition: background 0.3s ease, border-color 0.3s ease;
}

.input-with-icon input {
    transition: color 0.3s ease;
}
