/* ============================================================
   Курс «UX-исследования для компаний» — новый дизайн (mockup-9 «Инверсный старт»)
   База: context/course_ux-issledovaniya/mockups/course.css
   Задача UXI-6-1. Подключается вместо course_ux.css на страницах курса.
   Классы без префикса — страницы курса рендерятся в изолированном layout.
   ============================================================ */

/* ============ ШРИФТ INTER (локально, вариативный, cyrillic+latin) ============ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/InterVar-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: 100 900;
  font-display: swap;
  src: url("../fonts/inter/InterVar-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ ТОКЕНЫ ============ */
:root {
  --uxn-ink: #111111;
  --uxn-ink-soft: #555555;      /* контраст 7.4:1 */
  --uxn-line: #E3E3E3;
  --uxn-paper: #FFFFFF;
  --uxn-paper-alt: #FAFAFA;
  --uxn-accent: #00B2B2;        /* фирменный акцент на светлом */
  --uxn-accent-ink: #006666;    /* акцентный текст на светлом, 5.6:1 */
  --uxn-accent-dark-bg: #2EE6D6;/* акцент на тёмном, 9.8:1 */
  --uxn-dark: #111111;
  --uxn-dark-soft: #C9CDD4;     /* текст на тёмном, 9.1:1 */
  --uxn-container: 1120px;
}

/* Сброс отступов body — страницы курса рендерятся в blank-layout без Bootstrap */
.uxn-body { margin: 0; padding: 0; }

.uxn * { margin: 0; padding: 0; box-sizing: border-box; }
.uxn { scroll-behavior: smooth; }

.uxn {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
  color: var(--uxn-ink); background: var(--uxn-paper);
  -webkit-font-smoothing: antialiased;
}
.uxn .container { max-width: var(--uxn-container); margin: 0 auto; padding: 0 24px; }

/* ============ ДОСТУПНОСТЬ ============ */
.uxn a:focus-visible, .uxn button:focus-visible, .uxn input:focus-visible, .uxn summary:focus-visible {
  outline: 2px solid var(--uxn-accent); outline-offset: 3px;
}
.uxn .skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--uxn-ink); color: #fff; padding: 10px 18px; border-radius: 4px;
  transition: top .2s;
}
.uxn .skip-link:focus { top: 12px; }

/* ============ ШАПКА ============ */
.uxn .header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,17,17,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #2A2A2A;
}
.uxn .header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.uxn .header__logo { font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.uxn .header__logo span { color: var(--uxn-accent-dark-bg); }
.uxn .header__nav { display: flex; gap: 28px; }
.uxn .header__nav a { color: var(--uxn-dark-soft); text-decoration: none; font-size: 15px; }
.uxn .header__nav a:hover { color: #fff; }
.uxn .header__nav a[aria-current="page"] { color: #fff; font-weight: 600; }

.uxn .btn {
  display: inline-block; padding: 12px 24px; border-radius: 4px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.uxn .btn--accent { background: var(--uxn-accent-dark-bg); color: var(--uxn-dark); }
.uxn .btn--accent:hover { background: #fff; }
.uxn .btn--ghost { border-color: var(--uxn-ink); color: var(--uxn-ink); }
.uxn .btn--ghost:hover { background: var(--uxn-ink); color: #fff; }
.uxn .btn--ghost-light { border-color: #3A3F48; color: #fff; }
.uxn .btn--ghost-light:hover { border-color: var(--uxn-accent-dark-bg); }

/* ============ ТЁМНЫЙ HERO (точки с виньеткой) ============ */
.uxn .hero {
  background: var(--uxn-dark); color: #fff;
  padding: 72px 0 64px;
  background-image:
    radial-gradient(ellipse 75% 60% at 50% 45%, transparent 0%, rgba(17,17,17,.92) 100%),
    radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
}
.uxn .hero__eyebrow {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--uxn-accent-dark-bg); margin-bottom: 20px;
}
.uxn .hero__title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 700;
  margin-bottom: 20px;
}
.uxn .hero__title .dim { color: #8A8A8A; }
.uxn .hero__title em { font-style: normal; color: var(--uxn-accent-dark-bg); }
.uxn .hero__lead { font-size: 18px; color: var(--uxn-dark-soft); max-width: 56ch; margin-bottom: 28px; }
.uxn .hero__meta { display: flex; gap: 12px; flex-wrap: wrap; }
.uxn .hero__chip {
  font-size: 13.5px; color: var(--uxn-dark-soft); text-decoration: none;
  border: 1px solid #3A3F48; border-radius: 999px; padding: 6px 16px;
  transition: border-color .15s, color .15s;
}
.uxn .hero__chip:hover { border-color: var(--uxn-accent-dark-bg); color: #fff; }

/* ============ СЕКЦИИ ============ */
.uxn .section { padding: 72px 0; }
.uxn .section--alt { background: var(--uxn-paper-alt); }
.uxn .section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.uxn .section__title {
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -.02em; line-height: 1.15; font-weight: 700;
}
.uxn .section__title .dim { color: #B4B4B4; }
.uxn .section__link { color: var(--uxn-accent-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.uxn .section__link:hover { text-decoration: underline; }

/* ============ ХЛЕБНЫЕ КРОШКИ (внутри тёмного hero, светлый текст) ============ */
.uxn .crumbs { padding: 0 0 28px; font-size: 14px; }
.uxn .crumbs a { color: var(--uxn-dark-soft); text-decoration: none; }
.uxn .crumbs a:hover { color: var(--uxn-accent-dark-bg); text-decoration: underline; }
.uxn .crumbs span { color: #8A909B; }
.uxn .crumbs b { color: #fff; font-weight: 600; }

/* ============ ПРОГРЕСС ============ */
.uxn .progress { height: 6px; background: var(--uxn-line); border-radius: 999px; margin: 20px 0 8px; overflow: hidden; }
.uxn .progress__bar { height: 100%; background: var(--uxn-accent); border-radius: 999px; }
.uxn .progress__label { font-size: 13px; color: var(--uxn-ink-soft); margin-bottom: 24px; }

/* ============ МОДУЛИ (лендинг) ============ */
.uxn .program { display: grid; gap: 24px; }
.uxn .module {
  border: 1px solid var(--uxn-line); border-radius: 8px; padding: 32px;
  transition: border-color .15s;
}
.uxn .module:hover { border-color: var(--uxn-accent); }
.uxn .module--done { border-color: var(--uxn-accent); }
.uxn .module__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }
.uxn .module__num { font-size: 15px; font-weight: 700; color: var(--uxn-accent-ink); }
.uxn .module__title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.uxn .module__badge { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--uxn-accent-ink); border: 1px solid var(--uxn-accent-ink); border-radius: 4px; padding: 3px 10px; }
.uxn .module__desc { color: var(--uxn-ink-soft); font-size: 15px; margin-bottom: 20px; max-width: 70ch; }
.uxn .module__lessons { display: grid; gap: 8px; margin-bottom: 20px; }
.uxn .module__lesson {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; border: 1px solid var(--uxn-line); border-radius: 6px;
  text-decoration: none; color: inherit; font-size: 15px;
  transition: border-color .15s;
}
.uxn .module__lesson:hover { border-color: var(--uxn-accent); }
.uxn .module__lesson-num { color: var(--uxn-accent-ink); font-weight: 700; min-width: 24px; }
.uxn .module__lesson-title { flex: 1; font-weight: 500; }
.uxn .module__lesson--done .module__lesson-title::after { content: " ✓"; color: var(--uxn-accent-ink); }
.uxn .module__foot { display: flex; justify-content: flex-end; }

/* ============ «ЗАЧЕМ ПРОХОДИТЬ КУРС» ============ */
.uxn .why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.uxn .why__card { border: 1px solid var(--uxn-line); border-radius: 8px; padding: 28px; }
.uxn .why__title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.uxn .why__list { list-style: none; display: grid; gap: 10px; }
.uxn .why__list li { color: var(--uxn-ink-soft); font-size: 15px; padding-left: 18px; position: relative; }
.uxn .why__list li::before { content: "•"; color: var(--uxn-accent-ink); position: absolute; left: 0; }
.uxn .why__list b { color: var(--uxn-accent-ink); font-weight: 600; }

/* Ссылки в тексте — в дизайн-системе курса (не браузерный синий) */
.uxn .why__list a,
.uxn .module__desc a,
.uxn .hero__lead a,
.uxn .result__text a,
.uxn .faq__answer a {
  color: var(--uxn-accent-ink);
  text-decoration: underline;
  text-decoration-color: rgba(0, 102, 102, .35);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.uxn .why__list a:hover,
.uxn .module__desc a:hover,
.uxn .hero__lead a:hover,
.uxn .result__text a:hover,
.uxn .faq__answer a:hover {
  color: var(--uxn-accent);
  text-decoration-color: currentColor;
}

/* ============ УРОКИ (страница модуля) ============ */
.uxn .lessons { display: grid; gap: 12px; }
.uxn .lesson {
  display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--uxn-line); border-radius: 8px; padding: 18px 24px;
  text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.uxn .lesson:hover { border-color: var(--uxn-accent); }
.uxn .lesson__num { font-size: 15px; font-weight: 700; color: var(--uxn-accent-ink); min-width: 32px; }
.uxn .lesson__title { font-weight: 600; font-size: 16px; flex: 1; }
.uxn .lesson__meta { color: var(--uxn-ink-soft); font-size: 14px; white-space: nowrap; }
.uxn .lesson--done { border-color: var(--uxn-accent); }
.uxn .lesson--done .lesson__title::after { content: " ✓"; color: var(--uxn-accent-ink); }
.uxn .lesson-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }

/* ============ УРОК: плеер + материалы ============ */
.uxn .lesson-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
/* VideoJS: контейнер на всю колонку, пропорция 16:9 (legacy-стили темы не подключены) */
.uxn .video-container { width: 100%; }
.uxn .video-container .video-js { width: 100%; height: 0; padding-top: 56.25%; }
.uxn .video-container .video-js video { position: absolute; inset: 0; width: 100%; height: 100%; }
.uxn .video-container .video-js .vjs-big-play-centered .vjs-big-play-button { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.uxn .player {
  background: var(--uxn-dark); border-radius: 8px; aspect-ratio: 16 / 9;
  display: grid; place-items: center; color: #8A909B; font-size: 15px;
}
.uxn .player__btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--uxn-accent-dark-bg); color: var(--uxn-dark);
  display: grid; place-items: center; font-size: 26px; border: none; cursor: pointer;
}
.uxn .materials { border: 1px solid var(--uxn-line); border-radius: 8px; padding: 24px; }
.uxn .materials__title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.uxn .materials a { display: block; color: var(--uxn-accent-ink); text-decoration: none; font-size: 15px; padding: 6px 0; }
.uxn .materials a:hover { text-decoration: underline; }

/* ============ ТЕСТ ============ */
.uxn .quiz { max-width: 760px; margin: 0 auto; }
.uxn .quiz__q { border: 1px solid var(--uxn-line); border-radius: 8px; padding: 28px; margin-bottom: 20px; }
.uxn .quiz__question { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.uxn .quiz__opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--uxn-line); border-radius: 6px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s; }
.uxn .quiz__opt:hover { border-color: var(--uxn-accent); }
.uxn .quiz__opt input { accent-color: var(--uxn-accent); width: 18px; height: 18px; }
.uxn .quiz__opt--correct { border-color: var(--uxn-accent); background: #E9FBFB; }
.uxn .quiz__opt--wrong { border-color: #D9534F; background: #FDF3F3; }
.uxn .quiz__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; }

/* ============ РЕЗУЛЬТАТ ============ */
.uxn .result { text-align: center; max-width: 640px; margin: 0 auto; }
.uxn .result__score {
  font-size: clamp(72px, 10vw, 128px); font-weight: 700; letter-spacing: -.04em;
  line-height: 1; color: var(--uxn-accent-ink); margin-bottom: 8px;
}
.uxn .result__label { color: var(--uxn-ink-soft); font-size: 16px; margin-bottom: 32px; }
.uxn .result__verdict { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.uxn .result__text { color: var(--uxn-ink-soft); margin-bottom: 32px; }

/* ============ FAQ ============ */
.uxn .faq { max-width: 760px; margin: 0 auto; }
.uxn .faq details { border-top: 1px solid var(--uxn-line); }
.uxn .faq details:last-of-type { border-bottom: 1px solid var(--uxn-line); }
.uxn .faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 19px; font-weight: 600;
}
.uxn .faq summary::-webkit-details-marker { display: none; }
.uxn .faq summary::after {
  content: "+"; font-size: 28px; font-weight: 400; color: var(--uxn-accent-ink);
  transition: transform .15s;
}
.uxn .faq details[open] summary::after { transform: rotate(45deg); }
.uxn .faq__answer { color: var(--uxn-ink-soft); font-size: 16px; padding: 0 0 24px; max-width: 60ch; }

/* ============ CTA ============ */
.uxn .cta { padding: 88px 0; text-align: center; border-top: 1px solid var(--uxn-line); }
.uxn .cta__title {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -.02em; line-height: 1.1;
  max-width: 24ch; margin: 0 auto 16px;
}
.uxn .cta__title .dim { color: #B4B4B4; }
.uxn .cta__lead { color: var(--uxn-ink-soft); font-size: 17px; margin-bottom: 36px; }
.uxn .cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============ ФУТЕР ============ */
.uxn .footer {
  background: var(--uxn-dark); color: #fff;
  border-top: 1px solid #2A2A2A; padding: 48px 0 28px;
}
.uxn .footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.uxn .footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.uxn .footer__links a { color: var(--uxn-dark-soft); text-decoration: none; font-size: 14px; }
.uxn .footer__links a:hover { color: var(--uxn-accent-dark-bg); }
.uxn .footer__copy { font-size: 13px; color: #8A909B; }

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 900px) {
  .uxn .header__nav { display: none; }
  .uxn .section { padding: 56px 0; }
  .uxn .why { grid-template-columns: 1fr; }
  .uxn .lesson-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .uxn .lesson { flex-wrap: wrap; gap: 8px; }
  .uxn .quiz__foot { flex-direction: column; align-items: stretch; }
  .uxn .quiz__foot .btn { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .uxn *, .uxn *::before, .uxn *::after { transition: none !important; animation: none !important; }
}