@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --paper: #f3f2ed;
  --ink: #161713;
  --muted: #686961;
  --line: #cccbc3;
  --lime: #d8ff62;
  --orange: #ff9d66;
  --blue: #83c6ff;
  --font: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(22, 23, 19, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 23, 19, .045) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header,
main,
footer {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -.055em; }
.brand > span:last-child > span { color: var(--muted); font-weight: 500; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; }
.brand-mark span { width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); }
.header-link { display: inline-flex; gap: 16px; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; transition: background .2s, color .2s; }
.header-link:hover, .header-link:focus-visible { background: var(--ink); color: var(--paper); }

.hero { min-height: 610px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); }
.eyebrow, .section-index, .dialog-eyebrow { margin: 0; font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 32px; height: 8px; background: var(--lime); border: 1px solid var(--ink); }
.hero h1 { max-width: 900px; margin: 28px 0 24px; font-size: clamp(52px, 6.8vw, 104px); line-height: .94; letter-spacing: -.075em; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-lead { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; }

.hero-visual { position: relative; width: min(100%, 470px); aspect-ratio: 1; justify-self: end; }
.orbit { position: absolute; inset: 12%; border: 1px solid var(--ink); border-radius: 50%; }
.orbit-two { inset: 26%; border-style: dashed; animation: spin 24s linear infinite reverse; }
.orbit-one::before, .orbit-one::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--ink); background: var(--orange); }
.orbit-one::before { left: 8%; top: 13%; }
.orbit-one::after { right: 4%; bottom: 19%; background: var(--blue); }
.visual-core { position: absolute; inset: 36%; display: grid; place-content: center; border-radius: 50%; background: var(--ink); color: var(--paper); text-align: center; box-shadow: 12px 12px 0 var(--lime); }
.visual-core span { font-size: clamp(30px, 4vw, 54px); line-height: .9; font-weight: 800; letter-spacing: -.08em; }
.visual-core small { margin-top: 8px; color: var(--lime); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.signal { position: absolute; padding: 8px 11px; border: 1px solid var(--ink); background: var(--paper); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; box-shadow: 4px 4px 0 var(--ink); }
.signal-a { top: 14%; right: 1%; transform: rotate(5deg); }
.signal-b { left: 1%; bottom: 22%; transform: rotate(-5deg); }
.signal-c { right: 12%; bottom: 7%; background: var(--lime); transform: rotate(3deg); }

.levels { padding: 110px 0 120px; }
.section-heading { display: grid; grid-template-columns: .4fr 1.6fr; gap: 40px; align-items: start; margin-bottom: 54px; }
.section-index { padding-top: 14px; color: var(--muted); }
.section-heading h2 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.06em; }
.section-heading p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.level-card { --card-accent: var(--lime); min-height: 500px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--ink); background: rgba(243, 242, 237, .84); transition: background .25s, transform .25s; }
.level-card:last-child { border-right: 0; }
.level-card:hover { background: var(--card-accent); transform: translateY(-8px); }
.accent-orange { --card-accent: var(--orange); }
.accent-blue { --card-accent: var(--blue); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.level-number { display: grid; place-items: center; width: 46px; height: 28px; border-radius: 999px; background: var(--card-accent); font-size: 11px; font-weight: 800; }
.level-card:hover .level-number { background: var(--paper); }
.level-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.level-card h3 { margin: 76px 0 18px; font-size: clamp(42px, 4vw, 64px); line-height: 1; letter-spacing: -.065em; }
.level-card > p { max-width: 370px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.card-meta { margin-top: auto; padding: 24px 0 18px; border-bottom: 1px solid rgba(22, 23, 19, .25); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card-action { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: transparent; cursor: pointer; font-weight: 800; text-align: left; }
.card-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.card-arrow { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 18px; transition: transform .2s, background .2s, color .2s; }
.level-card:hover .card-arrow { background: var(--ink); color: var(--paper); transform: rotate(45deg); }

footer { min-height: 160px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); }
.brand-small { color: var(--ink); font-size: 17px; }
.brand-small .brand-mark { width: 25px; height: 25px; }
.brand-small .brand-mark span { width: 7px; height: 7px; }
footer p { font-size: 12px; }

.track-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 14px 14px 0 var(--ink); }
.track-dialog::backdrop { background: rgba(22, 23, 19, .72); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; padding: clamp(30px, 6vw, 64px); }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; font-size: 24px; }
.dialog-close:hover, .dialog-close:focus-visible { background: var(--ink); color: var(--paper); }
.dialog-eyebrow { color: var(--muted); }
.track-dialog h2 { margin: 22px 0 14px; font-size: clamp(48px, 9vw, 80px); line-height: 1; letter-spacing: -.07em; }
.dialog-summary { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.dialog-rule { height: 10px; margin: 34px 0; border: 1px solid var(--ink); background: var(--lime); }
.track-dialog[data-accent="orange"] .dialog-rule { background: var(--orange); }
.track-dialog[data-accent="blue"] .dialog-rule { background: var(--blue); }
.track-dialog h3 { margin: 0 0 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.topic-list { margin: 0 0 34px; padding: 0; list-style: none; counter-reset: topics; border-top: 1px solid var(--line); }
.topic-list li { min-height: 54px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.topic-list li::before { counter-increment: topics; content: counter(topics, decimal-leading-zero); color: var(--muted); font-size: 10px; font-weight: 800; }
.primary-action { width: 100%; min-height: 58px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font-weight: 800; }
.primary-action:hover, .primary-action:focus-visible { background: var(--lime); color: var(--ink); }
.action-note { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.auth-button { min-height: 44px; padding: 0 17px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .2s, color .2s; }
.auth-button-ghost { background: transparent; }
.auth-button-ghost:hover, .auth-button-ghost:focus-visible { background: rgba(22, 23, 19, .07); }
.auth-button-solid { background: var(--ink); color: var(--paper); }
.auth-button-solid:hover, .auth-button-solid:focus-visible { background: var(--lime); color: var(--ink); }
.user-control { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border: 1px solid var(--ink); border-radius: 999px; background: rgba(243, 242, 237, .9); }
.user-control[hidden] { display: none; }
.user-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.user-copy { min-width: 0; display: flex; flex-direction: column; padding-right: 4px; }
.user-copy strong { max-width: 130px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy small { max-width: 150px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-control button { min-height: 34px; padding: 0 12px; border: 0; border-left: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 700; }
.user-control button:hover, .user-control button:focus-visible { color: var(--ink); }
.admin-entry { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; border-left: 1px solid var(--line); color: var(--ink); font-size: 10px; font-weight: 800; text-decoration: none; }
.admin-entry:hover, .admin-entry:focus-visible { color: #5c7130; }

.auth-dialog { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: 14px 14px 0 var(--ink); }
.auth-dialog::backdrop { background: rgba(22, 23, 19, .72); backdrop-filter: blur(4px); }
.auth-shell { min-height: min(720px, calc(100dvh - 32px)); display: grid; grid-template-columns: .88fr 1.12fr; }
.auth-aside { position: relative; min-height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 42px; border-right: 1px solid var(--ink); background: var(--lime); }
.auth-brand { position: relative; z-index: 1; }
.auth-aside-copy { position: relative; z-index: 1; margin: auto 0; }
.auth-aside-copy h2 { margin: 20px 0 24px; font-size: clamp(52px, 5.5vw, 78px); line-height: .88; letter-spacing: -.075em; }
.auth-aside-copy h2 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.auth-aside-copy > p:last-child { max-width: 330px; margin: 0; font-size: 14px; line-height: 1.7; }
.auth-aside-mark { position: absolute; right: -24px; bottom: -70px; color: rgba(22, 23, 19, .07); font-size: 230px; line-height: 1; font-weight: 800; letter-spacing: -.1em; transform: rotate(-8deg); }
.auth-panel { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 34px clamp(32px, 6vw, 72px) 42px; overflow-y: auto; background: var(--paper); }
.auth-close { top: 25px; right: 28px; }
.auth-tabs { width: max-content; display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.auth-tabs button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 800; }
.auth-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.auth-form { width: min(100%, 460px); margin: auto; padding: 52px 0 10px; }
.auth-form[hidden] { display: none; }
.auth-heading { margin-bottom: 34px; }
.auth-heading h2 { margin: 17px 0 12px; font-size: clamp(40px, 5vw, 58px); line-height: .98; letter-spacing: -.065em; }
.auth-heading > p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.oauth-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.oauth-button { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 800; transition: transform .15s ease, border-color .15s ease; }
.oauth-button:hover, .oauth-button:focus-visible { border-color: var(--ink); transform: translateY(-1px); }
.oauth-button[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.oauth-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; font-size: 12px; font-weight: 900; }
.oauth-yandex .oauth-icon { background: #fc3f1d; color: #fff; }
.oauth-vk .oauth-icon { background: #07f; color: #fff; font-size: 9px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-divider span { white-space: nowrap; }
.auth-field { display: block; margin-top: 18px; }
.auth-field > span { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.auth-field input { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: rgba(255,255,255,.35); color: var(--ink); font: 14px var(--font); transition: border-color .2s, box-shadow .2s; }
.auth-field input::placeholder { color: #96978f; }
.auth-field input:focus { border-color: var(--ink); box-shadow: 5px 5px 0 var(--lime); }
.auth-field input[aria-invalid="true"] { border-color: #b83f34; }
.auth-error { min-height: 20px; margin: 10px 0 2px; color: #a52f2a; font-size: 11px; font-weight: 600; }
.auth-submit { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font-weight: 800; }
.auth-submit:hover, .auth-submit:focus-visible { background: var(--lime); color: var(--ink); }
.auth-submit:disabled { cursor: wait; opacity: .6; }
.auth-switch { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; color: var(--ink); font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .site-header, main, footer { width: min(100% - 36px, 720px); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 90px 0 70px; }
  .hero-visual { width: min(100%, 420px); justify-self: center; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-index { padding: 0; }
  .level-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 420px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .level-card:last-child { border-bottom: 0; }
  .level-card:hover { transform: none; }
}
@media (max-width: 540px) {
  .site-header, main, footer { width: calc(100% - 28px); }
  .site-header { height: 74px; }
  .header-link { display: none; }
  .header-actions { gap: 5px; }
  .auth-button { min-height: 40px; padding: 0 11px; font-size: 11px; }
  .user-control { min-height: 44px; gap: 7px; }
  .user-avatar { width: 32px; height: 32px; }
  .user-copy small { display: none; }
  .user-control button { min-height: 30px; padding: 0 8px; }
  .auth-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); box-shadow: 7px 7px 0 var(--ink); }
  .auth-shell { min-height: calc(100dvh - 16px); grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-panel { padding: 22px 22px 30px; }
  .auth-close { top: 18px; right: 18px; }
  .auth-tabs { margin-right: 52px; }
  .auth-form { padding-top: 42px; }
  .auth-heading { margin-bottom: 28px; }
  .auth-heading h2 { font-size: 42px; }
  .oauth-options { grid-template-columns: 1fr; }
  .auth-field { margin-top: 14px; }
  .auth-field input { height: 52px; }
  .hero { padding-top: 70px; gap: 28px; }
  .hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero-visual { width: 310px; max-width: 100%; }
  .signal { font-size: 8px; }
  .levels { padding: 80px 0; }
  .section-heading { margin-bottom: 36px; }
  .level-card { min-height: 390px; padding: 22px; }
  .level-card h3 { margin-top: 56px; }
  footer { min-height: 130px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  footer p { margin: 0; }
  .track-dialog { box-shadow: 7px 7px 0 var(--ink); }
  .dialog-shell { padding: 60px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
