
/* Уровни 2-3: крупная навигация */
.wizard.nav-large-level{max-width:680px}
.wizard.nav-large-level .btn-grid{grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:18px}
.wizard.nav-large-level .choice{min-height:76px;padding:20px 22px;font-size:clamp(17px,2.3vw,20px);border-radius:16px}
.wizard.nav-large-level .choice-admin-wrap{min-height:76px}

/* Главная: 7 стран помещаются в 3 компактных ряда без лишней прокрутки */
.wizard[data-nav-level="1"]{max-width:682px;margin-top:-50px}
.wizard[data-nav-level="1"]>.site-lang-control{margin-bottom:2px!important}
.wizard[data-nav-level="1"] .step-title{margin-bottom:9px;font-size:clamp(20px,3vw,26px)}
.wizard[data-nav-level="1"] .btn-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 11px}
.wizard[data-nav-level="1"] .choice{min-height:64px;padding:13px 14px;font-size:17px;line-height:1.15;border-radius:14px}
.wizard[data-nav-level="1"] .choice-admin-wrap{min-height:64px}
.wizard[data-nav-level="1"] .btn-grid>.choice:last-child:nth-child(3n+1),.wizard[data-nav-level="1"] .btn-grid>.choice-admin-wrap:last-child:nth-child(3n+1){grid-column:2}

/* Уровень 4 и глубже: компактнее, чтобы уменьшить вертикальную прокрутку */
.wizard.nav-compact-level{max-width:620px}
.wizard.nav-compact-level .step-title{margin-bottom:16px}
.wizard.nav-compact-level .btn-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}
.wizard.nav-compact-level .choice{min-height:48px;padding:10px 12px;font-size:14.5px;line-height:1.2;border-radius:11px}
.wizard.nav-compact-level .choice-admin-wrap{min-height:48px}
.wizard.nav-compact-level .choice-hide-btn,.wizard.nav-compact-level .choice-delete-btn{width:24px;height:24px;top:4px;font-size:12px}

/* Боковые панели учитывают центральный блок и не перекрывают его */
@media (min-width:1201px){
  .side-links,.tools-side{width:min(428px,calc((100vw - 682px) / 2 - 28px))}
}
@media (max-width:640px){
  .wizard.nav-large-level,.wizard.nav-compact-level{max-width:none}
  .wizard.nav-large-level .btn-grid{grid-template-columns:1fr;gap:12px}
  .wizard.nav-large-level .choice{min-height:70px;padding:17px 16px;font-size:17px}
  .wizard[data-nav-level="1"]{max-width:none;margin-top:-25px}
  .wizard[data-nav-level="1"] .btn-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .wizard[data-nav-level="1"] .choice{min-height:60px;padding:12px 10px;font-size:14.5px;white-space:normal}
  .wizard[data-nav-level="1"] .btn-grid>.choice:last-child:nth-child(3n+1),.wizard[data-nav-level="1"] .btn-grid>.choice-admin-wrap:last-child:nth-child(3n+1){grid-column:1/-1;width:calc(50% - 4px);justify-self:center}
  .wizard.nav-compact-level .btn-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .wizard.nav-compact-level .choice{min-height:48px;padding:9px 10px;font-size:14px;white-space:normal}
}
