@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #fff;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: #fff;
    color: inherit;
}

img {
    border-radius: 100px;
    max-width:600px;
    padding: 50px;
}

.wrapper {
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(32, 34, 217, 1) 100%);
    width: 100%;
}

.container {
    width: 90%; 
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 15px; 
}

header {
    padding: 30px 0; 
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: center;
}

header .logo {
    text-transform: uppercase;
    font-size: 24px; 
    font-weight: 800;
}

header nav {
    width: 100%; 
    text-align: center; 
    order: 1; 
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around; 
    padding: 0;
    margin: 15px 0 0; 
    flex-wrap: wrap; 
}

header nav ul li {
    display: inline-block;
    margin: 5px 0;
}

header nav ul li a {
    color: #fff;
    display: block; 
    padding: 5px 10px; 
}

header nav ul li.active::after {
    content: '';
    display: block;
    width: 30px; 
    height: 3px; 
    background: #2022d9;
    border-radius: 10px;
    position: relative;
    top: 5px; 
    left: 50%;
    transform: translateX(-50%); 
}

header nav ul li:not(.active):not(.btn) a:hover {
    border-bottom: 3px solid #2022d9;
}

header nav ul li.btn a {
    background: #2022d9;
    padding: 7px 13px; 
    border-radius: 5px;
    transition: all 500ms ease;
}

header nav ul li.btn a:hover {
    background: #0d0e83;
}

/* Footer */
footer {
    background: #000000;
    padding: 50px;
    margin-top: 50px;
}

footer .blocks{
    display: flex;
    justify-content: space-between;
}

footer .logo{
    text-transform: uppercase;
    font-size: 30px;
    font-weight: 800;
}

footer .blocks p{
    width: 300px;
    margin: 15px 0;
}

footer .blocks h4{
    font-weight: 500;
    font-size: 17px;
}

footer .blocks ul{
    list-style: none;
}

footer .blocks ul li{
    margin-top: 7px;
    opacity: 0.8;
}

hr{
    margin-top: 20px;
}

.container_1 {
    align-content: center;
    padding: 50px;
    background-color: #000000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 90vh;
}

.container_1 h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.container_1 h2 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.container_1 p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.container_1 ul {
    margin-left: 20px;
    list-style-type: disc;
}

.container_1 a {
    color: #3366cc;
    text-decoration: none;
}

.container_1 a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    
    /* === FIX START (добавлено) === */
    body {                       /* убираем вертикальное центрирование */
        align-items: flex-start;
    }

    .container_1 {               /* отключаем внутренний скролл/90vh */
        max-height: none;
        overflow-y: visible;
    }
    /* ===  FIX END  === */

    .container {
        width: 90%; 
    }

    /* Footer */
    footer {
        padding: 30px; 
        text-align: center; 
    }

    footer .blocks {
        flex-direction: column;
        align-items: center;
    }

    footer .blocks p {
        width: 100%;
        max-width: 300px;
        margin: 10px 0;
    }

    footer .logo {
        font-size: 24px;
    }

    footer .blocks{
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    footer .blocks ul{
        display: flex;
        flex-direction: column;
        align-items: center;

    }
}

@media (min-width: 767px) {

    /* Header */
    header {
        flex-wrap: nowrap;
    }

    header nav {
        width: 50%;
        text-align: right;
        order: 0;
    }
}
