/* Tablet overrides for the flexible-content constructor (852px Figma reference).
 * Keep these overrides last and bounded: approved phone/desktop rules stay intact.
 * Content determines height, so reused blocks also support longer editor copy.
 */
@media (min-width: 768px) and (max-width: 1024px) {
    .gs-page-builder .gs-hero__slide { height: auto; min-height: 460px; }
    .gs-page-builder .gs-hero__wrap {
        display: flex; align-items: flex-end; min-height: 460px; height: auto;
        padding: 40px; box-sizing: border-box;
    }
    .gs-page-builder .gs-hero__text {
        position: relative; inset: auto; width: 374px; max-width: 100%; gap: 10px;
    }
    .gs-page-builder .gs-hero__title { margin: 0; font-size: 24px; line-height: 28px; }
    .gs-page-builder .gs-hero__descr { width: 100%; margin: 0; font-size: 15px; line-height: 1.3; }
    .gs-page-builder .gs-hero__btn-wrap { width: 328px; max-width: 100%; margin: 0; }
    .gs-page-builder .gs-hero__btn {
        height: auto; min-height: 57px; padding: 16px 6px;
        box-sizing: border-box; font-size: 18px; line-height: 1.4;
    }
    .gs-page-builder .gs-hero__caption { width: 286px; max-width: 100%; margin: 0; font-size: 11px; line-height: 1.2; }
    .gs-page-builder .intro-sale.--no-mrg { margin: 0; padding: 16px; min-height: 60px; box-sizing: border-box; display: flex; align-items: center; }
    .gs-page-builder .intro-sale .container { width: 100%; padding: 0; }
    .gs-page-builder .intro-sale__text { margin: 0; font-size: 18px; line-height: 1.1; }

    .gs-page-builder .main-features { margin-top: 0; padding: 0 10px 110px; }
    /* Icon breathing room is internal, separate from the editor's block spacing. */
    .gs-page-builder .main-features .container { width: 100%; max-width: 100%; padding: 60px 0 0; box-sizing: border-box; }
    .gs-page-builder .main-features__inner {
        display: grid; grid-template-columns: repeat(2, minmax(0, 283px));
        justify-content: center; align-items: start; gap: 40px; padding: 0;
    }
    .gs-page-builder .main-features .main-feature-item { width: 100%; max-width: 283px; gap: 8px; }
    .gs-page-builder .main-features .main-feature-item__img-wrap { width: 100px; height: 100px; margin: 0; }
    .gs-page-builder .main-features .main-feature-item__title { margin: 0; font-size: 18px; line-height: 22px; text-align: center; }
    .gs-page-builder .main-features .main-feature-item__text { margin: 0; padding: 0; font-size: 15px; line-height: 1.3; text-align: center; }

    .gs-page-builder .cottage-video { padding: 50px 0; }
    .gs-page-builder .cottage-video .container { width: 100%; max-width: 100%; padding: 0 16px; box-sizing: border-box; gap: 30px; }
    .gs-page-builder .cottage-video__business {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto 1fr; column-gap: 40px; row-gap: 20px;
    }
    .gs-page-builder .cottage-video__heading { width: auto; min-width: 0; gap: 20px; }
    .gs-page-builder .cottage-video__picture { width: 100%; height: auto; min-height: 300px; }
    .gs-page-builder .cottage-video__features { width: auto; min-width: 0; margin-top: 0; gap: 20px; }
    .gs-page-builder .cottage-video__title { margin: 0; font-size: 24px; line-height: 28px; }
    .gs-page-builder .cottage-video__lead,
    .gs-page-builder .cottage-video__point-desc { font-size: 15px; line-height: 1.3; }
    .gs-page-builder .cottage-video__point-title { font-size: 16px; line-height: 20px; }
    .gs-page-builder .cottage-video__tasks { gap: 30px; }
    .gs-page-builder .cottage-video__tasks-title { font-size: 18px; line-height: 22px; }
    .gs-page-builder .cottage-video__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .gs-page-builder .cottage-video__card { min-width: 0; padding: 22px; }
    .gs-page-builder .cottage-video__card-title { font-size: 16px; line-height: 20px; }
    .gs-page-builder .cottage-video__card-text { font-size: 15px; line-height: 1.3; }
}

/* Remaining reusable layouts, matched to the 852px frame. */
@media (min-width: 768px) and (max-width: 1024px) {
    .gs-page-builder .cams > .container,
    .gs-page-builder .storage-options > .container,
    .gs-page-builder .gsm-difference > .container,
    .gs-page-builder .table > .container,
    .gs-page-builder .security-connect > .container {
        width: 100%; max-width: 100%; padding-inline: 16px; box-sizing: border-box;
    }
    .gs-page-builder .cams { padding-block: 50px; }
    .gs-page-builder .cams .title-h2,
    .gs-page-builder .storage-options__title,
    .gs-page-builder .gsm-difference__heading,
    .gs-page-builder .ai-works__heading,
    .gs-page-builder .table .title-h2,
    .gs-page-builder .reviews--acf-component .reviews__title,
    .gs-page-builder .faq__title,
    .gs-page-builder .our-cities__title {
        font-size: 24px !important; line-height: 28px !important;
        font-weight: 500; margin: 0;
    }
    .gs-page-builder .cams__subtitle { margin: 20px 0 30px; font-size: 15px; line-height: 1.3; }
    .gs-page-builder .cams .cams__item .fire-block__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 0; min-height: 650px; height: auto; margin-top: 0; padding: 0;
    }
    .gs-page-builder .cams .fire-block__content { padding: 32px 0 32px 32px; gap: 24px; }
    .gs-page-builder .cams .fire-block__title { font-size: 18px; line-height: 22px; text-align: left; }
    .gs-page-builder .cams .fire-block__subwraps { width: auto; min-width: 0; }
    .gs-page-builder .cams .gs-builder-cam-specs { grid-template-columns: 1fr; gap: 0; }
    .gs-page-builder .cams .fire-block__des,
    .gs-page-builder .cams .fire-block__item { font-size: 15px; line-height: 1.3; }
    .gs-page-builder .cams .fire-block__wrap img.fire-block__device { left: 0; width: 53.608%; height: calc(100% - 39.49px); }
    .gs-page-builder .cams .fire-block__btn { max-width: 100%; width: 280px; }
    .gs-page-builder .cams__nav:not(.cams__nav--mob) { display: flex; flex-wrap: wrap; justify-content: center; max-width: 464px; margin: 30px auto 0; gap: 6px; }
    .gs-page-builder .cams__nav:not(.cams__nav--mob) > .cams__nav-item { flex: 0 0 88px; width: 88px; min-width: 0; }
    .gs-page-builder .cams__nav-wrap { width: 88px; height: 88px; }
    .gs-page-builder .cams__nav-text { margin-top: 12px; font-size: 10px; }
    .gs-page-builder .cams .doc-links { margin-top: 30px; }

    .gs-page-builder .gsm-why { margin-top: 0; padding: 50px 16px; }
    .gs-page-builder .gsm-why__container { width: 100%; gap: 50px; }
    .gs-page-builder .gsm-why__grid {
        width: 100%; grid-template-columns: repeat(2, minmax(0, 328px));
        justify-content: center; gap: 20px; padding: 0 16px; box-sizing: border-box;
    }
    .gs-page-builder .gsm-why__card { width: 100%; min-height: 205px; align-items: center; }
    .gs-page-builder .gsm-why__content { align-items: center; }
    .gs-page-builder .gsm-why__card-title { font-size: 18px; line-height: 22px; text-align: center; }
    .gs-page-builder .gsm-why__card-text { font-size: 15px; line-height: 1.3; text-align: center; }

    .gs-page-builder .cam-scheme { width: 100%; margin: 0; padding-top: 0; }
    /* Internal breathing room belongs inside the colored section. The editor's
       spacing reset must not pin its heading to the background's top edge. */
    .gs-page-builder .cam-scheme__head { padding-top: 20px; }
    .gs-page-builder .cam-scheme__plan { width: 416px; max-width: 100%; }
    .gs-page-builder .cam-scheme__card { height: auto; min-height: 304px; }
    .gs-page-builder .cam-scheme__panel { min-height: 304px; align-items: stretch; }
    .gs-page-builder .cam-scheme__photo { min-height: 304px; height: auto; position: relative; }
    .gs-page-builder .cam-scheme__photo img { position: absolute; inset: 0; }
    .gs-page-builder .cam-scheme__info { min-width: 0; justify-content: center; padding: 24px 36px; }
    .gs-page-builder .cam-scheme__name { font-size: 18px; line-height: 22px; }
    .gs-page-builder .cam-scheme__text { font-size: 15px; line-height: 1.3; }

    .gs-page-builder .storage-options { padding: 0 0 50px; }
    .gs-page-builder .storage-options > .container { padding-top: 50px; }
    .gs-page-builder .storage-options__header { margin-bottom: 40px; }
    .gs-page-builder .storage-options__subtitle { margin-top: 20px; font-size: 15px; line-height: 1.3; }
    .gs-page-builder .storage-options__cards { gap: 40px; align-items: stretch; }
    .gs-page-builder .storage-options .storage-card { flex: 0 1 328px; width: 328px; min-width: 0; min-height: 509px; }
    .gs-page-builder .storage-card__content { padding: 46px 20px 20px; gap: 30px; }
    .gs-page-builder .storage-card__title { margin-bottom: 14px; }
    .gs-page-builder .storage-card__list { gap: 6px; }
    .gs-page-builder .storage-card__item { font-size: 15px; line-height: 1.3; }
    .gs-page-builder .storage-card__promo { min-width: 120px; box-sizing: border-box; font-size: 15px; }
    .gs-page-builder .storage-card__btn { font-size: 24px; min-height: 58px; height: auto; }

    .gs-page-builder .gsm-difference { margin: 0; padding: 50px 0; }
    .gs-page-builder .gsm-difference__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
    .gs-page-builder .gsm-difference__item { min-width: 0; padding: 24px; gap: 6px; }
    .gs-page-builder .gsm-difference__title { font-size: 18px; line-height: 22px; }
    .gs-page-builder .gsm-difference__text { font-size: 15px; line-height: 1.3; }

    .gs-page-builder .ai-works { padding: 50px 0; }
    .gs-page-builder .ai-works .container { width: 100%; max-width: 100%; padding-inline: 100px; box-sizing: border-box; gap: 30px; }
    .gs-page-builder .ai-works__list { width: 100%; }
    .gs-page-builder .ai-works__item { width: 100%; min-width: 0; min-height: 107px; }
    .gs-page-builder .ai-works__item:last-child { min-height: 0; }
    .gs-page-builder .ai-works__text { min-width: 0; padding-bottom: 30px; }
    .gs-page-builder .ai-works__title { font-size: 16px; line-height: 20px; }
    .gs-page-builder .ai-works__desc { font-size: 15px; line-height: 1.3; }
    .gs-page-builder .ai-works__line { min-height: 40px; margin-bottom: 10px; }

    .gs-page-builder .new-callback { padding: 50px 0; margin: 0; }
    .gs-page-builder .new-callback > .container { width: 100%; max-width: 100%; padding: 0 16px; box-sizing: border-box; gap: 0; }
    .gs-page-builder .new-callback__title { font-size: 24px; line-height: 28px; margin: 0 0 20px; }
    .gs-page-builder .new-callback__form { width: 100%; max-width: 100%; margin: 0; gap: 22px; }
    .gs-page-builder .new-callback__text { width: 100%; margin: 0 0 7px; padding: 0; border: 0; font-size: 15px; line-height: 1.3; }
    .gs-page-builder .new-callback__fieldset { display: flex; width: 100%; gap: 16px; }
    .gs-page-builder .new-callback__fieldset > input:not([type=hidden]) { flex: 1 1 0; width: 0; min-width: 0; height: 44px; font-size: 18px; box-sizing: border-box; }
    .gs-page-builder .new-callback__checkboxes { width: 100%; margin: 0; }
    .gs-page-builder .new-callback .form-contact__btn-wrap { margin: 0; }
    .gs-page-builder .new-callback .labeled-checkbox { font-size: 12px; line-height: 1.15; }
    .gs-page-builder .new-callback__btn { min-height: 56px; height: auto; margin: 0; padding: 12px 40px; }
    .gs-page-builder .new-callback__up { padding: 0; }
    .gs-page-builder .new-callback__up > .container { padding: 0; }
    .gs-page-builder .new-callback__up .new-callback__card { padding: 50px 40px; }
    .gs-page-builder .new-callback__up .new-callback__form-col { gap: 20px 30px; }
    .gs-page-builder .new-callback__up .new-callback__title,
    .gs-page-builder .new-callback__up .form-contact__text { margin: 0; }
    .gs-page-builder .new-callback__up .new-callback__wrap { position: relative; min-height: 410px; }
    .gs-page-builder .new-callback__up .new-callback__wrap picture { position: absolute; inset: 0; }
    .gs-page-builder .new-callback__up .new-callback__wrap img { min-height: 0; }
    .gs-page-builder .new-callback__up .contact-us__form { gap: 20px; }
    .gs-page-builder .new-callback__up .form-contact__fieldset { display: flex; gap: 16px; }
    .gs-page-builder .new-callback__up .form-contact__fieldset > input:not([type=hidden]) { width: 0; min-width: 0; flex: 1 1 0; height: 44px; }
    .gs-page-builder .new-callback__up .form-contact__btn { font-size: 22px; line-height: 1.4; height: auto; min-height: 55px; padding: 12px; white-space: normal; }

    .gs-page-builder .table { padding: 50px 0; margin: 0; }
    .gs-page-builder .table .title-h2 { margin-bottom: 20px; }
    .gs-page-builder .table .gsm-difference__subheading { font-size: 15px; line-height: 1.3; margin: 0 0 30px; }
    .gs-page-builder .comparison-table-wrapper { width: 100%; max-width: 100%; margin: 0; overflow-x: auto; }
    .gs-page-builder .comparison-table { min-width: 988px; }

    .gs-page-builder .security-connect { padding: 50px 0 0; }
    .gs-page-builder .security-connect__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
    .gs-page-builder .security-connect__content { display: flex; grid-column: 2; grid-row: 1; min-width: 0; }
    .gs-page-builder .security-connect__picture { grid-column: 1; grid-row: 1; min-height: 0; height: auto; }
    .gs-page-builder .security-connect__title { font-size: 24px; line-height: 28px; margin: 0 0 20px; }
    .gs-page-builder .security-connect__lead,
    .gs-page-builder .security-connect__point-desc { font-size: 15px; line-height: 1.3; }
    .gs-page-builder .security-connect__point-title { font-size: 16px; line-height: 20px; }
    .gs-page-builder .security-connect__features { margin-top: 20px; }
    .gs-page-builder .security-connect__action { margin-top: 20px; max-width: 100%; }
    .gs-page-builder .security-connect__btn { min-height: 52px; height: auto; font-size: 20px; padding: 12px; width: auto; }

    .gs-page-builder .reviews--acf-component { margin: 0; padding: 50px 0; }
    .gs-page-builder .reviews--acf-component .container { width: 100%; max-width: 100% !important; padding: 0 16px; box-sizing: border-box; }
    .gs-page-builder .reviews--acf-component .reviews__inner { padding: 50px 0 0; }
    .gs-page-builder .reviews--acf-component .slider-reviews { margin-top: 26px; }
    .gs-page-builder .reviews--acf-component .review { width: 100%; min-height: 0; height: auto; flex-direction: column; align-items: center; gap: 40px; }
    .gs-page-builder .reviews--acf-component .review__img-wrap { width: 108px; height: 106px; margin: 0 auto; }
    .gs-page-builder .reviews--acf-component .review__text-wrap { width: 100%; flex: 0 1 auto; }
    .gs-page-builder .reviews--acf-component .review__text { font-size: 15px; line-height: 1.4; }
    .gs-page-builder .reviews--acf-component .review__show-more-btn { font-size: 14px; color: #adafaf; }
    .gs-page-builder .reviews--acf-component .review__footer { margin-top: 26px; }
    .gs-page-builder .reviews--acf-component .slider__controls { margin-top: 30px; }

    .gs-page-builder .faq { width: 100%; max-width: 100%; margin: 0; padding: 50px 16px; box-sizing: border-box; }
    .gs-page-builder .faq__title { margin: 0 0 40px; }
    .gs-page-builder .new-faq__listing { width: 100%; max-width: 100%; gap: 30px; margin: 0; }
    .gs-page-builder .new-faq__item { width: 100%; }
    .gs-page-builder .new-faq__header { gap: 18px; padding: 18px 0; border-bottom: 1.5px solid #000; }
    .gs-page-builder .new-faq__heading { min-width: 0; font-size: 18px; line-height: 24px; }
    .gs-page-builder .new-faq__toggler { flex: 0 0 20px; }
    .gs-page-builder .new-faq__body { font-size: 15px; line-height: 1.3; }

    .gs-page-builder .callback-offer__container { width: 100%; max-width: 100%; padding: 0 16px; box-sizing: border-box; }
    .gs-page-builder .callback-offer__title { font-size: 24px; line-height: 28px; }
    .gs-page-builder .callback-offer__description { font-size: 15px; line-height: 1.3; }
    .gs-page-builder .callback-offer__card:not(:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"]))) { min-height: 470px; padding: 30px 16px 0; }
    .gs-page-builder .callback-offer__card:not(:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"]))) .callback-offer__visual { left: 16px; top: 30px; width: calc(50% - 16px); height: calc(100% - 30px); }
    .gs-page-builder .callback-offer__card:not(:has(.callback-offer__success:not([style*="display: none"]):not([style*="display:none"]))) .callback-offer__content { width: 50%; padding: 0 0 30px; }
    .gs-page-builder .callback-offer__fields { gap: 16px; }
    .gs-page-builder .callback-offer__input { min-width: 0; width: 0; flex: 1 1 0; height: 44px; padding-inline: 12px; font-size: 16px; }
    .gs-page-builder .callback-offer__button { min-height: 58px; height: auto; font-size: 24px; padding: 12px 24px; }

    .gs-page-builder .our-cities { padding-top: 50px; margin-bottom: 0 !important; background: #f2f3f7; }
    .gs-page-builder .our-cities > .container { max-width: 100%; width: 100%; padding: 0; }
    .gs-page-builder .our-cities__content { padding: 0 16px; box-sizing: border-box; }
    .gs-page-builder .our-cities__title { margin-bottom: 30px; }
    .gs-page-builder .our-cities__filters { flex-wrap: wrap; gap: 8px; }
    .gs-page-builder .our-cities__search-wrap { margin-top: 30px; }
    .gs-page-builder .our-cities__map-wrap { margin-top: 50px; }
    .gs-page-builder .our-cities__map { width: 100%; height: 546px; }
}

/* Shared shell: scoped to this template, never to other site templates. */
@media (min-width: 768px) and (max-width: 1024px) {
    body.page-template-page-flexible-content .header__new { height: 64px; padding: 0; box-sizing: border-box; }
    body.page-template-page-flexible-content .header__new > .header-container { position: relative; height: 64px; padding: 0 16px; }
    body.page-template-page-flexible-content .header__upper { position: absolute; top: 10px; left: 16px; width: auto; margin: 0; z-index: 1; }
    body.page-template-page-flexible-content .header__upper-content { padding: 0; }
    body.page-template-page-flexible-content .header__upper-partners-link { display: none; }
    body.page-template-page-flexible-content .header.--new-header { height: 64px; }
    body.page-template-page-flexible-content .header__brand { width: 127px; height: auto; margin-top: 20px; }
    body.page-template-page-flexible-content .header__brand img { width: 127px; height: auto; }
    body.page-template-page-flexible-content .desktopMain { padding-top: 0; }
    /* Breadcrumbs are outside the builder and absent in the tablet reference. */
    body.page-template-page-flexible-content .breadcrumbs { display: none; }
    body.page-template-page-flexible-content > footer { padding: 40px 0; }
    body.page-template-page-flexible-content > footer > .container { width: 100%; max-width: 100%; padding: 0 70px; box-sizing: border-box; }
    body.page-template-page-flexible-content .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 49px; }
    body.page-template-page-flexible-content .footer__top > .footer__column { min-width: 0; width: auto; margin: 0; padding: 0; }
    body.page-template-page-flexible-content .footer__top > .footer__column:first-child { grid-column: 1 / -1; grid-row: 1; align-items: center; text-align: center; }
    body.page-template-page-flexible-content .footer__logo { width: 213px; height: auto; }
    body.page-template-page-flexible-content .footer__logo img { width: 100%; height: auto; }
    body.page-template-page-flexible-content .footer__tagline { font-size: 12px; line-height: 1.3; margin-top: 20px; }
    body.page-template-page-flexible-content .footer__licenses { width: 100%; text-align: left; font-size: 11px; line-height: 1.3; margin-top: 20px; }
    body.page-template-page-flexible-content .footer__licenses br { display: none; }
    body.page-template-page-flexible-content .footer__top > .footer__column:nth-child(2) { grid-column: 1; grid-row: 2; }
    body.page-template-page-flexible-content .footer__top > .footer__column:nth-child(3) { grid-column: 2; grid-row: 2; }
    body.page-template-page-flexible-content .footer__nav-link { font-size: 14px; line-height: 1.25; padding: 0; margin: 0 0 14px; }
    body.page-template-page-flexible-content .footer__top > .footer__contacts { grid-column: 1 / -1; grid-row: 3; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; }
    body.page-template-page-flexible-content .footer__new-blocks { width: auto; flex: 0 1 180px; font-size: 14px; line-height: 1.3; }
    body.page-template-page-flexible-content .footer__phone { font-size: 14px; line-height: 1.3; }
    body.page-template-page-flexible-content .footer__social { margin: 0; align-self: auto; }
    body.page-template-page-flexible-content .footer__bottom { margin-top: 34px; gap: 8px; }
    body.page-template-page-flexible-content .footer__copy-and-map { flex-wrap: wrap; gap: 8px; }
    body.page-template-page-flexible-content .footer__text { font-size: 12px; line-height: 1.3; margin-top: 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .gs-page-builder .cams .gs-builder-cam-details > .fire-block__wrap.--mob { display: none !important; }
    .gs-page-builder .cams .fire-block__content .fire-block__des { margin-top: 16px; }
    .gs-page-builder .cams .install-resources { margin: 30px 0 0; }
    .gs-page-builder .gsm-difference__item { display: flex; flex-direction: column; }
    .gs-page-builder .gsm-difference__item:nth-child(odd) { background: #ccddeb; }
    .gs-page-builder .gsm-difference__item:nth-child(even) { background: #f2f3f7; }
    .gs-page-builder .reviews--acf-component .slider.--equal-height .swiper-slide > .review { height: auto; }
    .gs-page-builder .our-cities__filter-wrap { padding: 0; }
    .gs-page-builder .our-cities__filters { justify-content: flex-start; }
    .gs-page-builder .our-cities__filter-name { font-size: 12px; }
    .gs-page-builder .our-cities__filter { margin: 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Preserve the established square coordinate canvas for editor markers,
       while the wide tablet slot excludes the PNG's empty letterbox space. */
    .gs-page-builder .cam-scheme__plan { height: 268px; aspect-ratio: auto; }
    .gs-page-builder .cam-scheme .gs-builder-scheme-canvas {
        inset: auto; left: 0; top: 50%; width: 100%; height: auto;
        aspect-ratio: 660 / 652.1194; transform: translateY(-50%);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.page-template-page-flexible-content .footer__logo .logo__img { width: 213px; max-width: 100%; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.page-template-page-flexible-content .header__brand .logo__img { width: 127px; height: auto; }
    body.page-template-page-flexible-content .footer__top .footer__column .footer__nav-link { padding: 0; }
}
