/* Aroken — страница курса «HTML и CSS с нуля» (html-css.html). Подключается только там, после course-blocks.css.
   Фирменный ход — DevTools: в первом экране окно браузера со страницей Fit Studio (практическая работа курса) и панелью Elements + Styles —
   включаешь и выключаешь свойства .news, меняешь grid/flex, колонки и gap, и вёрстка перестраивается (js/html-course.js).
   Программа — файл index.html: каждый модуль — <section> в <details>, внутри все уроки с платформы как <li>.
   Акцент курса — коралл (цвет щита HTML5), второй — кобальт (щит CSS3). Лайм — только у Primary. Подсветка кода: .c-t тег, .c-a атрибут, .c-v значение. */

:root:has(.hero--html) { --accent-rgb: 255, 102, 97; --accent-2-rgb: 115, 214, 255; }
:root:has(.hero--html) .section { --glow-x: 76%; --glow-x2: 18%; }
:root:has(.hero--html) .section:nth-of-type(even) { --glow-x: 16%; --glow-x2: 84%; }

.c-t { color: #FF8E89; }
.c-a { color: #B8A3FF; }
.c-v { color: #73D6FF; }

/* ================================================================
   Первый экран: слева текст на графите, справа браузер с DevTools
   ================================================================ */
.hero--html .hhc {
  --hhc-pad: 56px;
  --hhc-top: 48px;
  --hhc-inset: 40px;
  --hhc-3d: clamp(176px, 13.6vw, 244px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
  min-height: clamp(600px, 41vw, 700px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(52% 62% at 82% 104%, rgba(255, 102, 97, .15), rgba(255, 102, 97, 0) 72%),
    radial-gradient(34% 44% at 100% 0%, rgba(115, 214, 255, .08), rgba(115, 214, 255, 0) 70%),
    radial-gradient(42% 52% at 0% 0%, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 70%),
    var(--graphite);
}
.hhc :focus-visible { outline-color: var(--coral); }
.hero--html .hero__spark { color: var(--coral); font: 700 .46em/1 var(--mono); letter-spacing: -.06em; vertical-align: .12em; }

.hhc__copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; padding: var(--hhc-top) 32px var(--hhc-top) var(--hhc-pad); }
.hhc__status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.hhc__badge { height: 40px; padding: 0 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); font-size: 15px; color: #fff; }
.hhc__badge .badge__dot { background: var(--coral); box-shadow: 0 0 10px rgba(255, 102, 97, .6); }
.hhc__start { font-size: 15px; color: var(--muted); }
.hhc__title { margin-top: 28px; font-size: clamp(44px, 3.65vw, 56px); line-height: 1.18; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.hhc__text { margin-top: 24px; max-width: 470px; font-size: 17.5px; line-height: 26px; color: var(--muted-2); text-wrap: pretty; }
.hhc__bottom { margin-top: auto; padding-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.hhc__proof { display: flex; align-items: center; gap: 12px; }
.hhc__proof .avatars img { border-color: var(--graphite); }
.hhc__proof-text { font-size: 15px; line-height: 19px; color: #fff; }

/* ---------- Окно браузера ---------- */
.hhc__stage { position: relative; min-width: 0; }
.hhc__window {
  position: absolute; z-index: 1; top: var(--hhc-top); right: var(--hhc-inset); bottom: 0; left: 0;
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; border-radius: 16px 16px 0 0;
  background: #1B1D22;
  box-shadow: 0 -24px 80px -40px rgba(255, 102, 97, .32), 0 40px 90px -30px rgba(0, 0, 0, .7);
}
.hhc__bar { flex: none; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #202227; border-bottom: 1px solid rgba(0, 0, 0, .4); color: rgba(255, 255, 255, .5); }
.hhc__dots { flex: none; display: flex; gap: 7px; margin-right: 6px; }
.hhc__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.hhc__arrows { flex: none; display: flex; gap: 4px; }
.hhc__arrows svg + svg { opacity: .45; }
.hhc__url { flex: 1 1 auto; min-width: 0; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: #121317; font-size: 13px; color: rgba(255, 255, 255, .45); white-space: nowrap; overflow: hidden; }
.hhc__url svg { flex: none; }
.hhc__address { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hhc__host { color: rgba(255, 255, 255, .88); }

/* ---------- Страница: секция «Последние новости» Fit Studio на бумаге ---------- */
.hhc__page { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(23, 24, 28, .25) transparent; background: #FBFAF7; color: var(--ink); }
.hhc-site { min-height: 100%; padding: 14px 26px 20px; }
.hhc-site__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 calc(var(--hhc-3d) * .55) 10px 0; border-bottom: 1px solid rgba(23, 24, 28, .1); }
.hhc-site__logo { font-size: 12px; line-height: 13px; font-weight: 800; letter-spacing: .02em; color: #1F2430; }
.hhc-site__logo b { display: block; font-weight: 800; }
.hhc-site__note { font-size: 10.5px; line-height: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(23, 24, 28, .45); }
.hhc-site__h { margin: 14px 0 12px; font-size: 21px; line-height: 25px; font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; color: #22262F; }
/* Стартовое состояние — то же, что пишет панель Styles; дальше значения ставит js/html-course.js прямо в style, как DevTools */
.hhc-news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* без overflow: hidden — иначе в flex-direction: column карточка с flex-basis 0 схлопывается (min-height: auto у scroll-контейнера = 0) */
.hhc-card { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(23, 24, 28, .06), 0 8px 18px -12px rgba(23, 24, 28, .35); }
.hhc-card { container-type: inline-size; }
.hhc-card__in { display: flex; flex-direction: column; }
.hhc-card__img { display: block; width: 100%; height: auto; aspect-ratio: 204 / 145; max-height: 124px; object-fit: cover; border-radius: 4px 4px 0 0; background: #E8E4DC; }
/* карточка шире 340 px (одна-две колонки, flex column, без display) — фото слева в родном размере, текст справа: снимок не растягивается и не мылится, а сама карточка показывает адаптив */
@container (min-width: 340px) {
  .hhc-card__in { display: grid; grid-template-columns: 168px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 4px; }
  .hhc-card__img { grid-row: 1 / 3; width: 168px; aspect-ratio: 204 / 145; max-height: none; border-radius: 4px 0 0 4px; }
  .hhc-card__date { align-self: end; padding-top: 0; }
  .hhc-card__title { align-self: start; }
}
.hhc-card__date { padding: 10px 12px 0; font-size: 11px; line-height: 14px; color: rgba(23, 24, 28, .5); font-variant-numeric: tabular-nums; }
.hhc-card__title { padding: 3px 12px 12px; font-size: 13px; line-height: 17px; font-weight: 600; color: #22262F; text-wrap: balance; }

/* подсветка элемента, как у инспектора: рамка, штриховка отступов gap, подпись с тегом и размером */
.hhc-hl { position: absolute; z-index: 3; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.hhc-hl[hidden] { display: none; }
.hhc-hl__box { position: absolute; inset: 0; border-radius: 2px; background: rgba(115, 214, 255, .28); box-shadow: inset 0 0 0 1px rgba(40, 150, 220, .9); }
.hhc-hl.is-grid .hhc-hl__box { background: none; box-shadow: inset 0 0 0 1.5px rgba(255, 102, 97, .95); }
/* штриховка только в промежутках gap: слой на всю секцию, карточки вырезаны clip-path с evenodd (считает js/html-course.js) */
.hhc-hl__gaps { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 102, 97, .55) 0 2px, rgba(255, 102, 97, .14) 2px 7px); }
.hhc-hl__cell { position: absolute; box-shadow: inset 0 0 0 1px rgba(255, 102, 97, .8); }
.hhc-hl__tip { position: absolute; left: 0; bottom: calc(100% + 6px); display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; border-radius: 6px; background: #1B1D22; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5); font: 500 11px/1 var(--mono); color: #FF8E89; white-space: nowrap; }
.hhc-hl__tip b { font-weight: 500; color: #73D6FF; }
.hhc-hl__tip span { color: rgba(255, 255, 255, .6); }
.hhc-hl.is-below .hhc-hl__tip { top: calc(100% + 6px); bottom: auto; }

/* ---------- DevTools: Elements + Styles ---------- */
.hhc__devtools { flex: none; height: clamp(216px, 37%, 244px); display: flex; flex-direction: column; background: #111216; border-top: 1px solid rgba(255, 255, 255, .14); }
.hhc__tabs { flex: none; height: 32px; display: flex; align-items: stretch; padding: 0 6px; background: #1B1D22; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 12px; color: rgba(255, 255, 255, .48); overflow: hidden; }
.hhc__tabs span { display: flex; align-items: center; padding: 0 11px; white-space: nowrap; }
.hhc__tabs .is-active { color: #fff; box-shadow: inset 0 -2px 0 var(--coral); }
.hhc__panes { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); }

.hhc-dom { min-width: 0; padding: 8px 0; overflow: hidden; border-right: 1px solid rgba(255, 255, 255, .08); font: 400 12.5px/22px var(--mono); color: rgba(226, 229, 236, .82); }
.hhc-dom__ln { display: block; width: 100%; min-height: 24px; margin: 0; padding: 1px 12px; border: 0; background: none; font: inherit; color: inherit; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; transition: background .15s; }
.hhc-dom__ln--in { padding-left: 34px; }
.hhc-dom__ln--end { color: rgba(226, 229, 236, .6); }
.hhc-dom__tri { display: inline-block; width: 12px; margin-right: 4px; font-size: 10px; color: rgba(255, 255, 255, .45); }
button.hhc-dom__ln:hover, button.hhc-dom__ln.is-hover { background: rgba(115, 214, 255, .12); }
.hhc-dom__ln.is-sel { background: rgba(115, 214, 255, .2); }
.hhc-dom__ln:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; border-radius: 2px; }
.hhc-dom__badge { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .22); font-size: 10.5px; line-height: 16px; vertical-align: 1px; color: rgba(255, 255, 255, .78); }
.hhc-dom__badge:empty { display: none; }

.hhc-css { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 8px 14px 12px; overflow: hidden; font: 400 12.5px/22px var(--mono); color: #E6E8EC; }
.hhc-css > * { flex: none; }
.hhc-css__hint { color: rgba(186, 191, 201, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hhc-css__head { display: flex; align-items: baseline; gap: 6px; }
.hhc-css__sel { color: #B8A3FF; }
.hhc-css__file { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .38); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .2); text-underline-offset: 2px; }
.hhc-css__decl { display: block; padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.hhc-css__decl:hover { background: rgba(255, 255, 255, .04); }
.hhc-css__decl[hidden] { display: none; }
.hhc-css__prop { color: #73D6FF; }
.hhc-css__val { color: #fff; }
.hhc-css__val b { font-weight: 400; color: #FF8E89; }
.hhc-css__decl.is-off .hhc-css__prop, .hhc-css__decl.is-off .hhc-css__val { color: rgba(255, 255, 255, .38); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .4); }
.hhc-css__decl.is-off .hhc-css__val b { color: inherit; }
/* галочка свойства, как в DevTools: включить/выключить объявление */
.hhc-css__on { position: relative; display: inline-block; vertical-align: -2px; appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin: 0 8px 0 0; border: 1.5px solid rgba(255, 255, 255, .34); border-radius: 3px; background: transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.hhc-css__on:checked { background: var(--coral); border-color: var(--coral); }
.hhc-css__on:checked::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px; border: solid #131417; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hhc-css__on:hover { border-color: rgba(255, 255, 255, .6); }
.hhc-css__on:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* редактор раскладки под правилом — как flexbox/grid-редактор DevTools */
.hhc-tools { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hhc-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.hhc-seg[hidden] { display: none; }
.hhc-seg__btn { min-width: 30px; height: 28px; padding: 0 9px; border: 0; border-radius: 7px; background: none; font: 500 12px/1 var(--mono); color: rgba(255, 255, 255, .62); cursor: pointer; transition: background .15s, color .15s; }
.hhc-seg__btn:hover { color: #fff; }
.hhc-seg__btn[aria-pressed="true"] { background: rgba(255, 102, 97, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 102, 97, .6); }
.hhc-seg__btn:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.hhc-gap { display: inline-flex; align-items: center; gap: 8px; height: 32px; font: 500 12px/1 var(--mono); color: rgba(255, 255, 255, .62); }
.hhc-gap__range { width: 104px; height: 32px; margin: 0; accent-color: var(--coral); cursor: pointer; background: none; }
.hhc-gap__range:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

/* ---------- Щиты HTML5 и CSS3: выходят за угол окна ---------- */
/* в правом верхнем углу окна: низ панели DevTools — управление, его щиты не закрывают */
.hhc__shields {
  position: absolute; z-index: 2; top: calc(var(--hhc-top) - var(--hhc-3d) * .42); right: -30px;
  width: var(--hhc-3d); aspect-ratio: 1; pointer-events: none;
  transform: translate3d(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px), 0) rotate(calc(var(--mx, 0) * -3deg));
}
.hhc__shields img { width: 100%; height: 100%; transform: rotate(6deg); filter: drop-shadow(0 28px 32px rgba(0, 0, 0, .55)); }
.hhc.is-visible .hhc__shields img { animation: hhc-3d-in 1.1s var(--spring) .35s both; }
@keyframes hhc-3d-in {
  from { opacity: 0; transform: translateY(36px) rotate(18deg) scale(.9); }
  to { opacity: 1; transform: rotate(6deg); }
}

/* ================================================================
   «Что ты сверстаешь»: Fit Studio, статья, таблицы и формы, Nike Air Mag
   ================================================================ */
.ob--html { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(316px, auto); }
.ob--html .ob-card--wide { grid-column: span 2; }

/* широкие карточки: текст слева, окно браузера со скрином справа уходит в угол карточки */
.hob--fit, .hob--mag { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); column-gap: 28px; }
.hob--fit .ob-card__copy, .hob--mag .ob-card__copy { align-self: stretch; display: flex; flex-direction: column; }
.hob-chips { margin: auto 0 0; padding: 24px 0 0; list-style: none; }
.hob-shot { position: relative; align-self: end; margin: 0 -28px -28px 0; display: flex; flex-direction: column; }
.hob-shot__cap { margin: 0 28px 12px 0; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .55); text-wrap: pretty; }
.hob-shot__win { position: relative; overflow: hidden; border-radius: 12px 0 0 0; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .4); transition: transform .6s var(--spring); }
.hob:hover .hob-shot__win { transform: translate(-4px, -6px); }
.hob-shot__page { position: relative; }
.hob-shot__img { display: block; width: 100%; height: auto; }
/* сетка новостей Fit Studio, как её подсвечивает инспектор: 4 колонки, штриховка — промежутки gap */
.hob-shot__grid { position: absolute; left: 18.1%; right: 18.3%; top: 75.5%; bottom: -2px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6%; background: repeating-linear-gradient(135deg, rgba(255, 102, 97, .5) 0 2px, rgba(255, 102, 97, .12) 2px 7px); outline: 1.5px dashed rgba(255, 102, 97, .95); outline-offset: 2px; }
.hob-shot__grid i { background: rgba(255, 255, 255, .0); box-shadow: inset 0 0 0 1px rgba(255, 102, 97, .8); }
.hob-shot__tip { position: absolute; right: 18.3%; top: calc(75.5% - 34px); display: inline-flex; align-items: center; height: 24px; padding: 0 4px 0 9px; border-radius: 6px; background: #1B1D22; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5); font: 500 11px/1 var(--mono); color: #FF8E89; white-space: nowrap; }
.hob-shot__tip b { font-weight: 500; color: #73D6FF; }
.hob-shot__tip span { margin-left: 8px; padding: 3px 6px; border-radius: 4px; background: rgba(255, 102, 97, .9); color: #131417; font-size: 10px; }

/* Nike Air Mag: открытое бургер-меню поверх скрина — пункты те же, что в шапке лендинга */
.hob-shot--mag .hob-shot__win { background: #262626; }
.hob-burger { position: absolute; top: 0; right: 0; bottom: 0; width: 38%; display: flex; flex-direction: column; gap: 2px; padding: 44px 18px 18px; background: rgba(20, 20, 20, .94); box-shadow: -24px 0 40px -18px rgba(0, 0, 0, .8); color: #fff; }
.hob-burger__x { position: absolute; top: 14px; right: 16px; width: 18px; height: 18px; }
.hob-burger__x::before, .hob-burger__x::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.hob-burger__x::after { transform: rotate(-45deg); }
.hob-burger__item { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 16px; letter-spacing: .01em; }
.hob-burger__cta { align-self: flex-start; margin-top: auto; padding-bottom: 3px; border-bottom: 1.5px solid #E7F13A; font-size: 12.5px; line-height: 16px; color: #E7F13A; }
@media (prefers-reduced-motion: no-preference) {
  .hob-burger { transform: translateX(0); transition: transform .6s var(--spring); }
  .hob--mag:hover .hob-burger { transform: translateX(-6px); }
}

/* Страница статьи: семантические блоки, подписанные тегами, как «контуры» в расширении для вёрстки */
.hob--doc .ob-card__copy { padding-right: 96px; }
.hob--doc .ob-card__copy, .hob--forms .ob-card__copy { padding-bottom: 20px; }
.hob-doc { margin: auto -28px -28px 0; padding: 18px 18px 0; border-radius: 16px 0 0 0; background: linear-gradient(160deg, #FEFDF9, #F1ECE1); box-shadow: 0 20px 34px -22px rgba(0, 0, 0, .8); }
.hob-doc__box { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 10px 10px; border-radius: 6px; border: 1.5px dashed rgba(23, 24, 28, .22); }
.hob-doc__box > i { position: absolute; left: 6px; top: -1px; transform: translateY(-50%); padding: 0 6px; border-radius: 4px; background: #FEFDF9; font: 500 11px/16px var(--mono); font-style: normal; color: #C8362F; }
.hob-doc__box--article { gap: 12px; padding: 20px 12px 14px; border-bottom: 0; border-radius: 8px 8px 0 0; border-color: rgba(255, 102, 97, .7); }
.hob-doc__box--article > i { background: var(--coral); color: #fff; }
.hob-doc__box b { display: block; height: 7px; border-radius: 4px; background: rgba(23, 24, 28, .16); }
.hob-doc__box--h b { height: 11px; background: rgba(23, 24, 28, .62); }
.hob-doc__box--h b + b { width: 62%; }
.hob-doc__box--p b:last-child { width: 72%; }
.hob-doc__box--fig { height: 58px; background: linear-gradient(135deg, rgba(115, 214, 255, .28), rgba(184, 163, 255, .28)); border-style: solid; border-color: rgba(23, 24, 28, .12); }
.hob-3d--page { right: -12px; top: -10px; width: 132px; transform: rotate(10deg); }
.hob--doc:hover .hob-3d--page { transform: rotate(4deg) translateY(4px); }

/* Таблицы и формы: календарь на <table> и чекбокс, нарисованный своими стилями (его можно нажать) */
.hob-ui { margin: auto -28px -28px 0; padding: 16px 18px 18px; border-radius: 16px 0 0 0; background: linear-gradient(160deg, #FEFDF9, #F1ECE1); color: var(--ink); box-shadow: 0 20px 34px -22px rgba(0, 0, 0, .8); }
.hob-cal { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; text-align: center; }
.hob-cal th { padding: 0 0 6px; font-weight: 600; color: rgba(23, 24, 28, .5); }
.hob-cal td { height: 28px; border: 1px solid rgba(23, 24, 28, .1); background: #fff; color: rgba(23, 24, 28, .8); }
.hob-cal td:empty { background: transparent; }
.hob-cal td.is-on { background: var(--ink); color: #fff; font-weight: 700; }
.hob-check { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; line-height: 18px; font-weight: 500; cursor: pointer; }
.hob-check__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.hob-check__box { position: relative; flex: none; width: 24px; height: 24px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(23, 24, 28, .3); transition: background .2s, box-shadow .2s; }
.hob-check__box::after { content: ""; position: absolute; left: 8.5px; top: 4.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--spring); }
.hob-check__input:checked + .hob-check__box { background: var(--coral); box-shadow: 0 6px 14px -6px rgba(255, 102, 97, .9); }
.hob-check__input:checked + .hob-check__box::after { transform: rotate(45deg) scale(1); }
.hob-check__input:focus-visible + .hob-check__box { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ================================================================
   Программа: файл index.html. Строки .htp__ln (номер рисует CSS-счётчик), модуль — <details class="htp__block">:
   summary — <section id="m01"><h2>Название</h2>…</section> + «N уроков», внутри — <ol> уроков с платформы и пояснение справа.
   Свёрнутый модуль прибавляет к счётчику скрытые строки (--fold) — номера перескакивают, как при фолдинге в редакторе
   ================================================================ */
.htp { margin-top: 64px; position: relative; overflow: clip; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); background: #15161B; color: #E6E8EC; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.htp__bar { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 12px 0 18px; background: #1E2026; border-bottom: 1px solid rgba(0, 0, 0, .45); }
.htp__dots { flex: none; display: flex; gap: 7px; }
.htp__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.htp__tab { position: relative; display: flex; align-items: center; gap: 9px; align-self: stretch; margin: 0 0 -1px; padding: 0 16px; font: 500 13px/1 var(--mono); color: #fff; background: #15161B; border-right: 1px solid rgba(0, 0, 0, .4); }
.htp__tab::before { content: "5"; display: grid; place-items: center; width: 16px; height: 17px; clip-path: polygon(0 0, 100% 0, 91% 84%, 50% 100%, 9% 84%); background: #E44D26; color: #fff; font: 700 10px/1 var(--font); }
.htp__all { margin-left: auto; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .78); font: 500 13px/1 var(--font); letter-spacing: -.005em; cursor: pointer; transition: background .2s, color .2s; }
.htp__all:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.htp__all:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

.htp__code { counter-reset: ln; padding: 18px 0 20px; font: 400 13.5px/24px var(--mono); tab-size: 2; }
.htp__ln { display: grid; grid-template-columns: 56px 20px minmax(0, 1fr); align-items: start; min-height: 24px; margin: 0; padding-right: 24px; white-space: pre; }
.htp__ln::before { counter-increment: ln; content: counter(ln); grid-column: 1; padding-right: 14px; text-align: right; color: rgba(255, 255, 255, .26); font-variant-numeric: tabular-nums; user-select: none; transition: color .2s; }
.htp__src { grid-column: 3; min-width: 0; }
.htp__text { color: #fff; }

.htp__block { interpolate-size: allow-keywords; }
.htp__sum { grid-template-columns: 56px 20px auto minmax(0, 1fr); cursor: pointer; list-style: none; transition: background .2s; }
.htp__sum::-webkit-details-marker { display: none; }
.htp__sum::marker { content: ""; }
.htp__sum:hover { background: rgba(255, 255, 255, .035); }
.htp__sum:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; border-radius: 4px; }
.htp__name { color: #fff; }
.htp__num { display: none; }
.htp__fold { color: rgba(255, 255, 255, .38); }
.htp__cnt { grid-column: 4; justify-self: start; margin: 2px 0 0 16px; padding: 0 7px; border-radius: 5px; background: rgba(255, 255, 255, .06); font-size: 12px; line-height: 20px; color: rgba(255, 255, 255, .45); white-space: nowrap; transition: color .2s, background .2s; }
.htp__chev { grid-column: 2; display: grid; place-items: center; width: 20px; height: 24px; color: rgba(255, 255, 255, .38); transition: transform .3s var(--spring), color .2s; }
.htp__chev svg { width: 10px; height: 10px; }
.htp__sum:hover .htp__chev { color: #fff; }
.htp__block:not([open]) > .htp__sum::after { content: ""; position: absolute; width: 0; height: 0; counter-increment: ln var(--fold, 0); }
.htp__block[open] > .htp__sum { background: rgba(var(--accent-rgb), .07); }
.htp__block[open] > .htp__sum::before { color: rgb(var(--accent-rgb)); }
.htp__block[open] > .htp__sum .htp__chev { transform: rotate(90deg); color: rgb(var(--accent-rgb)); }
.htp__block[open] > .htp__sum .htp__fold { display: none; }
.htp__block[open] > .htp__sum .htp__cnt { color: rgba(255, 255, 255, .85); background: rgba(var(--accent-rgb), .16); }

.htp__panel { display: grid; grid-template-columns: minmax(0, 640px) minmax(280px, 1fr); gap: 0 28px; align-items: start; padding-right: 24px; }
.htp__col { min-width: 0; }
.htp__lines { min-width: 0; margin: 0; padding: 0; list-style: none; }
.htp__lines .htp__ln { grid-template-columns: 56px 20px minmax(0, 1fr) auto; padding-right: 0; }
.htp__lines .htp__src { padding-left: 6ch; color: rgba(255, 255, 255, .86); white-space: normal; }
.htp__tag { color: rgba(226, 229, 236, .5); }
.htp__pill { grid-column: 4; align-self: center; margin-left: 12px; padding: 0 7px; border-radius: 5px; background: rgba(255, 255, 255, .07); font: 500 11.5px/19px var(--font); color: rgba(255, 255, 255, .6); white-space: nowrap; }
.htp__pill--hw { background: rgba(var(--accent-rgb), .16); color: #FFB3AF; }
.htp__ln--hw .htp__src { color: #fff; }
.htp__doc { position: sticky; top: 96px; max-width: 520px; margin: 4px 0 12px; padding: 2px 0 2px 18px; border-left: 2px solid rgba(var(--accent-rgb), .6); font: 400 15px/22px var(--font); color: rgba(255, 255, 255, .8); white-space: normal; text-wrap: pretty; }
.htp__doc b { font-weight: 600; color: #fff; }

.htp__ln--final { margin-top: 2px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .13), rgba(var(--accent-rgb), 0) 72%); }
.htp__ln--final .htp__src { color: rgba(255, 255, 255, .92); white-space: pre-wrap; }
.htp__ln--final::before { color: rgb(var(--accent-rgb)); }

@media (prefers-reduced-motion: no-preference) {
  .htp__block::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .htp__block[open]::details-content { block-size: auto; }
}

/* ================================================================
   Автор курса — одна полоса: фото, имя и ссылки, связь с флагманом
   ================================================================ */
.hau-sec { padding-top: 0; }
.hau { display: grid; grid-template-columns: 136px minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 28px 32px; padding: 28px 32px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(60% 120% at 0% 0%, rgba(var(--accent-2-rgb), .08), rgba(var(--accent-2-rgb), 0) 70%), var(--graphite); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); }
.hau__photo { width: 136px; height: 136px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .7), 0 20px 40px -18px rgba(0, 0, 0, .8); }
.hau__eyebrow { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .55); }
.hau__name { margin-top: 2px; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hau__bio { margin-top: 8px; max-width: 640px; font-size: 16px; line-height: 24px; color: var(--muted-2); text-wrap: pretty; }
.hau__links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.hau__link { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.hau__link:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); }
.hau__ico { flex: none; }
.hau__flag { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .06); color: #fff; text-decoration: none; transition: border-color .2s, background .2s; }
.hau__flag:hover { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); }
.hau__flag-text { font-size: 16px; line-height: 24px; text-wrap: pretty; }
.hau__flag-go { font-size: 15px; font-weight: 600; color: #FFB3AF; white-space: nowrap; }
.hau__flag:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ================================================================
   Адаптив
   ================================================================ */
@media (min-width: 1800px) {
  .hero--html .hhc { --hhc-pad: 64px; --hhc-top: 56px; --hhc-inset: 48px; min-height: 690px; }
  .hhc__text { max-width: 500px; }
  .hhc-site { padding: 16px 32px 22px; }
  .hhc-site__h { margin: 16px 0 14px; font-size: 23px; line-height: 27px; }
  .hhc-card__img { max-height: 136px; }
  .hhc-card__title { font-size: 14px; line-height: 18px; }
  .hhc-dom, .hhc-css { font-size: 13px; line-height: 23px; }
  .ob--html { grid-auto-rows: minmax(340px, auto); }
}

@media (max-width: 1439px) {
  .hero--html .hhc { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); }
  .hhc__panes { grid-template-columns: minmax(0, 1fr); }
  .hhc-dom { display: none; }
  .htp__panel { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); }
  .hau { grid-template-columns: 120px minmax(0, 1fr); }
  .hau__photo { width: 120px; height: 120px; }
  .hau__flag { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}

@media (max-width: 1279px) {
  .hero--html .hhc { --hhc-pad: 40px; --hhc-top: 36px; --hhc-inset: 32px; --hhc-3d: 150px; min-height: 596px; }
  .hhc__copy { padding-right: 28px; }
  .hhc__status { gap: 10px 20px; }
  .hhc__title { margin-top: 24px; font-size: 40px; }
  .hhc__text { margin-top: 20px; font-size: 16px; line-height: 24px; }
  .hhc__shields { right: -22px; }
  .hhc__tabs span:nth-child(n+3) { display: none; }
  .hhc-site { padding: 14px 18px 18px; }
  .hhc-site__h { margin: 14px 0 12px; font-size: 19px; line-height: 23px; }
  .hhc-card__title { padding: 2px 10px 10px; font-size: 12px; line-height: 15px; }
  .hhc-card__date { padding: 8px 10px 0; font-size: 10.5px; }

  .ob--html { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .ob--html .ob-card--wide { grid-column: 1 / -1; min-height: 320px; }
  .ob--html .hob--doc, .ob--html .hob--forms { min-height: 320px; }
}

@media (max-width: 1023px) {
  .hero--html .hhc { --hhc-3d: 150px; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hhc__copy { padding: 40px 40px 0; }
  .hhc__title { margin-top: 28px; font-size: 52px; }
  .hhc__text { max-width: 560px; font-size: 17px; line-height: 26px; }
  .hhc__bottom { margin-top: 0; padding-top: 32px; }
  .hhc__stage { display: flex; padding: 56px 24px 0; }
  .hhc__window { position: relative; inset: auto; flex: 1 1 auto; min-width: 0; height: 600px; }
  .hhc__shields { top: -46px; right: -12px; }
  .hhc__tabs span:nth-child(n+3) { display: flex; }
  .hhc__panes { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
  .hhc-dom { display: block; }
  .htp__panel { grid-template-columns: minmax(0, 1fr); }
  .htp__doc { position: static; margin: 6px 24px 14px 76px; }
  .hob--fit, .hob--mag { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .hob-shot { margin: 0 -28px -28px; }
  .hob-shot__cap { margin: 0 28px 12px; }
  .hob-shot__win { border-radius: 12px 12px 0 0; }
}

@media (max-width: 767px) {
  .hero--html .hhc { --hhc-3d: 108px; border-radius: 20px; }
  .hhc__copy { padding: 24px 20px 0; }
  .hhc__status { gap: 8px 12px; }
  .hhc__badge { height: 36px; padding: 0 12px; gap: 8px; font-size: 14px; }
  .hhc__start { font-size: 14px; }
  .hhc__title { margin-top: 22px; font-size: 40px; }
  .hhc__text { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .hhc__bottom { padding-top: 28px; gap: 20px; }
  .hhc__stage { padding: 60px 10px 0; }
  .hhc__window { height: auto; border-radius: 14px 14px 0 0; }
  .hhc__shields { top: 0; right: -6px; }
  .hhc__bar { height: 44px; gap: 6px; padding: 0 10px; }
  .hhc__dots { gap: 5px; margin-right: 2px; }
  .hhc__dots i { width: 9px; height: 9px; }
  .hhc__arrows { display: none; }
  .hhc__url { height: 28px; padding: 0 10px; gap: 6px; font-size: 12px; }
  .hhc__page { flex: none; height: 300px; }
  .hhc-site { padding: 12px 14px 16px; }
  .hhc-site__nav { padding: 0 0 10px; }
  .hhc-site__note { display: none; }
  .hhc-site__h { margin: 12px 0 10px; font-size: 17px; line-height: 21px; }
  .hhc-card__title { padding: 2px 10px 10px; font-size: 12px; line-height: 15px; }
  .hhc-card__date { padding: 8px 10px 0; font-size: 12px; line-height: 15px; }
  .hhc-hl__tip { font-size: 12px; }
  /* цена под кнопкой — на графите светлая, как на страницах JS, ИИ и WordPress */
  .hero--html .hero-price { color: #fff; }
  .hero--html .hero-price__text { color: rgba(255, 255, 255, .72); text-decoration-color: rgba(255, 255, 255, .32); }
  .hero--html .hero-price b { color: #fff; }
  .hhc__devtools { height: auto; }
  .hhc__tabs { height: 30px; font-size: 12px; }
  .hhc__tabs span { padding: 0 9px; }
  .hhc__tabs span:nth-child(n+3) { display: none; }
  .hhc__panes { grid-template-columns: minmax(0, 1fr); }
  .hhc-dom { display: none; }
  .hhc-css { padding: 8px 12px 12px; font-size: 12px; line-height: 22px; }
  /* строка объявления — label: нажимается целиком, высота 44 px под палец */
  .hhc-css__decl { display: block; min-height: 44px; padding: 11px 0 11px 26px; text-indent: -26px; white-space: normal; }
  .hhc-css__decl .hhc-css__on { margin-right: 10px; vertical-align: -3px; }
  .hhc-css__val { white-space: nowrap; }
  .hhc-css__file { font-size: 12px; }
  .hhc__page { overscroll-behavior: auto; }
  .hhc-css__on { width: 16px; height: 16px; }
  .hhc-css__on:checked::after { left: 4.5px; top: 1.5px; }
  .hhc-tools { padding-top: 12px; gap: 8px; }
  .hhc-seg__btn { min-width: 44px; height: 44px; padding: 0 10px; font-size: 13px; }
  .hhc-gap { flex: 1 1 100%; height: 44px; font-size: 13px; }
  .hhc-gap__range { flex: 1 1 auto; width: auto; height: 44px; }

  .ob--html { grid-template-columns: minmax(0, 1fr); }
  .ob--html .ob-card--wide, .ob--html .hob--doc, .ob--html .hob--forms { min-height: 0; }
  .hob-shot { margin: 0 -20px -22px; }
  .hob-shot__cap { margin: 0 20px 10px; font-size: 12px; }
  .hob-chips { display: none; }
  .hob-shot__tip { height: 22px; font-size: 12px; }
  .hob-shot__tip span { font-size: 12px; padding: 2px 5px; }
  .hob-burger { width: 50%; padding: 30px 10px 10px; }
  .hob-burger__x { top: 8px; right: 10px; width: 14px; height: 14px; }
  .hob-burger__x::before, .hob-burger__x::after { top: 6px; width: 14px; }
  .hob-burger__item { padding: 3px 0; font-size: 12px; line-height: 15px; white-space: nowrap; }
  .hob-burger__cta { font-size: 12px; line-height: 15px; }
  .hob-doc { padding: 16px 14px 0; }
  .hob-doc__box { gap: 5px; padding: 14px 8px 8px; }
  .hob-doc__box--article { gap: 10px; padding: 16px 10px 12px; }
  .hob-doc__box > i { font-size: 12px; }
  .hob-doc__box--article > .hob-doc__box--p:last-child { display: none; }
  .hob-doc__box--fig { height: 40px; }
  .hob--doc .ob-card__copy { padding-right: 76px; }
  .hob-doc, .hob-ui { margin: 18px -20px -22px 0; }
  .hob-3d--page { width: 116px; right: -24px; top: -20px; }
  .hob-cal td { height: 26px; }
  .hob-check { min-height: 44px; margin-top: 8px; }

  .htp { margin-top: 32px; border-radius: 20px; }
  .htp__bar { height: 44px; gap: 10px; padding: 0 10px 0 14px; }
  .htp__dots { gap: 5px; }
  .htp__dots i { width: 9px; height: 9px; }
  .htp__tab { padding: 0 12px; font-size: 12px; }
  .htp__all { height: 30px; padding: 0 10px; font-size: 12.5px; }
  .htp__all { position: relative; }
  .htp__all::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
  .htp__code { padding: 12px 0 14px; font-size: 13px; line-height: 22px; }
  .htp__ln { grid-template-columns: 34px 16px minmax(0, 1fr); min-height: 22px; padding-right: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .htp__ln::before { padding-right: 8px; }
  .htp__chev { width: 16px; height: 22px; }
  .htp__src { padding-left: 2ch; text-indent: -2ch; }
  /* строка модуля: номер и название человеческим текстом, служебный синтаксис <section>/<h2> прячется (он aria-hidden и в разметке); строка — 44 px под палец */
  .htp .htp__sum { grid-template-columns: 34px 16px minmax(0, 1fr) auto; align-items: center; min-height: 44px; padding: 6px 12px 6px 0; }
  .htp .htp__sum .htp__syn, .htp .htp__sum .htp__fold { display: none; }
  .htp .htp__sum .htp__src { padding-left: 0; text-indent: 0; white-space: normal; overflow-wrap: normal; font-family: var(--font); font-size: 15px; line-height: 21px; font-weight: 600; }
  .htp__num { display: inline; margin-right: 8px; font: 500 12px/1 var(--mono); color: rgba(255, 255, 255, .4); }
  .htp__block[open] .htp__num { color: rgb(var(--accent-rgb)); }
  .htp .htp__sum .htp__cnt { grid-column: 4; margin: 0 0 0 10px; font-size: 12px; }
  .htp__lines .htp__ln { grid-template-columns: 34px 16px minmax(0, 1fr) auto; }
  .htp__lines .htp__src { padding-left: 0; text-indent: 0; font-family: var(--font); font-size: 14px; line-height: 21px; padding-top: 1px; padding-bottom: 1px; }
  .htp__lines .htp__tag, .htp__ln--syn { display: none; }
  .htp__pill { margin-left: 8px; font-size: 12px; }
  .htp__ln--final .htp__syn { display: none; }
  .htp__ln--final .htp__src { padding-left: 0; text-indent: 0; font-family: var(--font); font-size: 14px; line-height: 21px; }
  .htp__doc { margin: 8px 12px 14px 50px; font-size: 14px; line-height: 21px; }

  .hau { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 20px; }
  .hau__photo { width: 72px; height: 72px; align-self: start; }
  .hau__eyebrow { font-size: 13px; line-height: 18px; }
  .hau__name { font-size: 22px; line-height: 28px; }
  .hau__bio { grid-column: 1 / -1; margin-top: 0; font-size: 14px; line-height: 21px; }
  .hau__body { display: contents; }
  .hau__links { grid-column: 1 / -1; margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .hau__link { justify-content: center; font-size: 14px; }
  .hau__flag { grid-column: 1 / -1; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border-radius: 16px; }
  .hau__flag-text { font-size: 14px; line-height: 20px; }
  .hau__flag-go { font-size: 14px; min-height: 24px; }
  .hau-sec { padding-bottom: 40px; }
}
/* текст карточки автора на телефоне: имя и подпись рядом с фото, остальное — во всю ширину */
@media (max-width: 767px) {
  .hau__eyebrow, .hau__name { grid-column: 2; }
  .hau__eyebrow { align-self: end; }
  .hau__name { align-self: start; margin-top: -12px; }
}

@media (max-width: 479px) {
  .hhc__title { font-size: clamp(30px, 8.6vw, 36px); }
  .hhc__page { height: 250px; }
}
@media (max-width: 359px) {
  .hero--html .hhc { --hhc-3d: 88px; }
  .hhc__stage { padding-top: 48px; }
  .hhc__dots { display: none; }
  .hhc-seg__btn { min-width: 36px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hhc__shields { transform: none; }
  .hhc.is-visible .hhc__shields img { animation: none; }
  .hob-shot__win, .hob-3d--page, .hob-check__box, .hob-check__box::after, .htp__chev { transition: none; }
  .hob:hover .hob-shot__win, .hob--doc:hover .hob-3d--page { transform: none; }
}
