/* GALINA V17.9 — cumulative mobile typography / rhythm / navigation fixes.
   Base: V17.7 + cumulative V17.8. Keep Tilda/order URLs and prices unchanged. */
@supports (text-wrap:balance){
  .tr-section h2,.pr-section h2,.sales-section h2,
  .tr-track h3,.pr-metrics h3,.sales-request-card h3,
  .ga-price-teaser h2,.pr-hero h1,.tr-hero h1,.sales-hero h1,
  .ga-v178-catalog-page main h1,.ga-v178-catalog-page main h2{
    text-wrap:balance;
  }
}
@media(max-width:850px){
  /* The menu should overlay a page without making an opaque, blank wall. */
  .pr-header .navlinks.open{background:#fffaf1!important;box-shadow:0 8px 35px #152a2050!important;}
  .pr-header .navlinks.open a{color:#163b2d!important;font-size:17px!important;}
}
@media(max-width:720px){
  /* Reduce the dead space between mobile sections without flattening the editorial rhythm. */
  .tr-hero{padding:27px 0 35px!important;}
  .tr-hero-layout{gap:20px!important;}
  .tr-section{padding:42px 0 46px!important;}
  .tr-soft{padding-top:41px!important;padding-bottom:41px!important;}
  .tr-section-head{margin-bottom:22px!important;}
  .tr-section-head h2{margin-bottom:14px!important;}
  .tr-tracks{gap:15px!important;}
  .tr-track{padding:21px 17px!important;}
  .tr-track-top{margin-bottom:12px!important;}
  .tr-track-top > span:first-child{font-size:14px!important;line-height:1.45!important;letter-spacing:.07em!important;}
  .tr-track h3{margin-top:9px!important;margin-bottom:14px!important;}
  .tr-track .tr-track-sub{font-size:16px!important;line-height:1.45!important;}
  .tr-track p{font-size:17px!important;line-height:1.58!important;margin-bottom:17px!important;}
  .tr-track-topics{margin:10px 0 19px!important;gap:9px!important;}
  .tr-track-topics a{font-size:16px!important;line-height:1.35!important;padding:11px 13px!important;min-height:44px!important;}
  .tr-method-list li,.tr-questions summary,.tr-questions p{font-size:17px!important;line-height:1.55!important;}
  .tr-close{padding:43px 0 48px!important;}
  .tr-close h2{font-size:clamp(28px,7.5vw,36px)!important;}
  .tr-close p{font-size:17px!important;line-height:1.55!important;}
  .tr-close-inside{gap:10px!important;}
  .tr-close-links{margin-top:10px!important;}
  .tr-ribbon-inside{min-height:0!important;padding:20px 0!important;justify-content:center!important;gap:11px 16px!important;text-align:center;}
  .tr-ribbon span{font-size:13px!important;line-height:1.5!important;letter-spacing:.08em!important;}
  .pr-hero{padding:30px 0 39px!important;}
  .pr-hero-grid{gap:26px!important;}
  .pr-section{padding:42px 0 48px!important;}
  .pr-section .pr-heading{margin-bottom:23px!important;}
  .pr-section .pr-heading h2{margin-bottom:14px!important;}
  .pr-metrics{gap:15px!important;}
  .pr-metrics article{padding:22px 18px!important;}
  .pr-metrics h3{margin:10px auto!important;}
  .pr-over,.tr-section .pr-over,.pr-metrics .pr-over{font-size:14px!important;letter-spacing:.08em!important;line-height:1.5!important;}
  .pr-outro{padding:45px 0!important;}
  .pr-outro h2{font-size:clamp(28px,7.4vw,36px)!important;}
  .pr-list li,.pr-steps li,.pr-split p{font-size:17px!important;line-height:1.58!important;}
  .sales-section,.v10-section{padding-top:46px!important;padding-bottom:49px!important;}
  .sales-hero{padding-top:31px!important;padding-bottom:40px!important;}
  .sales-hero-grid{gap:24px!important;}
  .sales-section h2,.v10-section h2{margin-bottom:15px!important;}
  .sales-request-card,.sales-compose,.sales-info,.ga-price-teaser{padding:21px 18px!important;}
  .sales-small,.sales-request-card small,.v10-section .v10-small-note{font-size:16px!important;line-height:1.55!important;}
  .v10-section-lead{margin-bottom:20px!important;}
  .v10-home-offer{padding:40px 0!important;}
  /* Ensure cards and microcopy are truly readable, not artificially letter-spaced. */
  .ga-price-teaser .ga-price-small,.ga-price-teaser p,
  .galina-v15-contact small,.pr-tiny,.tr-caption-mini{
    font-size:16px!important;line-height:1.55!important;letter-spacing:normal!important;
  }
  .ga-price-teaser .ga-price-strong{font-size:22px!important;line-height:1.35!important;}
  .ga-v178-catalog-page .basket:not([hidden]){bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;}
  .ga-v178-catalog-page .basket a{font-size:13px!important;}
  .ga-v178-catalog-page .product .label{font-size:15px!important;}
  .ga-v178-catalog-page .product p,.ga-v178-catalog-page .note p{font-size:17px!important;line-height:1.6!important;}
  /* On small devices, a centred heading must never use forced manual line breaks. */
  .pr-hero h1,.tr-hero h1,.sales-hero h1,.pr-section h2,.tr-section h2{
    text-align:center!important;hyphens:auto;overflow-wrap:break-word;
  }
}
@media(max-width:400px){
  .tr-track{padding:18px 15px!important;}
  .pr-section,.tr-section{padding-top:37px!important;padding-bottom:43px!important;}
  .tr-track-topics{gap:8px!important;}
  .tr-track-topics a{padding:10px 11px!important;font-size:15px!important;}
  .tr-ribbon span{font-size:12px!important;}
}
