@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --back: #0a0d12;
    --accent: #fd7d62;
    --accent-glow: rgba(253, 125, 98, 0.4);
    --txt: #f0f0f0;
    --txt-muted: rgba(255, 255, 255, 0.6);
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--back);
    color: var(--txt);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(253, 125, 98, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 125, 98, 0.05) 0%, transparent 50%);
}

main {
    width: 900px;
    margin-inline: auto;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

h1 {
    color: var(--accent);
    margin-bottom: 30px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
}

h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light, #ff9a8b));
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--accent-glow);
}

main > p {
    text-align: center;
    color: var(--txt-muted);
    margin-bottom: 40px;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== DETAILS / ACCORDION ========== */
details {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

details:hover {
    border-color: rgba(253, 125, 98, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

details[open] {
    border-color: rgba(253, 125, 98, 0.4);
    background: rgba(253, 125, 98, 0.03);
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    padding: 5px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

summary:hover {
    color: var(--accent-light, #ff9a8b);
}

summary::marker {
    color: var(--accent);
}

details div {
    border: 1px solid var(--border);
    background: rgba(10, 13, 18, 0.6);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0 0.5rem;
    color: var(--txt-muted);
    line-height: 1.7;
    transition: all 0.3s ease;
}

details div:hover {
    border-color: rgba(253, 125, 98, 0.2);
    background: rgba(253, 125, 98, 0.02);
}

details div p {
    margin-top: 10px;
    margin-left: 10px;
    color: var(--txt-muted);
}

details div span {
    color: #fff !important;
    background-color: var(--accent) !important;
    border-radius: 6px;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-glow);
}

details span {
    color: #fff !important;
    background-color: var(--accent) !important;
    border-radius: 6px;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-glow);
}

#limity ul {
    padding-left: 1.5rem;
    margin-top: 10px;
}

#limity ul li {
    margin-bottom: 8px;
    color: var(--txt-muted);
    line-height: 1.6;
}

#limity ul li::marker {
    color: var(--accent);
}

pre {
    background: rgba(10, 13, 18, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--txt-muted);
}

main > p:last-of-type {
    text-align: center;
    font-weight: 600;
    color: var(--accent);
    margin-top: 40px;
    font-size: 1.1rem;
}

/* ========== FOOTER ========== */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(10, 13, 18, 0.5);
    backdrop-filter: blur(10px);
}

footer p {
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 0.5px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--back);
}

::-webkit-scrollbar-thumb {
    background: rgba(253, 125, 98, 0.3);
    border-radius: 5px;
    border: 2px solid var(--back);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 125, 98, 0.5);
}

/* ========== SELECTION ========== */
::selection {
    background: var(--accent);
    color: var(--back);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 950px) {
    main {
        width: 95%;
        padding: 40px 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    summary {
        font-size: 1rem;
    }
    
    pre {
        font-size: 0.8rem;
        padding: 15px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }
    
    details {
        padding: 0.8rem;
    }
    
    details div {
        padding: 0.8rem;
    }
    
    pre {
        font-size: 0.75rem;
    }
}
