/* LessonLoop — основная таблица стилей */
:root {
  --paper: #f8f5ef;
  --card: #ffffff;
  --ink: #1d1a2b;
  --ink-2: #3b3750;
  --muted: #625d72;
  --line: #e7e1d5;
  --accent: #c9381f;
  --accent-hi: #e5482d;
  --accent-soft: #fde6de;
  --pine: #1f5e58;
  --pine-soft: #dcefe9;
  --sun: #f2b134;
  --sun-soft: #fdf0d2;
  --plum: #5b3a8c;
  --plum-soft: #ebe3f6;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 26, 43, .06), 0 8px 24px -12px rgba(29, 26, 43, .18);
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.jump-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.jump-link:focus { top: 12px; color: #fff; }

.shell { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .shell { padding: 0 16px; } }

/* ---------- верхняя панель ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(248, 245, 239, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar__row { display: flex; align-items: center; gap: 24px; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.wordmark:hover { color: var(--ink); }
.wordmark b { color: var(--accent); font-weight: 800; }
.wordmark svg { width: 34px; height: 34px; flex: none; }
.mainnav { display: flex; gap: 4px; margin-left: 8px; }
.mainnav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 8px 12px; border-radius: 999px; }
.mainnav a:hover { background: #efe9dd; color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.topbar__end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; }
  .topbar.is-open .mainnav { display: flex; }
  .mainnav a { padding: 12px 14px; border-radius: 12px; }
  .topbar__end .btn--solid { display: none; }
  .topbar__end .btn--ghost { padding: 8px 16px; min-height: 42px; }
  .topbar__row { gap: 12px; }
}

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; border-radius: 999px; padding: 11px 22px; min-height: 44px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn svg { width: 18px; height: 18px; }
.btn--solid { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(201, 56, 31, .8); }
.btn--solid:hover { background: #b2301a; color: #fff; transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--accent); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn--wide { width: 100%; }

/* ---------- герой главной ---------- */
.intro { padding: 56px 0 40px; }
.intro__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pine); background: var(--pine-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--pine); }
.intro h1 em { font-style: italic; color: var(--accent); }
.intro__lead { font-size: 1.14rem; color: var(--ink-2); max-width: 36em; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.facts span { color: var(--muted); font-size: .9rem; }
.dopesheet { background: var(--ink); color: #f4efe6; border-radius: 28px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(29, 26, 43, .6); transform: rotate(1.2deg); }
.dopesheet svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; gap: 36px; }
  .dopesheet { transform: none; max-width: 560px; }
}

/* ---------- секции ---------- */
.band { padding: 56px 0; }
.band--tint { background: #f1ebdf; }
.band__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.band__head p { color: var(--muted); margin: 0; max-width: 34em; }

/* ---------- фильтры каталога ---------- */
.finder { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 18px; }
.finder__search { position: relative; }
.finder__search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.finder input[type="search"], .finder select { font: inherit; color: var(--ink); width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); padding: 10px 14px; }
.finder input[type="search"] { padding-left: 44px; }
.finder input:focus, .finder select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(242, 177, 52, .45); }
.finder select { min-width: 190px; cursor: pointer; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.topic-pill { font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; min-height: 40px; cursor: pointer; }
.topic-pill:hover { border-color: var(--ink-2); }
.topic-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-note { color: var(--muted); font-size: .92rem; margin: -8px 0 16px; min-height: 1.5em; }
@media (max-width: 640px) { .finder { grid-template-columns: 1fr; } .finder select { min-width: 0; } }

/* ---------- карточки курсов ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
@media (max-width: 400px) { .course-grid { grid-template-columns: 1fr; } }
.ccard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29, 26, 43, .06), 0 18px 36px -16px rgba(29, 26, 43, .3); }
.ccard__art { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.ccard__art img { width: 100%; height: 100%; object-fit: cover; }
.ccard__tag { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.ccard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ccard__body h3 { margin: 0; font-size: 1.18rem; }
.ccard__body h3 a { color: var(--ink); text-decoration: none; }
.ccard__body h3 a::after { content: ""; position: absolute; inset: 0; }
.ccard__body p { color: var(--muted); font-size: .95rem; margin: 0; }
.ccard__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: .86rem; padding-top: 10px; border-top: 1px dashed var(--line); }
.ccard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ccard__meta svg { width: 15px; height: 15px; color: var(--muted); }
.author-chip { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; background: var(--pine); }
.avatar--lg { width: 64px; height: 64px; font-size: 1.2rem; }
.tone-tomato { --tone: var(--accent); --tone-soft: var(--accent-soft); }
.tone-sun { --tone: #a86d00; --tone-soft: var(--sun-soft); }
.tone-pine { --tone: var(--pine); --tone-soft: var(--pine-soft); }
.tone-plum { --tone: var(--plum); --tone-soft: var(--plum-soft); }
.tone-ink { --tone: var(--ink); --tone-soft: #e6e3ee; }
.avatar[class*="tone-"] { background: var(--tone); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 16px; background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* заглушка вместо постера */
.noposter { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(circle at 20% 25%, rgba(242, 177, 52, .55), transparent 45%),
  radial-gradient(circle at 80% 70%, rgba(201, 56, 31, .55), transparent 50%),
  linear-gradient(135deg, #2b2540, #13111d); color: #f6f1e7; }
.noposter svg { width: 30%; max-width: 120px; height: auto; opacity: .9; }
.noposter small { position: absolute; bottom: 10px; right: 12px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }

/* ---------- как устроено ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); position: relative; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 2.4rem; color: var(--accent); display: block; line-height: 1; margin-bottom: 12px; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quote { margin: 0; background: var(--card); border-radius: var(--radius); padding: 24px; border-left: 5px solid var(--sun); }
.quote p { font-family: var(--serif); font-size: 1.08rem; }
.quote footer { color: var(--muted); font-size: .9rem; }

.callout { background: var(--ink); color: #f4efe6; border-radius: 28px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.callout h2 { color: #fff; margin: 0 0 .3em; }
.callout p { margin: 0; color: #cfc8db; }
@media (max-width: 480px) { .callout { padding: 28px 20px; } }

/* ---------- страница курса ---------- */
.crumbs { font-size: .9rem; color: var(--muted); padding: 22px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b4ad9f; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.course-top { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; padding: 26px 0 44px; align-items: start; }
.course-top__lead { font-size: 1.12rem; color: var(--ink-2); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--tone-soft, var(--pine-soft)); color: var(--tone, var(--pine)); }
.badge--plain { background: #ece6da; color: var(--ink-2); }
.enroll { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 88px; }
.enroll__art { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.enroll__art img { width: 100%; height: 100%; object-fit: cover; }
.enroll__body { padding: 20px; display: grid; gap: 14px; }
.enroll dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .94rem; }
.enroll dt { color: var(--muted); }
.enroll dd { margin: 0; font-weight: 600; text-align: right; }
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; list-style: none; padding: 0; margin: 0 0 30px; }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; }
.outcomes svg { flex: none; width: 20px; height: 20px; color: var(--pine); margin-top: 3px; }
@media (max-width: 880px) { .course-top { grid-template-columns: 1fr; } .enroll { position: static; } }
@media (max-width: 560px) { .outcomes { grid-template-columns: 1fr; } }

.syllabus { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.syllabus li + li { border-top: 1px solid var(--line); }
.syl { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; color: var(--ink); text-decoration: none; }
a.syl:hover { background: #fbf8f2; color: var(--ink); }
.syl__n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--tone-soft, var(--accent-soft)); color: var(--tone, var(--accent)); }
.syl__t { font-weight: 650; display: block; line-height: 1.35; }
.syl__s { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.syl__d { color: var(--muted); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.syl__d svg { width: 16px; height: 16px; }
.syl--locked .syl__n { background: #ece6da; color: var(--muted); }
.syl--locked .syl__t { color: var(--ink-2); }
.syl.is-current { background: var(--sun-soft); }
@media (max-width: 480px) { .syl { grid-template-columns: 34px 1fr; padding: 14px; } .syl__d { grid-column: 2; } .syl__n { width: 32px; height: 32px; } }

.teacher { display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 30px; }
.teacher p { margin: 0; color: var(--muted); }

/* ---------- плеер урока ---------- */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 18px 0 56px; align-items: start; }
@media (max-width: 980px) { .lesson-layout { grid-template-columns: 1fr; } }
.stage { position: relative; background: #0d0c13; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 24px 50px -28px rgba(29, 26, 43, .8); }
.stage video { width: 100%; height: 100%; background: #0d0c13; }
.stage__cover { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit; color: #fff; }
.stage__cover .noposter { z-index: 0; }
.stage__play { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.stage__play svg { width: 30px; height: 30px; margin-left: 4px; }
.stage__cover:hover .stage__play { background: var(--accent-hi); }
.stage__cover { display: grid; place-items: center; }
.stage__lock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background:
  repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 14px, transparent 14px 28px), linear-gradient(160deg, #2b2540, #0d0c13); color: #efe9f7; }
.stage__lock svg { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--sun); }
.stage__lock p { color: #cfc8db; max-width: 30em; margin: 0 auto 16px; }
.stage__lock h2 { color: #fff; font-size: clamp(1.2rem, 3vw, 1.6rem); }
@media (max-width: 480px) { .stage { border-radius: 12px; } .stage__lock p { display: none; } }

.playbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.resume-note { font-size: .9rem; color: var(--pine); background: var(--pine-soft); padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.resume-note button { font: inherit; font-weight: 700; background: none; border: 0; color: var(--pine); text-decoration: underline; cursor: pointer; padding: 0; }
.quality { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.quality__label { font-size: .86rem; color: var(--muted); font-weight: 600; }
.quality__set { display: inline-flex; background: #ece6da; border-radius: 999px; padding: 3px; }
.quality__set button { font: inherit; font-size: .86rem; font-weight: 700; border: 0; background: transparent; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 34px; }
.quality__set button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.lesson-head h1 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin-top: 10px; }
.lesson-head .author-chip { margin-bottom: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.panel h2 { font-size: 1.25rem; }
.panel ul { padding-left: 1.2em; margin: 0; }
.credit { font-size: .92rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 16px; }
.credit strong { color: var(--ink-2); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pager a { flex: 1 1 220px; display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.pager a:hover { border-color: var(--ink-2); color: var(--ink); }
.pager small { display: block; color: var(--muted); font-size: .8rem; }
.pager .is-next { text-align: right; }
.side h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 800; margin: 0 0 12px; }
.side .syl { grid-template-columns: 32px 1fr; padding: 12px 14px; gap: 12px; }
.side .syl__n { width: 30px; height: 30px; border-radius: 9px; font-size: .8rem; }
.side .syl__d { grid-column: 2; font-size: .8rem; }
.side .syl__s { display: none; }
.side .syl__t { font-size: .94rem; }

/* ---------- тарифы ---------- */
.page-head { padding: 48px 0 24px; text-align: center; }
.page-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 40em; margin: 0 auto; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; padding: 20px 0 30px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan--hot { border-color: var(--ink); box-shadow: 0 24px 50px -30px rgba(29, 26, 43, .6); }
.plan__flag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }
.plan h2 { font-size: 1.4rem; margin: 0; }
.plan__price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 700; }
.plan__price small { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan > p { color: var(--muted); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.ticks svg { flex: none; width: 19px; height: 19px; color: var(--pine); margin-top: 3px; }
.ticks .no svg { color: #b4ad9f; }
.ticks .no { color: var(--muted); }
.plan .btn { margin-top: auto; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 6px; }

/* ---------- о нас ---------- */
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.05rem; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.team li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.team strong { font-size: 1.05rem; }
.team span { color: var(--muted); font-size: .92rem; }
.credits-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.credits-table th, .credits-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits-table th { background: #f1ebdf; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.credits-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-cards div { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; }
.contact-cards h3 { font-family: var(--sans); font-size: 1rem; margin-bottom: .3em; }
.contact-cards p { margin: 0; color: var(--muted); }

/* ---------- вход ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 69px); }
.auth__art { background: var(--ink); color: #f4efe6; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; position: relative; overflow: hidden; }
.auth__art h2 { color: #fff; max-width: 14em; }
.auth__art p { color: #cfc8db; max-width: 26em; }
.auth__art svg { width: 100%; max-width: 420px; height: auto; }
.auth__form { display: grid; place-items: center; padding: 40px 20px; }
.auth form { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.auth h1 { font-size: 2rem; margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .94rem; }
.field input { font: inherit; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); width: 100%; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 177, 52, .45); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.alert { display: none; background: var(--accent-soft); color: #8f2412; border: 1px solid #f5c3b5; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.alert.is-shown { display: flex; gap: 10px; align-items: center; }
.alert svg { width: 20px; height: 20px; flex: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .86rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint { font-size: .9rem; color: var(--muted); text-align: center; margin: 0; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__art { display: none; } }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 70px 0 90px; }
.lost__big { font-family: var(--serif); font-size: clamp(5rem, 22vw, 10rem); line-height: 1; color: var(--accent); margin: 0; letter-spacing: -.04em; }
.lost p { color: var(--ink-2); max-width: 30em; margin: 10px auto 24px; }
.lost .intro__actions { justify-content: center; }

/* ---------- подвал ---------- */
.foot { background: #17141f; color: #bdb6cb; padding: 48px 0 26px; margin-top: 20px; font-size: .94rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot .wordmark { color: #fff; }
.foot .wordmark b { color: var(--sun); }
.foot h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8d859f; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: #e8e2f0; text-decoration: none; }
.foot a:hover { color: var(--sun); text-decoration: underline; }
.foot__base { border-top: 1px solid #2c2838; margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; color: #8d859f; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

.loading-line { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--line), var(--sun), var(--line)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin: 40px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.badge svg, .resume-note svg { width: 14px; height: 14px; flex: none; }
.syl__n svg { width: 16px; height: 16px; }
.author-chip .avatar + * { min-width: 0; }
[hidden] { display: none !important; }
