/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 0;
    color: #34495e;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

/* Иконка гамбургер меню */
.hamburger {
    display: inline-block;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #34495e;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

/* Анимация иконки при открытии */
.menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
    background: #e74c3c;
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
    background: #e74c3c;
}

/* Текст кнопки (для скринридеров) */
.menu-toggle .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-nav {
    transition: all 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-form {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    min-width: 0;
}

.search-form button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-form button:hover {
    background: #c0392b;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

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

.view-all {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* About Portal */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    color: #2c3e50;
    margin: 20px 0 15px;
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: #27ae60;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Lawyers Grid */
.lawyers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.lawyer-photo {
    height: 200px;
    overflow: hidden;
    background: #ecf0f1;
}

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #95a5a6;
}

.lawyer-info {
    padding: 20px;
}

.lawyer-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.specialization {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 10px;
}

.experience, .education {
    color: #7f8c8d;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.article-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.article-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #95a5a6;
    font-size: 14px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Subscription */
.subscription {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.subscription-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.subscription-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.subscription-box p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.subscribe-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    min-width: 0;
}

.privacy-note {
    font-size: 12px;
    opacity: 0.7;
}

/* Donation */
.donation {
    background: #f8f9fa;
}

.donation-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.donation-box h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.donation-box p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.btn-primary {
    background: #3498db;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-donate {
    background: #fcd92b;
    color: #333;
    padding: 15px 30px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-donate:hover {
    background: #e6c429;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p, .footer-section a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

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

.footer-section ul {
    list-style: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* Фильтры */
.filters {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-group input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    min-width: 0;
}

.filter-group button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

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

.filter-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Добавить юриста */
.add-lawyer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.add-lawyer h3 {
    margin-bottom: 15px;
}

/* Подробные карточки юристов */
.lawyer-card.detailed {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: start;
}

.lawyer-card.detailed .lawyer-photo {
    height: 150px;
}

.lawyer-card.detailed .rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.lawyer-stats {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.lawyer-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.lawyer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.vk { background: #4C75A3; }
.social-link.whatsapp { background: #25D366; }
.social-link.telegram { background: #0088cc; }

/* Страница профиля доп стили */
.rating-badge {
    text-align: center;
    margin: 20px 0;
}

.rating-badge .rating {
    font-size: 2rem;
    font-weight: bold;
    color: #f39c12;
}

.rating-text {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.stat-item i {
    font-size: 24px;
    color: #3498db;
    width: 40px;
}

.stat-item strong {
    display: block;
    font-size: 18px;
    color: #2c3e50;
}

.stat-item span {
    font-size: 14px;
    color: #7f8c8d;
}

.education-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.education-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.spec-badge {
    background: #e8f4fc;
    color: #3498db;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Результаты поиска */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

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

.articles-grid,
.podcasts-grid {
    animation: fadeIn 0.5s ease-out;
}

/* Индикатор загрузки */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading-spinner i {
    font-size: 2rem;
    color: #3498db;
    animation: spin 1s linear infinite;
}

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

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* =================== АДАПТИВНОСТЬ =================== */

/* Большие мониторы (более 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
}

/* Планшеты и ноутбуки (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .lawyers-grid,
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Планшеты (576px - 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Мобильное меню */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        justify-content: space-between;
        min-height: 50px;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav a i {
        font-size: 18px;
        transition: transform 0.3s;
    }
    
    .main-nav a:hover i {
        transform: translateX(5px);
    }
    
    .header-inner {
        flex-direction: row;
        gap: 0;
    }
    
    /* Hero секция */
    .hero {
        padding: 50px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .search-form {
        flex-direction: column;
        margin-bottom: 30px;
    }
    
    .search-form input,
    .search-form button {
        width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Секции */
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    /* Карточки */
    .lawyers-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lawyer-card.detailed {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .lawyer-card.detailed .lawyer-photo {
        height: 200px;
        width: 100%;
    }
    
    .lawyer-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    /* Фильтры */
    .filters {
        padding: 20px;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-group input,
    .filter-group button {
        width: 100%;
    }
    
    /* Подписка */
    .subscribe-form {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Донация */
    .donation-box {
        padding: 30px 20px;
    }
}

/* Мобильные устройства (425px - 576px) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Мобильное меню улучшения */
    .main-nav {
        top: 70px;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hamburger {
        width: 22px;
        height: 16px;
    }
    
    .hamburger span {
        height: 2px;
    }
    
    .hamburger span:nth-child(2) {
        top: 7px;
    }
    
    .hamburger span:nth-child(3) {
        top: 14px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        margin-top: 30px;
    }
    
    .number {
        font-size: 1.8rem;
    }
    
    /* Карточки */
    .lawyer-card,
    .article-card {
        padding: 15px;
    }
    
    .lawyer-info,
    .article-card {
        padding: 15px;
    }
    
    .lawyer-photo {
        height: 180px;
    }
    
    /* Кнопки */
    .btn,
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .btn-donate {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Социальные ссылки */
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Маленькие мобильные устройства (до 425px) */
@media (max-width: 425px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .logo p {
        font-size: 12px;
    }
    
    /* Мобильное меню для очень маленьких экранов */
    .main-nav {
        top: 65px;
        max-height: calc(100vh - 65px);
    }
    
    .main-nav a {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .main-nav a i {
        font-size: 16px;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Фильтры специализаций */
    .specialization-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Статистика в карточках */
    .lawyer-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Мета информация статей */
    .article-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    /* Плейсхолдеры фото */
    .photo-placeholder {
        font-size: 3rem;
    }
}

/* Портретные телефоны (до 375px) */
@media (max-width: 375px) {
    .header-inner {
        padding: 10px 0;
    }
    
    .menu-toggle {
        padding: 6px;
        width: 38px;
        height: 38px;
    }
    
    .hamburger {
        width: 20px;
        height: 14px;
    }
    
    .hamburger span:nth-child(2) {
        top: 6px;
    }
    
    .hamburger span:nth-child(3) {
        top: 12px;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .search-form input,
    .subscribe-form input,
    .filter-group input {
        padding: 12px 15px;
    }
    
    .search-form button,
    .subscribe-form button,
    .filter-group button {
        padding: 12px 20px;
    }
    
    /* Карточки */
    .lawyer-card,
    .article-card {
        border-radius: 8px;
    }
    
    /* Бейджи категорий */
    .article-category,
    .spec-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    /* Формы */
    .search-form,
    .subscribe-form {
        margin-bottom: 25px;
    }
}

/* Очень маленькие устройства (до 320px) */
@media (max-width: 320px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Иконка меню */
    .menu-toggle {
        width: 36px;
        height: 36px;
        padding: 5px;
    }
    
    .hamburger {
        width: 18px;
        height: 12px;
    }
    
    .hamburger span {
        height: 1.5px;
    }
    
    .hamburger span:nth-child(2) {
        top: 5px;
    }
    
    .hamburger span:nth-child(3) {
        top: 10px;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .number {
        font-size: 1.5rem;
    }
    
    /* Кнопки */
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Иконки */
    .stat-item i {
        font-size: 20px;
    }
}

/* Ландшафтная ориентация */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        margin-bottom: 20px;
    }
    
    .search-form {
        margin-bottom: 25px;
    }
    
    /* Мобильное меню в ландшафтной ориентации */
    .main-nav {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .main-nav ul {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Высокопиксельные дисплеи (ретина) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 200%);
    }
    
    .subscription {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 200%);
    }
    
    .add-lawyer {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 200%);
    }
    
    /* Четкие линии иконки меню */
    .hamburger span {
        box-shadow: 0 0 1px rgba(0,0,0,0.1);
    }
}

/* Тёмная тема (авто) */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header,
    .lawyer-card,
    .article-card,
    .filters {
        background: #2d2d2d;
        box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    }
    
    .logo h1,
    .section-title,
    .lawyer-info h3,
    .article-card h3 {
        color: #e0e0e0;
    }
    
    .main-nav a,
    .footer-section p {
        color: #b0b0b0;
    }
    
    .search-form input,
    .subscribe-form input,
    .filter-group input {
        background: #3d3d3d;
        color: #e0e0e0;
        border-color: #4d4d4d;
    }
    
    /* Иконка меню в тёмной теме */
    .hamburger span {
        background: #e0e0e0;
    }
    
    .menu-toggle.active .hamburger span {
        background: #e74c3c;
    }
    
    /* Мобильное меню в тёмной теме */
    .main-nav {
        background: #2d2d2d;
    }
    
    .main-nav a {
        border-bottom-color: #3d3d3d;
    }
    
    .donation-box {
        background: #2d2d2d;
    }
    
    .footer {
        background: #252525;
    }
}

/* Печатные стили */
@media print {
    .header,
    .footer,
    .subscription,
    .donate,
    .share-section,
    .back-link,
    .menu-toggle,
    .search-form,
    .subscribe-form,
    .filters,
    .hero-stats {
        display: none;
    }
    
    .article-content,
    .lawyer-card,
    .article-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .hero {
        background: white;
        color: black;
        padding: 20px 0;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
    
    .btn,
    .filter-btn {
        border: 1px solid black;
        background: white;
        color: black;
    }
}

/* Улучшение доступности для касаний */
@media (hover: none) and (pointer: coarse) {
    .main-nav a,
    .btn,
    .filter-btn,
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .main-nav a {
        padding: 10px 15px;
    }
    
    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .search-form button,
    .subscribe-form button {
        padding: 15px 25px;
    }
    
    /* Увеличение области клика для мобильных */
    .lawyer-card,
    .article-card {
        cursor: pointer;
    }
    
    /* Отключение hover эффектов на тач-устройствах */
    .lawyer-card:hover,
    .article-card:hover {
        transform: none;
    }
    
    /* Анимации для касаний */
    .menu-toggle:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
    
    .main-nav a:active {
        background: rgba(52, 152, 219, 0.1);
        transition: background 0.1s;
    }
}

/* Анимация появления иконки меню */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-toggle {
    animation: fadeInDown 0.5s ease-out;
}

/* Эффект пульсации для привлечения внимания (опционально) */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

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

/* Стили для визуальной обратной связи */
.menu-toggle:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.menu-toggle:active .hamburger span {
    transform: scale(0.95);
}

/* Плавная анимация для всего меню */
.main-nav,
.main-nav ul,
.main-nav a {
    will-change: transform, opacity;
}
menu-toggle {
    display: none;
    /* ... остальные стили ... */
}

.hamburger {
    display: inline-block;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #34495e;
    border-radius: 2px;
    /* ... анимация ... */
}
menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(45deg);
    background: #e74c3c;
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-45deg);
    background: #e74c3c;
}