/*
This file describes styles that are 1200px width and smaller
 */
@media  all and (max-width: 1200px) {

    :root{
        --section-distance: 48px;
        --border-radius-1: 6px;
        --border-radius-2: 12px;
        --size-1: 12px;
        --size-2: 24px
    }
    .header .logo {
        height: 24px
    }
    .grid-2{
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--size-1)
    }
    .grid-1-2{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--size-1)
    }
    .grid-3{
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--size-1)
    }
    .main-block .content .img-container .before{
        display: none
    }
    .main-block .content, .main-block .content .img-container {
        height: 430px
    }
    .main-block .content .img-container {
        margin: -12px -12px -12px 0
    }
    .main-block .content{
        grid-template-columns: 1fr 1fr
    }
    .main-block .content .text p, .main-block .content .text li {
        font-size: 1.8rem
    }
    .btn, input[type="submit"]{
        height: 49px
    }
    .main-block h1{
        position: static;
        margin-bottom: var(--size-1);
        width: auto
    }
    .main-block .content .text {
        padding-top: 0
    }
    .footer .logo{
        width: fit-content
    }
    .footer .logo img{
        width: 328px
    }
    .main-block {
        padding: 96px 0 0
    }
    .main-block h1{
        z-index: 0
    }
    h1 {
        font-size: 3rem
    }
    .btn, input[type="submit"] {
        font-size: 1.8rem;
        height: 45px
    }
    h2{
        font-size: 2.4rem
    }
    section .title{
        width: 352px;
        margin-top: -12px
    }
    section .title p{
        padding: 0
    }
    .philosophy-item:first-child div:first-child {
        font-size: 1.8rem
    }
    .philosophy-item .icon{
        height: 60px
    }
    .philosophy-item, .philosophy-item:first-child div:first-child{
        height: fit-content
    }
    h3, .team-item .name, .educational-item__title span {
        font-size: 1.8rem
    }
    .program-item{
        padding: var(--size-2) 0
    }
    
    .program-item__content p:not(:first-child){
        margin-top: var(--size-2)
    }
    .program-item__content{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center
    }
    .program-item:last-child {
        grid-column: 1
    }
    .program-item__content h3, .program-item__content p{
        max-width: 328px
    }
    .educational-item{
        padding: 36px calc(var(--size-2) * 2) var(--size-2)
    }
    .environment-item{
        padding: var(--size-1) calc(var(--size-2) * 2) calc(var(--size-2) * 2)
    }
    .educational-item h3{
        width: 305px;
        height: 47px;
        top: -35px;
        left: calc(50% - 152.5px)
    }
    
    .educational-item__title {
        height: 74px;
        top: -50px;
        width: 328px;
        left: calc(50% - 164px)
    }
    .educational-item:last-child {
        grid-column: 1
    }
    
   .footer .location:before{
        width: 15px;
        height: 18.51px;
        top: 12px;
        left: 0
    }
   .footer .location{
        padding-left: 29.5px
    }
    .footer .tel{
        padding-left: 28.25px
    }
     .footer .tel:before {
        width: 12.5px;
        height: 20px;
        top: 10px;
        left: 0
    }
    .footer .social:before, .footer .social:after,
    .footer .tel:after,
    .footer .location:after,
    .footer .logo:before, .footer .logo:after{
        display: none
    }
    .footer .logo, .footer .social, .footer .tel, .footer .location, .footer .logo{
        border: none
    }

    .footer .container{
        height: 222px
    }
    .footer .map{
        height: 96px;
        margin-top: 150px;
        border-radius: var(--size-1) var(--size-1) 0 0;
        overflow: hidden;
        z-index: 1
    }
    .consultation p {
        font-size: 1.8rem
    }
    .main-block .content .text p {
        font-size: 1.8rem
    }
    .popup__content{
        width: calc(100% - 24px)
    }
    .popup-tel button{
        margin-top: 24px
    }
    

    /* header mobile styles */
   
    
    .header.only-mobile .container{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--size-1)
    }

    .menu-btn-open img {
        width: 36px;
        height: 20px
    }


    .menu-btns {
        z-index: 3
    }

    .menu-btns.open .menu-btn-open {
        display: flex
    }

    .menu-btns:not(.open) .menu-btn-open {
        display: none
    }


    .header-mobile-wrap {
        position: fixed;
        z-index: 2;
        padding: 48px 27px 48px 48px;
        background-color: var(--light-green);
        height: fit-content;
        border-radius: var(--border-radius-2);
        top: 72px;
        right: var(--size-1);
        width: fit-content;
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: flex-end;
        transition: 0.3s
    }
    .header-mobile-wrap .tel:before{
        top: -3px
    }

    .header-mobile-wrap .main-menu ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 24px
    }
    .header-mobile-wrap .tel{
        font-size: 1.6rem;
        font-weight: 500
    }
    .header-mobile-wrap .main-menu ul li a {
        line-height: 1;
        display: flex;
        font-size: 1.4rem;
        font-family: var(--title-font)
    }
  
   
    .header.menu-translate .header-mobile-wrap{
        transform: translateX(120%);
        transition: 0.3s
    }
  
    .header-mobile-wrap .main-menu nav >ul >li{
        flex-direction: column;
        gap: 20px
    }
    .header .container .content{
        height: 48px
    }

    /* end of header mobile styles */

    .only-desktop{
        display: none
    }

    
    /* footer */
   

    /* end of footer */

}

@media all and (max-width: 991px) {
    .gallery-items {
        grid-template-columns: 1fr 1fr
    }
    .gallery-item {
        height: 420px
    }
}