/* БАЗОВЫЕ НАСТРОЙКИ */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { display: flex; min-height: 100vh; background-color: #f8f9fa; color: #333; }

/* ЛЕВОЕ МЕНЮ (САЙДБАР) */
.sidebar { width: 250px; background-color: #ffffff; border-right: 1px solid #e0e0e0; position: fixed; height: 100%; display: flex; flex-direction: column; z-index: 100; }

/* === ЛОГОТИП И ИКОНКА === */
.logo-container { padding: 30px 20px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.logo-container img { width: 75px; height: auto; margin-bottom: 15px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.logo-container h2 { color: #2c3e50; font-size: 24px; line-height: 1.2; }
.logo-container p { color: #7f8c8d; font-size: 14px; margin-top: 8px; }

/* НАВИГАЦИЯ */
.nav-menu { list-style: none; padding-top: 20px; flex-grow: 1; }
.nav-menu a { display: block; padding: 12px 25px; color: #555; text-decoration: none; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; transition: 0.2s; }
.nav-menu a:hover { background-color: #f5f6fa; color: #f39c12; }
.nav-menu a.active { background-color: #f39c12; color: white; font-weight: bold; border-left: 4px solid #d35400; }

/* ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА */
.lang-switcher { padding: 20px; border-top: 1px solid #f0f0f0; text-align: center; }
.lang-switcher select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; outline: none; cursor: pointer; background: white; }

/* ПРАВАЯ ЧАСТЬ (КОНТЕНТ) */
.main-content { margin-left: 250px; flex-grow: 1; padding: 50px; background-color: #f8f9fa; }
.tab-content { display: none; max-width: 900px; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ЗАГОЛОВКИ И КНОПКИ */
.section-title { font-size: 28px; color: #2c3e50; margin-bottom: 30px; text-transform: uppercase; font-weight: 300; border-bottom: 2px solid #ecf0f1; padding-bottom: 10px; }
.btn { display: inline-block; padding: 10px 25px; background: #2c3e50; color: white; text-decoration: none; border-radius: 4px; transition: 0.3s; font-weight: bold; cursor: pointer; border: none; }
.btn:hover { background: #34495e; }
.btn-orange { background: #f39c12; }
.btn-orange:hover { background: #d35400; }

/* CHANGELOG (ОБНОВЛЕНИЯ) */
.changelog-item { background: white; padding: 25px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid #f39c12; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.version { font-size: 18px; font-weight: bold; color: #2c3e50; margin-bottom: 10px; }
.news-html { padding-left: 10px; color: #555; line-height: 1.6; }

/* БЛОК ПОКУПКИ */
.price-box { text-align: center; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.price { font-size: 48px; color: #2c3e50; font-weight: bold; margin: 20px 0; }
.payment-methods img { height: 35px; margin: 5px; border: 1px solid #eee; border-radius: 4px; padding: 2px; background: white; }

/* СЕТКА ФУНКЦИЙ (2 КОЛОНКИ КАК НА СКРИНШОТЕ) */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 20px; }
.feature-item { padding: 15px 0; border-bottom: 1px solid #ecf0f1; display: flex; align-items: flex-start; color: #555; line-height: 1.5; font-size: 15px; }
.feature-item::before { content: '✔'; color: #27ae60; font-weight: bold; margin-right: 15px; font-size: 16px; margin-top: 2px; }
.future-feature::before { content: '⏳'; color: #f39c12; } /* Иконка для будущих функций */

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ГАЛЕРЕЯ СКРИНШОТОВ */
.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.screenshots-grid img { width: 100%; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #ddd; transition: transform 0.3s ease; cursor: zoom-in; }
.screenshots-grid img:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* ========================================= */
/* МОДАЛЬНОЕ ОКНО ДЛЯ КАРТИНОК (LIGHTBOX)    */
/* ========================================= */
.modal {
    display: none; /* Скрыто по умолчанию, JavaScript включит flex */
    position: fixed;
    z-index: 1000; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Темный фон */
    backdrop-filter: blur(5px); /* Размытие заднего фона */

    /* === ОБНОВЛЕНО ДЛЯ ИДЕАЛЬНОГО ЦЕНТРИРОВАНИЯ === */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
    padding: 20px; /* Безопасные отступы от краев экрана */
    overflow: hidden; /* Запрещаем скролл самого темного фона */
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 85vh; /* Ограничиваем высоту на больших экранах */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease; /* Плавное появление */
    object-fit: contain; /* Картинка сохраняет пропорции и влезает целиком */
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1010; /* Крестик поверх картинки */
}

.modal-close:hover {
    color: #f39c12; /* Оранжевый при наведении */
}

#modalCaption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ccc;
    font-size: 18px;
    font-weight: bold;
    padding: 0 20px;
}

/* === ОТДЕЛЬНЫЙ БЛОК ДЛЯ МОБИЛЬНЫХ (RESPONSIVE) === */
@media (max-width: 768px) {
    .modal {
        padding: 10px; /* Меньше отступы */
    }

    .modal-content {
        max-width: 95%; /* Разрешаем шире */
        max-height: 70vh; /* Уменьшаем макс. высоту, чтобы влез заголовок и крестик */
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px; /* Меньше крестик */
    }

    #modalCaption {
        font-size: 14px; /* Меньше шрифт заголовка */
        bottom: 10px;
    }
}