/* Compact desktop: cards stop shrinking before content becomes cramped. */
@media(max-width:1320px){
  .medved-home{--gutter:clamp(24px,3vw,40px)}
  .product-carousel{grid-auto-columns:calc((100% - 48px)/4)}
  .benefit-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:var(--s5)}.benefit-grid article:nth-child(3n){border-right:0}
}
/* Navigation and the horizontal process no longer have comfortable room. */
@media(max-width:1080px){
  .medved-home{--gutter:clamp(20px,3.5vw,32px);--display:clamp(40px,5vw,54px)}
  .hero{min-height:690px}.hero__visual{top:72px;left:45%;background-position:45% center}.hero-support{top:86px;gap:14px;font-size:15px}.hero-support>strong{padding-right:14px;font-size:21px}.hero-support__phones{padding-left:14px;gap:14px}.hero-support__phones a{font-size:16px}.hero__content{padding-top:146px}.hero h1{max-width:650px}.product-carousel{grid-auto-columns:calc((100% - 32px)/3)}
  .selector-products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .how__layout{grid-template-columns:repeat(2,minmax(0,1fr))}.how__intro{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:var(--s4);border-right:0;border-bottom:1px solid var(--border)}.how__intro h2{margin-bottom:0}.how-step:nth-child(4),.how-step:nth-child(5){border-top:1px solid var(--border)}.how-step:nth-child(3)::after{top:auto;right:var(--s4);bottom:-16px;transform:rotate(90deg)}.how-step:nth-child(4)::after{transform:none}
  .media-card{min-height:200px}.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.media-card:last-child{grid-column:1/-1}
}
/* Portrait tablet: stacked priorities with deliberate intermediate grids. */
@media(max-width:840px){
  .medved-home{--gutter:clamp(16px,5vw,28px);--s7:52px;--section:clamp(25px,5vw,31px)}.hero{min-height:840px}.hero::before{background:linear-gradient(#080909 0%,rgba(8,9,9,.95) 57%,rgba(8,9,9,.25))}.hero__visual{inset:auto 0 0;height:360px;background-position:center 44%}.hero-support{top:84px;display:grid;grid-template-columns:auto auto;align-items:center;justify-content:center;gap:7px 14px;font-size:15px}.hero-support>strong{padding-right:14px;font-size:21px}.hero-support>span:not(.hero-support__phones){min-width:0}.hero-support__phones{grid-column:1/-1;width:auto;padding:0;border-left:0;justify-content:center;gap:20px}.hero-support__phones a{font-size:17px}.hero__content{padding-top:166px}.hero h1{max-width:640px}.hero__lead{font-size:17px}
  .area-selector{margin-top:-34px}.area-options{grid-template-columns:1fr 1fr}.product-carousel{grid-auto-columns:min(72vw,310px)}.carousel-next{display:none}
  .faq__heading{align-items:flex-start;flex-direction:column;gap:var(--s2)}.benefit-grid{grid-template-columns:1fr 1fr}.benefit-grid article,.benefit-grid article:nth-child(3n){padding-block:var(--s3);border-right:1px solid var(--border)}.benefit-grid article:nth-child(even){border-right:0}
  .how__layout{grid-template-columns:1fr}.how__intro{grid-column:auto}.how-step{min-height:160px;padding:var(--s4) var(--s4) var(--s4) 150px;border-right:0;border-top:1px solid var(--border)}.how-step:nth-child(2){border-top:0}.step-visual{position:absolute;top:22px;left:20px;width:110px;height:110px}.step-visual img{height:86px}.step-copy{padding-left:18px}.step-copy>span{top:1px;left:0}.how-step h3{min-height:34px;font-size:16px}.how-step p{font-size:13px}.how-step:not(:last-child)::after,.how-step:nth-child(4)::after{top:auto;right:24px;bottom:-17px;transform:rotate(90deg)}
  .media-grid{grid-template-columns:1fr}.media-card:last-child{grid-column:auto}.cta-grid{grid-template-columns:1fr}.cta-grid>div{min-height:112px;border-right:0;border-bottom:1px solid #fff}
}
/* Narrow mobile: single-column controls, swipe cards and compact type. */
@media(max-width:480px){
  .medved-home{--display:clamp(34px,10.5vw,44px);--button-h:50px;--s7:46px}.hero{min-height:900px}.hero-support{top:78px;display:flex;flex-direction:column;gap:3px;font-size:13px}.hero-support>strong{padding:0;border-right:0;font-size:20px}.hero-support__phones{padding:2px 0 0;border-left:0;flex-wrap:wrap;justify-content:center;gap:0 16px}.hero-support__phones a{min-height:27px;font-size:15px}.hero__content{padding-top:194px}.hero h1{line-height:1.01}.hero h1 br,.hero__lead br{display:none}.hero-facts{display:grid;grid-template-columns:1fr 1fr;gap:var(--s3)}.hero-facts>div:last-child{grid-column:1/-1}.hero__actions{max-width:310px;flex-direction:column}
  .area-selector__panel{padding:var(--s3)}.area-options{grid-template-columns:1fr}.area-option{min-height:58px}.selector-products{grid-template-columns:1fr}.product-card--selector{min-height:360px}.section-heading{align-items:flex-end}.section-heading h2{max-width:230px}.section-heading a{font-size:12px;text-align:right}
  .product-carousel{grid-auto-columns:min(82vw,300px)}.product-card{min-height:408px}.faq{padding-block:var(--s5)}.faq__heading{gap:var(--s1);margin-bottom:var(--s3)}.faq__heading>a{font-size:13px}.faq-grid{grid-template-columns:1fr}.faq-item{min-height:0;padding:14px 16px}.faq-item:nth-child(odd){border-right:0}.faq-item:nth-child(n+2){border-top:1px solid rgba(255,255,255,.14)}.faq-item h3{font-size:15px}.faq-item p{font-size:12px}
  .benefit-grid article{min-height:175px;padding-inline:var(--s2)}.benefit-grid h3{font-size:14px}.how__intro{display:block}.how__intro h2{margin-bottom:var(--s4)}.media-card{min-height:190px}.media-icon{width:58px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reveal,.hero-stagger{opacity:1;transform:none}}
