.hero {
    margin-top: 50px;
    margin-bottom: 50px;
}

.hero-banner {
    position: relative;
    background: url(../img/hero.webp) no-repeat;
    background-position: top right;
    background-size: 100% auto;
    border-radius: 10px;
}

.hero-textbox {
    position: relative;
    padding: 45px 35px;
    padding-right: 150px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.99), rgba(0, 0, 0, 0));
    background-size: 120%;
}

.hero-text {
    max-width: 550px;
}

.site-title {
    margin-bottom: 5px;
    font-size: 16px;
    text-align: center;
    color: #7426BF;
}

.section-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero__descr {
    margin-bottom: 15px;
    text-align: justify;
}

.principes {
    margin-bottom: 100px;
}

.contact {
    margin-bottom: 100px;
}

.contact__img {
    margin-right: 8px;
    width: 35px;
    height: 30px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: min-content;
    height: 400px;
    background-color: #fff;
}

.contact-list__item, .document-data-item {
    position: relative;
    padding: 15px 25px;
    width: 48%;
    min-width: 280px;
    background-color: #fff;
}

.document-data-item::after, .contact-list__item::after {
    position: absolute;
    content: '';
    top: 20px;
    left: 3px;
    bottom: 20px;
    width: 2px;
    background-color: #E6E6FA;
}

.contact-list__item:nth-child(2) {
    margin-right: 0;
}

.contact-list__item-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

.contanct-subtitle {
    font-size: 16px;
    color: var(--text-color);
}

.pages-container {
    margin-bottom: 100px;
}

.pages-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-content: space-between;
}

.pages-list__item {
    max-width: 420px;
    height: 250px;
    width: 100%;
}

.pages-list__item-link {
    position: relative;
    padding: 20px 30px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: 25px;
    background-position: 30%;
    border-radius: 25px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease-in-out;
}

.pages-list__item-link::after {
    position: absolute;
    content: '';
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    background: linear-gradient(360deg, rgba(31, 21, 38, 0.8), rgba(31, 21, 38, 0));
}

.pages-list__item-link:hover {
   transform: scale(1.1);
}

.pages-list__item:not(:last-child) {
    margin-right: 30px;
}

.pages-title {
    display: flex;
    flex-direction: column;
    z-index: 10;
    font-size: 16px;
    color: #fff;
}

.--team .pages-list__item-link {
    background-image: url(../img/team.png);
}

.--oborud .pages-list__item-link{
    background-image: url(../img/oborud/IMG_5175.jpeg);
}

.--service .pages-list__item-link {
    background-image: url(../img/oborud/bodyfx.jpeg);
}

.pages-title__link {
    width: fit-content;
    color: var(--main-color);
    transition: color 0.2s ease-in-out;
}

.pages-list__item-link:hover .pages-title__link {
    color: #954cda;
}

.principes-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.principes-list__item {
    display: flex;
    flex-direction: row;
    padding: 20px 30px;
    max-width: 420px;
    width: 100%;
    border-radius: 15px;
    background-color: #fff;
}

.principes-list__item:not(:last-child) {
    margin-right: 20px;
}

.principes-list__item img {
    margin-right: 20px;
    width: 60px;
    height: 60px;
}

.principes-list__item .contanct-subtitle {
    font-weight: 500;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #cacaca;
}

.map-container {
    display: flex;
    flex-direction: row;
}

.leaflet-container {
    width: 100%;
    max-height: 100%;
}

.leaflet-container iframe {
    height: 100%;
}


@media(max-width: 1440px) {
    .principes-list {
        flex-wrap: wrap;
    }

    .principes-list__item {
        margin-bottom: 30px;
        width: 31%;
        flex-direction: column;
    }

    .principes-list__item:not(:last-child) {
        margin-right: 15px;
    }


    .principes-list__item img {
        margin-bottom: 10px;
        width: 35px;
        height: 35px;
    }
}

@media(max-width: 992px) {
    .hero-textbox {
        padding: 30px 20px;
        max-width: 100%;
        background: #fff
    }

    .hero-banner {
        background-size: 120%;
        background-position: center 190px;
        height: 550px;
    }

    .hero-text {
        max-width: 100%;
    }

    .pages-list {
        flex-wrap: wrap;
    }

    .pages-list__item {
        max-width: 48.5%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .pages-list__item:not(:last-child) {
        margin-right: 20px;
    }
    
    .pages-list__item:nth-child(2n) {
        margin-right: 0;
    }

    .principes-list__item {
        max-width: 100%;
        width: 100%;
        flex-direction: row;
    }

    .principes-list__item img {
        width: 40px;
        height: 40px;
    }

    .principes-list__item:not(:last-child) {
        margin-right: 0;
    }
}


@media(max-width: 776px) {
    .hero-banner {
        background-size: 120%;
        background-position: center 230px;
        height: 550px;
    }

    .pages-list {
        justify-content: center;
    }

    .pages-list__item {
        max-width: 80%;
    }

    .pages-list__item:not(:last-child) {
        margin-right: 0;
    }

    .map-container {
        flex-direction: column;
    }

    .leaflet-container {
        height: 250px;
    }

    .contact-list {
        width: 100%;
        height: auto;
    }

    .contact-list__item {
        width: 100%;
    }
}

@media(max-width: 576px) {
    .hero-banner {
        background: no-repeat url(../img/hero-mob.jpg);
        background-size: contain;
        background-color: #fff;
        height: 450px;
        background-position: 100% 270px;
    }

    .section-title {
        font-size: 18px;
    }

    .principes-list__item {
        flex-direction: column;
    }
    
    .principes-list__item img {
        width: 25px;
        height: 25px;
    }

    .pages-list__item {
        max-width: 100%;
        height: 200px;
    }

    .contact__img {
        width: 20px;
        height: 20px;
    }
}

@media(max-width: 410px) {
    .hero-banner {
        background-position: 100% 410px;
        height: 540px;
    }
}