/* Change 008: mobile styles for all non-front-page templates.
   Desktop remains unchanged. No element styles are modified outside
   the body.nedra-inner-mobile namespace and these media queries. */
@media screen and (max-width: 1199px) {

    body.nedra-inner-mobile { min-width: 0; overflow-x: clip; }
    body.nedra-inner-mobile .wrapper,
    body.nedra-inner-mobile .content,
    body.nedra-inner-mobile .header,
    body.nedra-inner-mobile .footer { min-width: 0; width: 100%; }
    body.nedra-inner-mobile .wrapper { overflow-x: clip; }
    body.nedra-inner-mobile .container,
    body.nedra-inner-mobile .section__header-container {
        width: 100%; max-width: 100%; min-width: 0;
        margin-left: auto; margin-right: auto;
        padding-left: 16px; padding-right: 16px;
    }
    body.nedra-inner-mobile .section__header-container { overflow: hidden; }
    body.nedra-inner-mobile .header__top,
    body.nedra-inner-mobile .navigation,
    body.nedra-inner-mobile .top__section,
    body.nedra-inner-mobile .map__section,
    body.nedra-inner-mobile .advantage__section,
    body.nedra-inner-mobile .why__we,
    body.nedra-inner-mobile .contacts__section,
    body.nedra-inner-mobile .copyright,
    body.nedra-inner-mobile #contacts__section-map { min-width: 0; width: 100%; }

/* Shared header elements are changed on this template only. */
    body.nedra-inner-mobile .header__top .container {
        display: flex; flex-wrap: wrap; justify-content: center;
        column-gap: 20px; row-gap: 2px; padding-top: 6px; padding-bottom: 6px;
    }
    body.nedra-inner-mobile .header__top-adress,
    body.nedra-inner-mobile .header__top-mail {
        margin: 0; padding-left: 0; text-align: center; line-height: 1.4;
    }
    body.nedra-inner-mobile .header__top-adress::after,
    body.nedra-inner-mobile .header__top-mail::after { display: none; }
    body.nedra-inner-mobile .header__top a { line-height: 1.5; font-size: 12px; }
    body.nedra-inner-mobile .header__middle-container {
        display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
        gap: 12px; padding-top: 12px; padding-bottom: 12px;
        text-align: left;
    }
    body.nedra-inner-mobile .header__middle-container::after { display: none; }
    body.nedra-inner-mobile .header__middle-logo { flex: 0 1 auto; }
    body.nedra-inner-mobile .header__middle-logo .logo-pic { width: 100px; height: 46px; }
    body.nedra-inner-mobile .header__middle-logo .logo-text { font-size: 13px; line-height: 1.2; padding: 0 4px; }
    body.nedra-inner-mobile .header__middle-phone { padding: 0; text-align: right; }
    body.nedra-inner-mobile .header__middle-phone::after { display: none; }
    body.nedra-inner-mobile .header__middle-phone a { font-size: 15px; line-height: 1.45; }
    body.nedra-inner-mobile .header__middle-btn {
        display: flex; flex: 1 0 100%; justify-content: center; flex-wrap: wrap; gap: 10px;
        order: 3;
    }
    body.nedra-inner-mobile .popup__btn-header {
        font-size: 13px; line-height: 1.25; padding: 11px 14px; text-align: center;
    }
    body.nedra-inner-mobile .navigation { margin-top: 0; }
    body.nedra-inner-mobile .navigation .menu {
        display: flex; align-items: stretch; justify-content: flex-start;
        gap: 20px; white-space: nowrap;
        overflow-x: auto; overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin; scrollbar-color: #f28943 #333236;
    }
    body.nedra-inner-mobile .navigation__item {
        display: block; flex: 0 0 auto; margin: 0; list-style: none;
    }
    body.nedra-inner-mobile .navigation__item a {
        display: block; font-size: 14px; padding: 12px 0;
    }

/* Standard WordPress pages, post details, and the news/archive index. */
body.nedra-inner-mobile .page__title,
body.nedra-inner-mobile .news__item-list,
body.nedra-inner-mobile .news__article,
body.nedra-inner-mobile .info__section,
body.nedra-inner-mobile .pagination {
    width: 100%; min-width: 0; max-width: 100%;
}
body.nedra-inner-mobile .content {
    font-size: 16px; line-height: 1.55;
    overflow-wrap: break-word;
}
body.nedra-inner-mobile .page__title {
    background-position: center center; background-size: cover;
}
body.nedra-inner-mobile .page__title .page__title-text {
    margin: 0; padding: 26px 4px;
    font-size: 26px; line-height: 1.3; overflow-wrap: anywhere;
}
body.nedra-inner-mobile .content > section > .container,
body.nedra-inner-mobile .news__item-list .container,
body.nedra-inner-mobile .news__article .container {
    width: 100%; min-width: 0; max-width: 100%;
    padding: 16px; margin: 0 auto;
}
body.nedra-inner-mobile .content img,
body.nedra-inner-mobile .content video,
body.nedra-inner-mobile .content iframe,
body.nedra-inner-mobile .content embed,
body.nedra-inner-mobile .content object,
body.nedra-inner-mobile .info__section img {
    max-width: 100%; height: auto;
}
body.nedra-inner-mobile .content figure { max-width: 100%; margin-left: 0; margin-right: 0; }
body.nedra-inner-mobile .content p,
body.nedra-inner-mobile .content li {
    overflow-wrap: anywhere;
}
body.nedra-inner-mobile .content h1,
body.nedra-inner-mobile .content h2,
body.nedra-inner-mobile .content h3 {
    max-width: 100%; overflow-wrap: anywhere; line-height: 1.3;
}
body.nedra-inner-mobile .content h1 { font-size: 26px; }
body.nedra-inner-mobile .content h2 { font-size: 22px; }
body.nedra-inner-mobile .content h3 { font-size: 20px; }
body.nedra-inner-mobile .content .container > table,
body.nedra-inner-mobile .content .container table {
    display: block; max-width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
body.nedra-inner-mobile .content pre {
    max-width: 100%; overflow-x: auto; white-space: pre;
}
body.nedra-inner-mobile .content .wp-caption,
body.nedra-inner-mobile .content .wp-block-image,
body.nedra-inner-mobile .content .wp-block-embed {
    max-width: 100%;
}
body.nedra-inner-mobile .content .alignleft,
body.nedra-inner-mobile .content .alignright {
    max-width: 100%; height: auto;
}
body.nedra-inner-mobile .news__article-pic {
    display: block; width: 100%; max-width: 100%;
}
body.nedra-inner-mobile .news__article-text {
    display: block; width: 100%; max-width: 100%;
    margin: 12px 0 22px; padding: 0 0 18px;
}
body.nedra-inner-mobile .news__article-title { font-size: 20px; line-height: 1.3; }
body.nedra-inner-mobile .news__article .back__btn {
    width: auto; max-width: 100%; padding: 9px 18px 9px 35px;
}
body.nedra-inner-mobile .news__item-list .info__section-item {
    display: block; width: 100%; margin: 8px 0 25px;
}
body.nedra-inner-mobile .news__item-list .info__section-pic {
    width: 35%; margin: 0;
}
body.nedra-inner-mobile .news__item-list .info__section-text {
    width: 65%; margin: 0; padding: 0 0 0 14px;
}
body.nedra-inner-mobile .pagination .container { max-width: 100%; }
body.nedra-inner-mobile .pagination__list { max-width: 100%; white-space: normal; }

/* Footer and popup belong to the home page in this scoped layout. */
    body.nedra-inner-mobile .info__section-item {
        width: 100%; display: flex; flex-wrap: wrap;
        margin: 10px 0 18px; gap: 10px;
    }
    body.nedra-inner-mobile .info__section-pic { width: 35%; margin: 0; }
    body.nedra-inner-mobile .info__section-text { width: calc(65% - 10px); padding: 0; margin: 0; }
    body.nedra-inner-mobile .info__section .container { padding-top: 14px; padding-bottom: 18px; }
    body.nedra-inner-mobile .info__section-btn { padding: 15px 0 5px; }
    body.nedra-inner-mobile .info__section-btn a { max-width: calc(100% - 40px); }
    body.nedra-inner-mobile .contacts__section .container {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
    }
    body.nedra-inner-mobile .contacts__section .contacts__item,
    body.nedra-inner-mobile .contacts__section .contacts__item.contacts__item-btn {
        display: block; width: 100%; margin: 0; padding: 0;
    }
    body.nedra-inner-mobile .contacts__item-bottom { overflow-wrap: anywhere; }
    body.nedra-inner-mobile .contacts__item-bottom a { font-size: 15px; }
    body.nedra-inner-mobile .copyright { padding: 10px 16px; line-height: 1.5; }
    body.nedra-inner-mobile .popupBox {
        width: calc(100% - 24px); max-width: 500px; max-height: 90vh;
        top: 5vh; left: 50%; margin: 0;
        transform: translateX(-50%); overflow-y: auto; overscroll-behavior: contain;
    }
    body.nedra-inner-mobile .popupBox .popupInn { padding: 18px 12px 16px; }
    body.nedra-inner-mobile .popupBox .formBox { padding: 12px; }
    body.nedra-inner-mobile .popupBox .formBox input:not([type="checkbox"]) {
        max-width: 100%; box-sizing: border-box;
    }
    body.nedra-inner-mobile .popupBox .btnBox input {
        width: 100%; margin-top: 20px !important; padding: 10px 12px;
    }
}
@media screen and (max-width: 640px) {

    body.nedra-inner-mobile .header__middle-container { justify-content: center; gap: 10px; }
    body.nedra-inner-mobile .header__middle-phone { text-align: center; }
    body.nedra-inner-mobile .header__middle-btn { gap: 8px; }
    body.nedra-inner-mobile .popup__btn-header { flex: 1 1 130px; font-size: 12px; padding: 10px 7px; }
    body.nedra-inner-mobile .page__title .page__title-text {
        padding: 18px 0; font-size: 22px;
    }
    body.nedra-inner-mobile .content { font-size: 15px; line-height: 1.6; }
    body.nedra-inner-mobile .content h1 { font-size: 23px; }
    body.nedra-inner-mobile .content h2 { font-size: 20px; }
    body.nedra-inner-mobile .content h3 { font-size: 18px; }
    body.nedra-inner-mobile .news__item-list .info__section-pic,
    body.nedra-inner-mobile .news__item-list .info__section-text {
        display: block; width: 100%; padding: 0;
    }
    body.nedra-inner-mobile .news__item-list .info__section-pic img {
        display: block; width: 100%; height: auto; object-fit: cover;
    }
    body.nedra-inner-mobile .news__item-list .info__section-text { margin-top: 12px; }
body.nedra-inner-mobile .info__section-item { display: block; }
    body.nedra-inner-mobile .info__section-pic,
    body.nedra-inner-mobile .info__section-text { width: 100%; }
    body.nedra-inner-mobile .info__section-pic img { width: 100%; height: auto; }
    body.nedra-inner-mobile .contacts__section .container { gap: 18px; }
    body.nedra-inner-mobile .popupBox .top_block h3 { font-size: 19px; line-height: 1.2; }
}
