/*Широкоформатные экраны*/

@media (max-width:1280px) {
    .contact {
        margin-left: 15px;
    }

    .search {
        margin-right: 15px;
    }

    .menu {
        margin-left: 15px;
    }

    .map {
        margin: 15px;
    }

    .page {
        margin-left: 25px;
        margin-right: 25px;
    }

    .f-block {
        margin: 15px;
    }

    /*Ноутбуки*/
    @media (max-width:1020px) {
        .header-desktop {
            display: flex;
            justify-content: center;
        }

        .contact {
            display: none;
        }

        .desktop {
            display: none;
        }

        .mobile {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 16px;
            color: #FECC00;
        }

        .wrap {
            display: block;
            width: 50px;
            height: 50px;
            background: #00679A;
            cursor: pointer;
            margin-left: 25px;
        }

        .burger_open {
            position: absolute;
            left: 5px;
            margin: 10px 25px;
        }

        .burger_close {
            position: absolute;
            left: 5px;
            margin: 10px 25px;
            display: none;
        }

        .burger_open span {
            width: 25px;
            height: 2px;
            background-color: #ffde00;
            display: block;
            margin: 6px auto;
            border-radius: 2px;
        }

        .burger_close span {
            width: 25px;
            height: 2px;
            background-color: #ffde00;
            display: block;
            margin: 6px auto;
            border-radius: 2px;
        }

        .burger_close span:nth-child(1) {
            transform: translateY(-1px) translateX(1px) rotate(45deg);
            transform-origin: left;
        }

        .burger_close span:nth-child(2) {
            opacity: 0;
        }

        .burger_close span:nth-child(3) {
            transform: translateY(1px) translateX(1px) rotate(-45deg);
            transform-origin: left;
        }

        .mobile .text {
            font-family: "SF Pro Display";
            color: #FECC00;
            font-size: 20px;
            font-weight: bold;
            margin-left: -35px;
        }

        .mobile .text a {
            color: #FECC00;
        }

        .nav-header {
            z-index: 1000;
        }

        .mobile-menu {
            position: absolute;
            top: 155px;
            left: 0;
            width: 100%;
            display: none;
            background: #00679A;
            font-family: 'SF Pro Display', sans-serif;
            font-size: 18px;
            color: #FECC00 !important;
        }

        .mobile-menu ul {
            list-style: none;
            text-align: left;
            padding-left: 0 !important;

        }

        .mobile-menu ul {
            color: #FECC00 !important;
        }

        .mobile-menu ul a {
            color: #FECC00 !important;
        }

        .menu {
            display: grid;
            overflow: hidden;
        }

        .menu ul li {
            margin: 10px;
            padding: 10px;
        }

        .menu > li {
            margin-bottom: 5vh;
            margin-left: 2vh;
            margin-top: 2vh;
        }

        .submenu {
            position: relative;
            left: 0;
            padding: 1px 2px;
            background-color: #00679A;
            color: #fff;
        }

        .submenu ul li a {
            margin: 0;
            padding: 0;
            display: block;
            overflow: ;
            color: #000;
        }

        .search {
            margin-right: 25px;
            color: #FECC00;
        }

        .lan {
            width: 80px;
        }

        .search ul.lan {
            right: -25px;
        }

        .main-block {
            max-height: 100vh;
        }

        .map-title {
            font-size: 20px;
        }

        .list-association {
            margin: 0 15px;
        }

        .map-mobile {
            min-width: 360px;
        }

        .f-block {
            font-size: 16px;
        }

        .copyright {
            margin-top: 45px;
        }
    }

    /*Планшеты*/
    @media (max-width:868px) {
        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 10vw;
            height: 100vh;
            z-index: 1;
        }

        .mobile .text {
            margin-left: 90px;
        }

        .burger_open {
            margin: 10px 10px;
        }

        .burger_close {
            margin: 10px 10px;
        }

        .main-block {
            height: 50vh;
        }

        .main-block img {
            min-width: 150px;
            margin-right: 20px;
            opacity: 0.2;
            margin-left: 25px;
        }

        .text-block {
            font-size: 15px;
        }

        .sub-text {
            font-size: 14px;
        }

        .about-mobile {
            padding: 25px;
        }

        .title-block {
            text-align: center;
            font-size: 18px;
        }

        .u-mobile {
            padding: 25px;
        }

        .u-list {
            display: grid;
            grid-template-columns: 1fr;
            text-align: center;
        }

        .d-list {
            display: grid;
            grid-template-columns: 1fr;
        }

        .reestr-mobile {
            padding: 25px;
        }

        .r-list {
            grid-template-columns: 10% 40% 45%;
        }

        .contact-mobile {
            padding: 25px;
        }

        .map-mobile {
            width: 460px;
        }
    }

    /*Смартфоны*/
    @media (max-width:580px) {
        .header-desktop {
            display: none;
        }

        .desktop {
            display: none;
        }

        .mobile a {
            color: #FECC00 !important;
        }

        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 10vw;
            height: 100vh;
            z-index: 1;
        }

        .burger_close:active {
            display: block;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .mobile .text {
            margin-left: 18px;
        }

        .mobile-menu {
            top: 50px;
            border-top: 1px solid #FECC00;
        }

        .mobile-menu ul {
            color: #FECC00 !important;
        }

        .mobile-menu a {
            color: #FECC00 !important;
        }

        ul.menu {
            height: 80vh;
            overflow: scroll;
        }

        .main-block {
            display: block;
            position: relative;
            overflow: hidden;
            height: 42vh;
            padding-right: 25px;
        }

        .main-block img {
            position: absolute;
            left: 13%;
            height: 100%;
            margin: auto;
            padding: 0;
        }

        .main-block .text-block {
            margin-top: 20px;
            font-size: 15px;
        }

        .map-title {
            font-size: 16px;
            margin-right: 12px;
            margin-top: 15px;
        }

        .map {
            margin: 0px;
        }

        .title-block {
            font-size: 14px;
        }

        .f-block {
            display: block;
        }

        .f-block li {
            margin-top: 15px;
        }

        .f-block li:last-child {
            margin-bottom: 15px;
        }

        .about-mobile {
            padding: 25px;
        }

        .iframe-2-mobile {
            width: 340px;
            height: 240px;
        }

        .reestr-mobile {
            padding: 25px;
        }

        .r-list {
            display: flex;
            flex-direction: column;
            margin-top: 5px;
            margin-bottom: 15px;
            padding-bottom: 10px;
        }

        .contact-mobile {
            padding: 15px;
        }

        .y-map {
            display: grid;
        }

        .map-mobile {
            width: 360px;
        }

        .footer-desktop {
            display: none;
        }

        .footer-mobile {
            display: flex;
            padding-top: 25px;
            background-color: #00679A;
            color: #fff;
            align-items: center;
            justify-content: space-around;
        }

        .footer-mobile-logo img {
            max-width: 60px;
        }

        .footer-mobile-copyright {
            display: block;
            width: 100%;
            height: 50px;
            padding-top: 25px;
            background-color: #00679A;
            color: #fff;
            text-align: center;
        }
    }
