/* Mobile and tablet section rhythm. Desktop layouts retain their own spacing. */
@media (max-width:1199px) {
  body.front { --ud-section-gap:clamp(32px,5vw,48px); --ud-edge:clamp(16px,3vw,24px); }
  body.front .roof-catalog { margin-top:var(--ud-section-gap); padding-block:0; }
  body.front .videos { margin:var(--ud-section-gap) 0; padding:0; }
  body.front .videos > .container { box-sizing:border-box; width:74%; max-width:460px; margin-inline:auto; padding:0; }
  body.front .videos .swiper-wrapper { transition-timing-function:ease-in-out; }
  body.front .videos .rutube-item-image { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
  body.front #advantage > .container, body.front #tehnology > .container { width:calc(100% - 2 * var(--ud-edge)); padding:0; margin-inline:auto; box-sizing:border-box; }
  body.front #advantage .t-title { margin:0 0 20px; }
  body.front #advantage .wrap { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:24px; align-items:start; }
  body.front #advantage .wrap .photos-block { width:100%; min-width:0; max-width:540px; margin:0 auto; }
  body.front #advantage .wrap > .pr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; max-width:none; gap:18px; margin:0; }
  body.front #advantage .pr > :is(.wrap-l,.wrap-r) { box-sizing:border-box; display:grid; align-content:start; gap:18px; width:auto; margin:0; }
  body.front #advantage .pr .item { box-sizing:border-box; width:auto; margin:0; padding-left:22px; }
  body.front #advantage .pr .item svg { left:0; width:14px; }
  body.front #tehnology { margin:24px 0 0; padding:0; }
  body.front #tehnology .advantage-block { position:static; width:100%; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
  body.front #tehnology .advantage-block .wrap-item { margin:0; min-width:0; }
  body.front #tehnology .advantage-block .item { width:auto; height:100%; box-sizing:border-box; padding:16px; border:1px solid var(--ud-line); border-radius:12px; background:var(--ud-paper); box-shadow:none; }
  body.front #tehnology .advantage-block .item strong { display:block; margin:0 0 6px; font-size:17px; line-height:1.3; color:#21372a; }
  body.front #tehnology .advantage-block .item p { margin:0; font-size:15px; line-height:1.5; }
  body.front #tehnology .advantage-block .item::before, body.front #tehnology .advantage-block :is(.img,.line-bottom) { display:none; }
  body.front #tehnology .tehno { margin:var(--ud-section-gap) 0 0; padding:0; }
  body.front #tehnology .container .tehno .t-title { padding:0; margin:0 0 20px; }
  body.front #tehnology .container .tehno .text-tehno { margin:20px 0 0; }
}
@media (max-width:991px) {
  body.front #advantage .wrap { grid-template-columns:minmax(0,1fr); }
  body.front #tehnology .tehno .technology-body .house-teh { position:static; max-width:520px; width:100%; height:auto; margin:0 auto; }
  body.front #tehnology .house-teh img { display:block; height:auto; }
  body.front #tehnology .tehno .technology-list { box-sizing:border-box; max-width:560px; padding:0; margin:16px auto 0; }
  body.front :is(.technology-item,.house-item) .plus svg path { fill:var(--ud-control); }
  body.front #modules { margin:var(--ud-section-gap) 0 0; padding:0; }
  body.front #modules .modules { margin:0; }
  body.front #modules .modules .title { margin-bottom:20px; }
  body.front #modules .wrapper { padding-bottom:0; }
  body.front #modules .mod-house { margin:24px auto 0; }
  body.front #modules .chip, body.front #modules .sizes .leaf { display:none; }
  body.front #complects { margin:var(--ud-section-gap) 0 0; padding:0; }
  body.front #complects p.angar, body.front #complects .complects-bottom-line { display:none; }
  body.front #additions { margin:var(--ud-section-gap) 0 0; }
  body.front #additions #dopolnitelnye-uslugi { padding-top:0; }
  body.front #subscribe { padding-block:var(--ud-section-gap) 0; }
  body.front #about { margin:var(--ud-section-gap) 0 0; }
  body.front #about > .container > .title { padding-top:0; }
  body.front :is(.faq,.seo-links) .container > :first-child > h2:first-child { margin-top:0; }
}
@media (max-width:700px) {
  body.front #advantage .wrap > .pr, body.front #tehnology .advantage-block { grid-template-columns:minmax(0,1fr); }
  body.front #tehnology .advantage-block { gap:10px; }
  body.front #tehnology .container .tehno .text-tehno .item { padding:14px 16px; font-size:15px; }
  body.page .contentPage { padding:28px 0 40px; }
  body.page .contentPage > .container > h1 { margin:0 0 22px; font-size:clamp(28px,7.2vw,36px); line-height:1.12; }
  body.page .contentPage .seo-page { padding-top:0; }
  body.page .contentPage .seo-page table { display:block; width:100%; overflow-x:auto; }
  body.page .contentPage .seo-page :is(th,td) { padding:7px 6px; }
}

@media (min-width:992px) and (max-width:1199px) {
  body.front #tehnology .tehno .technology-body { width:100%; max-width:1035px; height:auto; aspect-ratio:1035 / 671; }
  body.front #modules { margin:var(--ud-section-gap) 0 0; padding-top:0; }
  body.front #modules .modules { margin-top:0; }
  body.front #modules .sizes .leaf, body.front #modules .chip { display:none; }
}
@media (max-width:991px) {
  .map-main > .branches, body.front .wrapper > .leaf-fly { display:none; }
}
