/* База знаний tutorapay.ru/help — П-152, часть 7.1, ТЗ вида ред. 2.3 (docs/work/p152-p7-kb-design-tz.md) и макеты
   docs/design/kb-v2/. Числа макета — как есть; цвета — только из раздела 0 ТЗ вида; тёмной темы нет. Анимации
   150–350 мс, только transform и opacity, при «уменьшить движение» — без движения (раздел 3). Компьютер от 1024 px,
   планшет 600–1023 — вид телефона (содержимое статьи до 640 px), телефон до 599 px. Шрифт Manrope из /fonts. */
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/manrope-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

@view-transition { navigation: auto; }

.help{
  --bg:#FAFAF7;--card:#FFFFFF;--line:#E6E6DD;--field:#DCDCD2;--ink:#1D1D1F;--ink2:#3A3A3C;--muted:#6E6E73;
  --num:#5A5A5E;--tab:#5E6470;--chev:#AEAEB2;--accent:#556799;--soft:#E7ECF6;--grey:#ECECE4;--grey2:#F0F0EA;
  --bar:68px;--gut:16px;
  --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light;
}
.help{margin:0;background:var(--bg);color:var(--ink);font-family:"Manrope",system-ui,sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;overflow-x:hidden}
.help *{box-sizing:border-box}
:where(.help) a{color:inherit;text-decoration:none}
.help h1,.help h2,.help h3{margin:0;font-weight:800;line-height:1.2}
.help p,.help ul,.help ol{margin:0}
:where(.help) button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
[hidden]{display:none!important}
.help :focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:8px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.h-i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.h-wrap{width:100%;max-width:1360px;margin-inline:auto;padding-inline:var(--gut)}
.h-skip{position:absolute;left:16px;top:-100px;z-index:60;display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:12px;background:var(--card);color:var(--ink)}
.h-skip:focus-visible{top:8px}
[id]{scroll-margin-top:calc(var(--bar) + 16px)}

/* ---------- 2.1. Шапка */
.h-top{position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line)}
.h-top::after{content:"";position:absolute;inset:auto 0 -12px;height:12px;background:linear-gradient(rgba(29,29,31,.06),rgba(29,29,31,0));opacity:0;pointer-events:none;transition:opacity 200ms ease-out}
.h-scrolled .h-top::after{opacity:1}
.h-bar{height:var(--bar);display:flex;align-items:center;gap:12px}
.h-logo{display:flex;align-items:center;gap:10px;min-height:44px;color:var(--ink)}
.h-mark{width:34px;height:34px;flex:none}
.h-logo span{font-weight:800;font-size:22px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.h-grow{flex:1}
.h-mascot{width:46px;height:46px;flex:none;display:block}
.h-mascot-svg{width:100%;height:100%;display:block;transform-origin:50% 20%;animation:h-sway 7s ease-in-out infinite}
.h-eyes-shut{opacity:0}
.h-mascot .h-eyes-open{animation:h-blink 6s steps(1) infinite}
.h-mascot .h-eyes-shut{animation:h-blink-shut 6s steps(1) infinite}
.h-mascot-live .h-mascot-svg{animation:h-ring 350ms ease-in-out 2}
@keyframes h-sway{0%,86%,100%{transform:rotate(0)}90%{transform:rotate(-6deg)}94%{transform:rotate(5deg)}}
@keyframes h-ring{0%,100%{transform:rotate(0)}30%{transform:rotate(-10deg)}70%{transform:rotate(10deg)}}
@keyframes h-blink{0%,95%,100%{opacity:1}96%,98%{opacity:0}}
@keyframes h-blink-shut{0%,95%,100%{opacity:0}96%,98%{opacity:1}}
.h-ibtn{position:relative;width:42px;height:42px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:var(--card);border:1px solid var(--line)!important;color:var(--ink2)}
.h-ibtn::before{content:"";position:absolute;inset:-4px}
/* зона нажатия не меньше 44 px (ТЗ вида 1, 5): видимый размер по макету, область — псевдоэлементом */
.h-pill::before,.h-more::before,.h-crumbs a::before,.h-pbtn::before{content:"";position:absolute;left:-4px;right:-4px;top:50%;height:48px;margin-top:-24px}
.h-step-link::before{content:"";position:absolute;left:-12px;right:-12px;top:50%;height:48px;margin-top:-24px}
.h-pbtn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 18px;border-radius:12px;background:var(--accent);color:var(--card)!important;font-weight:700;font-size:15px;white-space:nowrap}
.h-pbtn .h-i{width:18px;height:18px}
.h-wide{display:flex;width:100%;min-height:48px}
.h-sbtn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:12px;background:var(--soft)!important;color:var(--accent)!important;font-weight:700;font-size:15px}
.h-sbtn .h-i{width:16px;height:16px}
.h-down{transform:scaleY(-1)}

/* ---------- 2.4. Карточки: подъём и тень при наведении (тень — у ::after, анимируется opacity) */
.h-card{position:relative;display:block;background:var(--card);border:1px solid var(--line);border-radius:16px;transition:transform 200ms ease-out}
.h-card::after{content:"";position:absolute;inset:-1px;border-radius:inherit;box-shadow:0 10px 24px rgba(29,29,31,.08);opacity:0;pointer-events:none;transition:opacity 200ms ease-out}
@media (hover:hover){
  a.h-card:hover,button.h-card:hover,.h-scard:hover{transform:translateY(-2px)}
  a.h-card:hover::after,button.h-card:hover::after,.h-scard:hover::after{opacity:1}
  .h-vcard:hover .h-poster{transform:translateY(-2px)}
}

/* ---------- 2.2. Вкладки ролей — как TabBar приложения */
.h-center{display:flex;justify-content:center}
.h-tabs{display:flex;justify-content:center}
.h-seg{display:inline-flex;background:var(--card);border:1px solid var(--accent);border-radius:999px;padding:4px;box-shadow:0 8px 20px rgba(29,29,31,.08)}
.h-tab{position:relative;width:132px;height:64px;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:600;font-size:13px;line-height:1.2;color:var(--tab)!important;white-space:nowrap}
.h-tab .h-i{width:22px;height:22px}
.h-tab[aria-current="page"]{background:var(--accent);color:var(--card)!important;font-weight:800;view-transition-name:h-tab-pill}
.h-tab span{position:relative}

/* ---------- 2.3. Поиск */
.h-search{position:relative;display:flex;align-items:center;gap:12px;height:56px;padding:0 18px;border-radius:16px;background:var(--card);border:1px solid var(--field);box-shadow:0 2px 10px rgba(0,0,0,.04)}
.h-search-ic{color:var(--muted)}
.h-q{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;font:inherit;font-size:16px;color:var(--ink)}
.h-q:focus-visible{outline:none}
.h-q::placeholder{color:var(--muted);opacity:1}
.h-q::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.h-search:focus-within{border-color:var(--accent)}
.h-clear{width:44px;height:44px;margin-right:-12px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.h-sp{position:fixed;inset:0;z-index:50;background:rgba(29,29,31,.3);opacity:0;transition:opacity 200ms ease-out}
.h-sp.h-open{opacity:1}
.h-sp-in{max-width:760px;margin-top:80px;padding:16px;background:var(--bg);border-radius:20px;transform:translateY(-8px);transition:transform 200ms ease-out}
.h-sp.h-open .h-sp-in{transform:none}
.h-sp-head{display:flex;align-items:center;gap:12px}
.h-sp-head .h-search{flex:1}
.h-sp-body{position:relative;text-align:left}
.h-inline .h-sp-body,.h-search-host>.h-sp-body{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:30;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 24px rgba(29,29,31,.08);overflow:hidden}
.h-search-host{position:relative}
.h-results{list-style:none;margin:0;padding:6px 0;max-height:60vh;overflow:auto}
.h-results a{display:block;padding:10px 18px;color:var(--ink)}
.h-results a[aria-selected="true"],.h-results a:hover{background:var(--soft)}
.h-results b{display:block;font-weight:700;font-size:15px}
.h-results small{display:block;color:var(--muted);font-size:13px}
.h-sp-state{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px;text-align:center}
.h-sp-state p{font-weight:700}
.h-sp-state .h-pbtn{max-width:320px}

/* ---------- блоки страниц */
.h-main{padding-bottom:64px}
.h-block{margin-top:56px}
.h-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px}
.h-head h2{font-size:24px}
.h-more{position:relative;display:inline-flex;align-items:center;gap:4px;color:var(--accent)!important;font-weight:700;font-size:15px}
.h-more .h-i{width:16px;height:16px}
.h-more-m{display:none}
.h-more-below{margin-top:16px}
.h-h1{font-size:40px;letter-spacing:-.01em}

/* 4.1. Главная */
.h-hero{padding:56px 0 8px;text-align:center}
.h-hero h1{font-size:40px;letter-spacing:-.01em}
.h-hero .h-search,.h-hero .h-search-host{max-width:640px;margin:24px auto 16px}
.h-hero .h-search-host .h-search{margin:0}
.h-quick{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.h-pill{position:relative;display:flex;align-items:center;height:34px;padding:0 14px;border-radius:17px;background:var(--card);border:1px solid var(--line);font-size:14px;font-weight:600;color:var(--ink2)!important;white-space:nowrap}
.h-home .h-center{margin-top:36px}
.h-vrow{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.h-vgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-top:24px}
.h-vcard{display:flex;flex-direction:column;justify-content:flex-start;align-self:start;text-align:left;width:100%}
.h-poster{position:relative;display:block;aspect-ratio:9/16;border-radius:16px;overflow:hidden;background:var(--card);border:1px solid var(--line);transition:transform 200ms ease-out}
.h-poster img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
.h-play{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:rgba(255,255,255,.95);box-shadow:0 2px 12px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center}
.h-play-i{width:22px;height:22px;fill:var(--accent)}
.h-dur{position:absolute;right:10px;bottom:10px;background:rgba(29,29,31,.78);color:var(--card);font-size:12px;font-weight:700;padding:3px 7px;border-radius:7px}
.h-vt{display:block;margin-top:10px;font-size:16px;font-weight:700;color:var(--ink)}
.h-plates{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.h-plate{display:flex!important;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:8px 18px;font-weight:700;font-size:16px;color:var(--ink)!important}
.h-plate span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.h-chev{width:18px;height:18px;color:var(--chev)}
.h-contact{display:none!important;margin:40px 0 0;padding:22px}
.h-contact h2{font-size:21px}
.h-contact p{color:var(--muted);margin:6px 0 16px}

/* 4.2. Страница роли */
.h-rtop{padding-top:40px;display:flex;flex-direction:column;align-items:center;gap:24px}
.h-rtop .h-search,.h-rtop .h-search-host{width:640px;max-width:100%}
.h-rtop-tabs{padding-bottom:8px}
.h-role-page .h-sections{margin-top:44px}
.h-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.h-scard{display:flex!important;flex-direction:column;gap:14px;padding:20px}
.h-sico{width:44px;height:44px;border-radius:12px;background:var(--soft);color:var(--accent);display:flex;align-items:center;justify-content:center}
.h-sico .h-i{width:22px;height:22px}
.h-scard h3{font-size:18px}
.h-scard-link{color:var(--ink)!important}
.h-scard-link::after{content:"";position:absolute;inset:0;border-radius:16px;z-index:0}
.h-stop{list-style:none;padding:0;display:flex;flex-direction:column;gap:9px}
.h-stop a,.h-sall{position:relative;z-index:1}
.h-stop a{padding:12px 0;margin:-12px 0;font-size:14.5px;color:var(--ink2)!important;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.h-sall{margin-top:auto;font-size:14.5px}
.h-scount{display:none;color:var(--muted);font-size:14px;font-weight:600}
.h-rows{list-style:none;padding:0;margin:0}
.h-rows-2{display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
.h-row{display:flex;align-items:center;gap:14px;min-height:56px;padding:16px 4px;border-bottom:1px solid var(--line);font-size:16px;font-weight:600;color:var(--ink)!important}
.h-row .n{width:28px;height:28px;border-radius:8px;background:var(--grey);font-size:13px;font-weight:800;color:var(--num);display:flex;align-items:center;justify-content:center;flex:none}
.h-row-t{flex:1;min-width:0}
.h-row-n{display:block}
.h-row-d{display:block;margin-top:4px;color:var(--muted);font-size:14px;font-weight:500}

/* 4.3–4.4. Страница раздела и «Общие вопросы» */
.h-col{max-width:880px;margin:0 auto;padding-top:24px}
.h-col .h-h1{margin:12px 0 16px}
.h-videos-page>.h-h1{margin:40px 0 0}
.h-crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:14px;color:var(--muted);font-weight:600}
.h-crumbs a{position:relative;color:var(--muted)!important}
.h-sep .h-i{width:14px;height:14px;color:var(--chev)}
.h-for-parent{display:none}
.h-from-parent .h-for-parent{display:flex}
.h-from-parent .h-for-learner{display:none}

/* 4.5. Статья */
.h-art-col{max-width:1120px;margin:0 auto;padding-top:40px}
.h-art-col>.h-h1{margin:16px 0 14px}
/* правки владельца по снимкам (ГС 20.11 08:46, п. 2): описание — в плашке мягкого оттенка бренда */
.h-lead{font-size:18px;line-height:1.55;color:var(--ink2);margin-bottom:24px!important;background:var(--soft);border-radius:16px;padding:16px 20px;width:fit-content;max-width:100%;box-sizing:border-box}
.h-route{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;background:var(--soft);border-radius:10px;padding:8px 14px;font-size:14px;font-weight:700;color:var(--accent);margin-bottom:20px!important}
.h-route i{font-style:italic}
.h-arrow{color:var(--accent)}
/* п. 1: карточка ролика — обложка на всю высоту, без подписи снизу */
.h-avid{text-align:left;cursor:pointer;padding:0}
.h-avid .h-avid-cover{flex:1 1 auto;height:auto;min-height:300px}
.h-avid-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.h-avid-btn{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 20px 0 16px;border-radius:24px;background:rgba(255,255,255,.95);box-shadow:0 2px 12px rgba(0,0,0,.18);color:var(--accent);font-weight:700;font-size:16px;white-space:nowrap}
.h-avid-btn .h-play-i{width:20px;height:20px;fill:var(--accent)}
.h-text{max-width:720px;margin:0 0 28px;font-size:16.5px;line-height:1.6;color:var(--ink2)}
.h-text h2{font-size:24px;color:var(--ink);margin-bottom:10px}
.h-text p+p,.h-text ul,.h-text ol{margin-top:10px}
.h-text a,.h-step-body a,.h-faq-a a{color:var(--accent)!important;text-decoration:underline;text-underline-offset:3px}
.h-note{background:var(--soft);border-radius:12px;padding:16px}
.h-note-example{background:none;border:1px solid var(--line)}
.h-action{margin:8px 0 32px}
.h-action>h2{font-size:24px;margin-bottom:16px}
/* пакет владельца 20.11, пп. 3, 6, 7, 8, 16: ряд «видео + шаги» со свайпом, карточки одной ширины и высоты,
   снимок не крупнее своего размера */
.h-strip{position:relative;margin-bottom:32px}
.h-action .h-strip{margin-bottom:0}
.h-steps{--cw:336px;display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 2px 6px;align-items:stretch}
.h-steps::-webkit-scrollbar{display:none}
.h-step{overflow:hidden;display:flex!important;flex-direction:column;flex:0 0 var(--cw);width:var(--cw);scroll-snap-align:start}
.h-shot{position:relative;height:300px;flex:none;background:var(--grey2);overflow:hidden;display:flex;align-items:center;justify-content:center}
.h-zoom{display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:zoom-in}
.h-zoom img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
/* контролёр 7.2, п. 6: кольцо фокуса внутри снимка и карточки ролика, у краёв ряда не обрезается */
.help .h-zoom:focus-visible,.help .h-avid:focus-visible{outline-offset:-3px}
.h-strip-next{position:absolute;right:-22px;top:128px;width:44px;height:44px;border-radius:50%;background:var(--card);border:1px solid var(--line);box-shadow:0 2px 10px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;color:var(--accent);z-index:2}
.h-strip-next[hidden]{display:none}
.h-strip-next .h-i{width:20px;height:20px}
/* п. 6: низ карточки шага — тот же мягкий оттенок, что плашка описания, не белый */
.h-step-body{flex:1 1 auto;padding:20px 24px 24px;font-size:16px;line-height:1.55;color:var(--ink2);background:var(--soft)}
.h-step{background:var(--soft)}
.h-step-h>span:not(.h-n){flex:1;min-width:0;overflow-wrap:break-word}
.h-step-h{position:relative;display:flex;align-items:flex-start;gap:12px;padding-right:16px;font-size:20px!important;font-weight:800;color:var(--ink);margin-bottom:8px!important}
.h-n{width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--card);font-size:15px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:none;margin-top:-1px}
.h-step-link{position:absolute;top:0;right:-8px;z-index:1;opacity:0;width:24px;height:24px;color:var(--muted);transition:opacity 150ms ease-out}
.h-step-link .h-i{width:16px;height:16px}
.h-step-h:hover .h-step-link,.h-step-link:focus-visible{opacity:1}
.h-old{display:block;height:0}
.h-media-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;padding:16px;text-align:center;color:var(--ink2);font-weight:700}
.h-faq{margin:16px 0 28px}
.h-faq h2{font-size:24px;margin-bottom:8px}
.h-faq details{border-bottom:1px solid var(--line)}
.h-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:14px 0;font-weight:700;font-size:16px;cursor:pointer;list-style:none}
.h-faq summary::-webkit-details-marker{display:none}
.h-faq summary .h-chev{transition:transform 200ms ease-out}
.h-faq details[open] summary .h-chev{transform:rotate(180deg)}
.h-faq-a{padding:0 0 16px;color:var(--ink2);max-width:720px}
/* п. 3: «Статья помогла?» — по ширине содержимого, слева, вопрос и кнопки в строку */
.h-vote{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px 20px;width:fit-content;max-width:100%;padding:14px 16px 14px 24px;margin-top:8px;background:var(--soft)}
.h-vote-q{flex:none;font-weight:700;font-size:17px}
.h-vote .h-sbtn{background:transparent!important;border:1px solid var(--accent)}
.h-vote-btns{display:flex;gap:12px}
.h-vote-thanks{font-weight:700;color:var(--accent)}
.h-voted .h-vote-btns{display:none}

/* 4.6. Окно ролика и увеличенный снимок */
.h-vd,.h-box{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;background:rgba(29,29,31,.3);opacity:0;transition:opacity 200ms ease-out}
.h-vd[hidden],.h-box[hidden]{display:none}
.h-vd.h-open,.h-box.h-open{opacity:1}
.h-vd-box{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px;background:var(--card);border-radius:20px;transform:scale(.97);transition:transform 250ms ease-out}
.h-vd.h-open .h-vd-box,.h-box.h-open .h-box-in{transform:none}
.h-vd-video{display:block;height:80vh;max-height:80vh;aspect-ratio:9/16;border-radius:12px;background:var(--ink)}
.h-vd-close{position:absolute;right:-56px;top:0}
.h-vd-title{font-weight:800;font-size:17px}
.h-vd-fail{color:var(--ink2);font-weight:700}
.h-speed{display:flex;gap:8px}
.h-speed button{min-width:56px;height:44px;padding:0 12px;border-radius:12px;background:var(--grey2);font-weight:700;color:var(--ink2)}
.h-speed button[aria-pressed="true"]{background:var(--accent);color:var(--card)}
.h-box-in{position:relative;max-width:min(92vw,900px);max-height:90vh;transform:scale(.97);transition:transform 250ms ease-out}
.h-box-in img{max-width:100%;max-height:86vh;display:block;border-radius:12px;background:var(--card)}
.h-box-close{position:absolute;right:8px;top:8px}
.h-box-nav{display:flex;justify-content:center;gap:12px;margin-top:12px}

/* 4.7. «Не найдено» */
.h-404{display:flex;flex-direction:column;align-items:center;gap:20px;padding:80px 0;text-align:center}
.h-404-mascot{width:160px;height:160px}

/* 2.6. Маскот спускается из шапки, 2.7. «Наверх», тост */
.h-fly{position:fixed;z-index:45;width:96px;height:96px;pointer-events:none;opacity:0;transform:translateY(-24px);transition:opacity 300ms ease-out,transform 300ms ease-out}
.h-fly.h-open{opacity:1;transform:none}
.h-totop{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom, 0px));z-index:35;width:44px;height:44px;border-radius:50%;background:var(--card);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--ink2)!important;opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity 200ms ease-out,transform 200ms ease-out}
.h-totop.h-show{opacity:1;pointer-events:auto;transform:none}
.h-toast{position:fixed;left:50%;bottom:24px;z-index:80;padding:12px 18px;border-radius:12px;background:var(--ink);color:var(--card);font-weight:700;transform:translateX(-50%);opacity:0;transition:opacity 200ms ease-out}
.h-toast.h-show{opacity:1}

/* ---------- Компьютер от 1024 px: поля 40 px, контейнер 1360 */
@media (min-width:1024px){
  .help{--gut:40px}
  .h-sp-body .h-results{max-height:420px}
}

/* ---------- Планшет и телефон до 1023 px: вид телефона */
@media (max-width:1023px){
  .help{--bar:60px}
  .h-support{display:none!important}
  .h-contact{display:block!important}
  .h-logo span{font-size:17px}
  .h-mark{width:30px;height:30px}
  .h-mascot{width:40px;height:40px}
  .h-ibtn{width:40px;height:40px}
  .h-hero{padding:28px 0 0;text-align:left}
  .h-hero h1{font-size:30px}
  .h-hero .h-search,.h-hero .h-search-host{margin:18px 0 12px;max-width:none}
  .h-search{height:50px;font-size:15px}
  .h-quick{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin:-8px calc(-1 * var(--gut));padding:8px var(--gut)}
  .h-quick::-webkit-scrollbar{display:none}
  .h-pill{flex:none}
  .h-home .h-center{margin-top:24px}
  .h-tabs,.h-seg{display:flex;width:100%}
  .h-tab{flex:1 1 0;width:auto;height:56px;font-size:11px;gap:4px}
  .h-tab .h-i{width:20px;height:20px}
  .h-block{margin-top:40px}
  .h-head h2{font-size:21px}
  .h-more-pc{display:none}
  .h-more-m{display:inline}
  .h-vrow{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1 * var(--gut));padding-inline:var(--gut)}
  .h-vrow::-webkit-scrollbar{display:none}
  .h-vrow .h-vcard{width:150px;flex:none}
  .h-vt{font-size:15px}
  .h-vgrid{grid-template-columns:repeat(2,1fr);gap:12px}
  .h-plates{grid-template-columns:1fr 1fr;gap:10px}
  .h-plate{min-height:56px;font-size:14.5px;padding:8px 14px}
  .h-plate .h-chev,.h-popular .h-chev{display:none}
  .h-rtop{padding-top:16px;align-items:stretch;gap:16px}
  .h-rtop .h-search,.h-rtop .h-search-host{width:auto}
  .h-role-page .h-sections{margin-top:32px}
  .h-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .h-scard h3{overflow-wrap:anywhere}
  .h-sp-in{margin-top:0;max-width:none;min-height:100%;border-radius:0}
  .h-sp .h-results{max-height:none}
  .h-sp{overflow-y:auto}
  .h-scard{padding:20px;gap:12px}
  .h-scard h3{font-size:16.5px}
  .h-stop,.h-sall{display:none!important}
  .h-scount{display:block}
  .h-rows-2{grid-template-columns:1fr}
  .h-popular li:nth-child(n+5){display:none}
  .h-crumb-home,.h-crumb-home+.h-sep{display:none}
  .h-col{padding-top:16px}
  .h-h1,.h-art-col>.h-h1,.h-col .h-h1{font-size:28px}
  .h-videos-page>.h-h1{margin-top:24px}
  .h-art-col{max-width:640px;padding-top:20px}
  .h-lead{font-size:16px}
  .h-steps{--cw:calc(86vw - var(--gut) - 12px);gap:12px;margin-inline:calc(-1 * var(--gut));padding-inline:var(--gut);scroll-padding-inline:var(--gut)}
  .h-shot{height:360px}
  .h-strip-next{display:none!important}
  .h-step-h{font-size:18px!important}
  .h-vote{padding:14px 14px 14px 18px;column-gap:16px}
  .h-vote-q{font-size:16px}
  .h-vote-btns{flex:none;gap:8px}
  .h-vd-box{width:100%;height:100%;border-radius:0;justify-content:center}
  .h-vd-video{height:auto;width:100%;max-height:72vh}
  .h-vd-close{right:12px;top:12px}
}
@media (max-width:599px){
  .h-steps{gap:10px;--cw:calc(86vw - var(--gut) - 10px)}
}
@media (max-width:360px){
  .h-logo span{letter-spacing:.04em}
  .h-bar{gap:8px}
}

/* «Уменьшить движение»: без сдвигов и полётов, окна сразу, маскот неподвижен */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .help *,.help *::before,.help *::after{animation:none !important;transition:none !important}
  .h-card,.h-poster,.h-sp-in,.h-vd-box,.h-box-in,.h-fly{transform:none!important}
  @view-transition { navigation: none; }
}
/* правки владельца по снимкам, п. 3: вопрос и кнопки не помещаются в ряд — кнопки под вопросом, плашка по ширине кнопок */
@media (max-width:409px){.h-vote{flex-direction:column;align-items:flex-start}}
