/* owner-layout.css: правки владельца 03-04.11.2026 (группа layout). Источник: tools/owner_review_2026_11/owner_layout.css, файл home_assets/owner-layout.css пишет fix_layout.py / fix_r3_layout.py. Не править руками на staging. */

/* ===== Р3-1 (04.11.2026): первый экран. ПО УМОЛЧАНИЮ ничего не меняем: герой ровно как был (коммит 38ea183e).
   Сжатие включается ТОЛЬКО на страницах, где владелец просил (ru, uk, be, kz, fr, es, pa, tl, en-mto-approved-translator): атрибут <html data-ownerfit="T">.
   T = высота окна (px), НИЖЕ которой кнопки героя перестают помещаться в первый экран. Выше T — размеры как были (только убран пустой зазор шапка->заголовок).
   Ниже T все размеры героя уменьшаются пропорционально: --ofu = (высота окна - 80px) / (T - 80px) в px, не больше 1px; кнопки при этом всегда внутри экрана.
   data-ownerfit="doc" (en-medical-document-translation) — владелец просил там «СИЛЬНО»: правила второго круга, как были. ===== */
html[data-ownerfit]{--ofT:1000}
html[data-ownerfit="820"]{--ofT:820}
html[data-ownerfit="860"]{--ofT:860}
html[data-ownerfit="880"]{--ofT:880}
html[data-ownerfit="900"]{--ofT:900}
html[data-ownerfit="920"]{--ofT:920}
html[data-ownerfit="940"]{--ofT:940}
html[data-ownerfit="960"]{--ofT:960}
html[data-ownerfit="980"]{--ofT:980}
html[data-ownerfit="1000"]{--ofT:1000}
html[data-ownerfit="1020"]{--ofT:1020}
html[data-ownerfit]:not([data-ownerfit=doc]):not([data-ownerfit="0"]){--ofu:min(1px,calc((100vh - 80px) / (var(--ofT) - 80)))}
html[data-ownerfit="0"]{--ofu:1px}
@media (min-width:900px){
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol{padding-top:clamp(0px,0.8vh,8px)!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .wrap{padding-top:max(14px,calc(40 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol h1{font-size:min(clamp(36px,5vw,56px),max(32px,calc(56 * var(--ofu))))!important}
  html[data-ownerfit][data-ownerh1="54"]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol h1{font-size:min(54px,clamp(36px,5vw,56px),max(32px,calc(56 * var(--ofu))))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .lede{font-size:min(24px,max(15px,calc(24 * var(--ofu))))!important;line-height:max(22px,calc(36 * var(--ofu)))!important;margin:max(8px,calc(20 * var(--ofu))) 0 max(10px,calc(30 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .trust-card{padding:max(12px,calc(24 * var(--ofu))) max(18px,calc(26 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .assoc{gap:max(8px,calc(16 * var(--ofu))) 20px!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .assoc img{height:max(30px,calc(54 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .assoc img[alt="ATIM"]{height:max(33px,calc(60 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .assoc img[alt="ATINE"]{height:max(35px,calc(64 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .assoc .stibc{font-size:max(14px,calc(22 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .certnote{margin-top:max(8px,calc(20 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .actions{margin-top:max(10px,calc(34 * var(--ofu)))!important}
  html[data-ownerfit]:not([data-ownerfit=doc]) body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol .actions .btn{min-height:max(44px,calc(60 * var(--ofu)))!important;padding-top:max(10px,calc(18 * var(--ofu)))!important;padding-bottom:max(10px,calc(18 * var(--ofu)))!important}
}

/* ===== Р3-1: medical-document (data-ownerfit=doc) — правила второго круга без изменений: владелец просил «СИЛЬНО подтянуть вверх». ===== */
@media (min-width:960px){
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .wrap{padding-top:clamp(10px,2.4vh,40px)!important;padding-bottom:clamp(8px,1.6vh,26px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol h1{font-size:clamp(32px,min(5vw,5.6vh),56px)!important;line-height:1.14!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .lede{font-size:clamp(15px,min(1.9vw,2.4vh),24px)!important;line-height:1.45!important;margin:clamp(8px,1.5vh,20px) 0 clamp(10px,2.2vh,30px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .trust-card{padding:clamp(12px,2.2vh,26px) clamp(18px,2vw,30px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .assoc{gap:clamp(8px,1.6vh,16px) 20px!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .assoc img{height:clamp(30px,4.8vh,54px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .assoc img[alt="ATIM"]{height:clamp(34px,5.3vh,60px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .assoc img[alt="ATINE"]{height:clamp(36px,5.7vh,64px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .assoc .stibc{font-size:clamp(14px,2.4vh,20px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .certnote{margin-top:clamp(8px,1.6vh,20px)!important;font-size:clamp(12px,1.6vh,13.5px)!important;line-height:1.4!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .actions{margin-top:clamp(10px,2.2vh,34px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .actions .btn{min-height:clamp(44px,5.8vh,56px)!important;padding-top:clamp(10px,1.8vh,18px)!important;padding-bottom:clamp(10px,1.8vh,18px)!important}
  html[data-ownerfit=doc] body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol{padding-top:clamp(0px,0.8vh,8px)!important}
  html[data-ownerfit=doc] body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol:has(.lede~.lede) .lede{font-size:clamp(14px,min(1.45vw,2.1vh),19px)!important;line-height:1.35!important;margin:clamp(6px,1vh,12px) 0 clamp(6px,1vh,12px)!important}
  html[data-ownerfit=doc] body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol:has(.lede~.lede) .lede~.lede{margin-top:0!important}
}
@media (max-width:959.98px){
  html[data-ownerfit=doc] body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol{padding-top:0!important}
  html[data-ownerfit=doc] body section.hero:not(#_o1):not(#_o2):not(#_o3) .hcol:has(.lede~.lede) .lede{font-size:clamp(14px,3.9vw,17px)!important;line-height:1.35!important;margin:8px 0!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .wrap{padding-top:clamp(12px,2.4vh,24px)!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol h1{font-size:clamp(25px,7.6vw,36px)!important;line-height:1.14!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .lede{font-size:clamp(15px,4.3vw,20px)!important;line-height:1.42!important;margin:12px 0 16px!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .trust-card{padding:14px 16px!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .assoc{gap:12px 10px!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .certnote{margin-top:10px!important;line-height:1.4!important}
  html[data-ownerfit=doc] body section.hero:not(.hs):not(#_o1):not(#_o2):not(#_o3) .hcol .actions{margin-top:14px!important}
}

/* ===== Г8: блок «Проверьте мою профессиональную квалификацию» — заголовок переносится по словам, кнопка остаётся в блоке в один ряд.
   Р3-4: переносы <br> в заголовке .vs заменены в HTML на пробелы, прятать их (display:none) больше не нужно — именно это склеивало слова. ===== */
@media (min-width:1100px){
  section.verify .wrap{flex-wrap:nowrap!important;gap:20px 32px!important}
  section.verify .vt{flex:1 1 auto!important;min-width:0!important}
  section.verify .vt .vico{flex:none!important}
  section.verify .vs{flex:0 1 340px!important;min-width:0!important}
  section.verify .btn{flex:none!important}
}
@media (min-width:900px) and (max-width:1099.98px){
  section.verify .wrap{flex-wrap:wrap!important;justify-content:center!important;gap:16px 28px!important}
  section.verify .vt{flex:1 1 100%!important;min-width:0!important;justify-content:center!important}
  section.verify .vs{flex:1 1 100%!important;text-align:center!important;min-width:0!important}
  section.verify .btn{flex:none!important}
}
/* ===== Г3: горизонтальная линия между блоком Consumer Choice Award и «Understanding the Process» (стиль разделителей staging: 1px #e8e8e8 по ширине контента). ===== */
section.procsec{position:relative}
section:has(.cca)+section.procsec::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:calc(min(100%,1200px) - 40px);border-top:1px solid #e8e8e8;pointer-events:none}

/* ===== С3: страницы семейства hs (financial, medical-translation): заголовок секции, карточки, примеры, шаги и FAQ — на ОДНОЙ левой линии (980px, центр колонки). ===== */
body:has(section.hero.hs) .sec>.wrap>.sh,body:has(section.hero.hs) .sec>.wrap>.sh.sh-wide{max-width:980px!important}
body:has(section.hero.hs) .sec>.wrap>.sh p{max-width:820px}
body:has(section.hero.hs) .sec>.wrap>.nsvc-list,body:has(section.hero.hs) .sec>.wrap>.gallery3,body:has(section.hero.hs) .sec>.wrap>.nsproc-lite,body:has(section.hero.hs) .sec>.wrap>.faqw{max-width:980px!important;margin-left:auto;margin-right:auto}

/* ===== Г14: пункты «Как получить:» — одинаковый кегль с абзацем-заголовком (.step-body p = 15px). ===== */
.step-body .paperlist,.step-body .paperlist li{font-size:15px;line-height:1.6}

/* ===== Г39: текст на печати выделяется мышью (figure остаётся pointer-events:none для фото, печать — нет). ===== */
section.hero>.figure .seal{pointer-events:auto!important;-webkit-user-select:text;user-select:text;cursor:text}
section.hero>.figure .seal .st,section.hero>.figure .seal .sn,section.hero>.figure .seal .sp,section.hero>.figure .seal .sp b{pointer-events:auto!important;-webkit-user-select:text;user-select:text;cursor:text}
section.hero>.figure .seal .sealbg{pointer-events:none!important}
/* на десктопе .wrap (z-index выше figure) перекрывает печать целиком; пропускаем клики сквозь пустую часть .wrap, колонка текста (.hcol) остаётся кликабельной */
section.hero>.wrap{pointer-events:none}
section.hero>.wrap>*{pointer-events:auto}

/* ===== Г33/Г36/Г37: арабский и урду (dir=rtl): выравнивание по началу строки (вправо), маркеры справа, фото отражено. ===== */
html[dir=rtl] .sec.feat .sh,html[dir=rtl] .sec.feat .sh h2,html[dir=rtl] .sec.feat .sh p,html[dir=rtl] .sec.delivsec .ways .c,
html[dir=rtl] .procsec .proclead h2,html[dir=rtl] .procsec .proclead p,html[dir=rtl] .callout,html[dir=rtl] .artcard h3,
html[dir=rtl] .ffield,html[dir=rtl] .ffield .ferr,html[dir=rtl] .gallery3:not(.res3) .gcard figcaption,html[dir=rtl] .cca,
html[dir=rtl] .cca .ccatxt h2,html[dir=rtl] .cca .ccatxt p{text-align:start}
html[dir=rtl] .docsec .dlist{padding-left:0;padding-right:24px}
html[dir=rtl] .docsec .dlist li{padding-left:0;padding-right:4px}
html[dir=rtl] .paperlist{padding-left:0;padding-right:20px}
html[dir=rtl] section.subftr{direction:ltr;text-align:left}
@media (min-width:900px){html[dir=rtl] .verify .wrap,html[dir=rtl] .verify .vs{text-align:start}}
html[dir=rtl] section.hero>.figure img.photo{transform:scaleX(-1)!important}
