/* ARKANOR mobile audit v13 — containment for 320–430 px viewports. */
@media (max-width:720px){
  html,body{width:100%;max-width:100%;overflow-x:clip!important}
  body{position:relative}
  :where(main,header,footer,section,article,aside,nav,form,fieldset,figure,details){min-width:0;max-width:100%}
  :where(img,svg,video,canvas,iframe){max-width:100%}
  :where(input,textarea,select,button){min-width:0;max-width:100%}
  :where(h1,h2,h3,h4,p,li,a,span,small,strong,b,em,blockquote,figcaption,legend,summary,dt,dd,td,th,label,button){overflow-wrap:anywhere;word-break:normal}
  :where(.grid,.g2,.g3,.g4,.hero-grid,.case-grid,.testimonial-grid,.solution-grid,.process-grid,.calc-grid,.cta-grid,.footer-grid,.partner-grid,.community,.trip-card,.feature,.builder-grid,.builder-form,.service-products,.service-support-grid,.service-proof-grid,.education-hero-grid,.education-route-grid,.education-program-card,.materials-hero,.materials-news,.materials-posts)>*{min-width:0;max-width:100%}
  :where(.btn,.gold-btn,.ghost-btn,.cta,.education-button){white-space:normal;text-align:center}
  :where(.hd-cta,.ubar a,.city,.mosaic-badge,.step-badge,.case-open,.case-site-link,.calc-step,.builder-badge,.sm-brand,.sm-phone){max-width:100%;white-space:normal!important}
  .toast{width:auto;max-width:calc(100% - 24px);white-space:normal}

  /* Main page: headings, quiz, testimonials and contact cards. */
  .section-heading-row{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;gap:7px}
  .section-heading-row .section-title{text-align:left!important;max-width:100%}
  .section-heading-row .section-link{position:static!important;margin:0!important;align-self:flex-start}
  .case-card{grid-template-columns:minmax(76px,31%) minmax(0,1fr)!important}
  .case-content,.launch-offer-copy,.offer-value,.contact-info,.founder-copy,.testimonial-card>div{min-width:0}
  .testimonial-card{grid-template-columns:78px minmax(0,1fr)!important;gap:11px!important}
  .testimonial-visual{width:78px!important;height:108px!important}
  .testimonial-card h3,.testimonial-card span,.testimonial-card blockquote{max-width:100%}
  .opts,.opts-five{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .opt{min-width:0!important;padding-inline:8px!important}
  .quiz-result-head>span{max-width:100%;white-space:normal}
  .benefits-card{padding-right:18px!important}
  .benefits-card .checklist{padding-right:92px}
  .benefits-card img{width:82px!important;height:96px!important;right:7px!important}
  .contact-card{align-items:flex-start;gap:14px}
  .contact-card img{flex:0 1 34%;min-width:0}
  .north-system-line{grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr)!important;gap:5px!important}
  .north-system-line span{min-width:0;white-space:normal!important;text-align:center}
  .north-main-photo figcaption{max-width:calc(100% - 32px)}
  .north-founder-note{max-width:calc(100% - 20px)!important}
  .north-principle{max-width:44%}
  .flow-map{grid-template-columns:minmax(0,1fr) 8px minmax(0,1fr) 8px minmax(0,1fr) 8px minmax(0,1fr)!important}
  .flow-map span{min-width:0;padding-inline:3px}

  /* Services: calculator, breakdown, forms and price table. */
  .service-human,.system-builder,.service-product,.service-support,.service-proof,.service-catalog,.service-final-cta{width:100%;min-width:0;max-width:100%}
  .builder-head,.service-support-head,.service-focus-head{min-width:0}
  .builder-badge{max-width:100%;white-space:normal!important}
  .builder-question,.builder-result,.builder-form,.builder-form-promise,.builder-transparency{min-width:0;max-width:100%}
  .builder-answers{grid-template-columns:1fr!important}
  .builder-breakdown dl>div{grid-template-columns:minmax(0,1fr) minmax(70px,34%)!important}
  .builder-breakdown dd{max-width:100%!important;white-space:normal!important;text-align:right}
  .service-product-result strong{font-size:clamp(22px,8vw,28px)}
  .service-catalog-body{overflow:hidden}
  .ptable{width:100%!important;table-layout:fixed!important}
  .ptable th,.ptable td{white-space:normal!important;overflow-wrap:anywhere!important}
  .ptable th:first-child,.ptable td:first-child{width:64%!important}
  .ptable th:nth-child(2),.ptable td:nth-child(2){width:36%!important}

  /* Events: top bar, cards and long partner names. */
  .topbar-in{min-width:0;gap:10px}
  .topbar-in>a{min-width:0;font-size:12px;white-space:normal}
  .topbar-in .brand{font-size:14px;letter-spacing:.08em;text-align:right}
  .hero-grid,.feature,.community,.trip-card,.grid,.partner-grid{grid-template-columns:1fr!important}
  .poster,.feature,.card,.community-photo,.community-copy,.trip-card,.partner,.note{min-width:0;max-width:100%}
  .tabs{gap:7px}
  .tabs a{flex:1 1 calc(50% - 7px);min-width:0;text-align:center;white-space:normal}
  .feature-copy,.card-copy,.community-copy,.trip-copy{padding-inline:20px!important}
  .meta span,.deadline{max-width:100%;white-space:normal}
  .partner-grid .partner b{font-size:15px}

  /* Cases and materials. */
  .case-intro,.case-list,.case-story--featured,.case-metrics,.case-work{min-width:0;max-width:100%}
  .case-visual-shade{align-items:flex-start;flex-direction:column;gap:5px;padding-inline:18px}
  .case-visual-shade b{white-space:normal!important}
  .case-meta{align-items:flex-start;flex-direction:column;gap:4px}
  .case-metrics{grid-template-columns:1fr!important}
  .case-metrics span:last-child{grid-column:auto!important}
  .materials-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .materials-filter{width:100%;min-width:0;padding-inline:8px;white-space:normal}
  .post-visual,.post-body,.materials-news-card{min-width:0;max-width:100%}

  /* Education pages. */
  .education-actions{display:grid;grid-template-columns:1fr;width:100%}
  .education-actions .education-button{width:100%}
  .education-hero-visual{grid-template-columns:1fr!important;grid-template-rows:none!important}
  .education-hero-photo,.education-hero-photo:first-child{grid-column:auto!important;grid-row:auto!important;min-height:230px}
  .education-program-meta{grid-template-columns:1fr!important}
  .education-cta-card{padding:24px 18px!important}

  /* Standalone business review page. */
  .topin{height:auto!important;min-height:66px;gap:10px!important}
  .topin .back{flex:1 1 0;min-width:0;font-size:12px;text-align:left}
  .topin .back:last-child{text-align:right}
  .topin .brand{flex:0 0 auto;font-size:16px;letter-spacing:.08em}
  .speaker-copy,.formbox,.card{min-width:0;max-width:100%}
  .speaker-copy{padding:22px!important}
  .formbox{padding:20px!important}
  .format-option>span{min-width:0}

  /* Tables in articles: keep the document within the screen. */
  .price-t{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .price-t td:last-child{white-space:normal!important}
}

@media (max-width:380px){
  .opts,.opts-five,.materials-filters{grid-template-columns:1fr!important}
  .testimonial-card{grid-template-columns:68px minmax(0,1fr)!important;padding:9px!important}
  .testimonial-visual{width:68px!important;height:98px!important}
  .case-card{grid-template-columns:68px minmax(0,1fr)!important}
  .benefits-card .checklist{padding-right:0}
  .benefits-card img{display:none!important}
  .topin .brand{display:none}
  .topin .back{font-size:11px}
  .topbar-in .brand{font-size:12px}
}
