
@font-face { font-family: Manrope; src: url(/fonts/Manrope-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-cyrillic.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
:root { --ink:#17171C; --sec:#62626F; --acc:#4F46E5; --accd:#3730A3; --was:#4A4A57; --now:#137338;
  --bg:#F7F7FB; --card:#FFFFFF; --tint:#ECECF6; --line:rgba(23,23,28,.10); --box:#C9C9D6; color-scheme: light; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: Manrope, "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; overflow-x: hidden; }
a { color: var(--acc); text-underline-offset: .16em; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.narrow > * { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* шапка */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo { width: 32px; height: 32px; flex: none; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font: inherit; font-weight: 800;
  font-size: 17px; border-radius: 14px; padding: 15px 22px; border: 0; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn.main { background: var(--acc); color: #fff; box-shadow: 0 10px 24px rgba(79,70,229,.28); }
.btn.main:hover { background: var(--accd); transform: translateY(-1px); }
.btn.alt { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.off { background: var(--tint); color: var(--sec); cursor: default; box-shadow: none; }
.btn.sm { padding: 9px 14px; font-size: 15px; border-radius: 11px; box-shadow: none; }

/* первый экран: тетрадная клетка, перечёркнутое слово, список дел */
.hero { position: relative; padding: 26px 0 50px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -90px 0 0; z-index: -1; opacity: .7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 30%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 30%, #000 25%, transparent 72%); }
.hero-grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 52px; } .hero { padding: 46px 0 70px; } }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px 6px 7px; font-size: 14px; font-weight: 700; color: var(--accd); }
.chip i { width: 20px; height: 20px; border-radius: 6px; background: var(--acc); position: relative; flex: none; }
.chip i::after { content: ""; position: absolute; left: 5px; right: 5px; top: 8.5px; height: 3px; border-radius: 2px; background: #fff; }
h1 { font-size: clamp(40px, 9.6vw, 70px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 18px; }
.x { position: relative; white-space: nowrap; color: var(--was); }
.x::after { content: ""; position: absolute; left: -.05em; right: -.05em; top: 54%; height: .12em; border-radius: .06em; background: var(--acc);
  transform-origin: left center; animation: strike .7s cubic-bezier(.65,0,.35,1) .35s both; }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lead { font-size: clamp(18px, 2.3vw, 20px); color: var(--sec); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14.5px; color: var(--sec); list-style: none; }
.facts li::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: var(--acc); vertical-align: middle; margin-right: 8px; }

.todo { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 20px 20px 14px;
  box-shadow: 0 26px 60px rgba(55,48,163,.15), 0 2px 6px rgba(23,23,28,.04); }
.todo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--box); }
.todo-title { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sec); }
.todo-sub { font-size: 14px; color: var(--sec); margin-top: 3px; }
.todo-count { display: flex; align-items: center; gap: 6px; color: var(--acc); font-weight: 800; font-size: 42px; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.todo-count i { width: .42em; height: .1em; border-radius: .05em; background: currentColor; }
.todo ul { list-style: none; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--acc); background: var(--acc); position: relative; }
.box::after { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 2.5px; border-radius: 2px; background: #fff; }
.task { position: relative; color: var(--sec); }
.task::after { content: ""; position: absolute; left: -2px; right: -4px; top: 53%; height: 2.5px; border-radius: 2px; background: var(--acc); }
.todo.play .box { animation: tick .3s ease both; animation-delay: calc(var(--d) + .5s); }
.todo.play .box::after { animation: pop .25s ease both; animation-delay: calc(var(--d) + .55s); }
.todo.play .task { animation: dim .4s ease both; animation-delay: calc(var(--d) + .4s); }
.todo.play .task::after { transform-origin: left center; animation: strike .55s cubic-bezier(.65,0,.35,1) both; animation-delay: var(--d); }
.todo li:nth-child(1) { --d: .9s; } .todo li:nth-child(2) { --d: 1.5s; } .todo li:nth-child(3) { --d: 2.1s; }
.todo li:nth-child(4) { --d: 2.7s; } .todo li:nth-child(5) { --d: 3.3s; } .todo li:nth-child(6) { --d: 3.9s; }
@keyframes tick { from { background: transparent; border-color: var(--box); } to { background: var(--acc); border-color: var(--acc); } }
@keyframes pop { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dim { from { color: var(--ink); } to { color: var(--sec); } }
.todo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; font-size: 13.5px; color: var(--sec); }
.again { display: none; font: inherit; font-size: 13.5px; font-weight: 800; color: var(--acc); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.js .again { display: inline-block; }

/* бегущая строка */
.band { background: var(--accd); color: #fff; overflow: hidden; display: flex; padding: 15px 0; font-weight: 700; font-size: 16px; }
.band-track { flex: none; display: flex; align-items: center; gap: 22px; padding-right: 22px; list-style: none; white-space: nowrap;
  animation: marquee 40s linear infinite; }
.band:hover .band-track { animation-play-state: paused; }
.band-track i { width: 16px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.55); flex: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* разделы */
section.s { padding: 60px 0 10px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--acc); }
h2 { font-size: clamp(29px, 5.6vw, 44px); line-height: 1.07; letter-spacing: -.028em; font-weight: 800; margin-bottom: 14px; max-width: 19em; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 800; }
.sub { color: var(--sec); font-size: 18px; max-width: 36em; }
.grid { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; transition: transform .2s, box-shadow .2s; }
.card p { color: var(--sec); font-size: 15.5px; margin-top: 6px; }
.card .bar { display: block; width: 26px; height: 4px; border-radius: 2px; background: var(--acc); margin-bottom: 14px; }
.sec-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(55,48,163,.12); }
.num { display: flex; align-items: baseline; gap: 8px; color: var(--acc); font-weight: 800; }
.num b { font-size: 46px; line-height: 1; letter-spacing: -.03em; }
.num span { font-size: 14px; color: var(--sec); font-weight: 700; }
.sec-card h3 { font-size: 21px; margin: 10px 0 8px; }
ul.minus { list-style: none; display: grid; gap: 6px; }
ul.minus li { position: relative; padding-left: 20px; }
ul.minus li::before { content: ""; position: absolute; left: 0; top: .74em; width: 10px; height: 2.5px; border-radius: 2px; background: var(--acc); }
.sec-card ul.minus { font-size: 15px; color: var(--sec); }
.sec-card .more { font-size: 14px; color: var(--acc); font-weight: 700; margin-top: 8px; }
.sec-card.plus { background: var(--accd); border-color: transparent; color: #fff; }
.plus .num, .plus .num span { color: #fff; }
.plus ul.minus { color: rgba(255,255,255,.85); }
.plus ul.minus li::before { background: #fff; }

/* пример сценария */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 16px; margin-top: 24px;
  box-shadow: 0 20px 50px rgba(55,48,163,.10); }
.demo-title { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; font-weight: 800; font-size: 17px; }
.demo-title span { flex: none; color: #fff; background: var(--acc); border-radius: 9px; padding: 3px 9px; font-size: 14px; }
.tabs { display: none; }
.js .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--tint); padding: 4px; border-radius: 14px; margin-bottom: 12px; }
.tab { font: inherit; font-size: 14px; font-weight: 800; border: 0; background: transparent; color: var(--sec); padding: 9px 4px; border-radius: 10px;
  cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(23,23,28,.08); }
.pane { border-radius: 16px; padding: 14px 16px; font-size: 15.5px; }
.pane + .pane { margin-top: 10px; }
.js .pane + .pane { margin-top: 0; }
.pane pre { font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.pane.was { background: var(--bg); border-left: 4px solid var(--was); }
.pane.prompt { background: var(--tint); }
.pane.now { border: 1px solid var(--line); border-left: 4px solid var(--now); }
.pane.check { background: var(--bg); border-left: 4px solid var(--now); }
.tag { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.was .tag { color: var(--was); } .prompt .tag { color: var(--accd); } .now .tag, .check .tag { color: var(--now); }
.meta { font-size: 12.5px; color: var(--sec); margin-top: 10px; }
.copy, .next { display: none; font: inherit; font-weight: 800; border: 0; cursor: pointer; }
.js .copy, .js .next { display: inline-flex; }
.copy { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--acc); border-radius: 8px; padding: 6px 10px; }
.copy.done { background: var(--now); }
.next { margin-top: 12px; font-size: 14.5px; color: var(--acc); background: none; padding: 4px 0; }
.check ul.minus li::before { background: var(--now); }

/* цена: билет с перфорацией */
.ticket { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; margin-top: 24px;
  box-shadow: 0 26px 60px rgba(55,48,163,.14); }
.ticket-main { padding: 24px 22px; }
.ticket-main h3 { font-size: 22px; margin-bottom: 14px; }
.ticket-main ul.minus { gap: 9px; }
.ticket-side { position: relative; padding: 30px 22px 24px; background: var(--acc); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ticket-side::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 18px;
  background: radial-gradient(circle at 11px 9px, var(--card) 7px, transparent 7.5px) 0 0 / 22px 18px repeat-x; }
@media (min-width: 820px) {
  .ticket { grid-template-columns: 1.35fr 1fr; }
  .ticket-main { padding: 30px 30px; }
  .ticket-side { padding: 30px 30px 30px 36px; }
  .ticket-side::before { left: -9px; right: auto; top: 0; bottom: 0; width: 18px; height: auto;
    background: radial-gradient(circle at 9px 11px, var(--card) 7px, transparent 7.5px) 0 0 / 18px 22px repeat-y; }
}
.sum { font-size: 60px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.once { font-size: 15px; opacity: .85; }
.ticket-side .btn.main { background: #fff; color: var(--accd); box-shadow: none; margin-top: 8px; }
.ticket-side .btn.off { background: rgba(255,255,255,.16); color: #fff; margin-top: 8px; text-align: center; }
.ticket-side .small { color: rgba(255,255,255,.82); }
.small { font-size: 13px; color: var(--sec); }
.legal-note { margin-top: 14px; }

/* вопросы: плюс превращается в минус */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 8px; }
summary { list-style: none; cursor: pointer; padding: 16px 56px 16px 18px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px;
  border-radius: 2px; background: var(--acc); transition: transform .25s; }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
details p { padding: 0 18px 16px; color: var(--sec); }

/* подвал */
footer { margin-top: 70px; background: var(--card); border-top: 1px solid var(--line); padding: 10px 0 40px; font-size: 14px; color: var(--sec); }
.wordmark { display: flex; align-items: center; gap: .14em; font-size: clamp(60px, 15vw, 170px); font-weight: 800; letter-spacing: -.05em;
  line-height: 1; color: #E4E4F0; white-space: nowrap; margin: 18px 0 22px; user-select: none; }
.wordmark i { width: .5em; height: .12em; border-radius: .06em; background: var(--acc); flex: none; }
footer p + p { margin-top: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; }
footer nav a { font-weight: 700; }

/* документы и служебные страницы */
.doc { padding: 26px 0 0; }
.doc h1 { font-size: clamp(30px, 6vw, 44px); margin: 14px 0 20px; }
.doc .md { font-size: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.doc .md .h { font-size: 20px; margin-top: 1.1em; }
.doc .md .h:first-child { margin-top: 0; }
.doc .md table.mdt { display: block; overflow-x: auto; }
.lost { text-align: left; padding: 40px 0 10px; }
.lost .big { font-size: clamp(90px, 26vw, 200px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .band { justify-content: center; }
  .band-track { flex-wrap: wrap; justify-content: center; white-space: normal; padding: 0 16px; row-gap: 8px; }
  .band-track[aria-hidden] { display: none; }
  .again { display: none !important; }
}

.md .p, .md .li { margin: 0; }
.md .gap { height: .55em; }
.md .h { font-weight: 800; margin-top: .2em; }
.md .li { display: flex; gap: .45em; }
.md .li.sub { margin-left: 18px; }
.md .li .mk { flex: none; min-width: 1.1em; color: var(--sec); }
.md code { font-family: Consolas, "Courier New", monospace; font-size: .92em; background: var(--tint); border-radius: 4px; padding: 0 .25em; }
.md pre.code { font-family: Consolas, "Courier New", monospace; font-size: .9em; background: var(--tint); border-radius: 8px;
  padding: .5em .7em; margin: .3em 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: .5em 0; }
.md .quote { border-left: 3px solid var(--line); padding-left: .6em; color: var(--sec); }
.md table.mdt { border-collapse: collapse; margin: .3em 0; font-size: .92em; }
.md table.mdt th, .md table.mdt td { border: 1px solid var(--line); padding: .2em .5em; text-align: left; }
.md table.mdt th { background: var(--tint); }

