/* Узкие экраны публичного сайта: телефон ≤720 и laptop ≤1100.
   Сетка ноутбука ≥1101px не перестраивается. Подключается последним. */
:root{--f360-gold:#F49A38;--f360-gold-hover:#E08722;--orange:#F49A38}

a.button.primary,
button.button.primary,
.button.primary,
.header-actions .button.primary,
.home-hero .button.primary,
.final-cta .button.primary,
.pricing-preview .button.primary,
.price-grid .button.primary,
.canonical-school .button.primary,
.cookie-bar .button.primary,
[data-full-pricing] .button.primary{
  background:var(--f360-gold)!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(244,154,56,.22)!important;
}
a.button.primary:hover,
button.button.primary:hover,
.button.primary:hover{
  background:var(--f360-gold-hover)!important;
  color:#fff!important;
}
.kpi-strip article:last-child strong{color:var(--f360-gold)!important}

html,body,#content,main,.container,section,article{
  max-width:100%;
  min-width:0;
}
h1,h2,h3,h4,p,li,strong,span,.dir-head h2,.school-copy h2,.school-steps strong,.price-grid h3{
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:manual;
}

.dir-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,220px);
  gap:16px;
  align-items:center;
}
.dir-head h2{margin:0 0 10px}
[data-dir-form]{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
[data-dir-form] label{display:grid;gap:6px;font-weight:700}
[data-dir-form] input{
  min-height:48px;
  min-width:0;
  padding:10px 12px;
  border:1px solid var(--border,#dde3dc);
  border-radius:12px;
  background:#fff;
}

@media(max-width:1100px){
  .dir-head{grid-template-columns:1fr!important}
  .dir-head .f360-illustration{
    width:min(100%,360px);
    max-height:200px;
    margin:0 auto;
    object-fit:contain;
  }
  .school-copy h2{
    font-size:clamp(1.55rem,3.2vw,2.4rem)!important;
    line-height:1.2!important;
    max-width:none!important;
  }
  .school-flow{
    grid-template-columns:1fr!important;
    gap:24px!important;
  }
  .school-steps{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    overflow:visible!important;
    padding:0!important;
  }
  .school-steps article{
    flex:none!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    padding:20px 18px 18px!important;
  }
  .school-steps article>p{
    overflow:visible!important;
    padding-right:16px!important;
  }
  .school-steps article>.ui-icon,
  .school-steps article .ui-icon{
    position:static!important;
    left:auto!important;
    bottom:auto!important;
    margin-top:12px!important;
    display:inline-grid!important;
    place-items:center;
  }
  .flow-arrow{display:none!important}
  .school-outcomes{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    overflow:visible!important;
    gap:14px!important;
  }
  .school-outcomes article{
    flex:none!important;
    width:auto!important;
    min-width:0!important;
  }
  .price-grid,
  .price-grid[style*="minmax"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .price-grid article,
  .price-grid article[style]{
    min-width:0!important;
    max-width:100%!important;
  }
  .plan-compare{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .compare-table{min-width:0!important;table-layout:fixed;width:100%}
  .compare-table th,.compare-table td{
    overflow-wrap:break-word;
    word-break:normal;
    font-size:.82rem;
    padding:10px 8px;
  }
  [data-full-pricing] [role="tablist"],
  [data-full-pricing] [role="group"]{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  [data-full-pricing] [role="tablist"] button,
  [data-full-pricing] [role="group"] button{
    flex:1 1 calc(50% - 8px);
    min-height:48px;
    width:auto!important;
    box-sizing:border-box;
    white-space:normal!important;
    text-align:left;
  }
  .hero-actions .button{min-height:48px}
  .hero-stage{max-width:100%;overflow:hidden}
  .solution-art{margin-left:0!important;margin-right:0!important;max-width:100%;min-height:0!important}
  .solution-art>img{width:100%;height:auto;max-height:360px}
  .canonical-pain article{min-width:0}
  .pricing-preview,.pricing-preview .container{overflow-x:hidden;max-width:100%}
  .pricing-preview::after{right:0!important;width:min(220px,40vw)!important}
}

@media(max-width:720px){
  .home-hero .stage-message,
  .home-hero .stage-prep,
  .home-hero .stage-card.stage-message,
  .home-hero .stage-card.stage-prep{display:none!important}
  .home-hero .hero-stage{
    overflow:hidden!important;
    min-height:360px!important;
    max-width:100%;
  }
  .home-hero .hero-stage .phone-today{
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:min(226px,72vw)!important;
  }
  .home-hero .hero-copy h1,
  h1{
    font-size:1.85rem!important;
    line-height:1.2!important;
  }
  .dir-head .f360-illustration{
    width:100%!important;
    max-width:none!important;
    max-height:180px;
  }
  [data-dir-form]{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  [data-dir-form] input,
  [data-dir-form] .button{
    width:100%;
    min-width:0;
    min-height:48px;
  }
  .price-grid,
  .price-grid[style*="minmax"]{
    grid-template-columns:1fr!important;
  }
  .price-grid .button,
  .price-grid a.button{
    width:100%!important;
    min-height:48px!important;
    height:auto!important;
    white-space:normal!important;
    text-align:center;
  }
  .price strong,
  [data-price-display]{
    white-space:normal!important;
    overflow-wrap:break-word;
  }
  [data-full-pricing] [role="tablist"] button,
  [data-full-pricing] [role="group"] button{
    flex:1 1 100%!important;
    width:100%!important;
    align-items:flex-start!important;
  }
  .school-outcomes{
    grid-template-columns:1fr!important;
  }
  .compare-table thead{display:none}
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td{
    display:block;
    width:100%;
    box-sizing:border-box;
  }
  .compare-table tr{
    margin:0 0 12px;
    padding:14px;
    border:1px solid var(--border,#dde3dc);
    border-radius:14px;
    background:#fff;
  }
  .compare-table td{
    padding:8px 0;
    border-bottom:0;
  }
  .compare-table td:first-child{
    font-weight:800;
    color:var(--text,#17231f);
    padding-top:0;
  }
  .hero-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .hero-actions .button{
    width:100%!important;
    min-height:48px;
  }
  .canonical-pain article{
    grid-template-columns:1fr!important;
  }
  .canonical-pain img{
    width:100%;
    height:auto!important;
    max-height:180px;
  }
  .audience-blocks{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  .solution-art{margin:16px 0 0!important}
  #content,main,.pricing-preview,.canonical-solution,.hero-stage{overflow-x:hidden}
}
