:root {
    --darkest-bg: #010409;
    --dark-bg: #0D1117;
    --accent-gold: #FFC300;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --border-color: rgba(139, 148, 158, 0.15);
    --glow-color: rgba(255, 195, 0, 0.4);
    /* --accent-blue: #1e3a8a; - УБРАН, так как не используется в едином стиле */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--darkest-bg);
    overflow-x: hidden;
}

/* Фоновый шум, как на главной */
body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 600"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.95" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    opacity: 0.02;
    pointer-events: none;
    z-index: 999;
    animation: noiseShift 25s steps(10) infinite;
}

@keyframes noiseShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-5%, -10%) rotate(0.5deg); }
  20% { transform: translate(-15%, 5%) rotate(-0.3deg); }
  30% { transform: translate(7%, -25%) rotate(0.8deg); }
  40% { transform: translate(-5%, 25%) rotate(-0.6deg); }
  50% { transform: translate(-15%, 10%) rotate(0.4deg); }
  60% { transform: translate(15%, 0%) rotate(-0.7deg); }
  70% { transform: translate(0%, 15%) rotate(0.2deg); }
  80% { transform: translate(3%, 35%) rotate(-0.4deg); }
  90% { transform: translate(-10%, 10%) rotate(0.6deg); }
}

/* Секция Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(22, 27, 34, 0.8) 0%, var(--darkest-bg) 80%);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ПРИВЕДЕНИЕ К СТИЛЮ ГЛАВНОЙ: размеры шрифтов для hero-секции */
.hero h1 {
    font-size: 3.8rem; /* Как .hero-name */
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #8892b0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.3rem; /* Как .hero-subtitle */
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero p:first-of-type {
    font-size: 1.9rem; /* Как .hero-title */
    color: var(--accent-gold);
    font-weight: 500;
    text-shadow: 0 0 10px var(--glow-color);
}

.scroll-hint {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: floatHint 3s ease-in-out infinite;
}

@keyframes floatHint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ПРИВЕДЕНИЕ К СТИЛЮ ГЛАВНОЙ: Навигация. Сохраняем контент, меняем обертку */
.page-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    transition: all 0.5s ease;
    
    /* Стили от .nav с главной страницы */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    max-width: 1100px;
    width: calc(100% - 80px);
}

.page-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-container {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* ПРИВЕДЕНИЕ К СТИЛЮ ГЛАВНОЙ: Кнопка "домой" */
.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.home-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.home-icon:hover {
    background: rgba(255, 195, 0, 0.1);
    color: var(--accent-gold);
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-progress {
    width: 100%;
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    position: relative;
    margin-bottom: 12px; /* Уменьшено для компактности */
}

/* ПРИВЕДЕНИЕ К СТИЛЮ ГЛАВНОЙ: Замена синего на золотой */
.timeline-progress-bar {
    height: 100%;
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--glow-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}

.timeline-years {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.timeline-year {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
}

.timeline-year.active,
.timeline-year:hover {
    color: var(--text-primary);
    background: rgba(255, 195, 0, 0.1);
    text-shadow: 0 0 8px var(--glow-color);
}

.timeline-year::before {
    /* Этот элемент можно скрыть для более чистого вида или оставить */
    display: none;
}

/* Основной контент */
.content-wrapper {
    background: var(--darkest-bg);
    min-height: 100vh;
    padding-top: 150px; /* Отступ для плавающей навигации */
}

.content-section {
    padding: 0 60px;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.page-content {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin: 0 auto;
}

/* Добавляем отступ между блоками контента внутри одной секции */
.page-content + .page-content {
    margin-top: 100px; /* или 70px, чтобы соответствовать gap */
}

.page-content.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.page-content.vertical-image {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 40px;
}

/* ПРИВЕДЕНИЕ К СТИЛЮ ГЛАВНОЙ: Заголовки и текст */
.page-year {
    color: var(--accent-gold);
    font-size: 1.2rem; /* Уменьшен, чтобы не конфликтовать с основным заголовком */
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title {
    font-size: 2.8rem; /* Как .section-title */
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    line-height: 1.2;
}

.page-description {
    font-size: 1.15rem; /* ЭТАЛОН */
    line-height: 1.7; /* ЭТАЛОН */
    color: #c9d1d9;
    margin-bottom: 30px;
}

/* ПРИВЕДЕНИЕ К СТИЛЮ ГЛАВНОЙ: Карточки с деталями */
.page-details {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.page-details:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-details h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.4rem; /* Как h3 на главной */
    font-weight: 600;
}

.page-details ul {
    list-style: none;
    padding: 0;
}

.page-details li {
    color: #c9d1d9;
    margin-bottom: 14px;
    padding-left: 24px;
    position: relative;
    font-size: 1.05rem; /* Как списки на главной */
    line-height: 1.6; /* Как списки на главной */
}

.page-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Контейнеры для изображений и видео */
.image-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    min-height: auto;
}
.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 195, 0, 0.3);
}
.image-container img, .image-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.videos-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Статистика в конце */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px auto;
    max-width: 900px;
    justify-content: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 195, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--glow-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ПРИВЕДЕНИЕ К СТИЛЮ ГЛАВНОЙ: Кнопка */
.demo-button {
    background: var(--accent-gold);
    color: var(--darkest-bg);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px var(--glow-color);
}

.demo-button:hover {
    background: #ffdd40;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-color);
}


/* Клики по картинкам-играм */
.clickable-game-image {
    cursor: pointer;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .page-content.two-column {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-title { font-size: 2.2rem; }
    .content-section { padding: 0 40px 60px; }
    .page-nav { width: calc(100% - 60px); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.15rem; }
    .hero p:first-of-type { font-size: 1.5rem; }

    .page-title { font-size: 1.9rem; }
    .page-description { font-size: 1rem; line-height: 1.6; }
    .page-details li { font-size: 0.95rem; line-height: 1.5; }

    .page-details {
        margin-bottom: 0; /* Убираем нижний отступ у карточки на мобильных */
    }
    
    .content-wrapper { padding-top: 120px; }
    .content-section { padding: 0 20px 50px; }

    .page-nav {
        width: calc(100% - 20px);
        padding: 10px 14px;
        top: 10px;
    }
    .timeline-container { gap: 15px; }
    .home-icon { padding: 6px; min-width: 28px; min-height: 28px; }
    .home-icon svg { width: 16px; height: 16px; }
    .timeline-year { font-size: 0.8rem; padding: 4px 6px; }
    
    .stats-grid { 
        flex-direction: column;
        gap: 15px; 
    }
}

/* Стили для блока Case Study */
.case-study {
    padding: 60px 40px;
    background-color: #0D1117;
    max-width: 900px;
    margin: 60px auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.case-study h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.case-study .subtitle {
    text-align: center;
    font-size: 1.2em;
    color: var(--accent-gold);
    margin-bottom: 30px;
    font-weight: 500;
}

.case-study p {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.case-study p:last-child {
    margin-bottom: 0;
}

/* Адаптивность для блока */
@media (max-width: 768px) {
    .case-study {
        padding: 40px 20px;
        margin: 40px auto;
    }
    .case-study h2 {
        font-size: 1.8em;
    }
    .case-study .subtitle {
        font-size: 1.1em;
    }
    .case-study p {
        font-size: 1em;
    }
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darkest-bg); /* Используем цвет фона с вашего сайта */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    opacity: 1;
    visibility: visible;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color); /* Используем цвет границ */
    border-top-color: var(--accent-gold); /* Акцентный цвет для анимации */
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Класс для скрытия прелоадера */
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}