/* Основные стили */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
}

/* Центрирование секции */
section:nth-of-type(1) {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.3rem;
    margin: auto 0;
    text-align: center;
    padding: 2.5em;
    justify-content: space-between;
}

/* Заголовок */
section:nth-of-type(1) h1 {
    font-weight: 700;
    font-size: 3.75rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Кнопка */
.button:nth-of-type(1) {
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 1em 1.5em;
    border-radius: 50px;
    margin: 1.5em;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0px 5px 10px rgba(0, 123, 255, 0.3);
    transition: 0.3s;
}

.button:nth-of-type(1):hover {
    background: linear-gradient(135deg, #0056b3, #003f80);
    transform: translateY(-3px);
}

/* Вторая секция */
section:nth-of-type(2) {
    background: linear-gradient(#191919, #333333);
    color: white;
    text-align: center;
    padding: 3em 0;
}

section:nth-of-type(2) #first {
    font-weight: 700;
    font-size: 3rem;
    padding: 1.5em;
}

/* Блоки */
.blocks {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.block {
    text-align: center;
    width: 260px;
    height: 220px;
    color: black;
    background: white;
    border-radius: 12px;
    margin: 5% 0;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: 0.3s;
}

.block:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.block h1 {
    font-size: 1.8rem;
    font-weight: 550;
}

/* Контейнер */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Вторая кнопка */
.button2 {
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #4c78d4, #2c5bbf);
    padding: 1em 1.5em;
    border-radius: 50px;
    margin: 1.5em;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 1.25rem;
    transition: 0.3s;
}

.button2:hover {
    background: linear-gradient(135deg, #2c5bbf, #1b3f8f);
    transform: translateY(-3px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    section:nth-of-type(1) h1 {
        font-size: 2.5rem;
    }

    .button {
        font-size: 1rem;
        padding: 0.8em 1.2em;
    }

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

    .block {
        width: 90%;
        height: auto;
        padding: 30px;
    }
}