/* Основные стили */
:root {
    --primary-color: #c9a961;
    --secondary-color: #000000e8;
    --dark-color: #16213e;
    --light-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

* {
    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: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    background: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.navbar-brand a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo {
    height: 50px;
    margin-right: 10px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

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

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.59), rgba(0, 0, 0, 0.59)), url('/assets/images/hero-bg.jpg') center/cover;
    color: #fff;
    padding: 150px 0;
    text-align: center;
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background: #b8984f;
    transform: translateY(-2px);
}

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

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

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

/* Секции */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.services-section {
    padding: 80px 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

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

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 1rem 0;
}

/* Features */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
}

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

.feature h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* CTA секция */
.cta-section {
    background: var(--secondary-color);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Авторизация */
.auth-container {
        background: linear-gradient(rgba(0, 0, 0, 0.59), rgba(0, 0, 0, 0.59)), url('/assets/images/bg_2.jpg') center/cover;
    /*color: #fff;*/
    padding: 150px 0;
    /*text-align: center;*/

    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /*padding: 50px 20px;*/
    /*background: var(--light-color);*/
}

.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Dashboard */
.client-dashboard {
    padding: 40px 0;
    background: var(--light-color);
    min-height: 70vh;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-content h3 {
    font-size: 2rem;
    color: var(--secondary-color);
}

.stat-content p {
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.card-body {
    padding: 20px;
}

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

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.quick-action:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.quick-action i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Дела */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.case-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.case-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.case-info small {
    color: #666;
}

/* Бейджи */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-primary { background: var(--info-color); color: #fff; }
.badge-warning { background: var(--warning-color); color: #000; }
.badge-success { background: var(--success-color); color: #fff; }
.badge-secondary { background: #6c757d; color: #fff; }
.badge-danger { background: var(--danger-color); color: #fff; }
.badge-info { background: var(--info-color); color: #fff; }
.badge-low { background: #28a745; color: #fff; }
.badge-medium { background: #ffc107; color: #000; }
.badge-high { background: #fd7e14; color: #fff; }
.badge-urgent { background: #dc3545; color: #fff; }

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Страница консультации */
.consultation-page {
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.consultation-form {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.auth-required {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.auth-required p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Детали дела */
.case-detail {
    padding: 40px 0;
}

.case-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.case-header h1 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.case-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.case-number {
    color: #666;
    font-weight: 500;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.case-main {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.case-section {
    margin-bottom: 30px;
}

.case-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.case-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-info-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.case-info-card h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.case-info-card dl {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.case-info-card dt {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.case-info-card dd {
    margin: 0;
    color: var(--text-color);
}

/* Сообщения */
.messages-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    max-width: 80%;
}

.message.incoming {
    background: #fff;
    margin-right: auto;
}

.message.outgoing {
    background: var(--primary-color);
    color: #fff;
    margin-left: auto;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.message-header strong {
    color: var(--secondary-color);
}

.message.outgoing .message-header strong {
    color: #fff;
}

.message-body {
    line-height: 1.6;
}

.message-form {
    margin-top: 20px;
}

.message-form textarea {
    margin-bottom: 10px;
    resize: vertical;
}

/* Документы */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--light-color);
    border-radius: 6px;
}

.document-icon {
    font-size: 1.5rem;
}

.document-info {
    flex: 1;
}

.document-info a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.document-info a:hover {
    color: var(--primary-color);
}

.document-info small {
    color: #666;
    font-size: 0.85rem;
}

/* Список дел */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.case-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.case-card-header {
    padding: 20px;
    background: var(--secondary-color);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.case-card-header h3 {
    font-size: 1.2rem;
}

.case-card-body {
    padding: 20px;
}

.case-card-body p {
    margin-bottom: 15px;
    color: #666;
}

.case-card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.case-lawyer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
}

.case-card-footer {
    padding: 15px 20px;
    background: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 10px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.empty-state p {
    margin-bottom: 20px;
    color: #666;
}

/* Утилиты */
.mb-3 {
    margin-bottom: 1rem;
}

.text-muted {
    color: #666;
}

.text-center {
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        padding: 20px;
    }

    .navbar-menu.active {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .message {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Notifications */
.notifications {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notifications .alert {
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}