/* Стили в стиле государственного российского сайта */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Main */
.main {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* Search Section */
.search-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-section h2 {
    margin-bottom: 20px;
    color: #1e3c72;
    font-size: 24px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 300px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #1e3c72;
    color: white;
}

.btn-primary:hover {
    background-color: #2a5298;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

/* Results */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.lawyer-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.lawyer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.lawyer-item h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 18px;
}

.lawyer-item .organization-type {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.lawyer-item .info {
    margin: 8px 0;
    color: #555;
    font-size: 13px;
}

.lawyer-item .rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: #f39c12;
    font-weight: bold;
}

.lawyer-item .diploma-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-top: 5px;
}

/* Lawyer Card */
.lawyer-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.lawyer-card h2 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 28px;
}

.lawyer-card .info-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.lawyer-card .info-section h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 18px;
}

.lawyer-card .info-row {
    display: flex;
    margin: 10px 0;
    flex-wrap: wrap;
}

.lawyer-card .info-label {
    font-weight: bold;
    min-width: 150px;
    color: #555;
}

.lawyer-card .info-value {
    color: #333;
}

.lawyer-card .rating-large {
    font-size: 24px;
    color: #f39c12;
    font-weight: bold;
    margin: 15px 0;
}

/* Reviews */
.reviews-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.reviews-section h2 {
    color: #1e3c72;
    margin-bottom: 20px;
}

.reviews-container {
    margin-bottom: 30px;
}

.review-item {
    padding: 15px;
    border-left: 4px solid #1e3c72;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.review-item .review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-item .review-author {
    font-weight: bold;
    color: #1e3c72;
}

.review-item .review-rating {
    color: #f39c12;
    font-weight: bold;
}

.review-item .review-date {
    color: #666;
    font-size: 12px;
}

.review-item .review-comment {
    color: #555;
    margin-top: 10px;
}

.add-review-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

.add-review-form h3 {
    color: #1e3c72;
    margin-bottom: 20px;
}

/* Forms */
.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section h2 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.form-description {
    color: #666;
    margin-bottom: 30px;
}

.application-form {
    max-width: 800px;
}

.form-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e3c72;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e3c72;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination button,
.pagination a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover,
.pagination a:hover {
    background: #1e3c72;
    color: white;
}

.pagination .active {
    background: #1e3c72;
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

/* Admin styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #1e3c72;
    color: white;
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: #f5f5f5;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background-color: #28a745;
    color: white;
}

.status-pending {
    background-color: #ffc107;
    color: #333;
}

.status-draft {
    background-color: #6c757d;
    color: white;
}

.status-rejected {
    background-color: #dc3545;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
    }
    
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
}



