/* --- ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary-gold: #FFD700;
    --secondary-green: #0b4b3a;
    --dark-bg: #1a1a1a;
    --text-light: #f0f0f0;
    --text-dark: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- СТИЛИ ДЛЯ ТИПОГРАФИИ --- */
a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

strong, b {
    font-weight: 700;
    color: var(--primary-gold);
}

/* --- СТИЛИ ДЛЯ СПИСКОВ --- */
ul, ol {
    margin: 20px 0;
    padding-left: 30px;
}

ul li, ol li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 10px;
}

ul li::marker {
    color: var(--primary-gold);
    font-size: 1.2em;
}

ol {
    list-style-type: decimal;
}

ol li::marker {
    color: var(--primary-gold);
    font-weight: 700;
}

/* --- СТИЛИ ДЛЯ ТАБЛИЦ --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0 80px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
}

table caption {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 20px;
    color: #fff;
    caption-side: top;
    text-align: center;
    background-color: #111;
}

th, td {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}

thead {
    background-color: var(--secondary-green);
}

th {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

tbody tr {
    background-color: #2a2a2a;
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background-color: #222;
}

tbody tr:hover {
    background-color: #3f3f3f;
}

td strong {
    color: #fff;
    font-weight: 700;
}


/* --- АНИМАЦИИ ПОЯВЛЕНИЯ --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- ХЕДЕР --- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo img {
    width: 120px;
    margin-right: 15px;
}

.btn-register {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-register:hover {
    transform: scale(1.05);
    background-color: #ffed4d;
    text-decoration: none;
}

/* --- ПЕРВЫЙ ЭКРАН (БАННЕР) --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    margin: 20px auto 0;
    max-width: 800px;
    color: var(--text-light);
}

.cta-buttons {
    margin-top: 40px;
}

.cta-btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-demo {
    background-color: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-demo:hover {
    background-color: var(--primary-gold);
    color: var(--text-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
    text-decoration: none;
}

.btn-cash {
    background-color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    color: var(--text-dark);
}

.btn-cash:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

/* --- СЕКЦИИ КОНТЕНТА --- */
.content-section {
    padding: 100px 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: var(--primary-gold);
}

.text-image-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
        
.text-image-block:nth-child(even) .image-placeholder {
    order: -1;
}

.text-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- ИЗМЕНЕНИЯ ЗДЕСЬ: Обновлены стили для контейнера картинки --- */
.image-placeholder {
    width: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden; /* Скрываем части изображения, которые выходят за рамки */
    border-radius: 15px; /* Сохраняем скругление для контейнера */
}

/* --- ДОБАВЛЕНЫ СТИЛИ ДЛЯ САМОГО ИЗОБРАЖЕНИЯ --- */
.image-placeholder img {
    width: 100%; /* Картинка растягивается на всю ширину контейнера */
    height: auto; /* Высота подстраивается автоматически для сохранения пропорций */
    display: block; /* Убирает лишние отступы под картинкой */
}
        
.image-placeholder:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

/* --- FAQ СЕКЦИЯ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #2a2a2a;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-family: inherit; 
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
        
.faq-question::after {
    content: '+';
    font-size: 2rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
        
.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* --- ФУТЕР --- */
.footer {
    background-color: #111;
    padding: 50px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}
        
.footer p:first-child {
    margin-bottom: 10px;
}
        
/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.2rem; }
    .text-image-block,
    .text-image-block:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .text-image-block:nth-child(even) .image-placeholder { order: 1; }
}
@media (max-width: 768px) {
    .header .container { flex-direction: column; }
    .logo { margin-bottom: 15px; }
    
    .hero {
        padding: 180px 20px 40px; 
        height: 100vh;
        min-height: unset;
        display: block;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .hero h1 { font-size: 2.5rem; }
    .cta-buttons { display: flex; flex-direction: column; align-items: center; }
    .cta-btn { width: 80%; margin: 10px 0; }
}

/* --- СТИЛИ ДЛЯ СТРАНИЦЫ 404 --- */
/* (Добавьте этот код в конец вашего файла style.css) */

.error-page h1 {
    font-size: 10rem; /* Огромный размер для цифр "404" */
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    line-height: 1;
}

.error-page h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
}

.error-page p {
    font-size: 1.2rem;
    margin-top: 20px;
    max-width: 500px;
}

.error-page .cta-buttons {
    margin-top: 40px;
}

/* Адаптивность для страницы 404 */
@media (max-width: 768px) {
    .error-page h1 {
        font-size: 8rem; /* Уменьшаем размер на мобильных */
    }
    .error-page h2 {
        font-size: 2rem;
    }
}