/* Общие стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
.header {
    background-color: #f0f0f0;
    text-align: center;
    padding: 20px 0;
}

.logo {
    width: 12%;
    height: auto;
    margin-top: 20px;
}

.main-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
}

.text-container {
    max-width: 60%;
    text-align: center; /* Изменили выравнивание на центр */
}

.text-container h1 {
    font-size: 2.5vw;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}

.text-container p {
    font-size: 1vw;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.04em;
    margin: 10px 0 0;
}

.button-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Изменили выравнивание на центр */
    margin-top: 20px;
}

.button {
    padding: 12px 24px;
    border-radius: 20px;
    background-color: #28a745;
    color: #fff;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1vw;
    font-weight: 700;
    margin-left: 10px; /* Уменьшили отступ с правой стороны */
}

.button:hover {
    background-color: #218838;
}

.cube-image {
    width: 10%;
    height: auto;
    margin-left: 10px;
}

/* Секция с текстом и изображением */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    width: 100%;
    max-width: 800px;
    margin-top: 50px;
}

.person-container {
    width: 50%;
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.person-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: 400px;
}

.text-block {
    text-align: left;
}

.text-block h2 {
    font-size: 1.5vw;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.text-block p {
    font-size: 0.75vw;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin: 0;
}

.text-block p.subtext {
    font-size: 0.75vw;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

/* Медиа запросы */
@media (max-width: 1024px) {
    .logo {
        width: 16%;
    }

    .text-container h1 {
        font-size: 3vw;
    }

    .text-container p {
        font-size: 1.25vw;
    }

    .button {
        padding: 10px 20px;
        font-size: 1vw;
        margin-left: 10px;
    }

    .cube-image {
        display: none;
    }

    .person-container {
        width: 100%;
        justify-content: center;
    }

    .person-image {
        width: 80%;
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-gap: 20px;
        align-items: center;
    }

    .text-block h2 {
        font-size: 2vw;
    }

    .text-block p,
    .text-block p.subtext {
        font-size: 0.9vw;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }

    .text-container {
        text-align: center;
        max-width: 80%;
        margin-bottom: 20px;
    }

    .text-container h1 {
        font-size: 4vw;
    }

    .text-container p {
        font-size: 1.5vw;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .button {
        width: 70%;
        margin-left: 10px; /* Уменьшили отступ с правой стороны */
    }

    .cube-image {
        margin-left: 10px;
    }

    .person-container {
        width: 70%;
        justify-content: center;
    }

    .person-image {
        width: 90%;
    }

    .grid-container {
        grid-template-columns: 1fr;
        grid-gap: 20px;
        align-items: center;
    }

    .text-block h2 {
        font-size: 3vw;
    }

    .text-block p,
    .text-block p.subtext {
        font-size: 1.2vw;
    }
}

@media (max-width: 480px) {
    .text-container h1 {
        font-size: 6vw;
    }

    .text-container p {
        font-size: 2vw;
    }

    .button {
        padding: 8px 16px;
        font-size: 1.5vw;
        width: 80%;
        margin-bottom: 20px;
        margin-left: 10px; /* Уменьшили отступ с правой стороны */
    }

    .cube-image {
        margin-left: 10px;
    }

    .person-container {
        width: 80%;
    }

    .person-image {
        width: 100%;
    }

    .text-block h2 {
        font-size: 4vw;
    }

    .text-block p,
    .text-block p.subtext {
        font-size: 1.5vw;
    }
}
