/* owner-r7.css, круг 7 (08.11.2026). Источник: tools/owner_review_2026_11/r7_assets, не править на staging. */

/* заголовок «...: / 100% Acceptance Guaranteed / by a Canadian / Certified Translator»: переносы только на широких экранах, как и прежние br.hb */
@media (max-width:1199.98px){
  html body section.hero:not(#_r7) h1 br.hb7{display:none!important}
}
/* строка «100% Acceptance Guaranteed» шире колонки 720 px: заголовок по ширине самой длинной строки, чтобы она не рвалась */
@media (min-width:1200px){
  html body section.hero:not(#_r7) .hcol>h1:has(br.hb7){width:max-content!important;max-width:min(800px,calc(100vw - 80px))!important;position:relative!important;z-index:2!important}
}

/* планшет вертикально 700–959 (iPad 768, iPad Air 820): заголовок во всю ширину над фото, а не в левой трети.
   Фото чуть меньше и правее, чтобы голова начиналась ниже заголовка при любой его длине. */
@media (min-width:700px) and (max-width:959.98px) and (orientation:portrait){
  html body section.hero:not(#_r7):not(.navhero):has(>.figure) .hcol>h1{width:calc(100vw - 40px)!important;max-width:none!important;position:relative!important;z-index:2!important}
  html body section.hero:not(#_r7):not(.navhero)>.figure{left:var(--r7fl,44vw)!important;width:var(--r7fw,92vw)!important}
  /* герой на весь первый экран: фото стоит по низу экрана, голова заведомо ниже короткого теперь заголовка */
  html body section.hero:not(#_r7):not(.navhero):has(>.figure){min-height:calc(100svh - 61px)!important}
  [dir=rtl] body section.hero:not(#_r7):not(.navhero)>.figure{left:auto!important;right:var(--r7fl,44vw)!important}
}

/* телефон горизонтально: заголовок во всю ширину (было 690 px на части языков), кегль подбирает owner-herofit.js по запасу под кнопками */
@media (min-width:640px) and (max-height:500px){
  html body section.hero:not(#_r7):not(.navhero) .hcol>h1{max-width:none!important}
}

/* навигаторы, планшет вертикально 700–959: фото и печать подняты под кнопки и уменьшены так, чтобы почти целиком попасть в первый экран */
@media (min-width:700px) and (max-width:959.98px) and (orientation:portrait){
  .hero.navhero:not(#_r7)>.navboard{position:relative!important;z-index:2!important}
  .hero.navhero:not(#_r7)>.figure{position:relative!important;z-index:1!important;left:auto!important;right:auto!important;
    width:min(100vw, calc((100svh - 440px) * 1.28))!important;max-width:none!important;
    margin:calc(min(100vw, calc((100svh - 440px) * 1.28)) * -0.211 - 30px) auto 0!important;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16%)!important;mask-image:linear-gradient(to bottom,transparent 0,#000 16%)!important}
}
