/* styles.css - объединённый файл на основе предоставленного */
/* - Основные переменные для светлой темы - */
:root {
    --primary: #2563eb; /* Синий акцент */
    --primary-dark: #1d4ed8;
    --secondary: #7e22ce;
    --light: #ffffff; /* Белый фон */
    --light-secondary: #f8fafc; /* Очень светло-серый */
    --text: #1e293b; /* Тёмно-серый текст */
    --text-light: #64748b; /* Серый текст */
    --accent: #06d6a0; /* Зелёный акцент */
    --border: #e2e8f0; /* Светло-серая граница */
    --shadow: rgba(0, 0, 0, 0.05); /* Лёгкая тень */
    --card-bg: #ffffff; /* Фон карточек */
    --header-bg: #ffffff; /* Фон шапки */
    --modal-bg: #ffffff; /* Фон модального окна */
}

/* - Тема по умолчанию (теперь тёмная) - */
html[data-theme="dark"] {
    --light: #0f172a;
    --light-secondary: #1e293b;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    --card-bg: #1e293b;
    --header-bg: rgba(15, 23, 42, 0.95); /* Полупрозрачный фон шапки в темной теме */
    --modal-bg: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease; /* Анимация при смене темы */
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
}

/* --- Контейнер --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Уменьшаем боковые отступы */
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

/* --- Шапка --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease; /* Анимация при смене темы */
    backdrop-filter: blur(10px); /* Эффект размытия фона */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; /* Уменьшаем вертикальные отступы */
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

/* --- Логотип --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Уменьшаем отступ между иконкой и текстом */
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

.logo-icon {
    width: 40px; /* Фиксируем ширину */
    height: 40px; /* Фиксируем высоту */
    object-fit: contain; /* Сохраняем пропорции изображения, заполняем контейнер */
    transition: filter 0.3s ease; /* Анимация при смене темы */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap; /* Не переносим текст логотипа */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.logo-text span {
    color: var(--primary);
    transition: color 0.3s ease; /* Анимация при смене темы */
}

/* --- Навигация --- */
nav ul {
    display: flex;
    list-style: none;
    gap: 15px; /* Уменьшаем отступы между пунктами меню */
    margin: 0; /* Убираем внешние отступы */
    padding: 0; /* Убираем внутренние отступы */
    align-items: center; /* Выравнивание элементов по центру */
}

/* Стили для элементов списка навигации */
nav li {
    list-style: none; /* Убираем маркеры списка */
    display: flex; /* Делаем li flex-контейнером */
    align-items: center; /* Выравнивание по центру */
    padding: 0; /* Убираем внутренние отступы */
    margin: 0; /* Убираем внешние отступы */
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.2s ease; /* Добавляем анимацию трансформации */
    position: relative;
    white-space: nowrap; /* Не переносим текст ссылки */
    padding: 8px 0; /* Добавляем вертикальный паддинг для лучшего тап-таргета */
    display: block; /* Делаем ссылку блочным элементом */
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-2px); /* Лёгкий подъём при наведении */
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0; /* Смещаем линию вниз */
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease, transform 0.3s ease;
    transform-origin: left;
}

nav a:hover::after {
    width: 100%;
    transform: scaleX(1);
}

/* --- Кнопка переключения темы (как элемент списка в меню) --- */
.theme-toggle-item {
    display: flex; /* Делаем li flex-контейнером */
    align-items: center; /* Выравнивание по центру */
    padding: 0; /* Убираем внутренние отступы */
    margin: 0; /* Убираем внешние отступы */
}

#theme-toggle {
    /* Убираем стили, которые делают её кнопкой */
    background: none; /* Убираем фон */
    color: inherit; /* Наследуем цвет текста от родителя (как у nav a) */
    border: none; /* Убираем границу */
    border-radius: 0; /* Убираем скругление */
    padding: 0; /* Убираем внутренний отступ */
    font: inherit; /* Наследуем шрифт от родителя */
    cursor: pointer;
    transition: color 0.3s, transform 0.2s ease; /* Анимация цвета и подъёма */
    position: relative;
    white-space: nowrap; /* Не переносим текст */
    /* Убираем стандартные стили для кнопки */
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Применяем стили навигационных ссылок */
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0; /* Добавляем вертикальный паддинг для лучшего тап-таргета */
    display: block; /* Делаем кнопку блочным элементом */
}

#theme-toggle:hover {
    color: var(--primary);
    transform: translateY(-2px); /* Лёгкий подъём при наведении */
}

#theme-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease, transform 0.3s ease;
    transform-origin: left;
}

#theme-toggle:hover::after {
    width: 100%;
    transform: scaleX(1);
}

/* Стили для тёмной темы (уже определены через переменные выше) */

/* --- Кнопка мобильного меню --- */
.mobile-menu-btn {
    display: none; /* Скрыта по умолчанию */
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* --- Кнопки --- */
.btn {
    padding: 12px 24px; /* Уменьшаем паддинг */
    border-radius: 8px; /* Уменьшаем скругление */
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease; /* Объединённая анимация */
    display: inline-block;
    white-space: nowrap; /* Не переносим текст кнопки */
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px); /* Уменьшаем подъём */
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2); /* Уменьшаем тень */
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-2px); /* Уменьшаем подъём */
}

/* --- Hero Section --- */
.hero {
    padding: 140px 0 80px; /* Уменьшаем отступы */
    background: linear-gradient(135deg, var(--light) 0%, var(--light-secondary) 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease; /* Анимация при смене темы */
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.05;
    top: -250px;
    right: -100px;
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.05;
    bottom: -150px;
    left: -100px;
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px; /* Уменьшаем отступ между текстом и визуалом */
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease; /* Анимация при смене темы */
}

.hero-text {
    flex: 1;
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

.hero-title {
    font-size: 3rem; /* Уменьшаем размер заголовка */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px; /* Уменьшаем отступ снизу */
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: background 0.3s ease; /* Анимация градиента */
}

/* Добавленный стиль для крупного подзаголовка */
.hero-subtitle-large {
    font-size: 1.2rem; /* Уменьшаем размер подзаголовка */
    color: var(--text-light);
    margin-bottom: 25px; /* Уменьшаем отступ снизу */
    transition: color 0.3s ease; /* Анимация при смене темы */
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px; /* Уменьшаем отступ между кнопками */
    flex-wrap: wrap; /* Разрешаем перенос кнопок на новую строку */
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease; /* Анимация при смене темы */
}

.visual-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px; /* Уменьшаем паддинг */
    width: 100%;
    max-width: 380px; /* Уменьшаем максимальную ширину */
    box-shadow: 0 8px 20px var(--shadow); /* Уменьшаем тень */
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease, transform 0.2s ease; /* Анимация тени и трансформации */
}

.visual-card:hover {
    transform: translateY(-5px); /* Лёгкий подъём при наведении */
}

.visual-card h3 {
    font-size: 1.6rem; /* Уменьшаем размер заголовка */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Уменьшаем отступ между элементами статистики */
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem; /* Уменьшаем размер шрифта */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.stat-value {
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.progress-bar {
    height: 6px; /* Уменьшаем высоту */
    background: var(--light-secondary);
    border-radius: 3px; /* Уменьшаем скругление */
    margin-top: 3px; /* Уменьшаем отступ сверху */
    overflow: hidden;
    width: 100%;
    transition: background 0.3s ease; /* Анимация при смене темы */
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.5s ease, background 0.3s ease; /* Анимация ширины и цвета */
}

/* --- Sections --- */
section {
    padding: 80px 0; /* Уменьшаем отступы */
    transition: background 0.3s ease; /* Анимация при смене темы */
}

.section-header {
    text-align: center;
    margin-bottom: 50px; /* Уменьшаем отступ снизу */
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

.section-title {
    font-size: 2.2rem; /* Уменьшаем размер заголовка */
    font-weight: 700;
    margin-bottom: 12px; /* Уменьшаем отступ снизу */
    color: var(--text);
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.section-subtitle {
    font-size: 1rem; /* Уменьшаем размер подзаголовка */
    color: var(--text-light);
    max-width: 650px; /* Уменьшаем ширину */
    margin: 0 auto;
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.section-divider {
    height: 3px; /* Уменьшаем высоту */
    width: 60px; /* Уменьшаем ширину */
    background: var(--primary);
    margin: 15px auto; /* Уменьшаем отступы */
    border-radius: 2px;
    transition: background 0.3s ease; /* Анимация при смене темы */
}

/* --- About Section --- */
.about {
    background: var(--light-secondary);
}

/* Стили для текста "О проекте", растянутого на всю ширину */
.about-text-full-width {
    margin-bottom: 40px; /* Отступ перед сеткой карточек */
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

.about-text-full-width p {
    color: var(--text);
    font-size: 1rem; /* Уменьшаем размер шрифта */
    line-height: 1.6; /* Улучшаем читаемость */
    margin-bottom: 15px; /* Отступ между абзацами */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.about-text-full-width p:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего абзаца */
}

/* Сетка для карточек и визуала */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 40px; /* Отступ между колонками */
}

/* Стили для блока с карточками */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две колонки внутри блока с карточками */
    gap: 20px; /* Отступ между карточками */
}

.feature {
    display: flex;
    align-items: center; /* Выравнивание по центру по вертикали */
    gap: 12px; /* Отступ между иконкой и текстом */
    padding: 15px; /* Внутренний отступ */
    background: var(--light-secondary); /* Цвет фона */
    border-radius: 8px; /* Скругление углов */
    /* Убираем все стили hover */
    transition: background 0.2s ease; /* Анимация фона (только при смене темы) */
}

/* Убираем hover-эффекты */
.feature:hover {
    transform: none; /* Убираем подъём */
    background: var(--light-secondary); /* Оставляем фон как есть */
    box-shadow: none; /* Убираем тень */
}

.feature-icon {
    background: var(--primary);
    color: white;
    width: 42px; /* Увеличиваем размер */
    height: 42px; /* Увеличиваем размер */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Не сжимаем иконку */
    font-size: 1.2rem; /* Увеличиваем размер иконки */
    transition: background 0.3s ease; /* Анимация при смене темы */
}

.feature-text {
    flex: 1; /* Растягиваем текст на всё оставшееся место */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем текст по вертикали */
}

.feature-text h4 {
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.1rem; /* Увеличиваем размер шрифта заголовка */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.feature-text p {
    color: var(--text-light);
    font-size: 0.9rem; /* Увеличиваем размер шрифта текста */
    line-height: 1.4;
    margin: 0; /* Убираем нижний отступ */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

/* Стили для блока "Принцип 'Библиотеки и читательных залов'" */
.about-visual {
    display: flex;
    justify-content: center; /* Центрируем карточку внутри колонки */
    transition: transform 0.3s ease; /* Анимация при смене темы */
}

.about-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease, transform 0.2s ease; /* Анимация тени и трансформации */
    width: 100%; /* Занимает всю ширину колонки */
    max-width: 400px; /* Максимальная ширина для карточки */
}

.about-card:hover {
    transform: translateY(-3px); /* Лёгкий подъём при наведении */
    box-shadow: 0 10px 25px var(--shadow);
}

.about-card h3 {
    font-size: 1.5rem; /* Увеличиваем размер заголовка */
    margin-bottom: 15px;
    color: var(--text);
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.about-card p {
    color: var(--text-light);
    font-size: 1rem; /* Увеличиваем размер шрифта */
    line-height: 1.5;
    margin-bottom: 15px; /* Отступ между абзацами в карточке */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.principle-item {
    display: flex;
    align-items: center; /* Выравнивание по центру по вертикали */
    gap: 12px; /* Отступ между иконкой и текстом */
    margin-bottom: 10px; /* Отступ между элементами */
}

.principle-icon {
    background: var(--primary);
    color: white;
    width: 42px; /* Увеличиваем размер */
    height: 42px; /* Увеличиваем размер */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem; /* Увеличиваем размер иконки */
    transition: background 0.3s ease; /* Анимация при смене темы */
}

.principle-text {
    color: var(--text);
    font-size: 0.95rem; /* Увеличиваем размер шрифта */
    line-height: 1.4;
    margin: 0; /* Убираем нижний отступ */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-content-grid {
        grid-template-columns: 1fr; /* Одна колонка на планшетах и мобильных */
        gap: 30px; /* Уменьшаем отступ */
    }
    .about-features {
        grid-template-columns: 1fr; /* Одна колонка внутри блока с карточками */
    }
    .about-card {
        max-width: 100%; /* Убираем ограничение ширины на мобильных */
    }
}

/* --- Solutions Section --- */
.solutions {
    background: var(--light-secondary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Уменьшаем минимальную ширину */
    gap: 25px; /* Уменьшаем отступ */
}

.solution-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px; /* Уменьшаем паддинг */
    box-shadow: 0 8px 20px var(--shadow); /* Уменьшаем тень */
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Анимации */
}

.solution-card:hover {
    transform: translateY(-8px); /* Уменьшаем подъём */
    box-shadow: 0 12px 25px var(--shadow); /* Увеличиваем тень при наведении */
}

.solution-icon {
    background: var(--primary);
    color: white;
    width: 50px; /* Уменьшаем размер */
    height: 50px; /* Уменьшаем размер */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px; /* Уменьшаем отступ снизу */
    margin-left: auto;
    margin-right: auto;
    transition: background 0.3s ease; /* Анимация при смене темы */
}

.solution-card h3 {
    font-size: 1.3rem; /* Уменьшаем размер заголовка */
    text-align: center;
    margin-bottom: 12px; /* Уменьшаем отступ снизу */
    color: var(--text);
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.solution-card p {
    color: var(--text-light);
    text-align: center;
    font-size: 0.9rem; /* Уменьшаем размер шрифта */
    line-height: 1.5; /* Улучшаем читаемость */
    margin: 0; /* Убираем нижний отступ */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

/* --- Dashboard Section --- */
.dashboard {
    background: var(--light-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px; /* Уменьшаем отступ */
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px; /* Уменьшаем паддинг */
    box-shadow: 0 8px 20px var(--shadow); /* Уменьшаем тень */
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease, transform 0.2s ease; /* Анимации */
}

.dashboard-card:hover {
    transform: translateY(-3px); /* Лёгкий подъём при наведении */
    box-shadow: 0 10px 25px var(--shadow); /* Увеличиваем тень при наведении */
}

.dashboard-card h3 {
    font-size: 1.4rem; /* Уменьшаем размер заголовка */
    margin-bottom: 15px; /* Уменьшаем отступ снизу */
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px; /* Отступ между иконкой и заголовком */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* Уменьшаем отступ */
}

.info-item {
    background: var(--light-secondary);
    padding: 12px; /* Уменьшаем паддинг */
    border-radius: 8px;
    transition: background 0.3s ease; /* Анимация при смене темы */
}

.info-label {
    display: flex;
    align-items: center;
    gap: 6px; /* Отступ между иконкой и текстом */
    color: var(--text-light);
    font-size: 0.85rem; /* Уменьшаем размер шрифта */
    margin-bottom: 5px; /* Уменьшаем отступ снизу */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.info-value {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem; /* Уменьшаем размер шрифта */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.temp-indicator {
    margin-top: 8px;
    font-size: 0.85rem; /* Уменьшаем размер шрифта */
    color: var(--text-light);
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.temp-value {
    color: var(--primary);
    font-weight: 600;
}

.usage-value {
    font-size: 0.85rem; /* Уменьшаем размер шрифта */
    color: var(--text-light);
    margin-top: 6px; /* Уменьшаем отступ сверху */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

/* --- CTA Section --- */
.cta {
    padding: 80px 0; /* Уменьшаем отступы */
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
    color: white;
    transition: background 0.3s ease; /* Анимация при смене темы */
}

.cta-title {
    font-size: 2.5rem; /* Уменьшаем размер заголовка */
    font-weight: 700;
    margin-bottom: 15px; /* Уменьшаем отступ снизу */
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

.cta-subtitle {
    font-size: 1.2rem; /* Уменьшаем размер подзаголовка */
    margin-bottom: 30px; /* Уменьшаем отступ снизу */
    max-width: 700px; /* Устанавливаем максимальную ширину */
    margin-left: auto; /* Центрируем */
    margin-right: auto;
    opacity: 0.9; /* Уменьшаем непрозрачность */
    transition: opacity 0.3s ease; /* Анимация при смене темы */
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px; /* Уменьшаем отступ между кнопками */
    flex-wrap: wrap; /* Разрешаем перенос кнопок на новую строку */
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px); /* Уменьшаем подъём */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Уменьшаем тень */
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px); /* Уменьшаем подъём */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Уменьшаем тень */
}

/* --- Footer --- */
footer {
    background: var(--light);
    padding: 60px 0 20px; /* Уменьшаем отступы */
    transition: background 0.3s ease, color 0.3s ease; /* Анимация при смене темы */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Уменьшаем отступ */
    margin-bottom: 40px; /* Уменьшаем отступ снизу */
}

.footer-column h3 {
    font-size: 1.3rem; /* Уменьшаем размер заголовка */
    margin-bottom: 15px; /* Уменьшаем отступ снизу */
    color: var(--text);
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.footer-column p {
    color: var(--text-light);
    font-size: 0.9rem; /* Уменьшаем размер шрифта */
    line-height: 1.5; /* Улучшаем читаемость */
    margin: 0 0 15px 0; /* Убираем нижний отступ */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px; /* Уменьшаем отступ снизу */
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 3px 0; /* Уменьшаем паддинг */
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px; /* Уменьшаем отступ между иконками */
    margin-top: 15px; /* Уменьшаем отступ сверху */
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-secondary);
    color: var(--text);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Анимации */
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px); /* Лёгкий подъём при наведении */
}

.footer-bottom {
    text-align: center;
    padding-top: 25px; /* Уменьшаем отступ сверху */
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem; /* Уменьшаем размер шрифта */
    transition: border-top 0.3s ease, color 0.3s ease; /* Анимация при смене темы */
}

/* --- Login Modal --- */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    backdrop-filter: blur(5px); /* Эффект размытия фона */
    animation: fadeIn 0.3s ease; /* Анимация появления */
    align-items: center; /* Центрируем по вертикали */
    justify-content: center; /* Центрируем по горизонтали */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--modal-bg);
    margin: 5% auto;
    padding: 30px; /* Увеличиваем внутренний отступ (padding) */
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 450px; /* Оставляем прежнюю максимальную ширину */
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-content:target {
    transform: scale(1.02); /* Лёгкое увеличение при открытии */
}

.close-modal {
    position: absolute;
    top: 12px; /* Уменьшаем отступ сверху */
    right: 16px; /* Уменьшаем отступ справа */
    font-size: 1.3rem; /* Уменьшаем размер */
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10; /* Повышаем z-index, чтобы кнопка была поверх других элементов */
}

.close-modal:hover {
    color: var(--text);
}

.modal-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text);
    padding: 20px 0 0 0; /* Оставляем только верхний паддинг */
    font-size: 1.5rem;
    transition: color 0.3s ease;
    width: 100%;
}

.modal-body {
    padding: 0 25px 25px 25px; /* Увеличенные отступы внутри: сверху (0), слева, справа, снизу */
    flex: 1; /* Растягиваем на оставшееся место */
    display: flex; /* Делаем тело flex-контейнером */
    flex-direction: column; /* Располагаем элементы вертикально */
    justify-content: center; /* Центрируем по вертикали */
    align-items: stretch; /* Растягиваем дочерние элементы по ширине */
}

/* --- Form --- */
.form-group {
    margin-bottom: 18px; /* Отступ снизу у группы формы */
    width: 100%; /* Занимает всю ширину .modal-body */
}

.form-label {
    display: block;
    margin-bottom: 6px; /* Отступ снизу у лейбла */
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.form-input {
    width: 100%; /* Занимает всю ширину .form-group */
    padding: 10px 12px; /* Паддинг внутри инпута */
    background: var(--light-secondary);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 0.95rem; /* Размер шрифта */
    transition: border 0.3s ease, box-shadow 0.2s ease; /* Анимация при фокусе */
    box-sizing: border-box; /* Учитываем padding и border в расчёте ширины */
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); /* Лёгкая тень при фокусе */
}

.form-options {
    display: flex;
    justify-content: flex-start; /* Выравнивание по левому краю */
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    width: 100%;
    /* gap: 8px; - убираем, так как нет второго элемента */
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px; /* Отступ между чекбоксом и текстом */
    /* min-width: fit-content; - можно оставить, если нужно */
}

.remember-me input {
    margin: 0; /* Убираем стандартные отступы чекбокса */
}

.remember-me label {
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease; /* Анимация при смене темы */
}

/* Стили для .forgot-password убраны, так как элемент удалён из HTML */

.login-btn {
    width: 100%; /* Занимает всю ширину .modal-body */
    padding: 10px; /* Паддинг внутри кнопки */
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem; /* Размер шрифта */
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease; /* Анимация */
}

.login-btn:hover {
    background: var(--primary-dark);
}

.register-link {
    text-align: center;
    margin-top: 18px; /* Отступ сверху у ссылки регистрации */
    color: var(--text-light);
    font-size: 0.9rem; /* Размер шрифта */
    transition: color 0.3s ease; /* Анимация при смене темы */
    width: 100%; /* Занимает всю ширину .modal-body */
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* --- Form --- */
.form-group {
    margin-bottom: 18px; /* Уменьшаем отступ снизу */
}

.form-label {
    display: block;
    margin-bottom: 6px; /* Уменьшаем отступ снизу */
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.form-input {
    width: 100%;
    padding: 10px 12px; /* Уменьшаем паддинг */
    background: var(--light-secondary);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 0.95rem; /* Уменьшаем размер шрифта */
    transition: border 0.3s ease, box-shadow 0.2s ease; /* Анимация при фокусе */
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); /* Лёгкая тень при фокусе */
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Уменьшаем отступ снизу */
    font-size: 0.85rem; /* Уменьшаем размер шрифта */
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px; /* Отступ между чекбоксом и текстом */
}

.remember-me input {
    margin: 0; /* Убираем стандартные отступы чекбокса */
}

.remember-me label {
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem; /* Уменьшаем размер шрифта */
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 10px; /* Уменьшаем паддинг */
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem; /* Уменьшаем размер шрифта */
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease; /* Анимация */
}

.login-btn:hover {
    background: var(--primary-dark);
}

.register-link {
    text-align: center;
    margin-top: 18px; /* Уменьшаем отступ сверху */
    color: var(--text-light);
    font-size: 0.9rem; /* Уменьшаем размер шрифта */
    transition: color 0.3s ease; /* Анимация при смене темы */
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-content {
        flex-direction: column;
    }
    .about-visual {
        order: -1; /* Перемещаем визуал наверх на мобильных */
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Показываем кнопку мобильного меню */
    }
    nav ul {
        position: fixed;
        top: 70px; /* Высота шапки */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--header-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 30px; /* Увеличиваем отступ между пунктами меню */
        padding: 20px 0;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px); /* Эффект размытия фона */
    }
    nav ul.active {
        left: 0; /* Показываем меню */
    }
    .hero-title {
        font-size: 2.2rem; /* Уменьшаем размер заголовка */
    }
    .hero-subtitle {
        font-size: 1rem; /* Уменьшаем размер подзаголовка */
    }
    .section-title {
        font-size: 1.8rem; /* Уменьшаем размер заголовка */
    }
    .info-grid {
        grid-template-columns: 1fr; /* Делаем сетку информации одноколоночной */
    }
    .cta-title {
        font-size: 2rem; /* Уменьшаем размер заголовка */
    }
    .cta-subtitle {
        font-size: 1rem; /* Уменьшаем размер подзаголовка */
    }
}

/* --- Дополнительные стили для тёмной темы (уже определены через переменные выше) --- */
/* [data-theme="dark"] { ... } - Этот блок больше не нужен, так как переменные определены в :root и переопределены в html[data-theme="dark"] */
/* Применяем те же стили для тёмной темы к элементам, которые могут измениться */
[data-theme="dark"] .btn-secondary {
    border: 1px solid var(--border);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .stat-card {
    background: var(--light-secondary);
}

[data-theme="dark"] .feature-icon {
    background: var(--primary);
}

[data-theme="dark"] .solution-icon {
    background: var(--primary);
}

[data-theme="dark"] .social-link {
    background: var(--light-secondary);
    color: var(--text);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary);
    color: white;
}

/* Стили для мобильного меню */
nav ul.active {
    left: 0; /* Показываем меню */
}

/* Убираем стандартные стили для списка навигации */
nav ul {
    margin: 0;
    padding: 0;
}

/* Стили для элементов списка навигации */
nav li {
    list-style: none; /* Убираем маркеры списка */
}

/* --- Новые стили для макета about section (обновлённый HTML) --- */
.about-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    flex: 0 0 40%;
}

.feature-card {
    background: var(--light-secondary);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    background: var(--card-bg);
    box-shadow: 0 4px 10px var(--shadow);
}

.feature-icon {
    font-size: 1.5rem;
    color: #4f9cff;
    background: rgba(79, 156, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.feature-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.about-ai-principles {
    background: var(--light-secondary);
    border-radius: 12px;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: background 0.3s ease;
}

.principles-title {
    font-size: 1.2rem; /* Уменьшен размер шрифта */
    line-height: 1.4;
    color: var(--text);
    margin: 0 0 1.5rem 0;
    transition: color 0.3s ease;
}

/* Новый макет: 2 колонки внутри about-ai-principles */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 1.5rem;
}

.principle-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.principle-item:last-child {
    border-bottom: none;
}

.principle-icon {
    font-size: 1.2rem;
    color: #4f9cff;
    background: rgba(79, 156, 255, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.principle-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Стили для тёмной темы */
html[data-theme="dark"] .about-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

html[data-theme="dark"] .about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    flex: 0 0 40%;
}

html[data-theme="dark"] .feature-card {
    background: var(--light-secondary);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    transition: transform 0.2s ease;
}

html[data-theme="dark"] .feature-card:hover {
    transform: translateY(-2px);
    background: var(--card-bg);
    box-shadow: 0 4px 10px var(--shadow);
}

html[data-theme="dark"] .feature-icon {
    font-size: 1.5rem;
    color: #4f9cff;
    background: rgba(79, 156, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] .feature-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text);
    transition: color 0.3s ease;
}

html[data-theme="dark"] .feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

html[data-theme="dark"] .about-ai-principles {
    background: var(--light-secondary);
    border-radius: 12px;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: background 0.3s ease;
}

html[data-theme="dark"] .principles-title {
    font-size: 1.2rem; /* Уменьшен размер шрифта */
    line-height: 1.4;
    color: var(--text);
    margin: 0 0 1.5rem 0;
    transition: color 0.3s ease;
}

html[data-theme="dark"] .principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 1.5rem;
}

html[data-theme="dark"] .principle-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

html[data-theme="dark"] .principle-item:last-child {
    border-bottom: none;
}

html[data-theme="dark"] .principle-icon {
    font-size: 1.2rem;
    color: #4f9cff;
    background: rgba(79, 156, 255, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] .principle-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
    }
}

.cost-comparison-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px; /* Отступ вниз от подзаголовка */
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.cost-comparison-box p {
    margin: 0 0 12px 0;
}

.cost-comparison-box p:last-child {
    margin-bottom: 16px;
}

.cost-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cost-item {
    flex: 1;
    min-width: 220px;
    padding: 12px;
    background: var(--light-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
}

.cost-item.ours {
    background: rgba(37, 99, 235, 0.08); /* Лёгкий акцент под "наш метод" */
    border-left: 3px solid var(--primary);
}

@media (max-width: 768px) {
    .cost-row {
        flex-direction: column;
        gap: 12px;
    }
}
/* --- Стильный блок сравнения в Hero --- */
.comparison-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.comparison-header i {
    font-size: 1.1rem;
    color: var(--primary);
}

.comparison-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.comparison-item {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--light-secondary);
    transition: background 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comparison-item:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

.comparison-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
}

.comparison-item .specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.comparison-item .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.comparison-item.traditional {
    border-left: 4px solid #e53e3e; /* Красный акцент */
}

.comparison-item.ours {
    border-left: 4px solid var(--primary); /* Синий акцент */
    background: rgba(37, 99, 235, 0.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comparison-item {
        padding: 16px;
        font-size: 0.9rem;
    }

    .comparison-item .specs {
        font-size: 0.85rem;
    }

    .comparison-item .price {
        font-size: 1rem;
    }
}
/* --- Новая динамическая карточка в Hero --- */
.dynamic-system-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.dynamic-system-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53e3e; /* Красный по умолчанию */
}

.status-dot.active {
    background: #10b981; /* Зелёный при активности */
}

.system-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    min-width: 80px;
    transition: color 0.3s ease;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--light-secondary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-fill.nvidia {
    background: linear-gradient(to right, #76b900, #4CAF50); /* Зелёный градиент для NVIDIA */
}

.progress-fill.amd {
    background: linear-gradient(to right, #cb0039, #E91E63); /* Красный градиент для AMD */
}

.progress-fill.intel {
    background: linear-gradient(to right, #0071c5, #2196F3); /* Синий градиент для Intel */
}

.stat-value {
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: right;
    transition: color 0.3s ease;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.metric {
    background: var(--light-secondary);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.metric:hover {
    background: var(--card-bg);
    border: 1px solid var(--primary);
}

.metric-icon {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.metric-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-status {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 128, 0.1);
    color: #10b981;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.status-badge:hover {
    background: rgba(16, 185, 128, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .dynamic-system-card {
        max-width: 100%;
    }

    .performance-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .stat-row {
        flex-wrap: wrap;
    }
}
/* --- Hero Comparison (без градиента, в стиле сайта) --- */
.hero-comparison {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 18px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-comparison:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px var(--shadow);
}

.comparison-statement,
.comparison-desc {
    color: var(--text);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.comparison-statement {
    font-weight: 600;
    font-size: 1.05rem;
}

.comparison-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

.comparison-columns {
    display: flex;
    gap: 20px;
}

.comparison-col {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    background: var(--light-secondary);
}

.comparison-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px 0;
}

.comparison-col ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.comparison-col li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 16px;
}

.comparison-col li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    color: var(--text);
}

.traditional-price {
    background: rgba(229, 62, 62, 0.1);
}

.our-price {
    background: rgba(37, 99, 235, 0.1);
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-comparison {
        width: 100%;
        max-width: 600px;
        margin-top: 30px;
    }

    .comparison-columns {
        flex-direction: column;
        gap: 16px;
    }
}
/* --- Unified Features Grid --- */
.unified-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.unified-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    box-shadow: 0 4px 12px var(--shadow);
}

.unified-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px var(--shadow);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.unified-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

.unified-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Стиль для принципов (без иконки) */
.unified-card.principle .card-icon {
    display: none;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .unified-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .unified-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .unified-features-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Вводный текст "О проекте" --- */
.about-intro-text {
    margin: 30px 0 40px;
    text-align: center;
}
.about-intro-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 16px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.about-intro-text p:last-child {
    margin-bottom: 0;
}

/* --- Два блока под текстом --- */
.about-dual-blocks {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

.about-features-grid,
.about-principles-grid {
    display: grid;
    gap: 20px;
}

.about-features-grid {
    flex: 0 0 45%;
    grid-template-columns: 1fr;
}

.about-principles-grid {
    flex: 1;
    grid-template-columns: 1fr;
}

/* Стили карточек преимуществ (с иконками) */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow);
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.feature-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
}
.feature-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Стили карточек принципов (без иконок) */
.principle-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.principle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow);
}
.principle-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.4;
}
.principle-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-dual-blocks {
        flex-direction: column;
    }
    .about-features-grid,
    .about-principles-grid {
        flex: none;
        grid-template-columns: 1fr;
    }
}
.demo-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}