@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 850px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Применяем к контейнеру */
.container {
    animation: fadeInUp 1.8s ease-out;
}

h1, h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
    margin-top: 40px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    margin-bottom: 8px;
}

details {
    background: #f0f2f5;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

details:hover {
    background-color: #e8edf3;
}

summary {
    font-weight: 600;
    cursor: pointer;
    color: #0077cc;
    font-size: 1.1em;
}

a {
    color: #0077cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005fa3;
    text-decoration: underline;
}

#toggle-language {
    display: inline-block;
    background-color: #0077cc;
    color: #fff;
    border: none;
    padding: 10px 24px;
    margin-bottom: 30px;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#toggle-language:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9em;
    color: #777;
}

footer a {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 1.4em;
    }

    h2 {
        font-size: 1.2em;
        margin-top: 30px;
    }

    #toggle-language {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    ul li {
        font-size: 0.95em;
        line-height: 1.4;
    }

    a {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1em;
    }

    #toggle-language {
        width: 100%;
        padding: 10px;
    }
}
