/* Общие стили курса «Эффективное наставничество»: визуальный код Про.К (tokens.css). */
@font-face { font-family: "DrukTextWideTT"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/DrukTextWide-Medium.woff2") format("woff2"); }
@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; }

/* Шапка */
.site-header { max-width: 1580px; height: 89px; margin: 12px auto 0; padding: 0 42px; display: flex; align-items: center; gap: 32px; border: 1px solid #354244; border-radius: 36px; background: #20292b; position: relative; z-index: 5; }
.brand { width: 112px; 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; transition: transform .2s; }
.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; }
.header-button:hover { background: #2a3638; }
/* Шапка и первый блок страницы – одна плашка (О1): шапка без нижнего края, блок без верхнего. */
.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 { border-radius: 26px; overflow: hidden; background: radial-gradient(circle at 70% 55%, #28434a 0, #1b292d 45%, #131819 100%); }
.art-card img { display: block; width: 100%; height: auto; }
.header-link:hover, .primary-button:hover { transform: translateY(-2px); }

/* Кнопки и подписи */
.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; transition: transform .2s, background .2s; }
.primary-button:hover { background: #f0ec22; }
.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; }
.secondary-button:hover { background: #e3eeef; }
.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-index { color: #679ca7; font: 500 12px var(--prok-display); letter-spacing: .06em; margin-bottom: 20px; }
.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%; border-radius: 99px; background: var(--prok-yellow); width: 0; transition: width .4s; }
.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-link { background: none; border: 0; padding: 8px 0; color: var(--prok-yellow); font: 600 15px/1.3 var(--prok-body); text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.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 .2s, transform .2s; }
a.lesson-card:hover { border-color: #5b91a0; transform: translateY(-1px); }
.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); }
.tg-button:hover, .lesson-nav .secondary-button:hover { background: #2a3638; }

/* Юридические заглушки */
.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) {
  .site-header { height: 69px; 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: 85px; }
  .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 { height: 70px; 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; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
