/* Адаптив шаблона Bitrix «ГлавСтрой-2008» (статическая копия, 22.10.2026).
   Подключается после /_css/styles.css. Десктоп (от 1000px) не трогает: всё внутри медиазапросов.
   Тексты и элементы те же — меняется только раскладка. */

@media (max-width: 999px) {
    .container { min-width: 0; padding-bottom: 120px; }
    .page-bound { min-width: 0; width: auto; padding: 0 16px; }

    /* шапка: логотип и меню в две строки, пункты переносятся */
    header { min-height: 0; padding: 14px 0 12px; }
    .top-logo { float: none; display: inline-block; width: auto; margin-top: 0; font-size: 28px; }
    .top-logo > img { max-width: 44px; height: auto; }
    .top-logo-note { font-size: 14px; top: 12px; right: 37px; }
    nav { float: none; width: auto; margin-top: 10px; text-align: left; }
    .top-menu-item { margin: 0 18px 8px 0; font-size: 16px; }
    .top-menu-item:first-child { margin-left: 0; }

    /* главная: слайдер по ширине экрана, баннер под ним с лёгким наездом, как на десктопе */
    .main-caption { font-size: 22px; letter-spacing: .08em; }
    .main-page-caption { padding-top: 14px; margin-bottom: 0; }
    .slider { height: 42.7vw; }
    .slider-item { width: 100%; }
    .slider-item > img { width: 100%; }
    .main-slider { margin-bottom: -14vw; }
    .main-banners { margin-bottom: 30px; }
    .banners { float: none; width: auto; height: auto; aspect-ratio: 821 / 209; margin: 0 16px 14px; }
    .banners-item img { width: 100%; height: auto; display: block; }
    .banners-nav { float: none; padding-right: 16px; }
    .banners-nav li { margin-bottom: 0; }
    .lendings { padding: 0 16px; }
    .lendings__item { width: calc(50% - 8px); }
    .lendings__anons { font-size: 18px; line-height: 24px; }
    .main-section-item { float: none; width: 100%; margin: 0 0 16px; padding: 24px 20px; }
    .main-sections { margin-bottom: 30px; }
    .slick-initialized { width: calc(100% - 56px); }
    .slick-clients-arrow-prev { left: -22px; }
    .slick-clients-arrow-next { right: -22px; }

    /* внутренние страницы */
    .inner-caption { font-size: 21px; line-height: 1.2em; margin: 18px 0 20px; }
    .works-caption-side, .works-items-side { float: none; width: auto; }
    .works-caption { font-size: 24px; margin: 10px 0 20px; }
    .works-items-side > .clearfix { display: flex; flex-wrap: wrap; justify-content: space-between; }
    .works-items-side > .clearfix:after { display: none; }
    .works-item, .works-item.last { float: none; width: calc(50% - 10px); max-width: 210px; margin: 0 0 30px; }
    .works-item-image > img { width: 100%; height: auto; }
    .object-detail, .object-similar { float: none; width: auto; }
    .object-similar { padding-top: 10px; }
    .object-detail-text { width: auto; }
    .large-side, .small-side { float: none; width: auto; margin-right: 0; }
    .about-small-side { padding-top: 0; }
    .contacts-info, .contacts-details { float: none; width: auto; }
    .contacts-details { margin-top: 14px; }
    .contacts-details-text { position: static; padding: 7px 20px 25px; margin-top: 10px; }
    #ymap { height: 360px !important; }

    /* виды деятельности: подсказка, которая на десктопе выезжает справа при наведении,
       на телефоне открывается под пунктом по нажатию */
    .services { min-height: 0; background: none; }
    .services-item { width: 100%; padding: 22px 80px 22px 20px; }
    .services-item-cnt { float: left; width: 26px; margin-top: 6px; }
    .services-item-caption { display: block; width: auto; margin-left: 26px; font-size: 20px; line-height: 1.2em; }
    .services-item-note { margin: 6px 0 0 26px; }
    .services-item-text { position: static; width: auto; margin: 16px -60px 0 0; padding: 16px 20px; display: none; box-shadow: none; }
    .services-item-text:before { display: none; }
    .services-item-detail:hover .services-item-text { display: block; }

    /* подвал: две строки вместо двух колонок */
    footer { min-height: 0; }
    .footer-inner { padding: 22px 16px; line-height: 1.5em; }
    .footer-inner .col, .made-by { float: none; }
    .made-by { margin-top: 8px; }
}

@media (max-width: 560px) {
    .top-logo { font-size: 24px; }
    .top-logo-note { font-size: 12px; top: 10px; right: 31px; }
    .top-menu-item { font-size: 14.5px; margin-right: 11px; }
    .top-menu-item:last-child { margin-right: 0; }
    .main-caption { font-size: 17px; }
    .lendings__item { width: 100%; }
    .services-item-caption { font-size: 18px; }
    .services-item-note { font-size: 16px; }
}
