/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #050a18; /* Blu scuro */
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* BUTTONS */
.btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffcc00;
    color: #000;
}

.btn-outline {
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    margin: 10px;
    width: 250px;
}

.full-width {
    width: 100%;
    margin-top: 15px;
}

/* HEADER */
header {
    background: rgba(5, 10, 24, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #1a2a4a;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: #007bff;
}

/* HERO IMAGE */
.hero-image-block {
    padding: 40px 0;
    text-align: center;
}

.image-placeholder {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #10192d;
    min-height: 300px;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* GAME SECTION */
.game-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.demo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #1a2a4a;
}

.demo-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#iframeContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* TABLE */
.game-info {
    background: #10192d;
    padding: 25px;
    border-radius: 12px;
}

.info-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.info-table td {
    padding: 12px 0;
    border-bottom: 1px solid #1a2a4a;
}

.info-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #007bff;
}

/* BONUS STRIP */
.bonus-strip {
    background: linear-gradient(90deg, #0056b3, #00bfff);
    padding: 20px 0;
    margin-bottom: 50px;
}

.strip-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.strip-item {
    color: white;
    padding: 5px 15px;
}

/* CONTENT SECTION */
/* Content Section */
.content-section {
    padding: 40px 0;
}

/* Заголовок с твоим цветом */
.content-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #007bff;
    font-size: 2rem;
}

/* Абзацы */
.content-section p {
    margin-bottom: 1.25rem;
    line-height: 1.65;
    color: inherit; /* Берет основной цвет текста страницы */
}

/* Списки */
.content-section ul, 
.content-section ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
}

/* Маркеры списков под цвет заголовка */
.content-section ul li::marker {
    color: #007bff;
}

/* Таблицы */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border: 1px solid #e9ecef;
}

.content-section th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 14px;
    border-bottom: 2px solid #007bff; /* Акцентная линия под цвет заголовка */
    text-align: left;
}

.content-section td {
    padding: 12px 14px;
    border-bottom: 1px solid #e9ecef;
}

/* Зебра для длинных таблиц */
.content-section tr:nth-child(even) {
    background-color: rgba(0, 123, 255, 0.02);
}

/* Убираем лишний отступ у последнего элемента */
.content-section > *:last-child {
    margin-bottom: 0;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
    background: #081021;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #1a2a4a;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: #10192d;
    border: none;
    color: white;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    padding: 0 20px;
    background: #10192d;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 20px;
}

/* AUTHOR */
.author-card {
    display: flex;
    align-items: center;
    background: #10192d;
    padding: 30px;
    border-radius: 15px;
    margin: 60px auto;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
    border: 3px solid #007bff;
}

/* FOOTER */
footer {
    padding: 60px 0 40px;
    background: #050a18;
    border-top: 1px solid #1a2a4a;
    text-align: center;
}

.footer-text {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.footer-contacts {
    font-size: 0.9rem;
    color: #007bff;
}

/* MOBILE ADAPTATION */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-wrapper {
        padding-top: 56.25%; /* Mantiene 16:9 */
    }

    .btn-large {
        width: 100%;
        margin: 5px 0;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
}