/* Общие стили курса «Эффективное наставничество»: визуальный код Про.К (tokens.css). */
@font-face { font-family: "DrukTextWideTT"; font-style: normal; font-weight: 500; font-display: block; src: url("/fonts/DrukTextWide-Medium.woff2") format("woff2"); }
/* Шрифты: preload в <head> всех страниц + кэш /fonts/ immutable – при переходах шрифт берётся из кэша без мигания.
   Druk – block: широкий заголовочный, подменить Arial по метрикам нельзя (ширина другая), файл предзагружен – окно невидимости короткое.
   Inter – swap с подогнанным по метрикам Arial («Inter fallback»), чтобы при первой загрузке строки не прыгали. */
@font-face { font-family: "Inter fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/Inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/Inter-latin.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--prok-deep); color: var(--prok-white); font: 16px/1.55 var(--prok-body); }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--prok-display); font-weight: 500; font-synthesis: none; letter-spacing: -.035em; }
h1 em, h2 em { font-style: normal; color: var(--prok-blue-heading-dark); }
.on-light h2 em, .on-light h1 em { color: var(--prok-blue-heading-light); }
:focus-visible { outline: 3px solid var(--prok-yellow); outline-offset: 2px; }
.on-light :focus-visible { outline-color: #2f6573; }
.skip { position: absolute; left: -9999px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--prok-yellow); color: var(--prok-ink); padding: 8px 14px; border-radius: 99px; }

/* Шапка */
/* T10 (24.11): отступ кнопки и логотипа от верхнего края карточки не меньше бокового: высота = элемент 44 + 2×20, сбоку 20 */
:root { --header-h: 84px; }
.site-header { max-width: 1580px; height: var(--header-h); box-sizing: border-box; margin: 10px auto 0; padding: 0 20px; display: flex; align-items: center; gap: 32px; border: 1px solid #354244; border-radius: 36px; background: #20292b; position: relative; z-index: 5; }
.brand { width: 75px; flex: none; }
.brand img { width: 100%; height: auto; }
.header-label { font-size: 13px; color: #b6c9cd; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 25px; border-radius: 99px; background: var(--prok-blue); color: var(--prok-deep); text-decoration: none; font: 600 13px/1.2 var(--prok-body); letter-spacing: .01em; }
.header-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 22px; border-radius: 99px; border: 1.5px solid var(--prok-blue); background: transparent; color: var(--prok-white); font: 600 13px/1.2 var(--prok-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
/* Шапка и первый блок страницы – одна плашка (О1): шапка без нижнего края, блок без верхнего.
   Внутри плашки нет ни рамок, ни полос другого оттенка – один цвет #1c2223 (замечание 20.11). */
.site-header.is-joined { background: #1c2223; border-color: #1c2223; border-bottom: 0; border-radius: 36px 36px 0 0; }
.site-header.is-joined + main > .joined, .site-header.is-joined + .lesson-bar.joined { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
/* Иллюстрации набора VISUAL-CODE – целым кадром на графитовой подложке, без кропа (О4). */
.art-card { background: none; } /* фон у иллюстраций прозрачный, подложку не рисуем (23.11) */
.art-card img { display: block; width: 100%; height: auto; }

/* Кнопки и подписи */
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 33px; border: 0; border-radius: 99px; background: var(--prok-yellow); color: var(--prok-ink); font: 600 15px/1.2 var(--prok-body); letter-spacing: .01em; text-decoration: none; }
.primary-button[disabled] { opacity: .6; cursor: progress; transform: none; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 99px; border: 1.5px solid #5b91a0; background: transparent; color: #2f5f6b; font: 600 15px/1.2 var(--prok-body); text-decoration: none; }
.eyebrow, .section-kicker, .form-overline { font-size: 13px; font-weight: 700; color: #a9cbd2; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.eyebrow-line { display: block; width: 23px; height: 3px; background: var(--prok-yellow); }

/* Первый экран */
.hero { max-width: 1580px; min-height: calc(100svh - 120px); margin: 12px auto 0; padding: clamp(24px, 4vh, 56px) 4.5%; position: relative; isolation: isolate; overflow: hidden; border-radius: 38px; background: radial-gradient(circle at 75% 45%, #28434a 0, #1b292d 30%, #1c2223 63%); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4%; align-items: start; align-content: center; }
.hero-copy { position: relative; z-index: 2; min-width: 0; max-width: 810px; }
.hero h1 { text-transform: uppercase; font-size: clamp(34px, 3.3vw, 54px); line-height: 1.08; margin-bottom: 20px; max-width: 800px; }
.hero-subtitle { color: var(--prok-yellow); font: 500 clamp(17px, 1.65vw, 23px)/1.3 var(--prok-display); max-width: 650px; margin-bottom: 10px; }
.hero-course { font-size: 19px; line-height: 1.45; max-width: 630px; color: #d6e0e0; margin-bottom: 24px; }
.hero-hint { font-size: 13px; color: #aec0c3; margin: 8px 0 0; }
.hero-art { margin-top: 38px; pointer-events: none; }

/* Светлые секции */
.on-light { background: var(--prok-white); color: var(--prok-ink); }
.story-section { max-width: 1580px; margin: 14px auto 0; padding: 95px 4.5%; display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 5%; align-items: center; border-radius: 38px; overflow: hidden; }
.story-visual img { width: 100%; height: auto; border-radius: 24px; }
.story-copy { max-width: 950px; }
.on-light .section-kicker { color: #5d8f99; margin-bottom: 16px; }
.story-copy h2, .registration-copy h2 { font-size: clamp(30px, 2.75vw, 43px); line-height: 1.15; text-transform: uppercase; margin-bottom: 29px; }
.story-copy p:not(.section-kicker) { max-width: 780px; font-size: 18px; line-height: 1.55; color: #3c4749; }
.story-copy p:last-child { margin-bottom: 0; }

/* Регистрация */
.registration-section { max-width: 1580px; margin: 14px auto 36px; padding: 88px 4.5% 105px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 5%; align-items: start; border-radius: 38px; background: radial-gradient(circle at 8% 8%, #2a444b, #1c2629 52%, #151d1f); scroll-margin-top: 12px; }
.registration-copy { padding-top: 35px; }
.registration-copy h2 { max-width: 540px; }
.registration-copy > p:not(.section-kicker) { font-size: 18px; color: #ccd8da; line-height: 1.65; max-width: 570px; }
.registration-foot { margin-top: 65px; display: grid; grid-template-columns: 32px auto; column-gap: 14px; row-gap: 3px; max-width: 420px; }
.tiny-line { height: 2px; background: var(--prok-yellow); margin-top: 12px; }
.registration-foot strong { font: 500 22px var(--prok-display); }
.registration-foot > span:last-child { grid-column: 2; color: #aec2c5; font-size: 15px; }
.form-card { padding: 36px 38px 32px; border: 1px solid #d7e5e7; border-radius: 30px; background: #f8faf9; color: var(--prok-ink); box-shadow: 0 25px 80px #09101255; min-width: 0; }
.form-overline { color: #5d8791; margin-bottom: 2px; font-size: 11px; }
.form-heading { margin-bottom: 27px; }
.form-heading h3 { font-size: 22px; line-height: 1.1; margin: 0; text-transform: uppercase; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field-grid label { display: block; font-size: 14px; font-weight: 700; min-width: 0; }
.field-grid label span.req, .check-row b { color: #3f7a86; }
.field-grid label.wide { grid-column: 1 / -1; }
.field-grid input, .single-field input { width: 100%; height: 49px; margin-top: 7px; padding: 0 14px; border: 1px solid #b9c9cc; border-radius: 12px; background: #fff; color: var(--prok-ink); font-size: 16px; outline: none; }
.field-grid input:focus, .single-field input:focus { border-color: #3f7a86; box-shadow: 0 0 0 3px #8bb9c466; }
.field-grid input::placeholder, .single-field input::placeholder { color: #7d8b8d; }
input[aria-invalid="true"] { border-color: #b3261e !important; }
.err { display: block; min-height: 0; margin-top: 5px; font-size: 13px; font-weight: 500; color: #b3261e; }
.err:empty { display: none; }
.consents { border: 0; padding: 0; margin: 27px 0 24px; min-width: 0; }
.consents legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0 6px; border-top: 1px solid #e0e8e9; font-size: 13px; line-height: 1.45; cursor: pointer; }
.check-item .err { margin: 0 0 8px 28px; }
.check-row input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #2f6573; }
.check-row a { color: #2d6270; text-decoration: underline; }
.form-submit { width: 100%; }
.form-note { font-size: 12px; color: #5f6e71; margin: 14px 0 0; }
.form-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #fbe9e7; color: #8c1d18; font-size: 14px; }

/* Страница входа */
.page-narrow { max-width: 640px; margin: 14px auto 36px; padding: 56px 5% 60px; border-radius: 38px; }
.page-narrow h1 { font-size: clamp(26px, 5.4vw, 40px); line-height: 1.12; text-transform: uppercase; margin-bottom: 18px; }
.page-narrow p { font-size: 17px; color: #3c4749; }
.single-field { display: block; font-size: 14px; font-weight: 700; margin: 24px 0 18px; }
.page-narrow .primary-button { width: 100%; }
.notice { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: #e8f0f1; color: #26363a; font-size: 15px; }
.notice a { color: #25535f; font-weight: 700; }

/* Страница курса */
.course-hero { max-width: 1580px; margin: 12px auto 0; padding: clamp(36px, 5vw, 72px) 4.5%; position: relative; isolation: isolate; overflow: hidden; border-radius: 38px; background: radial-gradient(circle at 80% 40%, #28434a 0, #1b292d 32%, #1c2223 65%); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4%; align-items: center; }
.course-hero h1 { font-size: clamp(28px, 3.3vw, 50px); line-height: 1.1; text-transform: uppercase; margin-bottom: 22px; }
.course-hero p.lead { font-size: 17px; line-height: 1.6; color: #d3dfe0; max-width: 720px; }
.course-hero .hello { color: #a9cbd2; font-size: 14px; margin-bottom: 14px; }
.course-art { min-width: 0; }
.progress-block { margin: 28px 0 22px; max-width: 520px; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.progress-label strong { font: 500 26px var(--prok-display); letter-spacing: -.02em; }
.progress-bar { height: 10px; border-radius: 99px; background: #2c3a3d; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 100%; background: var(--prok-yellow); transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-modal) var(--ease-in-out); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.lead-band { max-width: 1580px; margin: 8px auto 0; padding: 18px 4.5%; border-radius: 26px; background: #20292b; border: 1px solid #354244; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.lead-band p { margin: 0; color: #c3d3d5; font-size: 15px; }
.lead-band .lead-button { color: var(--prok-white); border-color: var(--prok-yellow); }
.lessons-section { max-width: 1580px; margin: 8px auto 0; padding: clamp(32px, 4vw, 64px) 4.5%; border-radius: 38px; }
.lessons-section h2 { font-size: clamp(24px, 2.6vw, 36px); text-transform: uppercase; margin-bottom: 22px; }
.lesson-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.lesson-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 18px 22px; border: 1px solid #d3e0e2; border-radius: 22px; background: #eaf1f2; color: inherit; text-decoration: none; transition: border-color var(--dur-fast) ease; }
.lesson-card.is-done { background: #e3f0ea; border-color: #b9d6c8; }
.lesson-card.is-soon { opacity: .7; }
.lesson-num { font: 500 14px var(--prok-display); color: #4d8493; letter-spacing: .02em; text-transform: uppercase; }
.lesson-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.lesson-state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #3c4d51; white-space: nowrap; }
.state-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #5b91a0; display: inline-block; flex: none; }
.is-started .state-dot { background: linear-gradient(90deg, #5b91a0 50%, transparent 50%); }
.is-done .state-dot { background: #2e7d5b; border-color: #2e7d5b; position: relative; }
.is-done .state-dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-soon .state-dot { border-style: dashed; border-color: #8a9a9d; }
.lessons-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.telegram-note { max-width: 1580px; margin: 8px auto 0; padding: 26px 4.5%; border-radius: 26px; background: #1c2426; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }
.telegram-note { justify-content: flex-start; }
.telegram-note p { margin: 0; color: #cfdcde; max-width: 720px; flex: 1 1 280px; }
.tg-icon { flex: none; width: 44px; height: 44px; }
.tg-button, .lesson-nav .secondary-button { color: var(--prok-white); border-color: var(--prok-blue); }

/* Юридические заглушки */
.legal { max-width: 820px; margin: 14px auto 36px; padding: 48px 5% 56px; border-radius: 38px; }
.legal h1 { font-size: clamp(24px, 5vw, 36px); line-height: 1.15; text-transform: uppercase; }
.legal p { font-size: 17px; color: #3c4749; }
.placeholder { padding: 14px 16px; border-radius: 14px; background: #fff7c2; color: #4a4500; font-weight: 600; }


@media (max-width: 1050px) {
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 28px; }
  .hero-art { margin-top: 0; max-width: 640px; }
  .story-section { grid-template-columns: 1fr; }
  .story-content { order: 1; }
  .story-visual { order: 2; max-width: 650px; }
  .registration-section { grid-template-columns: 1fr 1.1fr; gap: 3%; }
  .form-card { padding: 29px; }
  .registration-copy > p:not(.section-kicker) { font-size: 16px; }
  .course-hero { grid-template-columns: 1fr; }
  .course-art { max-width: 520px; }
}
@media (max-width: 760px) {
  :root { --header-h: 76px; } /* кнопка 40 + 2×18, сбоку 18 */
  .site-header { height: var(--header-h); margin: 8px 8px 0; padding: 0 18px; border-radius: 24px; gap: 14px; }
  .site-header.is-joined { border-radius: 24px 24px 0 0; }
  .header-button { padding: 0 15px; min-height: 40px; font-size: 12px; }
  .art-card { border-radius: 18px; }
  .brand { width: 62px; }
  .header-label { display: none; }
  .header-link { padding: 0 15px; min-height: 40px; font-size: 12px; }
  .hero { margin: 8px 8px 0; padding: 32px 18px 18px; border-radius: 26px; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(22px, 6.1vw, 40px); line-height: 1.1; max-width: 620px; }
  .hero-subtitle { font-size: 17px; }
  .hero-course { font-size: 16px; max-width: 560px; }
  .story-section { margin: 8px 8px 0; padding: 36px 22px 40px; display: flex; flex-direction: column; align-items: stretch; border-radius: 26px; }
  .story-copy h2, .registration-copy h2 { font-size: clamp(22px, 6vw, 36px); }
  .story-copy p:not(.section-kicker) { font-size: 16px; }
  .registration-section { margin: 8px 8px 20px; padding: 40px 18px; display: block; border-radius: 26px; }
  .registration-copy { padding: 0; }
  .registration-foot { margin: 25px 0 30px; }
  .form-card { padding: 24px 18px; border-radius: 23px; }
  .page-narrow, .legal { margin: 8px; padding: 36px 20px 40px; border-radius: 26px; }
  .course-hero { margin: 8px 8px 0; padding: 32px 22px; border-radius: 26px; }
  .course-hero h1 { font-size: clamp(22px, 6.2vw, 36px); }
  .lead-band, .telegram-note { margin: 8px 8px 0; border-radius: 22px; padding: 18px 22px; }
  .lessons-section { margin: 8px 8px 0; padding: 30px 16px; border-radius: 26px; }
  .lesson-card { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; gap: 4px; }
  footer { padding: 12px 23px 26px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(19px, 6vw, 28px); overflow-wrap: anywhere; }
  .primary-button, .secondary-button { width: 100%; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid label.wide { grid-column: auto; }
  .form-heading h3 { font-size: 19px; }
  .check-row { font-size: 13px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .site-header { margin-top: 8px; }
  .hero { min-height: calc(100svh - 80px); padding-top: 22px; padding-bottom: 22px; }
  .hero h1 { font-size: clamp(32px, 3vw, 46px); }
  .hero-course { font-size: 17px; margin-bottom: 18px; }
  .hero-subtitle { font-size: 19px; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .hero { padding-top: 24px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero-course { font-size: 15px; line-height: 1.35; margin-bottom: 16px; }
  .hero .primary-button { min-height: 48px; }
}

/* G04: первый экран – иллюстрация крупно справа, с вылетом за правый край, без карточки; блок ниже по высоте. */
.hero { min-height: min(calc(100svh - 120px), 720px); grid-template-columns: minmax(0, 1fr); }
.hero-art.hero-bleed { position: absolute; z-index: 1; top: 50%; right: -9%; width: 62%; margin: 0; transform: translateY(-50%); }
.hero-bleed img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero .hero-copy { max-width: min(760px, 58%); }
/* G05: «Продолжить обучение» – вторичная кнопка на тёмном фоне. */
.returning { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.returning-button { color: var(--prok-white); border-color: var(--prok-blue); }
@media (max-width: 1050px) {
  .hero .hero-copy { max-width: none; }
  .hero-art.hero-bleed { position: relative; top: auto; right: auto; transform: none; width: auto; max-width: none; margin: 0 -4.5% 0 18%; }
  .hero-bleed img { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 760px) {
  .hero-art.hero-bleed { margin: 0 -18px 0 8%; }
  .returning-button { width: auto; }
}

/* Замечания 20.11 (вторая волна). */
/* Шапка и первый экран – одна карточка: шапка прозрачная поверх градиента первого экрана, стыка нет. */
.site-header.is-overlay { background: transparent; border-color: transparent; margin-bottom: calc(-1 * var(--header-h)); }
.site-header.is-overlay + main > .joined { margin-top: 10px; border-radius: 38px; }
.site-header.is-overlay + main > .hero.joined { padding-top: calc(var(--header-h) + clamp(16px, 3vh, 40px)); }
.site-header.is-overlay + main > .course-hero.joined { padding-top: calc(var(--header-h) + clamp(20px, 3vw, 48px)); }
/* Страница курса: призыв «Обсудить программу» – нижняя строка той же карточки. */
.course-hero .lead-band { grid-column: 1 / -1; max-width: none; margin: 8px 0 0; padding: 22px 0 0; border: 0; border-radius: 0; background: transparent; }
/* Выделенный абзац про производственные компании. */
.course-hero p.lead.lead-note { margin: 4px 0 0; padding: 16px 20px; border-left: 4px solid var(--prok-yellow); border-radius: 4px 16px 16px 4px; background: #ffffff0f; color: #e4ecec; }
/* Картинка первого экрана – в скруглённой карточке справа, от шапки до низа первого экрана. */
.hero-art.hero-bleed { top: calc(var(--header-h) + 16px); bottom: 24px; right: 24px; width: 44%; transform: none; }
.hero-art.hero-bleed img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; -webkit-mask-image: none; mask-image: none; }
.hero .hero-copy { max-width: min(760px, 52%); }
/* Единый стиль кнопок: жирно и заглавными (кроме служебных кнопок кабинета). */
body:not(.admin) :is(.primary-button, .secondary-button, .header-link, .header-button, .fs-btn) { font-family: var(--prok-body); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; text-align: center; padding-top: 10px; padding-bottom: 10px; }
body:not(.admin) :is(.header-link, .header-button) { font-size: 12px; }
/* Фокус: мышью – без рамки, с клавиатуры – скруглённое кольцо по форме кнопки. */
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
:is(.primary-button, .secondary-button, .header-link, .header-button, .fs-btn):focus-visible { outline-offset: 3px; border-radius: 99px; }
@media (max-width: 1050px) {
  .hero-art.hero-bleed { position: relative; top: auto; bottom: auto; right: auto; width: auto; margin: 0; }
  .hero-art.hero-bleed img { height: auto; object-fit: initial; }
  .hero .hero-copy { max-width: none; }
  .course-hero { row-gap: 24px; }
}
@media (max-width: 760px) {
  .site-header.is-overlay { margin-bottom: calc(-1 * var(--header-h)); }
  .site-header.is-overlay + main > .joined { margin-top: 8px; border-radius: 26px; }
  .site-header.is-overlay + main > .hero.joined, .site-header.is-overlay + main > .course-hero.joined { padding-top: calc(var(--header-h) + 24px); }
  .hero-art.hero-bleed { margin: 0; }
  .course-hero .lead-band { padding: 18px 0 0; }
}

/* T05: отклик кнопок (бриф 6а, ДИЗАЙН-АУДИТ находки 4–7, 9, 12). Только transform и цвет, длительности – токены tokens.css.
   Нажатие – scale(.97) на всех устройствах; hover (подъём и смена фона) – только мышью, чтобы на телефоне кнопка не «залипала». */
:is(.primary-button, .secondary-button, .header-link, .header-button, .fs-btn, .offer-x, .lb-btn) {
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
:is(.primary-button, .secondary-button, .header-link, .header-button, .fs-btn, .offer-x, .lb-btn):active:not([disabled]) {
  transform: scale(var(--scale-press)); transition-duration: var(--dur-press);
}
@media (hover: hover) and (pointer: fine) {
  :is(.header-link, .primary-button):not([disabled]):hover { transform: translateY(-2px); }
  :is(.header-link, .primary-button):not([disabled]):active { transform: translateY(-2px) scale(var(--scale-press)); }
  .primary-button:not([disabled]):hover { background: #f0ec22; }
  .secondary-button:hover { background: #e3eeef; }
  .header-button:hover, .lead-band .lead-button:hover, .tg-button:hover, .lesson-nav .secondary-button:hover, .returning-button:hover { background: #2a3638; }
  a.lesson-card:hover { border-color: #5b91a0; }
}
/* Меньше движения: без сдвигов и масштаба, смена цвета остаётся (находка 9 – точечно, а не «выключить всё»). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :is(.primary-button, .secondary-button, .header-link, .header-button, .fs-btn, .offer-x, .lb-btn, .lf-submit) { transform: none !important; }
  .progress-bar span { transition: none; }
}

/* T07: плавные поп-апы (.offer-dialog), форма заявки (.lf-dialog) и шторка оглавления (.sheet).
   Открытие – анимация на [open]; закрытие – класс .is-closing (ставит dialogMotion в api.js), dialog.close() после animationend.
   Только opacity/transform; reduced-motion – только прозрачность. */
@keyframes dm-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dm-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes dm-pop-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes dm-pop-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.96); } }
@keyframes dm-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes dm-sheet-out { from { transform: translateY(0); } to { transform: translateY(100%); } }
:is(.offer-dialog, .lf-dialog, .sheet)[open]::backdrop { animation: dm-fade-in var(--dur-modal) var(--ease-out) both; }
:is(.offer-dialog, .lf-dialog, .sheet).is-closing::backdrop { animation: dm-fade-out var(--dur-modal-close) var(--ease-out) both; }
.offer-dialog[open] .offer-card, .lf-dialog[open] .lf-body { animation: dm-pop-in var(--dur-modal) var(--ease-out) both; }
.offer-dialog.is-closing .offer-card, .lf-dialog.is-closing .lf-body { animation: dm-pop-out var(--dur-modal-close) var(--ease-out) both; }
.lf-dialog[open] .lf-close { animation: dm-fade-in var(--dur-modal) var(--ease-out) both; }
.lf-dialog.is-closing .lf-close { animation: dm-fade-out var(--dur-modal-close) var(--ease-out) both; }
.sheet[open] { animation: dm-sheet-in var(--dur-sheet) var(--ease-sheet) both; }
.sheet.is-closing { animation: dm-sheet-out var(--dur-modal-close) var(--ease-sheet) both; }
:is(.offer-dialog, .lf-dialog, .sheet).is-closing { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .offer-dialog[open] .offer-card, .lf-dialog[open] .lf-body, .sheet[open] { animation-name: dm-fade-in; }
  .offer-dialog.is-closing .offer-card, .lf-dialog.is-closing .lf-body, .sheet.is-closing { animation-name: dm-fade-out; }
}

/* T08: скелетоны страницы курса до ответа /api/me (рецепт transitions-dev 14, вариант CSS).
   Блоки повторяют размеры содержимого – вёрстка не прыгает. Блик – transform, цикл 1.4 с linear. */
.skel { position: relative; display: inline-block; vertical-align: middle; height: .9em; border-radius: 8px; overflow: hidden; background: #2c3a3d; }
.on-light .skel { background: #d6e3e5; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff1f, transparent); transform: translateX(-100%); animation: skel-shimmer 1.4s linear infinite; }
.on-light .skel::after { background: linear-gradient(90deg, transparent, #ffffff99, transparent); }
@keyframes skel-shimmer { to { transform: translateX(100%); } }
.skel-hello { width: 190px; }
.skel-count { width: 3.4em; height: .8em; }
.skel-num { width: 64px; }
.skel-title { width: min(520px, 100%); }
.skel-state { width: 86px; }
.lesson-card.is-skel .lesson-title { display: block; }
/* Названия на узком экране переносятся на 2–3 строки – столько же строк и у скелетона (строка = 1.35em) */
.skel-l2, .skel-l3 { display: none; }
@media (max-width: 1050px) { .lesson-card.is-skel .skel-title { display: block; margin: .225em 0; } .skel-l3 { display: none !important; } .skel-l2 { width: 60%; } }
@media (max-width: 760px) { .lesson-card.is-skel .skel-l3 { display: block !important; width: 40%; } }
/* Появление содержимого: только прозрачность, ≤240 мс */
@keyframes skel-reveal { from { opacity: 0; } }
.is-loaded #hello, .is-loaded #progress-text, .is-loaded #lesson-list { animation: skel-reveal var(--dur-modal) var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .skel::after { animation: none; display: none; } }

/* T09: микровзаимодействия (рецепты transitions.dev 10, 36, 12 – вариант CSS; ≤300 мс, только transform/opacity).
   Смена числа «N из 8»: старая цифра уходит вверх, новая приходит снизу. */
.num-swap { position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
.num-new { display: inline-block; }
.num-old { position: absolute; inset: 0; text-align: center; pointer-events: none; }
.num-swap.is-animating .num-new { animation: num-in var(--dur-modal) var(--ease-out) both; }
.num-swap.is-animating .num-old { animation: num-out var(--dur-modal) var(--ease-out) both; }
@keyframes num-in { from { opacity: 0; transform: translateY(calc(.4em * var(--num-dir, 1))); } }
@keyframes num-out { to { opacity: 0; transform: translateY(calc(-.4em * var(--num-dir, 1))); } }
/* Встряска поля с ошибкой: 260 мс, три затухающих колебания 5→3→1 px; цвет рамки – из правил aria-invalid. */
.is-shaking { animation: field-shake 260ms var(--ease-out); }
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-5px); }
  42% { transform: translateX(4px); }
  64% { transform: translateX(-2px); }
  84% { transform: translateX(1px); }
}
/* Галочка «Урок пройден»: рисуется штрих и мягко появляется значок (один раз, в момент засчитывания). */
.done-check { display: inline-block; width: 18px; height: 18px; margin-right: 8px; flex: 0 0 auto; }
.done-check svg { display: block; width: 100%; height: 100%; overflow: visible; }
.done-check path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.done-check.is-new { animation: check-pop 220ms var(--ease-out) both; }
.done-check.is-new path { animation: check-draw 260ms var(--ease-out) 40ms both; }
@keyframes check-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes check-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .is-shaking { animation: none; }
  .num-swap.is-animating .num-new { animation: num-fade 160ms linear both; }
  .num-swap .num-old { display: none; }
  .done-check.is-new { animation: num-fade 160ms linear both; }
  .done-check.is-new path { animation: none; }
}
@keyframes num-fade { from { opacity: 0; } }
