/* Подключаем шрифт Roboto */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #353535; /* Тёмный фон */
    color: #f1f1f1;
}

/* ======== ОБЩИЕ КЛАССЫ ======== */

.color_red {
    color: #C7575A;
}

.color_pink {
    color: #d3d3d3;
}

#fs20 {
    font-size: 20px;
}

#fs32 {
    font-size: 32px;
}

#fs40 {
    font-size: 60px;
}

/* ======== ШАПКА ======== */

.head {
    position: relative;
    text-align: left;
    padding: 50px 80px;
    background-color: #353535;
}

#img_logo img {
    width: 50px;
}

.head a {
    position: absolute;
    top: 50px;
    right: 80px;
    text-decoration: none;
    color: #C7575A;
    border: 1px solid #C7575A;
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.3s;
}

.head a:hover {
    background-color: #353535;
    color: #fff;
}

#img_server {
    width: 100%;
    margin-top: 40px;
    border-radius: 120px;
}

/* Тексты в верхней секции */
.head p#fs40 {
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 40px;
}

.head p#fs20 {
    margin-top: -10px;
}



.head {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 80px;
    background-color: #353535;
    position: relative;
}

/* Логотип и кнопка в одной линии */
.head-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: -20px;
}

#img_logo img {
    width: 250px;
    height: auto;
    vertical-align: middle;
}

.head a {
    text-decoration: none;
    color: #C7575A;
    border: 1px solid #C7575A;
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.3s;
    font-size: 18px;
}

.head a:hover {
    background-color: #353535;
    color: #fff;
}

/* Заголовок + подзаголовок + изображение справа */
.head-content {
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 40px;

}

.head-text {
    max-width: 80%;
}

.head-text #fs40 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0px;
}

.head-text #fs20 {
    margin-top: 0;
}

.aaa {
    margin-right: 320px;
}

#img_server {
    width: 45%;
    border-radius: 5px;
}




/* ======== БЛОК "О НАС" ======== */

.middle {
    background-color: #353535;
    padding: 60px 80px;
    position: relative;
}

.middle::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-left: 100px solid transparent;
    border-top: 100px solid #C7575A;
}

.middle h1 {
    text-transform: uppercase;
    margin-bottom: 30px;
}

.middle p {
    max-width: 900px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ======== КОНТАКТЫ ======== */

div:last-of-type {
    background-color: #353535;
    padding: 60px 80px;
    position: relative;
}

/*div:last-of-type::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    border-right: 100px solid transparent;
    border-bottom: 100px solid #C7575A;
}*/

div:last-of-type h1 {
    text-transform: uppercase;
    margin-bottom: 30px;
}

div:last-of-type p {
    line-height: 1.8;
}

/* ======== Адаптация для смартфонов ======== */
@media (max-width: 768px) {

    body {
        font-size: 16px;
        padding: 0;
        margin: 0;
    }

    /* Шапка */
    .head {
        padding: 30px 20px;
        align-items: center;
    }

    .head-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 10px;
    }

    #img_logo img {
        width: 160px;
        height: auto;
    }

    .head a {
        position: static;
        font-size: 16px;
        padding: 8px 16px;
        border-radius: 15px;
    }

    /* Контент в шапке */
    .head-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .head-text {
        max-width: 100%;
    }

    .head-text #fs40 {
        font-size: 36px;
        margin-top: 10px;
    }

    .head-text #fs20 {
        font-size: 18px;
    }

    .aaa {
        margin: 0px 0px 0px 70px;
    }

    #img_server {
        width: 100%;
        border-radius: 10px;
    }

    .aaa {
        margin-left: 5px;
    }

    /* Блок "О нас" */
    .middle {
        padding: 40px 20px;
    }

    .middle h1 {
        font-size: 28px;
        text-align: center;
    }

    .middle p {
        font-size: 16px;
        line-height: 1.5;
        text-align: justify;
        max-width: 100%;
    }

    .middle::after {
        display: none; /* убираем декоративный угол на маленьких экранах */
    }

    /* Контакты */
    div:last-of-type {
        padding: 40px 20px;
        text-align: center;
    }

    div:last-of-type h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    div:last-of-type p {
        font-size: 16px;
        margin-bottom: 10px;
    }

    div:last-of-type::after {
        display: none;
    }
}

/* ======== АДАПТИВНОСТЬ ========

@media (max-width: 1024px) {
    .head {
        padding: 40px;
    }

    .head a {
        top: 30px;
        right: 40px;
    }

    .middle, div:last-of-type {
        padding: 40px;
    }

    #fs40 {
        font-size: 32px;
    }

    #fs32 {
        font-size: 26px;
    }

    #fs20 {
        font-size: 18px;
    }
}

/* Для смартфонов */
@media (max-width: 768px) {
    .head {
        padding: 30px;
    }

    #img_logo img {
        width: 120px;
    }

    .head a {
        position: static;
        display: inline-block;
        margin-top: 20px;
    }

    #img_server {
        margin-top: 20px;
    }

    .middle, div:last-of-type {
        padding: 30px;
    }

    #fs40 {
        font-size: 26px;
    }

    #fs32 {
        font-size: 20px;
    }

    #fs20 {
        font-size: 16px;
    } */
}