/* Shared touch and tablet refinements; page-specific desktop layouts stay intact. */
@media(max-width:1000px){
  .contact-copy{min-width:0}.contact-value{overflow-wrap:anywhere}
  .site-header.is-menu-open{max-height:calc(100svh - 12px);overflow-y:auto;overscroll-behavior:contain}
  .dialog-close{width:44px;height:44px}
  .testimonial-dots button{width:44px;height:44px}
  .help-controls button{min-width:44px;min-height:44px}
  .platform-home .platform-tab{min-height:52px}
  .legacy-content .faq-item summary{min-height:48px;padding-block:14px}
}
@media(min-width:761px) and (max-width:960px){
  .cabinet-page .cabinet-step,.cabinet-page .cabinet-step:nth-of-type(even){grid-template-columns:1fr;padding:36px;gap:20px}
  .cabinet-page .cabinet-step .cabinet-step-copy,.cabinet-page .cabinet-step:nth-of-type(even) .cabinet-step-copy{grid-column:1;grid-row:1;max-width:640px;padding:0;justify-self:start}
  .cabinet-page .cabinet-step-copy>p:not(.eyebrow){max-width:600px;font-size:16px}
  .cabinet-page .cabinet-step .cabinet-step-visual,.cabinet-page .cabinet-step:nth-of-type(even) .cabinet-step-visual{grid-column:1;grid-row:2;width:100%;max-width:760px;justify-self:center}
  .platform-benefits{max-width:590px}.platform-benefits li{font-size:12px;flex-direction:row;align-items:center}
  .contact-grid{grid-template-columns:180px minmax(0,1fr);gap:26px}
  .contact-socials{grid-template-columns:1fr;gap:4px}.contact-item{padding-block:9px}
  .contact-telegram{align-self:center}.contact-value{font-size:14px}
}
@media(max-width:600px){
  .testimonial-arrow{width:44px;height:44px}.testimonial-arrow.prev{left:-18px}.testimonial-arrow.next{right:-18px}
  .contact-section .footer-bottom{gap:12px;padding-left:0;font-size:10px}
  .contact-telegram-direct{display:inline-flex;align-items:center;min-height:44px}
  .legacy-content .orcid-read{min-height:52px}
  .platform-cabinet-button{flex-wrap:wrap;row-gap:12px}
}
@media(max-width:360px){
  .price-trigger{padding-inline:13px;gap:8px}.price-name{font-size:21px}.price-amount{font-size:21px}
  .about-direction{gap:12px;padding:22px 16px}.about-direction h2{font-size:21px}
  .legacy-content .orcid-work{grid-template-columns:30px minmax(0,1fr);padding:16px 12px;gap:10px}
  .legacy-content .orcid-work-icon{width:30px;height:36px}
  .legacy-content .orcid-work h3{font-size:13px}
}
@media(max-width:1000px) and (max-height:500px){
  .site-header{position:relative;top:0!important}
  dialog{max-height:calc(100dvh - 20px);padding:32px 24px}
}
