/* --- Сброс и Переменные --- */
:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #6c5ce7;
    --accent-hover: #5649c0;
    --gradient: linear-gradient(45deg, #6c5ce7, #a29bfe);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px); /* Эффект стекла */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo span { color: var(--accent); }

.navbar a {
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.navbar a:hover { color: var(--accent); }

/* --- Buttons & Animations --- */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Анимированная главная кнопка */
.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: white;
    color: black;
}

.btn-icon {
    background: #2d2d2d;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-icon:hover { background: var(--accent); }

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1e1e2f 0%, #0f0f0f 70%);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(#fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* --- Layout Utils --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- Video Placeholder --- */
.video-placeholder {
    width: 100%;
    height: 500px;
    background: #1a1a1a;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.play-button {
    font-size: 3rem;
    color: white;
    background: var(--accent);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: 0.3s;
    cursor: pointer;
}
.video-placeholder:hover .play-button { transform: scale(1.1); }

/* --- Cards Grid (Interviews) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-image {
    height: 200px;
    background-color: #333;
    background-size: cover;
    background-position: center;
}
/* Заглушки для картинок */
.img-1 { background-image: url(data/avatars/DaniilMed.jpg) }
.img-2 { background-image: url(data/avatars/NikitaDroid.jpg) }
.img-3 { background-image: url(data/avatars/IgorMalishev.jpg)}
.img-4 { background-image: url(data/avatars/VitaliyDanilin.jpg)}

.card-content { padding: 25px; }

.tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
}

.card-content h3 { margin: 10px 0; font-size: 1.5rem; }
.card-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.btn-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-text:hover { color: var(--accent); margin-left: 5px; }

/* --- News List --- */
.news-item {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.news-item:hover {
    background: #252525;
    border-left: 3px solid var(--accent);
}

.date {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
    margin-right: 30px;
    min-width: 80px;
    text-align: center;
}

.news-info { flex-grow: 1; }
.news-info h4 { font-size: 1.2rem; margin-bottom: 5px; }
.news-info p { color: var(--text-muted); font-size: 0.9rem; }

.btn-small {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #444;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-small:hover { background: white; color: black; border-color: white; }

/* --- Scroll Animation Classes (JS triggers) --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid #222;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .header { padding: 20px; }
    .navbar { display: none; } /* Упрощено для примера */
    .grid-container { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; text-align: center; gap: 15px; }
    .date { margin: 0; }
}

/* --- ДОПОЛНЕНИЯ ДЛЯ НОВЫХ СТРАНИЦ --- */

/* Активная ссылка в меню */
.navbar a.active {
    color: var(--accent);
    font-weight: 700;
}

/* Заголовки внутренних страниц */
.page-header {
    padding: 150px 20px 50px; /* Отступ сверху под меню */
    text-align: center;
    background: radial-gradient(circle at top, #1e1e2f 0%, #0f0f0f 70%);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Фильтры */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Новости (Large view) */
.news-item.large {
    display: block; /* Меняем flex на block для новостей */
    border-left: 4px solid var(--accent); /* Более яркий акцент слева */
    padding: 40px;
}

.news-item.large .date {
    text-align: left;
    margin: 10px 0;
    display: block;
}

.news-item.large h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

/* Страница Поста (Article) */
.post-container {
    padding-top: 120px; /* Отступ под фиксированный хедер */
    max-width: 900px; /* Делаем контент уже для удобства чтения */
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin: 15px 0;
    line-height: 1.3;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.full-width {
    margin-bottom: 50px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.post-content h2 {
    color: white;
    margin: 40px 0 20px;
    font-size: 1.6rem;
}

.post-content h4 {
    color: white;
    margin: 40px 0 20px;
    font-size: 1rem;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content .intro {
    font-size: 1.3rem;
    font-weight: 300;
    color: white;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 30px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: white;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.share-buttons {
    margin-top: 50px;
    border-top: 1px solid #333;
    padding-top: 30px;
    display: flex;
    gap: 15px;
}

/* Ссылка-карточка на всей площади */
a.card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* --- Стиль для главной картинки поста --- */
.post-hero-DaniilMed-image {
    width: 100%;
    height: 450px; /* Высота картинки */
    background-image: url(data/avatars/DaniilMed.jpg); /* Красивый фиолетовый градиент */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); /* Тень для объема */
    border: 1px solid rgba(255,255,255,0.1);
}
.post-hero-NikitaDroid-image {
    width: 100%;
    height: 450px; /* Высота картинки */
    background-image: url(data/avatars/NikitaDroid.jpg); /* Красивый фиолетовый градиент */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); /* Тень для объема */
    border: 1px solid rgba(255,255,255,0.1);
}
.post-hero-IgorMalishev-image {
    width: 100%;
    height: 450px; /* Высота картинки */
    background-image: url(data/avatars/IgorMalishev.jpg); /* Красивый фиолетовый градиент */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); /* Тень для объема */
    border: 1px solid rgba(255,255,255,0.1);
}

.post-hero-Vitaliy-image {
    width: 100%;
    height: 450px; /* Высота картинки */
    background-image: url(data/avatars/VitaliyDanilin.jpg); /* Красивый фиолетовый градиент */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); /* Тень для объема */
    border: 1px solid rgba(255,255,255,0.1);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .post-hero-image {
        height: 250px; /* На телефоне картинка пониже */
    }
}

/* --- СТРАНИЦА О НАС --- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки: текст и фото */
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Статистика */
.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

/* Фото автора */
.about-image {
    height: 500px;
    background-image: url(data/avatars/TheNingun.png);/* Градиент вместо фото */
    background-size: cover;
    border-radius: 20px;
    box-shadow: -20px 20px 0px rgba(255, 255, 255, 0.05); /* Декоративная тень */
}

/* Форма контактов */
.contact-box {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #333;
    max-width: 800px;
    margin: 0 auto; /* По центру */
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    background: #151515;
}

/* Адаптив для About */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr; /* На телефоне одна колонка */
    }
    .about-image {
        height: 300px;
        order: -1; /* Фото ставим над текстом */
    }
    .stats-row {
        justify-content: space-between;
    }
}
/* --- СТИЛИ ДЛЯ СОЦСЕТЕЙ --- */

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    text-align: left; /* Текст внутри кнопок выравниваем влево */
}

.social-card {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Иконка (эмодзи) */
.social-icon {
    font-size: 1.8rem; /* Размер иконки */
    margin-right: 20px;
    background: #252525;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    color: white; /* Делаем саму иконку белой по умолчанию */
}

.social-text h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.social-text span {
    color: #888;
    font-size: 0.85rem;
}

.arrow {
    margin-left: auto; /* Отодвигает стрелку в самый конец */
    color: #555;
    font-size: 1.5rem;
    transition: 0.3s;
}

/* --- Эффекты при наведении (Hover) --- */

.social-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}

.social-card:hover .arrow {
    color: white;
    transform: translateX(5px);
}

/* Цвета брендов при наведении */

/* --- Цвета брендов при наведении (Обновлено) --- */

/* Telegram */
.social-card.tg:hover { border-color: #0088cc; background: rgba(0, 136, 204, 0.05); }
.social-card.tg:hover .social-icon { background: #0088cc; box-shadow: 0 0 20px rgba(0, 136, 204, 0.6); }

/* YouTube */
.social-card.yt:hover { border-color: #ff0000; background: rgba(255, 0, 0, 0.05); }
.social-card.yt:hover .social-icon { background: #ff0000; box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); }

/* Instagram */
.social-card.inst:hover { border-color: #E1306C; background: rgba(225, 48, 108, 0.05); }
.social-card.inst:hover .social-icon { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); 
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.6); 
}

/* TikTok */
.social-card.tt:hover { border-color: #00f2ea; background: rgba(0, 242, 234, 0.05); }
.social-card.tt:hover .social-icon { 
    background: #000; 
    border: 1px solid #333;
    color: #00f2ea; /* Иконка тиктока станет цветной */
    text-shadow: 2px 2px 0px #ff0050; /* Эффект глюка TikTok */
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.4); 
}
/* --- СТРАНИЦА 404 --- */

.error-container {
    height: 100vh; /* На весь экран */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000 90%);
}

.error-content {
    z-index: 2; /* Поверх фона */
    padding: 20px;
}

/* Огромные цифры 404 */
.glitch-text {
    font-size: 12rem; /* Очень большие */
    font-weight: 900;
    line-height: 1;
    margin: 0;
    
    /* Делаем текст прозрачным, но с цветной обводкой */
    color: transparent;
    -webkit-text-stroke: 3px var(--accent);
    
    /* Тень для свечения */
    text-shadow: 0 0 50px rgba(108, 92, 231, 0.5);
    
    position: relative;
    animation: pulse 3s infinite ease-in-out;
}

.error-content h2 {
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 15px;
    color: white;
}

.error-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Фоновое пятно (Glow) */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent);
    filter: blur(150px); /* Сильное размытие */
    opacity: 0.15;
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        text-shadow: 0 0 50px rgba(108, 92, 231, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 80px rgba(108, 92, 231, 0.9);
        transform: scale(1.02); /* Чуть увеличивается */
    }
    100% {
        text-shadow: 0 0 50px rgba(108, 92, 231, 0.5);
        transform: scale(1);
    }
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 6rem; /* Уменьшаем цифры на мобилках */
        -webkit-text-stroke: 2px var(--accent);
    }
    .error-content h2 {
        font-size: 1.5rem;
    }
}
/* --- СТРАНИЦА ПРОСМОТРА ФОТО --- */

/* Специальный режим для body, чтобы центрировать контент */
body.photo-mode {
    background-color: #050505; /* Еще темнее, чем обычно */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.photo-viewer {
    flex-grow: 1; /* Растягиваем на всю высоту */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px; /* Отступ сверху под меню */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Панель с кнопкой "Назад" */
.viewer-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    transition: 0.3s;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 30px;
}

.btn-back:hover {
    color: white;
    background: var(--accent);
}

.btn-icon-small {
    background: transparent;
    border: 1px solid #333;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.btn-icon-small:hover { border-color: white; }

/* Контейнер для фото */
.image-container-Vitaly {
    width: 25%;
    height: 100vh; /* Занимает 70% высоты экрана */
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border: 1px solid #333;
    position: relative;
}

/* Это стиль для заглушки-градиента */
.main-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* А это стиль для реальной картинки <img> */
.real-photo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Чтобы фото не обрезалось, а помещалось целиком */
    background-color: black;
}

/* Подпись под фото */
.photo-caption {
    margin-top: 20px;
    text-align: center;
    max-width: 600px;
}

.photo-caption h3 {
    color: white;
    margin-bottom: 5px;
}

.photo-caption p {
    color: var(--text-muted);
    font-size: 0.9rem;
}