@charset "utf-8";
/* Mobile / tablet layer for uralflag.ru
   Loaded after styles.css; overrides only what is needed for small screens. */

/* ---------- burger (hidden on desktop) ---------- */
.burger {
    display: none;
}

/* ---------- tablets and phones ---------- */
@media screen and (max-width: 900px) {

    html, body {
        max-width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    body {
        font-size: 15px;
        line-height: 22px;
    }

    .container {
        min-width: 0;
        max-width: none;
        width: auto;
        padding: 0 12px;
    }

    /* ---------- header ---------- */
    .header {
        padding-top: 10px;
    }
    .header .logo {
        float: none;
        width: 215px;
        margin: 0 auto;
        padding-top: 0;
        text-align: center;
    }
    .header .info_block {
        width: auto;
        float: none;
        margin: 0;
    }
    .header .info_block .nav {
        text-align: center;
        padding: 6px 0;
    }
    .header .info_block .nav a {
        margin: 0 4px;
    }
    .header .info_block .number {
        float: none;
        display: block;
        text-align: center;
        background: none;
        padding-left: 0;
        margin: 10px 0 2px;
        font-size: 20px;
        line-height: 26px;
    }
    .header .info_block .order_call {
        display: inline-block;
        margin: 6px 0;
        font-size: 14px;
    }
    .header .info_block .search {
        float: none;
        width: 100%;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        height: 38px;
        margin: 8px 0 2px;
        padding: 0 34px 0 10px;
        background-position: right 10px center;
        font-size: 16px;
    }
    form[action="/search/"] {
        display: block;
        text-align: center;
    }

    /* ---------- burger button ---------- */
    .burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 12px 0 4px;
        padding: 12px 14px;
        box-sizing: border-box;
        border: 1px solid #bfe7f9;
        border-radius: 4px;
        background: #fff;
        color: #009FE6;
        font: 16px/1 Arial, sans-serif;
        cursor: pointer;
    }
    .burger-box {
        position: relative;
        display: inline-block;
        width: 22px;
        height: 16px;
        margin-right: 10px;
    }
    .burger-box span {
        position: absolute;
        left: 0;
        right: 0;
        display: block;
        height: 2px;
        background: #009FE6;
        transition: transform .2s ease, opacity .2s ease, top .2s ease;
    }
    .burger-box span:nth-child(1) { top: 0; }
    .burger-box span:nth-child(2) { top: 7px; }
    .burger-box span:nth-child(3) { top: 14px; }
    .burger[aria-expanded="true"] .burger-box span:nth-child(1) {
        top: 7px;
        transform: rotate(45deg);
    }
    .burger[aria-expanded="true"] .burger-box span:nth-child(2) {
        opacity: 0;
    }
    .burger[aria-expanded="true"] .burger-box span:nth-child(3) {
        top: 7px;
        transform: rotate(-45deg);
    }

    /* ---------- main menu ---------- */
    .header .info_block .menu {
        display: none;
        padding-top: 8px;
    }
    .header .info_block .menu.is-open {
        display: block;
    }
    .header .info_block .menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .header .info_block .menu ul li {
        float: none;
        padding: 0;
        border-bottom: 1px solid #e6e6e6;
        background: none;
    }
    .header .info_block .menu ul li.last {
        border-bottom: 0;
    }
    .header .info_block .menu ul li a {
        display: block;
        padding: 14px 2px;
        font-size: 17px;
        line-height: 22px;
        border-bottom: 0;
    }

    /* ---------- news previews (home page) ---------- */
    .news-main-block {
        display: none !important;
    }
    .content .inc_sdb .news_preview {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .content .inc_sdb .news_preview .date {
        float: none;
        padding-top: 0;
    }
    .content .inc_sdb .news_preview .text {
        width: auto;
        margin: 0;
        padding-top: 8px;
    }
    .content .inc_sdb .news_preview img {
        float: none;
        height: auto;
        max-width: 100%;
        margin: 8px 0;
    }
    .content .inc_sdb .news_preview2 .left {
        width: 100%;
        float: none;
        margin-right: 0;
    }
    .content .inc_sdb .news_preview2 .text {
        width: 100%;
        float: none;
        padding-top: 8px;
    }

    /* ---------- content columns ---------- */
    .content {
        display: flex;
        flex-direction: column;
    }
    .content > * {
        order: 3;
    }
    .content > .inc_sdb,
    .content > .inc_sdb2 {
        order: 1;
    }
    .content > .sidebar,
    .content > .sidebar2 {
        order: 2;
    }
    .content .sidebar,
    .content .inc_sdb,
    .content .inc_sdb2,
    .content .sidebar2,
    .content.main_page .sidebar,
    .content.main_page .inc_sdb {
        float: none;
        width: 100%;
    }
    .content .sidebar,
    .content .sidebar2 {
        margin-bottom: 18px;
    }
    .content .sidebar .menu2 li a {
        font-size: 15px;
        line-height: 40px;
    }
    .content .sidebar2 .menu2 li a {
        font-size: 15px;
    }
    .content .sidebar2 .menu2 li,
    .content .sidebar2 .menu2 .current {
        background-position: 12px center;
    }

    /* ---------- typography ---------- */
    h1, .div_title {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 14px;
    }
    h2 {
        font-size: 18px;
        line-height: 24px;
    }
    h3 {
        font-size: 16px;
    }
    .h1_title {
        font-size: 16pt;
        line-height: 20px;
    }
    .bordered_ttl {
        font-size: 18px;
    }

    /* ---------- tables, images, media ---------- */
    img {
        max-width: 100%;
        height: auto;
    }
    iframe, embed, object, video {
        max-width: 100%;
    }
    .content table {
        max-width: 100%;
    }
    .content table td,
    .content table th {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .content table tr td,
    .content table tr th {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .content table img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* wide text tables: squeeze to screen width */
    .content table.tbl-fit {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }
    .content table.tbl-fit td,
    .content table.tbl-fit th {
        width: auto !important;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* wide tables with images: horizontal scroll instead of clipping */
    .content table.tbl-scroll {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .content table.tbl-scroll td,
    .content table.tbl-scroll th {
        white-space: normal;
    }

    /* ---------- footer ---------- */
    .footer .quote,
    .footer .menu3,
    .footer .contacts {
        float: none;
        width: 100%;
    }
    .footer .contacts {
        text-align: center;
        padding-top: 12px;
    }
    .footer .contacts img {
        display: block;
        margin: 0 auto 14px !important;
        max-width: 100%;
        height: auto;
    }
    .menu3 > li {
        float: none;
        width: 100%;
        box-sizing: border-box;
    }

    /* ---------- popups ---------- */
    .popup {
        left: 10px;
        right: 10px;
        width: auto;
        margin-left: 0;
        padding: 24px 18px;
        top: 40px;
    }
    .popup .row input[type="text"],
    .popup .row textarea,
    .popup2 .row input[type="text"],
    .popup2 .row textarea {
        width: 100%;
        box-sizing: border-box;
    }
    .popup .close {
        right: 0;
        top: -34px;
    }
    .popup .chapter,
    .popup2 .chapter {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 20px;
    }
    .popup h1, .popup2 h1 {
        margin-bottom: 20px;
    }

    .border3 {
        margin: 16px 0 22px;
    }
    .border1 {
        margin: 20px 0;
    }

    /* map on contacts page */
    #map, .map_box, .map_box img {
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        min-height: 240px;
    }
}

/* ---------- small phones ---------- */
@media screen and (max-width: 480px) {
    .header .info_block .number {
        font-size: 18px;
    }
    .header .info_block .menu ul li a {
        font-size: 16px;
    }
    .content .sidebar .menu2 li a {
        font-size: 14px;
        line-height: 38px;
    }
    .content .sidebar .menu2 li img {
        width: 38px;
        height: 38px;
    }
    .menu3 > li {
        font-size: 15px;
    }
}
