/*
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)
    }
    .footer .logo{
        width: fit-content
    }
    .footer .logo img{
        width: 328px
    }
    .main-block {
        padding: 96px 0 0
    }
    h1 {
        font-size: 3rem
    }
    .btn, input[type="submit"] {
        font-size: 1.8rem;
        height: 45px
    }
    h2{
        font-size: 2.4rem;
        margin-bottom: var(--size-2)
    }
    .philosophy-item .icon{
        height: 60px
    }
    .philosophy-item, .philosophy-item:first-child div:first-child{
        height: fit-content
    }
    h3, .team-item .name {
        font-size: 1.8rem
    }
    .program-item{
        height: 360px
    }
    .program-item__content{
        height: 185px
    }
    .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 h3{
        width: 305px;
        height: 47px;
        top: -35px;
        left: calc(50% - 152.5px)
    }
    .educational-item{
        padding: var(--size-2);
        text-align: center;
        height: 120px;
        margin-top: 35px
    }
    .team-item >img {
        width: 328px;
        height: 328px;
        margin-bottom: var(--size-1)
    }
    .team-item .name + span {
        font-size: 1.8rem
    }
    .team-items{
        gap: 48px
    }
    .team blockquote{
        margin-top: var(--size-2);
        width: 100%;
        max-width: 328px
    }
    section.team >.container .content{
        padding-bottom: var(--size-2)
    }
    .gallery-item {
        height: 400px
    }
   .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 address{
        width: calc(100% - 76px);
        background-color: var(--beige);
        padding-bottom: 30px
    }
    .footer .container{
        height: 222px
    }
    .footer .map{
        height: 96px;
        margin-top: 126px;
        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(--beige);
        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 */

}