:root {
  --paper: #efebf4;
  --board: #e7e1f0;
  --surface: #ffffff;
  --ink: #1c1420;
  --ink2: #3a2f44;
  --muted: #7a6e86;
  --line: #e6dfee;
  --men: #8b6db0;
  --fol: #e9764f;
  --ovu: #f0432f;
  --lut: #5b84b1;
  --ok: #3e9e7a;
  --display: "Unbounded", "Trebuchet MS", sans-serif;
  --body: "Golos Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 8px;
  z-index: 20;
  background: var(--surface);
  padding: 8px 12px;
  text-decoration: none;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  max-width: 1120px;
  margin: 0 auto;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.mark img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}
.nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
}
.nav a.quiet { color: var(--ink2); }
.nav a.go {
  background: var(--ink);
  color: #fff;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 22px 0;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 8.4vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin: 12px 0 0;
}
.hero .dek {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink2);
  max-width: 42ch;
}
.hero-actions {
  margin: 26px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.btn.ink {
  background: var(--ink);
  color: #fff;
}
.btn.ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.cycle {
  margin: 8px 0 0;
  padding: 0 0 8px;
}
.cycle-frame {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px;
}
.bars {
  display: grid;
  grid-template-columns: repeat(28, minmax(0, 1fr));
  gap: 3px;
  align-items: end;
  height: 168px;
  padding: 8px 8px 0;
}
.bar {
  height: calc(var(--h) * 1%);
  background: var(--c);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  animation: rise 700ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i) * 18ms);
}
.bar.today {
  box-shadow: 0 0 0 2px var(--ink);
}
@keyframes rise {
  from { transform: scaleY(0.08); opacity: .35; }
  to { transform: scaleY(1); opacity: 1; }
}
.legend {
  display: grid;
  grid-template-columns: 5fr 8fr 3fr 12fr;
  gap: 3px;
  padding: 8px 8px 18px;
  font-size: 12px;
  color: var(--ink2);
}
.legend span {
  min-width: 0;
}
.legend b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.split {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 22px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 24px;
}
.pane h2 {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.pane p {
  margin: 0;
  color: var(--ink2);
  line-height: 1.5;
  max-width: 42ch;
}
.phone {
  margin: 18px 0 0;
  background: #0f0a14;
  border-radius: 32px;
  padding: 9px;
  box-shadow: 0 28px 50px -24px rgba(28,20,32,.45);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 780;
  object-fit: cover;
  object-position: right top;
  border-radius: 24px;
  background: var(--paper);
}

.phases {
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 12px 22px 40px;
}
.phases h2 {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 0 16px;
}
.phase-row {
  display: grid;
  grid-template-columns: 5fr 8fr 3fr 12fr;
  min-height: 92px;
  border-radius: 18px;
  overflow: hidden;
}
.phase-row > div {
  padding: 16px 14px;
  color: #fff;
}
.phase-row h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: -0.02em;
}
.phase-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.92;
}
.p-men { background: var(--men); }
.p-fol { background: var(--fol); }
.p-ovu { background: var(--ovu); }
.p-lut { background: var(--lut); }

.foot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 22px 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.foot a { text-decoration: none; color: var(--ink2); }

@media (max-width: 820px) {
  .split, .phase-row { grid-template-columns: 1fr; }
  .legend { font-size: 10px; }
  .bars { height: 120px; gap: 2px; }
  .phase-row > div { min-height: 72px; }
  .nav a.quiet { display: none; }
  .phone { max-width: 360px; margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { animation: none; }
}
