:root {
    --bg-main: #0d0d0d;
    --bg-section: #1f1f1f;
    --accent-gold: #ffd700;
    --text-main: #f0f0f0;
    --text-muted: #b0b0b0;
    --bonus-red: #ff4d4d;
    --link-blue: #00ccff;
}
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-main);

}
.rand_header-bg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--bg-section);
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.rand_logo {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-gold);
    font-size: 1.5em;
    display: flex;
    align-items: center;
}
.rand_logo-svg {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.rand_nav ul {
    display: flex;
    gap: 20px;
}
.rand_nav li {
    list-style: none;
    cursor: pointer;
    color: var(--link-blue);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1em;
    position: relative;
}
.rand_nav li:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--bonus-red);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.rand_nav li:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.rand_section-1 {
    display: flex;
    align-items: center;
    padding: 50px;
    background-color: var(--bg-section);
}
.rand_section-image {
    width: 50%;
    height: 200px;
    background: url('assets/mask-ripped-edge.jpg') no-repeat center center;
    background-size: cover;
}
.rand_section-content {
    width: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
}
.rand_section-content {
    color: var(--text-main);
}
.rand_h1-main {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-gold);
    margin-bottom: 20px;
}
.rand_btn-claim {
    background-color: var(--bonus-red);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
    50% {
        opacity: 0;
    }
}
.rand_section-2,
.rand_section-3 {
    padding: 50px 20px;
}
.rand_footer-bg {
    background-color: #8b0000;
    padding: 10px 20px;
    text-align: center;
}
.rand_footer-bg p {
    color: var(--text-main);
}
.rand_footer-bg a {
    color: var(--link-blue);
    text-decoration: none;
}
@media(max-width: 768px) {
    .rand_header-bg,
    .rand_section-1 {
        flex-direction: column;
    }
}
@media(max-width: 480px) {
    .rand_nav ul {
        display: none;
    }
}


.rand_burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}
.rand_burger span {
    display: block;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}


@media(max-width: 768px) {
    .rand_burger {
        display: flex;
    }

    .rand_nav {
        width: 100%;
    }

    .rand_nav ul {
        flex-direction: column;
        display: none;
        background-color: var(--bg-section);
        padding: 10px 0;
        margin: 0;
    }

    .rand_nav.active ul {
        display: flex;
    }

    .rand_nav li {
        padding: 10px 20px;
        border-bottom: 1px solid var(--bg-main);
    }
}


.rand_menu a {
    text-decoration: none;
    color: var(--link-blue);
}



/* Загальні стилі контейнерів */
.rand_section-2,
.rand_accordion,
.rand_section-3 {
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem auto;
    max-width: 800px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* === rand_section-2 === */
.rand_section-2 h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}
.rand_section-2 p {
    font-size: 1rem;
    line-height: 1.6;
    color: #34495e;
}
.rand_section-2 ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}
.rand_section-2 li {
    list-style: disc;
    margin-bottom: 0.5rem;
}
.rand_section-2 strong {
    font-weight: bold;
    color: #e74c3c;
}

/* === rand_accordion === */
.rand_accordion h2 {
    font-size: 1.75rem;
    color: #2980b9;
    margin-bottom: 1rem;
}
.rand_accordion h3 {
    cursor: pointer;
    background-color: #ecf0f1;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1.2rem;
    border: 1px solid #bdc3c7;
    transition: background-color 0.3s ease;
}
.rand_accordion h3:hover {
    background-color: #d0d7de;
}
.rand_accordion p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1rem;
    background-color: #ffffff;
    border-left: 4px solid #2980b9;
    margin: 0;
}
.rand_accordion h3.active + p {
    max-height: 200px; /* або auto, але анімація буде кращою з фіксованим значенням */
    padding: 1rem;
}

/* === rand_section-3 === */
.rand_section-3 h2 {
    font-size: 2rem;
    color: #8e44ad;
    border-bottom: 2px solid #8e44ad;
    margin-bottom: 1rem;
}
.rand_section-3 ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.rand_section-3 ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.rand_section-3 li {
    margin-bottom: 0.5rem;
}
.rand_section-3 p {
    font-size: 1rem;
    color: #2d3436;
    line-height: 1.5;
}
