:root {
    --primary-gradient: linear-gradient(135deg, #4fcd9c 0%, #508ea9 100%);
    --secondary-gradient: linear-gradient(135deg, #709cc7 0%, #b35add 100%);
    --accent-color: #6ad14f;
    --light-bg: #f8f9fa;
    --dark-text: #2d3748;
    --light-text: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Дополнительные переменные */
    --accent-gradient: linear-gradient(135deg, #6ad14f 0%, #4fcd9c 100%);
    --table-header-gradient: linear-gradient(135deg, #508ea9 0%, #4fcd9c 100%);
    --copy-btn-gradient: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    --copy-btn-hover-gradient: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    --row-even: #ffffff;
    --row-odd: #f7fafc;
    --link-color: #508ea9;
    --link-hover: #4fcd9c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Разрешение выделения для контента статьи */
.allow-select,
.article-content p,
.article-content li,
.article-content h1,
.article-content h2,
.article-content h3,
.command-example,
.code-block,
code,
.command-table,
.command-table td,
.command-table th,
.ms-reference,
.ms-reference p,
.ms-reference li,
.ms-reference h3 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: var(--primary-gradient);
    color: var(--light-text);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#home {
    align-items: center;
    background: var(--primary-gradient);
    color: var(--light-text);
    margin-top: 60px;
}

.home-content {
    max-width: 600px;
}

.home-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: #3bb5aa;
}

.search-container {
    margin-bottom: 2rem;
    position: relative;
}

.search-box {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(106, 209, 79, 0.2);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.2rem;
}

.search-results-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

#news {
    background: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
        max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.news-content p {
    margin-bottom: 1rem;
    color: #666;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

#contacts {
    background: var(--secondary-gradient);
    color: var(--light-text);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 0.8rem;
    color: var(--accent-color);
}

footer {
    background: var(--dark-text);
    color: var(--light-text);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    opacity: 0.7;
}

#contacts .section-title {
    color: white;
}

.contact-link {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    padding: 0.3rem 0;
}

.contact-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--light-text);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    color: var(--accent-color);
}

.social-link i {
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
}

/* Стили для страниц статей */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 80px;
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-btn {
    background: var(--copy-btn-gradient);
    color: #2d3748;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-btn:hover {
    background: var(--copy-btn-hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #1a202c;
}

.share-btn:hover,
.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.article-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ИСПРАВЛЕНИЕ ДЛЯ ИЗОБРАЖЕНИЙ */
.article-image {
    max-width: 100%; /* Не больше ширины родительского контейнера */
    width: auto; /* Сохраняет оригинальную ширину */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    display: block; /* Убирает лишние отступы */
    margin: 30px auto; /* Центрирование */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

/* Для всех изображений в контенте статьи */
.article-content img {
    max-width: 100%; /* Не больше ширины контейнера */
    width: auto; /* Сохраняет оригинальную ширину */
    height: auto; /* Автоматическая высота */
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.article-content {
    padding: 2rem;
}

.article-content h2 {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    color: #333;
    background: linear-gradient(135deg, #508ea9 0%, #4fcd9c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.back-btn {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для активного меню */
#nav-menu.active {
    display: block !important;
}

/* Стили для статьи о CMD */

/* Примеры команд */
.command-example {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    margin: 15px 0;
    overflow-x: auto;
    border-left: 4px solid #508ea9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.command {
    color: #569cd6;
    font-weight: 600;
}

.comment {
    color: #6a9955;
    font-style: italic;
    margin-left: 10px;
}

.comment::before {
    content: "// ";
}

.path {
    color: #ce9178;
}

.highlight-keyword {
    background: linear-gradient(135deg, rgba(79, 205, 156, 0.2) 0%, rgba(80, 142, 169, 0.2) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #2d3748;
    border: 1px solid rgba(80, 142, 169, 0.3);
}

/* Таблицы команд */
.command-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.command-table th {
    background: var(--table-header-gradient);
    color: white;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.command-table th:first-child {
    border-top-left-radius: 12px;
}

.command-table th:last-child {
    border-top-right-radius: 12px;
}

.command-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.command-table tr:nth-child(even) {
    background-color: var(--row-odd);
}

.command-table tr:nth-child(odd) {
    background-color: var(--row-even);
}

.command-table tr:hover {
    background-color: #edf2f7;
    transform: scale(1.005);
    transition: var(--transition);
}

.command-table tr:last-child td {
    border-bottom: none;
}

.command-table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.command-table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.command-table code {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95em;
    color: #2d3748;
    border: 1px solid #cbd5e0;
    display: inline-block;
    min-width: 150px;
}

/* Ссылка на Microsoft */
.ms-link {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    margin: 25px 0;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ms-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #4fcd9c 0%, #508ea9 100%);
}

.ms-link i {
    margin-right: 8px;
}

/* Блок с информацией о Microsoft */
.ms-reference {
    background: linear-gradient(135deg, rgba(79, 205, 156, 0.08) 0%, rgba(80, 142, 169, 0.08) 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 35px 0;
    border-left: 5px solid #508ea9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ms-reference h3 {
    color: #2d3748;
    margin-bottom: 18px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #508ea9 0%, #4fcd9c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.ms-reference p {
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.6;
}

.ms-reference ul {
    margin-top: 12px;
    padding-left: 25px;
}

.ms-reference li {
    margin-bottom: 8px;
    color: #4a5568;
    position: relative;
    padding-left: 5px;
}

.ms-reference li::before {
    content: "▸";
    color: #508ea9;
    font-weight: bold;
    position: absolute;
    left: -18px;
}

/* Ссылки в контенте */
.article-content a:not(.ms-link):not(.back-btn) {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    padding: 0 2px;
}

.article-content a:not(.ms-link):not(.back-btn):hover {
    color: var(--link-hover);
    border-bottom: 2px solid var(--link-hover);
}

/* Декоративные элементы */
.article-content h3 {
    position: relative;
    padding-left: 15px;
    margin: 20px 0 15px;
    color: #2d3748;
}

.article-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

/* Важные заметки */
.important-note {
    background: linear-gradient(135deg, rgba(255, 245, 204, 0.3) 0%, rgba(255, 229, 153, 0.3) 100%);
    border-left: 4px solid #ffd700;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: #5c3c00;
}

.important-note::before {
    content: "💡 ";
    margin-right: 8px;
    font-size: 1.2em;
}

/* YouTube промо */
.btn-youtube {
    background: #FF0000;
}

.btn-youtube:hover {
    background: #CC0000;
}

.youtube-promo {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border-left: 4px solid #FF0000;
}

.youtube-promo h3 {
    color: #FF0000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.youtube-promo p {
    margin-bottom: 1.5rem;
}

.youtube-icon {
    color: #FF0000;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Анимация для кнопок */
.copy-btn,
.share-btn,
.btn,
.back-btn {
    transition: all 0.3s ease !important;
    transform: translateY(0);
}

.copy-btn:hover,
.share-btn:hover,
.btn:hover,
.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Media Queries */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--primary-gradient);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 1rem;
        justify-content: center;
    }

    .news-grid {
        width: 95%;
        margin: 0 auto;
    }

    .news-card {
        width: 100%;
    }
    
    .article-container {
        margin-top: 70px;
        width: 95%;
        max-width: none;
    }

    .article-title {
        font-size: 1.8rem;
    }
    
    /* Исправление для мобильных изображений */
    .article-image {
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .article-content img {
        margin: 15px auto;
        border-radius: 6px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    
    .command-table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
    }
    
    .command-table th,
    .command-table td {
        padding: 12px 15px;
    }
    
    .ms-link {
        display: block;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .command-table code {
        min-width: 120px;
        font-size: 0.85em;
        padding: 3px 8px;
    }
}

@media (max-width: 576px) {
    .home-content h1 {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        width: 98%;
    }

    .news-content {
        padding: 1.2rem;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .search-input {
        padding: 0.8rem 2.5rem 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .search-icon {
        right: 1.2rem;
        font-size: 1rem;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        flex: 1;
        min-width: 150px;
        justify-content: center;
    }
    
    .article-container {
        width: 98%;
        margin-left: auto;
        margin-right: auto;
    }

    .article-header,
    .article-content,
    .article-footer {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.6rem;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-btn,
    .copy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .command-table {
        border-radius: 8px;
    }
    
    .command-table th,
    .command-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* Исправление для маленьких экранов */
    .article-image {
        margin: 15px auto;
        border-radius: 6px;
    }
    
    .article-content img {
        margin: 10px auto;
        border-radius: 4px;
    }
    
    .command-example {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .youtube-promo {
        padding: 1.5rem;
    }
}

@media (max-width: 400px) {
    .news-grid {
        width: 99%;
    }

    .news-content {
        padding: 1rem;
    }

    .news-content h3 {
        font-size: 1.2rem;
    }

    .social-link {
        min-width: 140px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .article-container {
        width: 99%;
        border-radius: 8px;
    }

    .article-header,
    .article-content,
    .article-footer {
        padding: 1.2rem;
    }

    .article-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content p {
        font-size: 1rem;
    }
    
    .youtube-promo {
        padding: 1rem;
    }
}

/* Стили для активного меню */
#nav-menu.active {
    display: block !important;
}

.hamburger.active i::before {
    content: "\f00d"; /* Иконка крестика */
}
/* Модальное окно для изображений */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.image-modal.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#modalImage.zoomed {
    cursor: zoom-out;
    transform: scale(1.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.modal-caption p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.image-counter {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Стили для миниатюр скриншотов */
.screenshot-thumb {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: 8px;
}

.screenshot-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

/* Уведомление о возможности зума */
.zoom-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    animation: slideUp 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zoom-hint i {
    color: var(--accent-color);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-prev,
    .modal-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .modal-prev {
        left: 15px;
    }
    
    .modal-next {
        right: 15px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .modal-content {
        max-height: 70vh;
    }
    
    #modalImage {
        max-height: 70vh;
    }
    
    .modal-caption {
        bottom: 15px;
        padding: 15px;
    }
    
    .modal-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    #modalImage.zoomed {
        transform: scale(1.2);
    }
    
    .zoom-hint {
        font-size: 0.8rem;
        padding: 8px 15px;
        bottom: 10px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
    .modal-content {@media (max-width:
        max-height: 60vh;
    }
    
    #modalImage {
        max-height: 60vh;
    }
    
    .modal-caption {
        bottom: 10px;
        padding: 10px;
    }
    
    .modal-caption p {
        font-size: 0.9rem;
    }
}
