/*BASE*/
:root {
    --blue: #62A9C8;
    --black: #183B4B;
    --light-blue: #E3EFF5;
    --dark-blue: #238CB9;
    --gray: #92A4AC;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', cursive;
    font-size: 20px;
    color: var(--black);
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

h1,
h2 {
    font-size: 22px;
}

.tel {
    width: 280px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: var(--blue);
    border: 1px solid var(--black);
    border-radius: 5px;
    color: white;
}

section {
    width: 80%;
    margin: auto;
    margin-bottom: 60px;
}

h2 {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

p {
    margin-bottom: 20px;
}

body {
    padding-top: 55px;
}

footer {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    background-color: var(--gray);
    padding-bottom: 0;
}

footer a {
    font-size: 18px;
}

footer a img {
    margin-right: 10px;
}

footer p {
    font-size: 18px;
}

.footer_contact{
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/*menu*/

nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: var(--blue);
    height: 55px;
    padding: 0 20px;
}

header {
    z-index: 5;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
}

nav a {
    color: var(--black);
}

.menu ul {
    display: flex;
    flex-direction: row;
}

.menu ul li {
    margin-right: 20px;
}

.menu ul li a {
    position: relative;
}

.menu ul .current_menu_item a {
    color: white;
}

.logo_a {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*menu button*/
.wrapper-menu {
    width: 25px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 330ms ease-out;
    display: none;
}

.wrapper-menu.open {
    transform: rotate(-45deg);
}

.line-menu {
    background-color: var(--black);
    border-radius: 5px;
    width: 100%;
    height: 4px;
}

.line-menu.half {
    width: 50%;
}

.line-menu.start {
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transform-origin: right;
}

.open .line-menu.start {
    transform: rotate(-90deg) translateX(3px);
}

.line-menu.end {
    align-self: flex-end;
    transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
    transform-origin: left;
}

.open .line-menu.end {
    transform: rotate(-90deg) translateX(-3px);
}

/*INDEX*/

/*hero*/
.hero {
    margin-top: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.hero_cont {
    max-width: 340px;
    margin-left: 100px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.hero_cont h2 {
    text-align: left;
}

/*about*/
.blue_a {
    color: var(--dark-blue);
}

/*advantagers*/
.advantagers ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 205px;
    margin-bottom: 0;
}

.advantagers ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
    padding-bottom: 10px;
}

.advantagers ul li img {
    margin-bottom: 10px;
}

/*service*/
.list {
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 50px;
    padding-bottom: 10px;
    background-color: var(--light-blue);
    border: 1px solid var(--black);
    border-radius: 5px;
    max-width: 508px;
    position: relative;
    filter: drop-shadow(-5px 10px 3px rgba(24, 59, 75, 0.30));
    margin-top: 40px;
    margin-bottom: 40px;
}

.list img {
    position: absolute;
    top: -25px;
    left: calc(50% - 20px);
}

.list ul li {
    margin-bottom: 20px;
}

/*articles*/
.article_h {
    display: flex;
    flex-direction: row;
    margin-top: 15px;
    margin-bottom: 25px;
}

.article_h img {
    margin-right: 10px;
}

article p {
    margin-bottom: 45px;
}

article ol {
     margin-bottom: 45px;
     padding-left: 22.4px;
}

article ol li{
    margin-bottom: 20px;
}

/*RESPONSE*/
@media screen and (max-width: 850px) {
    .advantagers ul {
        flex-direction: column;
        align-items: center;
    }

    .advantagers ul li {
        margin-bottom: 50px;
    }

    .advantagers ul li:last-child {
        margin-bottom: 0;
    }

    .hero {
        flex-direction: column;
    }

    .hero_cont {
        margin-left: 0;
        margin-top: 30px;
    }
    
    .hero_cont h1 {
        order: 2;
    }
    
    .hero_cont h2 {
        order: 3;
        margin-bottom: 0;
    }
    
    .hero_cont a {
        order: 1;
        margin-bottom: 30px;
        align-self: center;
    }

    /*menu*/
    .wrapper-menu {
        display: flex;
    }

    .menu ul {
        flex-direction: column;
    }

    .menu {
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 10;
        background-color: inherit;
        width: 100%;
        animation: shows 330ms;
    }

    .menu ul li {
        margin-bottom: 20px;
        margin-left: 20px;
    }

    .m_display {
        display: none;
    }

    @keyframes shows {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

}