/* Phone layout is kept separate so the desktop composition stays unchanged. */
@media (max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
  :root{--header-height:68px}
  .container{width:calc(100% - 32px)}
  .framed{--frame-offset:-10px;--frame-size:8px}

  .site-header{padding-inline:16px;gap:8px}
  .brand{flex:none;font-size:20px;letter-spacing:.24em}
  .header-contact{min-width:0;gap:8px}
  .header-contact .header-button{order:1}
  .header-phone-control{order:2}
  .header-contact .header-button{min-height:44px;font-size:12px}
  .header-button .button-text{padding-inline:10px}
  .menu-toggle,.phone-toggle{flex:none;width:44px;height:44px;border-radius:6px}

  .hero{min-height:min(560px,calc(100svh - var(--header-height)));padding-block:36px 24px}
  .hero h1{max-width:560px;font-size:clamp(36px,9.4vw,50px);line-height:1.1}
  .hero h1 br{display:none}
  .hero-lead{max-width:440px;font-size:15px;line-height:1.6;margin-top:18px}
  .hero-actions{margin-top:24px}
  .hero-actions .cut-button{width:100%;max-width:360px;min-height:52px;font-size:15px}
  .hero-socials{margin-top:20px}
  .hero-meta{position:relative;left:auto;right:auto;bottom:auto;width:calc(100% - 32px);margin-top:auto;padding-top:36px;font-size:9px;line-height:1.5}
  .hero-meta span:last-child{display:none}
  .hero>.corner-tl{left:6px;top:14px;width:8px;height:8px}
  .hero>.corner-bl,.hero>.corner-br{bottom:14px;width:8px;height:8px}
  .hero>.corner-bl{left:6px}
  .hero>.corner-br{right:6px}

  .systems-section,.work-types-section,.details-section,.reviews-section{padding-block:32px}
  .systems-top h2,.work-types-heading h2,.details-section h2,.reviews-heading h2,.contact-section h2{font-size:clamp(32px,8.2vw,40px);line-height:1.16}
  .systems-top p,.work-types-heading p{font-size:14px;line-height:1.6}
  .work-types-heading,.reviews-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:20px}

  .work-card{padding:20px 18px}
  .work-card-top{margin-bottom:14px}
  .work-card h3{font-size:clamp(27px,7.7vw,30px)}
  .work-card ul{margin-top:16px}
  .work-card li{padding-block:11px;font-size:14px;line-height:1.6}
  .work-card li:last-child{padding-bottom:0}
  .work-types-bottom{flex-direction:column;align-items:stretch;gap:16px;margin-top:20px}
  .work-types-bottom p{font-size:13px;line-height:1.6}
  .work-types-button{min-height:52px;font-size:14px}
  .carousel-controls{gap:8px;margin-top:14px}
  .carousel-dot{width:44px;height:44px}
  .carousel-dots{gap:0}

  .details-cards{gap:24px;margin-top:22px}
  .detail-card{gap:16px;padding-top:16px}
  .detail-card-head{grid-template-columns:20px minmax(0,1fr);gap:8px}
  .detail-card-copy h3{font-size:clamp(18px,5vw,20px);line-height:1.35}
  .detail-card-copy p{margin-top:8px;font-size:14px;line-height:1.6}













  .review-card{padding:20px 18px}
  .review-author{gap:12px}
  .review-rating{margin:18px 0 12px}
  .review-text{font-size:15px;line-height:1.65;margin-bottom:20px}
  .review-card-bottom{padding-top:14px}

  .contact-section{padding-block:32px}
  .contact-invitation{gap:20px}
  .contact-invitation h2{margin-bottom:12px}
  .contact-invitation p{font-size:14px;line-height:1.6}
  .footer-contact-row{align-items:flex-start;flex-direction:column;gap:18px;padding-block:24px}
  .footer-socials .social-links{justify-content:flex-start}
  .footer-socials .social-status{text-align:left}
  .footer-inner{padding-block:20px;gap:12px}
  .footer-inner>span{width:100%;line-height:1.6}
}

@media (max-width:360px){
  .site-header{padding-inline:12px;gap:6px}
  .brand{font-size:18px;letter-spacing:.2em}
  .header-contact{gap:6px}
  .header-contact .header-button{font-size:11px}
  .header-button .button-text{padding-inline:6px}
}

@media (max-width:700px) and (max-height:500px) and (orientation:landscape), (max-width:1000px) and (max-height:500px) and (orientation:landscape) and (pointer:coarse){
  .hero{min-height:0;padding-block:24px}
  .hero h1{max-width:550px;font-size:36px}
  .hero-lead{margin-top:14px}
  .hero-actions{margin-top:18px}
  .hero-meta{padding-top:24px}
}
