* {
    margin: 0;
    padding: 0;
    font-family: 'TT Norms Pro', sans-serif;
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.small-screen, .footer-small-screen {
    display:none;
}

main{
    flex:1;
    background-color: #EDEEF0;
}
header{
   background-color: white;
   z-index: 2;
   position: relative;
}
header .container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav {
    width: 1200px;
}
header nav ul {
    display: flex;
    justify-content: space-between;
    height: 80px;
    list-style-type: none;
}
header nav ul li {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.7vw;
    font-weight: 700;
    color: #0A1C34;
}
header nav > ul > li > a {
    position:relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
}
header nav ul li .button{
    transition: all 0.3s ease;
}
header nav > ul > li > a:hover{
    color: #5A89B9;
}
header nav > ul > li > button:hover{
    color: #5A89B9;
}
.sub-menu a:hover{
    color: #155a8f;
}
header nav ul li button{
    all: unset;
}
header .div-img {
    width: 4.5vw;
    height: 4.5vw;
    margin-right: 5px;
    display: flex;
    justify-content:center;
    align-items:center;
    object-fit: cover;
}
header .div-img img {
    width: 4.5vw;

}


header .sub-menu {
    position: absolute;
    top: 100%;
    width: 100%;
    background-color: white;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 0;
    z-index: 2;
}
header .sub-menu.open {
    max-height: 370px;
    visibility: visible;
}
header .sub-menu .hr {
    width: 0;
    height: 2px;
    background-color: #0A1C34;
    margin: 0 auto;
    margin-top: 5px;
    transition: width 0.5s ease;
}
header .sub-menu .hr.expand {
    width: 85%;
}
.column-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 7.5%;
    margin-right: 7.5%;
}
.column-container .column{
    flex: 1;
    text-align: center;
    /* top | right | bottom | left */
    padding: 0px 10px 0px 20px;
}
.vertical-line {
    width: 1px;
    background-color: #0A1C34;
    margin: 0 10px;
}
.column h2{
    text-align: left;
    font-size: 1.4vw;
    font-weight: 500;
    margin-bottom: 3vh;
    height: 60px;
    color: #0A1C34;
    line-height: 1.5;
}
.column a{
    text-align: left;
    font-size: 1.35vw;
    margin-top: 10px;
    display: flex;
    text-decoration: none;
    color: #3D79A7;
    font-weight: 300;
    line-height: 1.3;
}

#overlay {
    position: fixed;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1  ;
}

#overlay.open{
    visibility: visible;
    opacity: 1;
}

footer{
  left: 0;
  right: 0;
  bottom: 0;
  background-color:#EDEEF0;
  padding-bottom: 10px;
  }

.footer{
    margin-top:10px;
    margin-bottom:10px;


}
.hr-footer{
    width: 100%;
    height: 2px;
    background-color: #0A1C34;
}
.footer h5{
    text-align:left;
    font-size: 1.2vw;
    font-weight: 500;
    margin-bottom: 5px;
    color: #0A1C34;
}
.footer p{
    text-align:left;
    font-weight: 300;
    font-size: 1vw;
    margin-top: 5px;
    color: #547392;
    }

.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.rotate-back {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    /* Скрываем маленькие экраны и показываем большие экраны */
    header .container {
        display: none;
    }
    .footer-large-screen{
        display: none;
    }
    .small-screen {

        display: flex;
        justify-content: center;
        align-items: center;
    }
    .footer-small-screen{
        display: flex;
        flex-direction: column;
    }
    .small-container{
        display: flex;
        width: 100%;
        height: 48px;
        background-color: white;
        z-index: 2;
    }
    .left, .right{
        flex:1;
    }
    .left{
        padding-left: 10px;
    }
    .right{
        padding-right: 10px;
    }

    .content {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: flex-start; /* Выравнивание содержимого влево по умолчанию */
        height: 100%;
    }

    .right .content {
        align-items: flex-end; /* Выравнивание содержимого вправо */
        color: #0A1C34;
    }
    .name{
        display: flex;
        justify-content: center;
        align-items: center;
        color: #0A1C34;
    }
    .small-img {
        width: 8w;
        height: 8vw;
        margin-right: 5px;
        object-fit: cover;
        display: flex;
        justify-content:center;
        align-items:center;
    }

    .small-img img{
        width: 8vw;
    }
    .rgbutterfly{
        font-size: 4.5vw;
        font-weight: 600;
    }
    .rgbutterfly a{
        text-decoration: none;
        color:  #0A1C34;

    }
    .drop-menu{
        display: block;
        z-index: 3;
        width: 100%;
        position: absolute;
        top:0;
        right: 0;
        bottom: 0;
        background-color: white;
        visibility:hidden;
    }
    .drop-menu.open {
        max-height: 100%;
        visibility: visible;
    }
    .drop-menu ul{
        list-style-type: none;
        background-color: white;
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .drop-menu .up{
        display: flex;
    }
     .drop-menu .up .left{
        flex-direction: column;
        flex: 1;
        display: flex;
        align-items: flex-start;
        padding-left: 0;
     }
     .drop-menu .up .right{
        flex-direction: column;
        justify-content: center;
        flex:1;
        width:100%;
        display: flex;
        align-items: flex-end;
        color: #0A1C34;
     }

    .drop-menu ul li button{
        all: unset;
        font-size: 5vw;
        line-height: 2;
        font-weight: 400;
        color: #0A1C34;
    }
    .drop-menu ul li a{
        text-decoration: none;
        color: #0A1C34;
        font-size: 5vw;
        font-weight: 400;
        line-height: 2;
    }
    .drop-menu .sub-menu-small{
        background-color: white;
        position:absolute;
        padding-left: 40px;
        z-index:3;
        left: 0;
        right: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding-bottom: 20px;
        max-height: 0;
    }
    .sub-menu-small.open {
        max-height: 400px; /* Высота достаточно большая для всех элементов */
        visibility: visible;
    }
    .drop-menu .sub-menu-small p{
        margin-top: 10px;
    }
    .drop-menu .sub-menu-small p a{
        line-height: 1.2;
        font-size: 4.5vw; ;
    }
    .small-part{
        padding-left: 20px;
        margin-top: 10px;
        margin-bottom: 20px;
    }
    .small-part .footer-small-hr{
        width: 20%;
        height: 1px;
        background-color: #0A1C34;
        /* top | left and right | bottom */
        margin: 10px 0 10px;
    }

    .small-part h5{
        color: #0A1C34;
        font-size: 3.5vw;
        font-weight: 600;
    }
    .small-part p{
        color: #3D79A7;
        font-size: 3vw;
        font-weight: 300;
    }

}