* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

:root {
    --blood: #c13b3b;
    --blood-dark: #8a1e1e;
    --blood-bright: #ff4444;
    --dark-bg: #010003;
    --card-bg: #0a0a0f;
    --text-main: #f0f0f8;
    --text-dim: #9a9bb5;
    --glow-red: rgba(193, 59, 59, 0.4);
    --display-font: 'Bebas Neue', 'Inter', sans-serif;
}

html { scrollbar-width: thin; scrollbar-color: var(--blood) #0a0a0f; scroll-behavior: smooth; }

body {
    background-color: var(--dark-bg);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: var(--blood); color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--blood-bright);
    outline-offset: 2px;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(circle, rgba(0,0,0,0.1) 0px, rgba(255,0,0,0.02) 2px, transparent 4px);
    pointer-events: none;
    z-index: 10;
    opacity: 0.15;
    mix-blend-mode: overlay;
}
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 2px, transparent 2px, transparent 6px);
    pointer-events: none;
    z-index: 11;
    opacity: 0.12;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: var(--blood); border-radius: 10px; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* ===== ВЕРХНЕЕ МЕНЮ ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(1, 0, 3, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(193, 59, 59, 0.3);
    transition: all 0.3s ease;
}
.main-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.5); border-bottom-color: rgba(193,59,59,0.5); }
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--display-font);
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
}
.logo span { color: var(--blood); }
.logo:hover { text-shadow: 0 0 10px rgba(193,59,59,0.6); }

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.25s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blood);
    box-shadow: 0 0 8px var(--glow-red);
    transition: width 0.25s ease;
}
.nav-link:hover { color: var(--blood-bright); }
.nav-link:hover::after { width: 100%; }

.lang-switch { display: flex; gap: 8px; align-items: center; }
.lang-switch a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    transition: 0.2s;
}
.lang-switch a:hover { color: var(--text-main); border-color: var(--blood); }
.lang-switch a.active { color: #fff; background: var(--blood); border-color: var(--blood); }

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}
.burger span {
    width: 28px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
    border-radius: 2px;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--blood);
}
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--blood);
}

/* ===== БОКОВАЯ ПАНЕЛЬ СОЦСЕТЕЙ (top-bar) ===== */
.social-sidebar {
    position: fixed;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    background: transparent;
}
.social-sidebar::after {
    content: '';
    width: 1px;
    height: 70px;
    background: linear-gradient(to bottom, var(--blood), transparent);
    margin-top: 6px;
}
.social-sidebar a {
    color: var(--text-dim);
    font-size: 1.3rem;
    transition: 0.25s;
    text-decoration: none;
}
.social-sidebar a:hover {
    color: var(--blood-bright);
    transform: scale(1.15);
    text-shadow: 0 0 10px var(--glow-red);
}

/* Мобильная нижняя панель соцсетей (альтернатива top-bar) */
.mobile-social-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(1, 0, 3, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(193, 59, 59, 0.3);
    padding: 12px 20px;
    justify-content: center;
    gap: 30px;
    z-index: 1000;
}
.mobile-social-bar a {
    color: var(--text-dim);
    font-size: 1.3rem;
    transition: 0.2s;
}
.mobile-social-bar a:hover, .mobile-social-bar a:active {
    color: var(--blood);
    transform: scale(1.1);
}

/* Герой */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100.5%;
    height: 100.5%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0.45;
    filter: brightness(0.5) contrast(1.3) blur(1px);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 55%, var(--dark-bg) 100%),
        radial-gradient(ellipse at center, transparent 30%, var(--dark-bg) 90%);
    z-index: -1;
}
.hero-content { animation: heroIn 1.4s cubic-bezier(0.2,0.9,0.3,1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blood-bright);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 18px;
}
.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--blood-bright);
    box-shadow: 0 0 10px var(--blood-bright);
}
.hero h1 {
    font-family: var(--display-font);
    font-size: clamp(3.2rem, 12vw, 7.2rem);
    font-weight: 400;
    line-height: 0.95;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 16px rgba(193,59,59,0.55);
}
.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.25s;
}
.scroll-cue i { font-size: 1.1rem; color: var(--blood); transition: transform 0.25s; }
.scroll-cue:hover { color: var(--blood-bright); }
.scroll-cue:hover i { transform: translateY(4px); }
.scroll-indicator {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
/* Индикатор прогресса скролла */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1200;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blood-dark), var(--blood-bright));
    box-shadow: 0 0 10px var(--blood-bright);
    transition: width 0.1s ease-out;
}

section { padding: 110px 0; }
.subpage-header { padding-top: 170px; }
@media (max-width: 768px) { .subpage-header { padding-top: 120px; } }
.section-title {
    font-family: var(--display-font);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 45px;
    border-left: 4px solid var(--blood);
    padding-left: 18px;
    letter-spacing: 1px;
}

/* Карточки */
.horror-cards-container {
    counter-reset: cardnum;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
}
@media (max-width: 900px) { .horror-cards-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .horror-cards-container { grid-template-columns: 1fr; } }

.horror-cards-container > .fade-scroll:nth-child(1), .news-grid > .fade-scroll:nth-child(1), .team-grid > .fade-scroll:nth-child(1) { transition-delay: 0s; }
.horror-cards-container > .fade-scroll:nth-child(2), .news-grid > .fade-scroll:nth-child(2), .team-grid > .fade-scroll:nth-child(2) { transition-delay: .12s; }
.horror-cards-container > .fade-scroll:nth-child(3), .news-grid > .fade-scroll:nth-child(3), .team-grid > .fade-scroll:nth-child(3) { transition-delay: .24s; }

.horror-game-card {
    background: linear-gradient(145deg, #1a0a0a 0%, #0a0a0a 100%);
    border: 2px solid #330000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6), inset 0 1px 0 rgba(139,0,0,0.3);
    counter-increment: cardnum;
}
.horror-game-card::before {
    content: counter(cardnum, decimal-leading-zero);
    position: absolute;
    bottom: 6px;
    right: 18px;
    font-family: var(--display-font);
    font-size: 5.5rem;
    line-height: 1;
    color: rgba(193, 59, 59, 0.07);
    z-index: -1;
    pointer-events: none;
}
.horror-game-card:hover {
    transform: translateY(-10px);
    border-color: var(--blood);
    box-shadow: 0 20px 40px rgba(139,0,0,0.4), 0 0 60px rgba(139,0,0,0.2);
}
.game-genre-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(10,10,15,0.85);
    border: 1px solid var(--blood);
    color: var(--blood-bright);
    padding: 5px 13px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 3;
}
.game-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid #330000;
}
.game-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(26,10,10,0.7) 100%);
}
.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.3) contrast(1.1) brightness(0.9);
    transition: all 0.6s ease;
}
.horror-game-card:hover .game-card-image img {
    transform: scale(1.08);
    filter: sepia(0.1) contrast(1.2) brightness(1);
}
.game-card-content { position: relative; z-index: 1; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.game-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #ff4444;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
    position: relative;
}
.game-card-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 2px;
    background: var(--blood);
    transition: width 0.3s ease;
}
.horror-game-card:hover .game-card-title::after { width: 90px; }
.game-card-title a { color: inherit; text-decoration: none; }
.game-card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.game-tag {
    background: rgba(139,0,0,0.2);
    color: #ff6666;
    padding: 4px 9px;
    font-size: 11px;
    text-transform: uppercase;
    border: 1px solid rgba(139,0,0,0.5);
    border-radius: 3px;
    transition: 0.25s;
}
.horror-game-card:hover .game-tag { border-color: rgba(193,59,59,0.9); }
.game-card-description {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Courier New', monospace;
}
.game-card-platforms { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.platform-icon {
    width: 36px; height: 36px;
    background: #330000; border-radius: 4px;
    color: #fff; display: flex; align-items: center; justify-content: center;
    border: 1px solid #660000; transition: all 0.3s ease;
    text-decoration: none; cursor: pointer;
}
.platform-icon:hover { background: var(--blood); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(193,59,59,0.4); }

/* Новости — карточки в духе mundfish.com: обложка 16:9 + минимум текста под ней */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 20px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: block; text-decoration: none; color: inherit; }
.news-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #0a0a0f;
}
.news-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1) brightness(0.85);
    transition: 0.5s ease;
}
.news-card:hover .news-card-image img { transform: scale(1.05); filter: sepia(0.05) contrast(1.15) brightness(0.95); }
.news-card-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
}
.news-card-tag {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blood-bright);
    background: rgba(1,0,3,0.7);
    padding: 4px 10px;
    border-radius: 20px;
}
.news-card-body { padding: 14px 2px 0; }
.news-card-date { display: block; font-size: 0.75rem; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 0.5px; }
.news-card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; transition: 0.2s; }
.news-card:hover .news-card-title { color: var(--blood-bright); }
.news-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); transition: 0.2s; }
.news-card:hover .news-card-link { color: var(--blood-bright); gap: 10px; }
.horror-game-card:hover .news-card-link { color: var(--blood-bright); gap: 10px; }

/* Страница проекта — список ссылок (Steam, VK Play, itch.io и т.п.) */
.project-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.project-links .btn i, .project-links .btn .fab { margin-right: 8px; }

/* Команда — простой, ненавязчивый список без карточек */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px 20px;
}
.team-card {
    text-align: center;
    padding: 4px;
}
.team-photo {
    width: 88px; height: 88px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: 0.4s; }
.team-card:hover .team-photo img { filter: grayscale(0); }
.team-card h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 3px; }
.team-role { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.social-team a {
    color: var(--text-dim);
    margin: 0 8px;
    font-size: 1.2rem;
    transition: 0.2s;
    display: inline-block;
}
.social-team a:hover { color: var(--blood-bright); transform: scale(1.2); }

/* Контакты / форма обратной связи */
.contact-block {
    background: linear-gradient(145deg, #1a0a0a 0%, #0a0a0a 100%);
    border: 2px solid #330000;
    border-radius: 6px;
    padding: 50px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }
.contact-intro p { color: var(--text-dim); margin-top: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #3a1c1c;
    background: #16090a;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: 0.25s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus { box-shadow: 0 0 0 2px var(--blood); border-color: var(--blood); }
.contact-form .hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
.contact-form button { align-self: flex-start; }

.flash-message {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}
.flash-message.success { background: rgba(139, 195, 74, 0.15); border: 1px solid #8bc34a; color: #a4d97b; }
.flash-message.error { background: rgba(193, 59, 59, 0.15); border: 1px solid var(--blood); color: #ff9c9c; }

/* Детальные страницы (новость/проект/о нас) — контент был прижат к левому
   краю широкого .container (до 1400px), т.к. .news-detail-content и другие
   блоки внутри не центрировались как единая колонка. Оборачиваем весь контент
   в узкую центрированную колонку — так же, как уже центрированы карточки
   проектов/новостей на главной. */
.detail-container { max-width: 900px; margin: 0 auto; }

/* Страница со списком/деталями новости — переиспользует .news-grid и .section-title */
.news-detail-image { width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
.news-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.news-detail-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; color: var(--text-dim); font-size: 0.85rem; }
.news-detail-content { max-width: 780px; margin: 0 auto; color: #cfcfe0; font-size: 1.05rem; line-height: 1.8; white-space: pre-line; text-align: center; }
.news-detail-content p { margin-bottom: 16px; }
.news-detail-content ul, .news-detail-content ol { text-align: left; display: inline-block; }
.news-detail-content h1, .news-detail-content h2, .news-detail-content h3 {
    font-family: var(--display-font);
    color: var(--text-main);
    margin: 30px 0 14px;
    line-height: 1.3;
}
.news-detail-content ul, .news-detail-content ol { margin: 0 0 16px 24px; }
.news-detail-content li { margin-bottom: 6px; }
.news-detail-content a { color: var(--blood-bright); text-decoration: underline; }
.news-detail-content blockquote {
    border-left: 3px solid var(--blood);
    padding: 4px 20px;
    margin: 20px 0;
    color: var(--text-dim);
    font-style: italic;
}
.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
}
.news-detail-content video,
.news-detail-content audio {
    max-width: 100%;
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    display: block;
}
.news-detail-content iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}
/* Классы форматирования, которые расставляет редактор новостей (Quill) в админке */
.news-detail-content .ql-size-small { font-size: 0.75em; }
.news-detail-content .ql-size-large { font-size: 1.5em; }
.news-detail-content .ql-size-huge { font-size: 2.5em; }
.news-detail-content .ql-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.news-detail-content .ql-font-monospace { font-family: 'Courier New', monospace; }
.news-detail-content .ql-align-center { text-align: center; }
.news-detail-content .ql-align-right { text-align: right; }
.news-detail-content .ql-align-justify { text-align: justify; }
.news-detail-content .ql-indent-1 { padding-left: 3em; }
.news-detail-content .ql-indent-2 { padding-left: 6em; }
.news-detail-content .ql-indent-3 { padding-left: 9em; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); text-decoration: none; margin-bottom: 30px; transition: 0.2s; }
.back-link:hover { color: var(--blood-bright); }

/* Страница "О нас" — история студии: имена собственные и названия проектов
   выделены брендовым красным, как на прежней версии страницы */
.about-story strong { color: var(--blood-bright); text-shadow: 0 0 10px rgba(193,59,59,0.35); }
.about-story em { color: var(--text-dim); font-style: italic; }
.about-story a { color: var(--blood-bright); }

/* FAQ на странице "О нас" */
.faq-block { max-width: 780px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: linear-gradient(145deg, #1a0a0a 0%, #0a0a0a 100%);
    border: 1px solid #330000;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
}
.faq-question { cursor: pointer; font-weight: 700; color: var(--text-main); list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before { content: '+'; color: var(--blood-bright); margin-right: 10px; font-weight: 900; }
.faq-item[open] .faq-question::before { content: '−'; }
.faq-answer { color: var(--text-dim); margin-top: 12px; line-height: 1.7; }

/* Футер */
.footer {
    position: relative;
    padding: 70px 0 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 70%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood), transparent);
}
.footer-col h4 { margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; color: var(--blood-bright); }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; margin-bottom: 12px; transition: 0.25s; }
.footer-col a:hover { color: var(--blood-bright); padding-left: 5px; }

.btn {
    position: relative;
    overflow: hidden;
    display: inline-block; padding: 13px 30px; border-radius: 40px;
    text-decoration: none; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; transition: 0.3s; cursor: pointer; font-size: 0.8rem; border: none;
}
.btn-blood { background: var(--blood); color: white; box-shadow: 0 5px 12px rgba(193,59,59,0.3);}
.btn-blood::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: 0.6s;
}
.btn-blood:hover::before { left: 130%; }
.btn-blood:hover { background: #b12b2b; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(193,59,59,0.45); }

.fade-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(8px);
    transition: opacity 1.1s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 1.1s cubic-bezier(0.2, 0.9, 0.4, 1.1), filter 1.1s ease-out;
}
.fade-scroll.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* Кнопка "наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--blood);
    color: #fff;
    border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: 0.3s;
    z-index: 900;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blood-dark); box-shadow: 0 0 18px var(--glow-red); }

/* Модалка */
.modal-trailer {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    z-index: 20000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #0c0c14;
    max-width: 700px;
    width: 90%;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--blood);
    position: relative;
    box-shadow: 0 0 60px rgba(193,59,59,0.25);
    animation: modalIn 0.35s cubic-bezier(0.2,0.9,0.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.modal-content i.fa-film { font-size: 2rem; color: var(--blood); margin-bottom: 10px; display: inline-block; }
.close-modal {
    position: absolute;
    top: 18px; right: 24px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}
.close-modal:hover { color: var(--blood); transform: rotate(90deg); }

/* Адаптивность */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 2.6rem; letter-spacing: 0.5px; }
    .hero p { font-size: 0.9rem; padding: 0 15px; }
    .footer { grid-template-columns: 1fr; text-align: center; }
    .footer-col a:hover { padding-left: 0; }
    .social-sidebar { display: none; } /* Скрываем боковую панель на мобильных */
    .mobile-social-bar { display: flex; } /* Показываем нижнюю панель */
    .footer-social { display: none; } /* На мобильных соцсети уже доступны через нижнюю панель — дублировать их в футере незачем */
    .back-to-top { bottom: 80px; right: 18px; }

    .burger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background: rgba(5, 3, 8, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 35px;
        transition: 0.4s ease;
        border-left: 1px solid rgba(193,59,59,0.4);
        box-shadow: -5px 0 30px rgba(0,0,0,0.8);
        z-index: 999;
        padding: 40px 20px;
    }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.1rem; text-align: center; }
    .header-container { padding: 12px 20px; }
    .logo { font-size: 1.5rem; }

    section { padding: 60px 0; }
    .section-title { margin-bottom: 32px; font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; letter-spacing: 0.5px; }
    .game-card-title { font-size: 18px; }
    .game-card-content { padding: 18px; }
    .footer-col { width: 100%; text-align: center; }
    .mobile-social-bar { gap: 20px; padding: 10px 15px; }
    .mobile-social-bar a { font-size: 1.1rem; }
}
