/* Header (весь экран, с картинками и текстом) */
body {
    background: #0f1117;
}

#rules-container {
    background: #14161d;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero {
    position: relative;
    height: 100vh;
    background: url('img/header.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #14161d);
}

.rule {
    display: grid;
    grid-template-columns: 20% 80%;
    align-items: start;

    background: linear-gradient(145deg, #14161d, #1a1d25);
    border-radius: 20px;

    margin-bottom: 40px;
    padding: 30px 5%;

    min-height: 20vw; /* Минимальная высота = ширина 20% блока */
    
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease;
}

.rule ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.rule li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* + Галочка */
.rule li.good::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* - Крестик */
.rule li.bad::before {
    content: "✖";
    position: absolute;
    left: 0;
    color: #ff4747;
    font-weight: bold;
}

/* * Информация */
.rule li.info::before {
    content: "🛈";
    position: absolute;
    left: 0;
}

/* Анимация появления */
.rule.active {
    opacity: 1;
    transform: scale(1);
}

/* Картинка — она будет растягиваться по мере зума */
.rule img {
    width: 100%;
    height: auto; /* ВАЖНО — не 100% */
    object-fit: contain;

    align-self: start;

    transition: transform 0.6s ease;
    filter: drop-shadow(0 0 20px rgba(255, 70, 70, 0.3));
}

/* Зум картинки при появлении */
.rule.active img {
    transform: scale(1.1); /* Зум картинки */
}

/* Текстовый блок */
.rule-content {
    padding: 10px 30px;
    color: white;
    font-size: 1.2rem;
}

.rule h2 {
    color: #ff4747;
    font-size: 32px;
    margin-bottom: 20px;
}

/* Заголовок блока (правила) */
.hero h1 {
    position: absolute;
    font-size: 48px;
    color: white;
    z-index: 1;
}

/* Footer (внизу) */
footer {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: white;

}



