/* 14.11 Головна наново (блок Д, П13-П21). Спільна база: kursy.css (шапка, футер, фон, картки курсів як у каталозі).
   Один ритм відступів між блоками (П17), один заголовок розділу на всіх блоках (П20). */
.hm{--gap:clamp(104px,10vw,160px);--hR:clamp(104px,14vh,160px);--hG:12px;overflow-x:clip}
.hm-s{margin-top:var(--gap)}
.hm-s:last-child{margin-bottom:var(--gap)}

/* заголовок розділу: як «Наші інструктори», «Наш шлях» на «Про нас» і рівні в каталозі */
.hm-hd{display:flex;flex-direction:column;align-items:center;gap:14px;margin:0 auto 44px;max-width:1100px;padding-bottom:26px;text-align:center;border-bottom:1px solid transparent;border-image:linear-gradient(90deg,rgb(var(--accc) / 0),var(--red) 50%,rgb(var(--accc) / 0)) 1}
.hm-hd h2{margin:0;font:700 clamp(36px,4.4vw,58px)/1.06 var(--disp);letter-spacing:-.01em;color:var(--fg);text-wrap:balance}
.hm-hd p{margin:0;max-width:44em;font:500 clamp(17px,1.6vw,21px)/1.5 var(--disp);color:rgb(var(--fgc) / .78);text-wrap:balance}
.hm-hd h2 .r{color:#E2483A}

/* кнопка «Записатись на курс»: Глибокий червоний з пульсом (рішення 27.10) */
.hm-cta{position:relative;display:inline-flex;align-items:center;gap:18px;height:76px;padding:0 36px 0 14px;border-radius:999px;background:linear-gradient(180deg,#a3190f,#6e0f08);border:1px solid rgba(255,120,100,.28);color:#F6EFE6;font:700 20px/1 var(--text);letter-spacing:.01em;text-decoration:none;box-shadow:0 0 0 6px rgba(163,25,15,.14),0 24px 44px -16px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,190,180,.3);transition:transform .2s ease,box-shadow .3s ease}
.hm-cta:hover{transform:translateY(-2px);box-shadow:0 0 0 9px rgba(163,25,15,.2),0 28px 48px -16px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,190,180,.35)}
.hm-cta:active{transform:translateY(3px) scale(.985)}
.hm-cta svg{display:block;width:84px;height:46px;flex:none;padding:9px 11px;border-radius:999px;background:rgba(0,0,0,.28);box-shadow:inset 0 2px 6px rgba(0,0,0,.4);overflow:visible}
.hm-cta path{fill:none;stroke:#F6EFE6;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:90 200;stroke-dashoffset:90;animation:hmEcg 1.6s linear infinite;filter:drop-shadow(0 0 3px rgba(246,239,230,.8))}
.hm-cta:hover path{animation-duration:.75s}
@keyframes hmEcg{to{stroke-dashoffset:-200}}

/* друга кнопка: контур, як «Детальніше» */
.hm-pill{display:inline-flex;align-items:center;gap:14px;height:64px;padding:0 30px;border-radius:999px;border:1px solid rgb(var(--fgc) / .32);color:var(--fg);font:600 18px/1 var(--text);text-decoration:none;transition:background .3s,border-color .3s,color .3s}
.hm-pill i{font-style:normal;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.hm-pill:hover{background:#F1EBE1;border-color:#F1EBE1;color:#151112}
.hm-pill:hover i{transform:translateX(4px)}
.hm-pill.big{height:76px;padding:0 44px;font-size:20px}

/* «Нам довіряють»: низька стрічка, логотип і повна назва поруч (П14) */
.hm-tr{position:relative}
.hm-k{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 0 18px;font:600 12px/1 var(--text);letter-spacing:.32em;text-transform:uppercase;color:rgb(var(--fgc) / .82)}
.hm-k::before,.hm-k::after{content:"";width:min(18vw,240px);height:1px;background:linear-gradient(90deg,transparent,rgb(var(--fgc) / .22))}
.hm-k::after{transform:scaleX(-1)}
.hm-mq{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.hm-mqt{display:flex;width:max-content;animation:hmMq 70s linear infinite}
.hm-mq:hover .hm-mqt{animation-play-state:paused}
.hm-li{display:flex;align-items:center;gap:14px;padding:6px 28px;flex:none;transition:opacity .35s}
.hm-li img{width:56px;height:56px;object-fit:contain;flex:none;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.hm-li small{max-width:21ch;font:500 13px/1.3 var(--text);color:rgb(var(--fgc) / .78)}
.hm-mq:hover .hm-li{opacity:.35}
.hm-mq:hover .hm-li:hover{opacity:1}
.hm-li:hover img{transform:scale(1.14)}
@keyframes hmMq{to{transform:translateX(-50%)}}

/* ПЕРШИЙ ЕКРАН */
.hm-h1{margin:0;font:700 clamp(42px,min(7vw,10vh),112px)/.98 var(--disp);letter-spacing:-.03em;color:var(--fg);text-wrap:balance}
.hm-h1 span{display:block}
.hm-lede{margin:0;max-width:44ch;font:400 clamp(17px,min(1.4vw,2.3vh),21px)/1.5 var(--text);color:rgb(var(--fgc) / .84);text-wrap:pretty}
.hm-in>*{opacity:0;transform:translateY(16px);animation:hmUp .9s cubic-bezier(.2,.7,.2,1) both}
@keyframes hmUp{to{opacity:1;transform:none}}

/* 3 «Довіра спершу»: гасло і кнопка ліворуч, знак праворуч, стрічка логотипів унизу екрана */
.hm-hc{display:flex;flex-direction:column;justify-content:space-between;min-height:calc(100svh - var(--hdr,104px));max-height:980px;padding:min(7vh,64px) 0 min(3.4vh,28px)}
.hm-hc .hm-g{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);align-items:center;gap:40px;flex:1}
.hm-hc .hm-in{display:flex;flex-direction:column;align-items:flex-start;gap:min(3.4vh,30px)}
.hm-hc .hm-in>:nth-child(2){animation-delay:.25s}.hm-hc .hm-in>:nth-child(3){animation-delay:.5s}
.hm-emb{justify-self:center;width:min(100%,clamp(300px,min(34vw,52vh),500px));aspect-ratio:1248/1195;filter:drop-shadow(0 30px 50px rgba(0,0,0,.6));animation:hmFloat 7s ease-in-out 1.2s infinite alternate,hmFade 1.2s ease both}
.hm-emb img{width:100%;height:100%;display:block}
@keyframes hmFloat{to{transform:translateY(-12px)}}
@keyframes hmFade{from{opacity:0}}
.hm-hc .hm-tr{margin-top:min(4vh,36px)}

/* 1 «Дія одразу»: гасло по центру, під ним двоє дверей на першому екрані */
.hm-ha{display:flex;flex-direction:column;min-height:calc(100svh - var(--hdr,104px));max-height:1000px;padding-block:min(5vh,48px) min(4vh,36px);gap:min(4.4vh,40px)}
.hm-ha .hm-in{display:flex;flex-direction:column;align-items:center;gap:min(2.4vh,20px);text-align:center}
.hm-ha .hm-h1{font-size:clamp(40px,min(5.8vw,8.4vh),92px)}
.hm-ha .hm-lede{max-width:60ch}
.hm-ha .hm-in>:nth-child(2){animation-delay:.2s}
.hm-dd{display:grid;grid-template-columns:1fr 1fr;gap:20px;flex:1}
.hm-d{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:330px;padding:36px 32px;border-radius:24px;border:1px solid rgb(var(--fgc) / .12);background:linear-gradient(180deg,rgb(255 255 255/.05),rgb(255 255 255/.015));text-align:center;color:var(--fg);text-decoration:none;opacity:0;transform:translateY(22px);animation:hmUp 1s cubic-bezier(.2,.7,.2,1) .45s both;transition:border-color .45s}
.hm-d+.hm-d{animation-delay:.6s}
.hm-d::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(158deg,#a3190f 0%,#6e0f08 55%,#330906 100%);opacity:0;transition:opacity .55s cubic-bezier(.4,0,.2,1)}
.hm-d.on::before,.hm-d:hover::before{opacity:1}
.hm-d:hover{border-color:rgba(255,120,100,.35)}
.hm-dk{font:600 12px/1 var(--text);letter-spacing:.3em;text-transform:uppercase;color:rgb(var(--fgc) / .72)}
.hm-dt{margin:0;font:700 clamp(32px,3.6vw,56px)/.96 var(--disp);letter-spacing:-.01em;text-transform:uppercase}
.hm-dt span{display:block}
.hm-dp{margin:0;max-width:40ch;font-size:clamp(16px,1.25vw,18px);line-height:1.5;color:rgb(var(--fgc) / .82);text-wrap:balance}
.hm-d .hm-cta{height:66px;font-size:18px;margin-top:6px}
.hm-d .hm-cta svg{width:74px;height:40px}
.hm-d .hm-pill{margin-top:6px}
.hm-d.on .hm-pill,.hm-d:hover .hm-pill{border-color:rgb(255 255 255/.55)}

/* 2 «Історія в кадрах»: три ряди фото, гасло на середньому ряду, кнопка під фото */
.hm-hb{position:relative;display:flex;flex-direction:column;align-items:center;min-height:calc(100svh - var(--hdr,104px));max-height:1000px;padding:min(3vh,26px) 0 min(5vh,44px);gap:min(4vh,34px)}
.hm-rows{position:relative;width:100vw;display:grid;grid-template-rows:repeat(3,var(--hR));row-gap:var(--hG);overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);animation:hmIn 2s ease .1s both}
@keyframes hmIn{from{opacity:0}to{opacity:1}}
.hm-rows::after{content:"";position:absolute;inset:0;background:rgb(13 15 16/.4);pointer-events:none}
.hm-r{overflow:hidden;min-height:0}
.hm-t{display:flex;gap:var(--hG);height:100%;width:max-content;animation:hmL 130s linear infinite}
.hm-r:nth-child(2) .hm-t{animation-name:hmR;animation-duration:160s}
.hm-r:nth-child(3) .hm-t{animation-duration:145s}
.hm-t img{height:100%;width:auto;aspect-ratio:3/2;object-fit:cover;border-radius:12px;filter:brightness(.62) saturate(.75)}
@keyframes hmL{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes hmR{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.hm-hb .hm-h1{position:absolute;left:0;right:0;top:calc(var(--hR) + var(--hG));height:var(--hR);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:2;font-size:clamp(36px,min(5.6vw,6.6vh),84px);line-height:1;text-align:center;text-shadow:0 2px 3px rgb(0 0 0/.85),0 0 22px rgb(0 0 0/.8),0 0 60px rgb(0 0 0/.65);animation:hmUp 1s cubic-bezier(.2,.7,.2,1) .5s both;opacity:0}
.hm-hb .hm-h1 span{display:block}
.hm-hb .hm-low{display:flex;flex-direction:column;align-items:center;gap:min(3vh,26px);text-align:center}
.hm-hb .hm-low>*{opacity:0;animation:hmUp .9s cubic-bezier(.2,.7,.2,1) both}
.hm-hb .hm-low>:nth-child(1){animation-delay:1s}.hm-hb .hm-low>:nth-child(2){animation-delay:1.25s}
.hm-hb .hm-lede{max-width:56ch}

/* ДВЕРІ (варіант 3) */
.hm-dr .hm-dd{max-width:1240px;margin:0 auto;flex:none}
.hm-dr .hm-d{min-height:440px;opacity:1;transform:none;animation:none}

/* МЕТОДОЛОГІЯ */
.hm-pl{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px;max-width:1240px;margin:0 auto}
.hm-pl::before{content:"";position:absolute;top:54px;left:12.5%;right:12.5%;height:1px;background:linear-gradient(90deg,#D6321F,rgb(214 50 31/.35));transform:scaleX(0);transform-origin:left;transition:transform 1.6s cubic-bezier(.65,0,.35,1) .2s}
.hm-pl.in::before{transform:none}
.hm-pi{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.hm-pic{display:grid;place-items:center;width:110px;height:110px;border-radius:50%;background:#121416;border:1px solid rgb(var(--fgc) / .14);box-shadow:0 0 0 8px rgb(13 15 16/.9)}
.hm-pic svg{width:58px;height:58px}
.hm-pic path,.hm-pic circle{fill:none;stroke:#F1EBE1;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.4s cubic-bezier(.65,0,.35,1)}
.hm-pic .r,.hm-pic .rc{stroke:#E2483A}
.hm-pl.in .hm-pic path,.hm-pl.in .hm-pic circle{stroke-dashoffset:0}
.hm-pi:nth-child(2) .hm-pic *{transition-delay:.3s}.hm-pi:nth-child(3) .hm-pic *{transition-delay:.6s}.hm-pi:nth-child(4) .hm-pic *{transition-delay:.9s}
.hm-pn{margin-top:10px;font:700 13px/1 var(--disp);letter-spacing:.12em;color:#E2483A}
.hm-pi h3{margin:0;font:700 clamp(20px,1.7vw,24px)/1.15 var(--disp);text-transform:uppercase;color:var(--fg)}
.hm-pi p{margin:0;max-width:26ch;font-size:16.5px;line-height:1.55;color:rgb(var(--fgc) / .74)}

/* КУРСИ: картки каталогу (kursy.css), кнопка «Всі курси» більша */
.hm-ks .qwrap{padding-top:0}
.hm-all{display:flex;justify-content:center;margin-top:48px}

/* ГРУПИ: дві плитки з рядами фото, ведуть на «Підрозділам» і «Організаціям» (П18) */
.hm-gg{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:1240px;margin:0 auto}
.hm-gt{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:14px;min-height:480px;padding:36px 38px 38px;border-radius:24px;border:1px solid rgb(var(--fgc) / .12);color:var(--fg);text-decoration:none}
.hm-gt .hm-gb{position:absolute;inset:0;z-index:-2;display:grid;grid-template-rows:repeat(3,1fr);gap:10px;padding:10px 0}
.hm-gt .hm-r{overflow:hidden}
.hm-gt .hm-t{gap:10px;animation-duration:110s}
.hm-gt .hm-r:nth-child(2) .hm-t{animation-duration:135s}
.hm-gt .hm-t img{border-radius:10px;filter:brightness(.55) saturate(.7)}
.hm-gt::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgb(13 15 16/.15) 0%,rgb(13 15 16/.55) 45%,rgb(13 15 16/.94) 100%);transition:background .5s}
.hm-gt:hover::after{background:linear-gradient(180deg,rgb(13 15 16/.05) 0%,rgb(110 15 8/.5) 45%,rgb(51 9 6/.95) 100%)}
.hm-gt:hover{border-color:rgba(255,120,100,.35)}
.hm-gk{font:600 12px/1 var(--text);letter-spacing:.3em;text-transform:uppercase;color:#F08A7A}
.hm-gt h3{margin:0;font:700 clamp(36px,3.6vw,56px)/1 var(--disp);letter-spacing:-.01em;color:var(--fg)}
.hm-gt p{margin:0;max-width:36ch;font-size:clamp(16px,1.25vw,18px);line-height:1.5;color:rgb(var(--fgc) / .86);text-wrap:pretty}
.hm-gt .hm-pill{height:56px;margin-top:8px;font-size:17px;background:rgb(13 15 16/.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.hm-gt:hover .hm-pill{background:#F1EBE1;border-color:#F1EBE1;color:#151112}
.hm-gt:hover .hm-pill i{transform:translateX(4px)}

/* ФІНАЛ: без кнопок, число і фраза масивно (П21) */
.hm-fin{text-align:center}
.hm-fn{margin:0;font:700 clamp(112px,19vw,300px)/.86 var(--disp);letter-spacing:-.035em;color:var(--fg);font-variant-numeric:tabular-nums;white-space:nowrap}
.hm-fc{margin:22px 0 0;font:500 clamp(18px,1.8vw,26px)/1.4 var(--disp);color:rgb(var(--fgc) / .78)}
.hm-fh{margin:clamp(40px,5vw,72px) 0 0;font:800 clamp(52px,8.4vw,150px)/.9 var(--disp);letter-spacing:-.02em;text-transform:uppercase;color:var(--fg)}
.hm-fh .r{color:#E2483A}

/* поява блоків при прокрутці */
.hm-rv{opacity:0;transform:translateY(28px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}
.hm-rv.in{opacity:1;transform:none}

@media (max-width:900px){
 .hm-hc .hm-g{grid-template-columns:1fr;gap:28px}
 .hm-emb{order:-1;width:min(56vw,260px)}
 .hm-hc{min-height:0;max-height:none}
 .hm-dd,.hm-gg{grid-template-columns:1fr}
 .hm-pl{grid-template-columns:1fr 1fr;row-gap:44px}.hm-pl::before{display:none}
 .hm-ha{min-height:0;max-height:none}
 .hm-d{min-height:280px}
 .hm-dr .hm-d{min-height:340px}
 .hm-gt{min-height:400px;padding:28px 24px 28px}
}
@media (max-width:560px){
 .hm{--gap:88px;--hR:92px;--hG:8px}
 .hm-pl{grid-template-columns:1fr}
 .hm-cta{height:66px;font-size:18px;padding-right:28px}.hm-cta svg{width:72px;height:40px}
 .hm-k::before,.hm-k::after{width:48px}
 .hm-li img{width:44px;height:44px}.hm-li{padding:4px 18px}
 .hm-hb .hm-h1{font-size:clamp(30px,8.4vw,40px)}
 .hm-fn{font-size:clamp(76px,22vw,120px)}
}
@media (prefers-reduced-motion:reduce){
 .hm *,.hm *::before{animation:none!important;transition:none!important}
 .hm-in>*,.hm-d,.hm-rows,.hm-hb .hm-h1,.hm-hb .hm-low>*,.hm-rv{opacity:1!important;transform:none!important}
 .hm-pic path,.hm-pic circle{stroke-dashoffset:0}
}
/* стрічка логотипів належить першому екрану: менший відступ над нею */
.hm-s.hm-trs{margin-top:clamp(36px,4vw,64px)}
/* варіант 3: гасло рівно у два рядки, як у варіантах 1 і 2 */
.hm-hc .hm-h1{font-size:clamp(40px,min(5.3vw,9vh),92px)}
@media (min-width:901px){.hm-hc .hm-h1 span{white-space:nowrap}}
.hm-cta span{white-space:nowrap}
@media (max-width:560px){
 .hm-ha .hm-h1{font-size:clamp(32px,9.2vw,40px)}
 .hm-d .hm-cta{gap:12px;padding:0 22px 0 10px;font-size:17px}.hm-d .hm-cta svg{width:60px;height:38px;padding:8px}
}
@media (max-width:560px){.hm-hc .hm-h1{font-size:clamp(32px,9.2vw,40px)}}

/* 22.11 варіанти 4-6 першого екрана (Антон: перший екран слабкий, П13; порядок як у 1 з методологією над курсами) */
/* 4 «Кадр»: одне сильне фото навчання на весь екран під шапкою, гасло знизу ліворуч, стрічка довіри внизу екрана */
.hm-hk{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:100svh;max-height:1100px;margin-top:calc(-1 * var(--hdr,104px));padding:calc(var(--hdr,104px) + 40px) 0 min(3.4vh,28px);overflow:hidden}
.hm-hk>picture,.hm-hk>picture img{position:absolute;inset:0;z-index:-2;width:100%;height:100%}
.hm-hk>picture img{object-fit:cover;object-position:62% 55%;animation:hmKen 18s ease-out both}
@keyframes hmKen{from{transform:scale(1.09)}to{transform:scale(1)}}
.hm-hk::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgb(13 15 16/.72) 0,rgb(13 15 16/.15) 22%,rgb(13 15 16/0) 40%,rgb(13 15 16/.55) 68%,#0D0F10 100%),linear-gradient(90deg,rgb(13 15 16/.88) 0,rgb(13 15 16/.55) 38%,rgb(13 15 16/.05) 70%)}
.hm-hk .hm-g{display:flex;flex-direction:column;align-items:flex-start;gap:min(3vh,26px)}
.hm-hk .hm-h1{font-size:clamp(44px,min(6.6vw,9.6vh),108px);text-shadow:0 2px 24px rgb(0 0 0/.45)}
.hm-hk .hm-lede{max-width:46ch;color:rgb(var(--fgc) / .9)}
.hm-hk .hm-in>:nth-child(2){animation-delay:.3s}.hm-hk .hm-in>:nth-child(3){animation-delay:.55s}
.hm-acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.hm-ln{display:inline-flex;align-items:center;gap:10px;color:var(--fg);font:600 17px/1 var(--text);text-decoration:none;border-bottom:1px solid rgb(var(--fgc) / .35);padding-bottom:6px;transition:border-color .3s}
.hm-ln i{font-style:normal;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.hm-ln:hover{border-color:#E2483A}.hm-ln:hover i{transform:translateX(4px)}
.hm-hk .hm-tr{margin-top:min(5vh,44px)}

/* 5 «Два світи»: екран навпіл, ліворуч «Навчись рятувати», праворуч «Підготуй команду», гасло над обома */
.hm-h2{position:relative;display:flex;flex-direction:column;min-height:calc(100svh - var(--hdr,104px));max-height:1000px}
.hm-h2 .hm-top{padding:min(4vh,36px) 0 min(3.6vh,32px);text-align:center}
.hm-h2 .hm-top .hm-in{display:flex;flex-direction:column;align-items:center;gap:min(2vh,16px)}
.hm-h2 .hm-h1{font-size:clamp(40px,min(5.6vw,8vh),92px)}
.hm-sp{display:flex;flex:1;gap:6px;min-height:420px;padding:0 6px}
.hm-sd{position:relative;isolation:isolate;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:14px;padding:clamp(24px,3vw,48px);overflow:hidden;border-radius:22px;color:var(--fg);text-decoration:none;transition:flex-grow .7s cubic-bezier(.2,.7,.2,1)}
.hm-sd img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.2,.7,.2,1),filter .7s}
.hm-sd::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgb(13 15 16/.1) 0,rgb(13 15 16/.35) 40%,rgb(13 15 16/.92) 100%);transition:background .6s}
.hm-sd:hover{flex-grow:1.4}
.hm-sd:hover img{transform:scale(1.04)}
.hm-sd:hover::after{background:linear-gradient(180deg,rgb(110 15 8/.05) 0,rgb(110 15 8/.4) 45%,rgb(51 9 6/.95) 100%)}
.hm-sp:hover .hm-sd:not(:hover) img{filter:grayscale(.6) brightness(.7)}
.hm-sd .hm-dt{font-size:clamp(34px,3.8vw,60px)}
.hm-sd .hm-dp{text-align:left;max-width:38ch}
.hm-sd .hm-cta{height:66px;font-size:18px}
.hm-sd .hm-cta svg{width:74px;height:40px}
.hm-sd .hm-pill{background:rgb(13 15 16/.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.hm-sd:hover .hm-pill{background:#F1EBE1;border-color:#F1EBE1;color:#151112}
.hm-sd{opacity:0;animation:hmUp 1s cubic-bezier(.2,.7,.2,1) .5s both}.hm-sd+.hm-sd{animation-delay:.65s}

/* 6 «Бенто»: перший екран плитками: гасло з кнопкою, курси, підрозділам, організаціям */
.hm-hb6{min-height:calc(100svh - var(--hdr,104px));max-height:980px;padding-block:min(3vh,26px) min(3vh,26px);display:flex}
.hm-bg{display:grid;flex:1;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px;width:100%}
.hm-bt{position:relative;isolation:isolate;overflow:hidden;border-radius:24px;border:1px solid rgb(var(--fgc) / .1);display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:clamp(20px,2.2vw,34px);color:var(--fg);text-decoration:none;background:linear-gradient(180deg,rgb(255 255 255/.045),rgb(255 255 255/.012));opacity:0;animation:hmUp .9s cubic-bezier(.2,.7,.2,1) both}
.hm-bt:nth-child(2){animation-delay:.2s}.hm-bt:nth-child(3){animation-delay:.35s}.hm-bt:nth-child(4){animation-delay:.5s}
.hm-bt.a{grid-column:1 / 3;grid-row:1 / 3;justify-content:center;gap:min(3vh,26px);padding:clamp(28px,3.4vw,56px)}
.hm-bt.b{grid-column:3 / 5;grid-row:1}
.hm-bt.c{grid-column:3;grid-row:2}.hm-bt.d{grid-column:4;grid-row:2}
.hm-bt.a .hm-h1{font-size:clamp(40px,min(4.8vw,8vh),84px)}
.hm-bt img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.hm-bt:not(.a)::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgb(13 15 16/.05) 30%,rgb(13 15 16/.9) 100%);transition:background .5s}
.hm-bt:not(.a):hover img{transform:scale(1.05)}
.hm-bt:not(.a):hover::after{background:linear-gradient(180deg,rgb(110 15 8/.1) 20%,rgb(51 9 6/.94) 100%)}
.hm-bt:not(.a):hover{border-color:rgba(255,120,100,.35)}
.hm-bk{font:600 12px/1 var(--text);letter-spacing:.3em;text-transform:uppercase;color:#F08A7A}
.hm-bt h2{margin:0;font:700 clamp(24px,2.3vw,36px)/1.05 var(--disp);letter-spacing:-.01em;display:flex;align-items:center;justify-content:space-between;gap:12px}
.hm-bt h2 i{font-style:normal;font-weight:400;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.hm-bt:hover h2 i{transform:translateX(5px)}
.hm-bt p{margin:0;max-width:40ch;font-size:15.5px;line-height:1.45;color:rgb(var(--fgc) / .82)}

@media (max-width:900px){
 .hm-hk{min-height:92svh}
 .hm-hk>picture img{object-position:70% 50%}
 .hm-hk::before{background:linear-gradient(180deg,rgb(13 15 16/.75) 0,rgb(13 15 16/.2) 25%,rgb(13 15 16/.35) 50%,rgb(13 15 16/.92) 78%,#0D0F10 100%)}
 .hm-h2{min-height:0;max-height:none}
 .hm-sp{flex-direction:column;min-height:0;padding:0 12px}
 .hm-sd{min-height:420px}.hm-sd:hover{flex-grow:1}
 .hm-hb6{min-height:0;max-height:none}
 .hm-bg{grid-template-columns:1fr 1fr;grid-template-rows:auto 240px 220px}
 .hm-bt.a{grid-column:1 / 3;grid-row:1}.hm-bt.b{grid-column:1 / 3;grid-row:2}.hm-bt.c{grid-column:1;grid-row:3}.hm-bt.d{grid-column:2;grid-row:3}
}
@media (max-width:560px){
 .hm-hk .hm-h1,.hm-h2 .hm-h1,.hm-bt.a .hm-h1{font-size:clamp(32px,9.2vw,40px)}
 .hm-sd .hm-cta{gap:12px;padding:0 22px 0 10px;font-size:17px}.hm-sd .hm-cta svg{width:60px;height:38px;padding:8px}
 .hm-bg{grid-template-rows:auto 220px 200px;gap:10px}
 .hm-bt.c h2,.hm-bt.d h2{font-size:20px}.hm-bt.c p,.hm-bt.d p{display:none}
}
@media (prefers-reduced-motion:reduce){.hm-hk>picture img{animation:none}.hm-sd,.hm-bt{opacity:1!important;transform:none!important}}
.hm-bt.a{align-items:flex-start}
.hm-bt.a .hm-h1{font-size:clamp(36px,min(3.8vw,7.4vh),68px)}
@media (min-width:901px){.hm-bt.a .hm-h1 span{white-space:nowrap}}
.hm-bt.a .hm-lede{font-size:clamp(16px,min(1.25vw,2.2vh),19px)}
.hm-hk>.wrap{width:100%}
@media (max-width:560px){.hm-bt.a .hm-h1{font-size:clamp(27px,7.6vw,32px)}.hm-bt.a .hm-h1 span{white-space:nowrap}}
/* 25.11 перший екран «Слайди»: 4 фото плавно змінюються, по центру назва центру, опис, кнопка; «Нам довіряють» у кольорі */
.hsl{position:relative;display:flex;flex-direction:column;min-height:100svh;margin-top:calc(-1 * var(--hdr,104px));padding-top:var(--hdr,104px);overflow:hidden;background:#0D0F10;isolation:isolate}
.hsl-ph{position:absolute;inset:0;z-index:-1}
.hsl-s{position:absolute;inset:0;opacity:0;transition:opacity 2.2s cubic-bezier(.4,0,.2,1)}
.hsl-s.on{opacity:1}
.hsl-s img,.hsl-nos{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform-origin:50% 45%}
.hsl-s.on img,.hsl-s.off img{animation:hslKen 14s cubic-bezier(.25,.1,.25,1) forwards;will-change:transform}
@keyframes hslKen{from{transform:scale(1.001)}to{transform:scale(1.07)}}
.hsl-ph::after{content:"";position:absolute;inset:0;background:
 radial-gradient(ellipse 62% 52% at 50% 47%,rgb(10 11 12/.62) 0,rgb(10 11 12/.38) 55%,rgb(10 11 12/0) 100%),
 linear-gradient(180deg,rgb(10 11 12/.78) 0,rgb(10 11 12/.28) 20%,rgb(10 11 12/.22) 55%,rgb(13 15 16/.86) 84%,#0D0F10 100%),
 rgb(10 11 12/.30)}
.hsl-in{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding-block:min(4vh,40px) min(3vh,28px)}
.hsl-lg{display:block;width:clamp(56px,min(6vw,9vh),88px);height:auto;margin:0 0 min(3vh,26px);filter:drop-shadow(0 6px 24px rgb(0 0 0/.55))}
.hsl-sl{margin:0 0 min(2.4vh,20px);font:500 clamp(19px,min(1.9vw,3.1vh),28px)/1.3 var(--disp);letter-spacing:-.005em;color:rgb(246 239 230/.86);text-wrap:balance}
.hsl-sl2{margin:min(3.4vh,30px) 0 0;font-size:clamp(17px,min(1.5vw,2.6vh),22px);color:rgb(246 239 230/.74)}
.hsl-h{margin:0;font:700 clamp(40px,min(6.2vw,10vh),104px)/1 var(--disp);letter-spacing:-.03em;color:#F6EFE6;text-wrap:balance;text-shadow:0 4px 40px rgb(0 0 0/.45)}
.hsl-h span{display:inline-block}
.hsl-ld{max-width:40em;margin:min(3vh,28px) 0 0;font:400 clamp(17px,min(1.6vw,2.7vh),24px)/1.5 var(--text);color:rgb(246 239 230/.9);text-wrap:balance;text-shadow:0 2px 18px rgb(0 0 0/.5)}
.hsl-cta{position:relative;display:inline-flex;align-items:center;gap:18px;margin-top:min(4.6vh,44px);height:clamp(60px,7.6vh,70px);padding:0 40px 0 44px;border-radius:8px;
 background:linear-gradient(180deg,#CB2E22,#A6211A);color:#FFF8F2;text-decoration:none;font:700 clamp(18px,1.4vw,20px)/1 var(--text);letter-spacing:.01em;
 box-shadow:inset 0 1px 0 rgb(255 255 255/.18),0 0 0 1px rgb(255 120 100/.18),0 20px 46px -14px rgb(203 46 34/.6);transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.hsl-cta:hover{transform:translateY(-2px);background:linear-gradient(180deg,#D93427,#B0241B);box-shadow:inset 0 1px 0 rgb(255 255 255/.22),0 0 0 1px rgb(255 140 120/.3),0 26px 56px -14px rgb(217 52 39/.75)}
.hsl-cta:active{transform:translateY(1px)}
.hsl-cta:focus-visible{outline:2px solid #F6EFE6;outline-offset:4px}
.hsl-cta svg{width:46px;height:22px;flex:none;overflow:visible}
.hsl-cta path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:70;stroke-dashoffset:0}
.hsl-cta:hover path{animation:hslEcg .9s cubic-bezier(.3,.7,.3,1)}
@keyframes hslEcg{from{stroke-dashoffset:70}to{stroke-dashoffset:0}}
.hsl-tr{width:100%}
.hsl-tr .hm-tr{margin:0}
.hsl .hm-mq{-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
@media (prefers-reduced-motion:reduce){.hsl-s.on img,.hsl-s.off img{animation:none}.hsl-cta:hover path{animation:none}.hsl-s{transition:none}}
@media (max-width:700px){
 .hsl-in{padding-block:24px 12px}
 .hsl-lg{width:54px;margin-bottom:18px}
 .hsl-h{font-size:clamp(32px,9.4vw,44px);letter-spacing:-.025em}
 .hsl-h span{display:inline}
 .hsl-ld{font-size:16.5px;margin-top:16px}
 .hsl-sl{font-size:18px}.hsl-sl2{font-size:16px;margin-top:20px}
 .hsl-cta{width:100%;max-width:360px;justify-content:center;height:58px;padding:0 24px;margin-top:26px;font-size:17px}
}
