/* Мобильная адаптация HEU — генерируется поверх инлайн-стилей */
@media (max-width: 740px){
  body{overflow-x:hidden}
  div[style*="grid-template-columns"]{grid-template-columns:1fr!important}
  div[style*="display:flex"]{flex-wrap:wrap}
  div[style*="px 48px"]{padding-left:20px!important;padding-right:20px!important}
  div[style*="padding:0 48px"]{padding-left:20px!important;padding-right:20px!important}
  img{max-width:100%}
  [style*="font:500 42px"]{font-size:26px!important}
  [style*="font:600 22px"]{font-size:19px!important}
  [style*="font:600 24px"]{font-size:19px!important}
  [style*="font:600 26px"]{font-size:19px!important}
  [style*="font:600 30px"]{font-size:22px!important}
  [style*="font:600 34px"]{font-size:22px!important}
  [style*="font:600 36px"]{font-size:26px!important}
  [style*="font:600 38px"]{font-size:26px!important}
  [style*="font:600 40px"]{font-size:26px!important}
  [style*="font:600 42px"]{font-size:26px!important}
  [style*="font:600 44px"]{font-size:26px!important}
  [style*="font:600 58px"]{font-size:34px!important}
  [style*="font:600 60px"]{font-size:34px!important}
  [style*="font:600 68px"]{font-size:34px!important}
  [style*="font:600 72px"]{font-size:34px!important}
  img[style*="height:300px"],div[style*="height:300px"]{height:auto!important;min-height:200px;max-height:260px}
  img[style*="height:340px"],div[style*="height:340px"]{height:auto!important;min-height:200px;max-height:260px}
  img[style*="height:460px"],div[style*="height:460px"]{height:auto!important;min-height:200px;max-height:260px}
  img[style*="height:620px"],div[style*="height:620px"]{height:auto!important;min-height:200px;max-height:260px}
  /* шапка: логотип и меню в столбик с центровкой */
  a[style*="letter-spacing"]{white-space:nowrap}
}
@media (max-width: 480px){
  div[style*="padding:56px"],div[style*="padding:60px"],div[style*="padding:64px"]{padding-top:36px!important;padding-bottom:36px!important}
}
@media (max-width: 740px){
  video{max-width:320px;margin:0 auto}
}
@media (max-width: 740px){
  div[style*="padding:11px 48px"]{padding:10px 18px!important;letter-spacing:1.4px!important;font-size:9.5px!important}
}

/* добавлено при слиянии */
@media (max-width:740px){div[style*="letter-spacing:.2em"]{font-size:9px!important;letter-spacing:.14em!important}}

/* ── добавлено при разборе фотографий ── */
@media (max-width: 740px){
  /* новые высоты изображений */
  img[style*="height:170px"]{height:130px!important}
  img[style*="height:190px"],img[style*="height:230px"]{height:auto!important;max-height:220px}
  img[style*="height:240px"],img[style*="height:260px"],img[style*="height:280px"]{height:auto!important;max-height:240px}
  /* пары «до/после» и карточки работ остаются в две колонки:
     в одну колонку сравнение теряет смысл */
  div[style*="grid-template-columns:1fr 1fr"][style*="max-width:660px"]{grid-template-columns:1fr 1fr!important;gap:8px!important}
  div[style*="grid-template-columns:1fr 1fr"][style*="gap:8px"]{grid-template-columns:1fr 1fr!important}
  /* полоса работ в карточке программы — по два в ряд, не в столбик */
  div[style*="repeat(4,1fr)"]{grid-template-columns:1fr 1fr!important}
  div[style*="repeat(auto-fit,minmax(280px,1fr))"]{grid-template-columns:1fr!important}
}


/* ── адаптация 09.2026: новое меню, разбор, слайдер, плееры, планшет ── */
@media (max-width: 740px){
  /* шапка: логотип + кнопка в первой строке, меню — прокручиваемой лентой во второй */
  div[style*="padding:18px 48px"][style*="justify-content:space-between"]{flex-wrap:wrap;gap:10px 14px;padding:12px 16px!important}
  div[style*="padding:18px 48px"] img[alt="Hair Expert University"]{height:36px!important}
  div[style*="padding:18px 48px"] > a[data-hover]{padding:9px 13px!important;font-size:10px!important;letter-spacing:1.4px!important;margin-left:auto}
  div[style*="padding:18px 48px"] nav{order:3;width:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:18px!important;padding:4px 0 6px;font-size:11px!important;letter-spacing:1.3px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  div[style*="padding:18px 48px"] nav::-webkit-scrollbar{display:none}
  div[style*="padding:18px 48px"] nav a{flex:0 0 auto;white-space:nowrap}
  /* хлебный путь: средняя подпись скрывается, остаются стрелки */
  div[style*="padding:11px 48px"] > span{display:none}
  /* декоративный герб в карточке University */
  div[style*="grid-template-columns:1fr 200px"] img{width:110px!important;opacity:.55;margin:0 auto}
  div[style*="position:absolute"][style*="width:340px"]{display:none}
  /* горизонтальные ленты (кейсы, слайдер телефона) не переносятся */
  div[style*="overflow-x:auto"]{flex-wrap:nowrap!important}
  /* видео-интервью: по два в ряд */
  video{width:min(240px,calc(50% - 6px))!important;max-width:none;margin:0}
  /* карточки студентов и разбора: фото-колонка сверху, естественная высота */
  div[style*="grid-template-columns:300px 1fr"] > img,div[style*="grid-template-columns:300px 1fr"] > div:first-child{max-width:320px}
  /* мокап телефона со стрелками — по левому краю, без растяжения */
  div[style*="grid-template-columns:auto 1fr"]{justify-items:start}
  /* плееры-мокапы: полоса перемотки не переносится */
  div[style*="padding:9px 4px 11px"],div[style*="padding:10px 4px 12px"]{flex-wrap:nowrap!important}
  /* крупные заголовки героев */
  h1[style*="font:600 44px"]{font-size:30px!important;line-height:1.15!important}
  [style*="font:600 32px"]{font-size:24px!important}
  /* карточки-цены и кнопки в ряд → в столбик без обрезки */
  a[style*="margin-left:12px"]{margin-left:0!important;margin-top:10px}
  /* фото-ленты фиксированной высоты 210/230 на телефоне ниже */
  img[style*="height:210px"]{height:170px!important}
  /* ячейки образцов документов */
  img[style*="width:480px"]{width:100%!important;height:auto!important}
}
@media (min-width: 741px) and (max-width: 1024px){
  div[style*="px 48px"]{padding-left:28px!important;padding-right:28px!important}
  div[style*="padding:18px 48px"] nav{gap:16px!important;font-size:11px!important;letter-spacing:1.2px!important}
  div[style*="grid-template-columns:1fr 200px"]{grid-template-columns:1fr 140px!important}
  div[style*="grid-template-columns:120px 1fr 340px"]{grid-template-columns:1fr!important}
  div[style*="grid-template-columns:120px minmax(200px,340px) 1fr"]{grid-template-columns:1fr!important}
  div[style*="repeat(4,minmax(0,1fr))"]{grid-template-columns:1fr 1fr!important}
  div[style*="repeat(3,1fr)"]{grid-template-columns:1fr 1fr!important}
  div[style*="grid-template-columns:300px 1fr"]{grid-template-columns:240px 1fr!important}
  [style*="font:600 44px"]{font-size:36px!important}
}
@media (max-width: 740px){
  /* полосы на всю ширину сетки (партнёрская программа, очные тренинги): не растягивать на 3 колонки */
  [style*="grid-column:span 3"],[style*="grid-column:span 2"]{grid-column:auto!important}
}
