/* ===== ПОДКЛЮЧЕНИЕ ШРИФТА FORZA BLACK ===== */
@font-face {
    font-family: 'ForzaBlack';
    src: url('fonts/Forza-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'ForzaBlack', sans-serif;
}

body {
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Фон для всего сайта */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: #000000;
}

.site-background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px) brightness(1);
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 0 auto 60px;
    max-width: 1200px;
    width: 90%;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 1);
}

/* Постер игры */
.poster-section {
    position: relative;
    height: 45vh;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 1);
}

.poster-loading {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f1a2a 0%, #1a283a 100%);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(74, 158, 255, 0.3);
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.game-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.game-poster.loaded {
    opacity: 1;
}

.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 26, 42, 0.95), transparent);
    padding: 40px 40px 30px;
}

.game-tagline {
    font-size: 20px;
    color: #ffffff;
    backdrop-filter: blur(2px);
    max-width: 800px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.25);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #ffffff;
}

/* Логотип в углу постера (ПК) */
.game-logo-corner {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10;
    max-width: 600px;
    text-align: right;
}

.game-logo-corner img {
    max-height: 240px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    transition: transform 0.3s ease;
}

.game-logo-corner img:hover {
    transform: scale(1.05);
}

/* Мобильные элементы (по умолчанию скрыты) */
.game-logo-mobile,
.poster-download-buttons-mobile {
    display: none;
}

.poster-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
}

.poster-download-btn.google-play {
    background: #34A853;
}

.poster-download-btn.app-store {
    background: #007AFF;
}

.poster-download-btn:hover {
    transform: translateY(-2px);
}

.poster-download-btn.google-play:hover {
    background: linear-gradient(to right, #34A853, #4285F4);
    border: 1px solid rgba(255, 255, 255, 1);
}

.poster-download-btn.app-store:hover {
    background: linear-gradient(to right, #4a9eff, #007AFF);
    border: 1px solid rgba(255, 255, 255, 1);
}

.poster-btn-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.poster-btn-text span:first-child {
    font-size: 12px;
    opacity: 0.9;
}

.poster-btn-text span:last-child {
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
}

/* Слайдер скриншотов */
.screenshots-section {
    width: 100%;
    position: relative;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
    opacity: 0.7;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.slider-arrow-left {
    left: 10px;
}

.slider-arrow-right {
    right: 10px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #fff;
}

/* Видео секция */
.video-section {
    width: 100%;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.video-preview {
    width: 100%;
    height: 100%;
    flex-grow: 1;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background-color: #1a283a;
}

.video-preview:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 26, 42, 0.7);
    transition: background 0.3s;
}

.video-preview:hover:before {
    background: rgba(15, 26, 42, 0.4);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s;
}

.play-overlay:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

.play-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent #4a9eff;
    margin-left: 5px;
}

.youtube-iframe {
    width: 100%;
    height: 100%;
    min-height: 315px;
    border: none;
    border-radius: 15px;
}

/* Описание игры */
.game-description {
    width: 100%;
    background-color: rgba(30, 40, 55, 0.2);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    padding-bottom: 8px;
}

.game-description p {
    margin-bottom: 20px;
    font-size: 17px;
    color: #e6f0ff;
}

.game-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #e6f0ff;
}

.game-description li {
    margin-bottom: 8px;
}

/* Кнопки загрузки */
.download-section {
    text-align: center;
    margin: 60px 0;
    position: relative;
}

.download-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #ffffff;
}

.download-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 30px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.download-btn:nth-child(1) {
    background: #34A853;
}

.download-btn:nth-child(1):hover {
    transform: translateY(-5px);
    background: linear-gradient(to right, #34A853, #4285F4);
    border-color: rgba(255, 255, 255, 1);
}

.download-btn:nth-child(2) {
    background: #007AFF;
}

.download-btn:nth-child(2):hover {
    transform: translateY(-5px);
    background: linear-gradient(to right, #4a9eff, #007AFF);
    border-color: rgba(255, 255, 255, 1);
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.btn-text span:first-child {
    font-size: 14px;
    opacity: 0.9;
}

/* Подвал – чёрный фон */
footer {
    background: #000000;   /* было градиентное голубое, теперь чёрный */
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 2px solid #fff;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-game-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    color: #fff;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.footer-links a {
    color: #e6f0ff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #4a9eff;
}

.footer-contact {
    margin-top: 10px;
    text-align: right;
}

.footer-contact p {
    color: #fff;
    font-size: 13px;
    margin-bottom: 5px;
}

.footer-contact a {
    color: #e6f0ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #4a9eff;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 1);
    color: #a0c1ff;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.eivex-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    max-width: 300px;
}

/* Модальное окно */
.screenshot-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(74, 158, 255, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1001;
}

.modal-close:hover {
    background: #4a9eff;
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 158, 255, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1001;
}

.modal-nav:hover {
    background: #4a9eff;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .poster-section {
        height: 75vh;
        min-height: 500px;
    }
    .game-logo-corner {
        max-width: 400px;
    }
    .game-logo-corner img {
        max-height: 180px;
    }
    .video-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .poster-section {
        height: 65vh;
        min-height: 450px;
    }
    .poster-overlay {
        display: none;
    }
    .game-logo-corner {
        display: none;
    }
    .game-logo-mobile {
        display: block;
        position: absolute;
        top: 30px;
        left: 0;
        right: 0;
        text-align: center;
        z-index: 10;
    }
    .game-logo-mobile img {
        height: 100px;
        width: auto;
        max-width: 80%;
        object-fit: contain;
        filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    }
    .poster-download-buttons-mobile {
        display: flex;
        position: absolute;
        bottom: 30px;
        left: 0;
        right: 0;
        justify-content: center;
        gap: 15px;
        z-index: 10;
        padding: 0 20px;
    }
    .poster-download-btn {
        min-width: 140px;
        padding: 12px 15px;
        font-size: 14px;
        flex: 1;
        max-width: 160px;
    }
    .poster-btn-text span:last-child {
        font-size: 14px;
    }
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .footer-logo-section {
        justify-content: center;
        text-align: center;
    }
    .footer-links {
        text-align: center;
        align-items: center;
    }
    .footer-contact {
        text-align: center;
    }
    .video-container {
        height: 400px;
    }
    .slider {
        height: 400px;
    }
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .modal-prev {
        left: 10px;
    }
    .modal-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .poster-section {
        height: 55vh;
        min-height: 400px;
    }
    .game-logo-mobile img {
        height: 80px;
    }
    .poster-download-buttons-mobile {
        bottom: 20px;
        gap: 10px;
        padding: 0 15px;
    }
    .poster-download-btn {
        min-width: 120px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .poster-btn-text span:first-child {
        font-size: 10px;
    }
    .poster-btn-text span:last-child {
        font-size: 12px;
    }
    .section-title {
        font-size: 24px;
    }
    .download-title {
        font-size: 26px;
    }
    .download-btn {
        min-width: 100%;
        padding: 15px 20px;
    }
    .eivex-logo {
        height: 30px;
        max-width: 250px;
    }
    .video-container {
        height: 300px;
    }
    .slider {
        height: 300px;
    }
    .modal-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .poster-section {
        height: 50vh;
        min-height: 350px;
    }
    .game-logo-mobile img {
        height: 70px;
    }
    .poster-download-buttons-mobile {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .poster-download-btn {
        min-width: 200px;
        max-width: 200px;
    }
    .video-container {
        height: 250px;
    }
    .slider {
        height: 250px;
    }
}