@font-face {
  font-family: "Onest Edaru";
  src: url("/assets/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Prata Edaru";
  src: url("/assets/prata-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: oklch(0.975 0.012 89);
  --paper-deep: oklch(0.938 0.025 88);
  --ink: oklch(0.205 0.022 74);
  --ink-soft: oklch(0.42 0.025 72);
  --line: oklch(0.77 0.03 83);
  --yellow: oklch(0.89 0.18 97);
  --yellow-deep: oklch(0.78 0.17 87);
  --green: oklch(0.56 0.11 151);
  --red: oklch(0.52 0.16 25);
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  color-scheme: light;
  font-family: "Onest Edaru", sans-serif;
  font-synthesis: none;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

html[data-theme="help"] {
  --yellow: oklch(0.82 0.11 145);
  --yellow-deep: oklch(0.65 0.13 147);
  --paper-deep: oklch(0.94 0.023 147);
  --line: oklch(0.76 0.035 146);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 48px,
    var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  z-index: -1;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  inset: var(--space-md) auto auto var(--space-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
  z-index: 30;
}

.skip-link:focus {
  transform: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklch, var(--paper) 93%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1320px, calc(100% - 32px));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex: none;
}

.brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.brand span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand b {
  font-size: 0.98rem;
}

.brand small {
  margin-top: var(--space-2xs);
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  text-decoration-color: var(--yellow-deep);
}

.header-help {
  margin-left: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  white-space: nowrap;
}

.hero {
  min-height: calc(100svh - 72px);
  padding-block: clamp(var(--space-2xl), 7vw, var(--space-4xl));
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(var(--space-xl), 6vw, var(--space-4xl));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 var(--space-lg);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin-bottom: var(--space-xl);
  font-family: "Prata Edaru", serif;
  font-size: clamp(2.85rem, 6.8vw, 6.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 62ch;
  margin-bottom: var(--space-xl);
  font-size: clamp(1.06rem, 1.7vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

.button {
  min-height: 52px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(.22, 1, .36, 1), box-shadow 160ms cubic-bezier(.22, 1, .36, 1), background-color 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button:focus-visible,
.choice-button:focus-visible,
summary:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.button-primary {
  color: var(--ink);
  background: var(--yellow);
}

.button-secondary {
  color: var(--ink);
  background: transparent;
}

.button-dark {
  color: var(--paper);
  background: var(--ink);
}

.text-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  text-underline-offset: 5px;
}

.partner-note {
  max-width: 70ch;
  margin: var(--space-lg) 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.hero-figure {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 48% 48% var(--radius-md) var(--radius-md);
  background: var(--paper-deep);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: var(--space-lg);
  border: 1px dashed color-mix(in oklch, var(--ink) 42%, transparent);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero-figure figcaption {
  position: absolute;
  inset: auto var(--space-lg) var(--space-lg) var(--space-lg);
  padding: var(--space-md);
  display: grid;
  gap: var(--space-xs);
  color: var(--ink);
  background: color-mix(in oklch, var(--paper) 93%, transparent);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  z-index: 2;
}

.hero-figure figcaption b {
  font-size: 0.8rem;
}

.hero-figure figcaption span {
  font-family: "Prata Edaru", serif;
  line-height: 1.4;
}

.quick-strip {
  margin-bottom: var(--space-4xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--ink);
}

.quick-item {
  min-height: 180px;
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-content: start;
}

.quick-item + .quick-item {
  border-left: 1px solid var(--ink);
}

.quick-item > span {
  padding-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.quick-item h2 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.quick-item p {
  margin: 0;
  color: var(--ink-soft);
}

.tool-section {
  margin-block: var(--space-4xl);
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(var(--space-xl), 6vw, var(--space-4xl));
  align-items: start;
}

.tool-heading {
  position: sticky;
  top: 112px;
}

.tool-heading h2,
.faq h2,
.next-step h2 {
  font-family: "Prata Edaru", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.tool-heading > p:last-child {
  color: var(--ink-soft);
}

.tool-board {
  min-height: 360px;
  padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
  background: var(--paper-deep);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 color-mix(in oklch, var(--yellow) 70%, var(--ink));
}

.choice-grid {
  display: grid;
  gap: var(--space-sm);
}

.choice-button {
  width: 100%;
  min-height: 68px;
  padding: var(--space-md);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-md);
  align-items: center;
  color: var(--ink);
  text-align: left;
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms cubic-bezier(.22, 1, .36, 1);
}

.choice-button:hover {
  background: var(--paper);
  border-color: var(--ink);
  transform: translateX(4px);
}

.choice-button span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.tool-result {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
}

.tool-result p {
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.tool-result a {
  color: var(--paper);
  font-weight: 750;
  text-underline-offset: 5px;
}

.checklist {
  display: grid;
  gap: var(--space-sm);
}

.checklist label {
  min-height: 58px;
  padding: var(--space-sm) var(--space-md);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-sm);
  align-items: center;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.checklist input {
  position: absolute;
  opacity: 0;
}

.checklist label > span {
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.checklist input:checked + span {
  background: var(--green);
  box-shadow: inset 0 0 0 6px var(--paper);
}

.checklist input:focus-visible + span {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.checklist input:checked ~ b {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.check-progress {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-xs);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.check-progress > div {
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 99px;
  background: var(--paper);
}

.check-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 240ms cubic-bezier(.22, 1, .36, 1);
}

.city-tool {
  display: grid;
  gap: var(--space-sm);
}

.city-tool label {
  font-weight: 800;
}

.city-tool > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
}

.city-tool input {
  min-height: 54px;
  padding: var(--space-sm) var(--space-md);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.city-tool > p {
  min-height: 1.5em;
  color: var(--ink-soft);
}

.diagnostic section {
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: var(--space-lg);
}

.diagnostic-count {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.diagnostic h3 {
  max-width: 26ch;
  font-family: "Prata Edaru", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
}

.diagnostic section > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.article-flow {
  margin-block: var(--space-4xl);
}

.content-section {
  padding-block: clamp(var(--space-2xl), 8vw, var(--space-4xl));
  display: grid;
  grid-template-columns: minmax(80px, 0.28fr) minmax(0, 1fr);
  border-top: 1px solid var(--ink);
}

.section-number {
  font-family: "Prata Edaru", serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  color: var(--yellow-deep);
}

.section-body {
  max-width: 760px;
}

.section-body h2 {
  margin-bottom: var(--space-xl);
  font-family: "Prata Edaru", serif;
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-body > p,
.section-body > ul {
  max-width: 70ch;
  font-size: 1.04rem;
  color: var(--ink-soft);
}

.section-body > p + p {
  margin-top: var(--space-lg);
}

.steps {
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
  padding-block: var(--space-lg);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--space-md);
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(steps);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.steps b {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

.plain-list {
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding: var(--space-md) 0 var(--space-md) 36px;
  border-top: 1px solid var(--line);
}

.plain-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: var(--space-md);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.lena-return {
  margin-block: var(--space-4xl);
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  align-items: stretch;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.lena-return img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.lena-return > div {
  padding: clamp(var(--space-xl), 6vw, var(--space-3xl));
  display: grid;
  align-content: center;
}

.lena-return .eyebrow {
  color: color-mix(in oklch, var(--paper) 65%, transparent);
}

.lena-return q {
  max-width: 26ch;
  font-family: "Prata Edaru", serif;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  line-height: 1.25;
}

.faq {
  margin-block: var(--space-4xl);
}

.faq h2 {
  margin-bottom: var(--space-2xl);
}

.faq-list {
  max-width: 880px;
  margin-left: auto;
}

.faq details {
  border-top: 1px solid var(--ink);
}

.faq details:last-child {
  border-bottom: 1px solid var(--ink);
}

.faq summary {
  min-height: 72px;
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  font-size: 1.05rem;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.faq summary::after {
  content: "+";
  font-family: "Prata Edaru", serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  max-width: 70ch;
  padding: 0 0 var(--space-lg);
  color: var(--ink-soft);
}

.sources {
  margin-block: var(--space-3xl);
  padding-block: var(--space-lg);
  border-block: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.sources b {
  color: var(--ink);
}

.sources p {
  margin: var(--space-xs) 0;
}

.sources ul {
  margin: 0;
  padding-left: 1.2em;
}

.sources a {
  text-underline-offset: 4px;
}

.next-step {
  margin-block: var(--space-4xl);
  padding: clamp(var(--space-xl), 5vw, var(--space-3xl));
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
}

.next-step > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: end;
}

.next-step h2 {
  max-width: 18ch;
  margin-bottom: var(--space-md);
}

.next-step p {
  max-width: 60ch;
  margin: 0;
  color: color-mix(in oklch, var(--ink) 78%, var(--yellow));
}

.site-footer {
  padding-block: var(--space-3xl);
  color: var(--paper);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.6fr;
  gap: var(--space-2xl);
}

.footer-grid b {
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-grid p {
  margin: 0;
  color: color-mix(in oklch, var(--paper) 62%, transparent);
  font-size: 0.82rem;
}

.footer-grid > div:last-child {
  display: grid;
  align-content: start;
  gap: var(--space-sm);
}

.footer-grid a {
  min-height: 36px;
  color: var(--paper);
  text-underline-offset: 5px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .header-help {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: var(--space-xl);
  }

  .hero-figure {
    min-height: 620px;
  }

  .tool-section {
    grid-template-columns: 1fr;
  }

  .tool-heading {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell,
  .header-inner {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
  }

  .top-nav {
    min-width: 0;
    gap: var(--space-lg);
  }

  .top-nav a {
    font-size: 0.78rem;
  }

  .hero {
    padding-top: var(--space-2xl);
    gap: var(--space-2xl);
  }

  h1 {
    max-width: 17ch;
    font-size: clamp(2.55rem, 13vw, 4.5rem);
  }

  .hero-figure {
    min-height: 500px;
    border-radius: 44% 44% var(--radius-md) var(--radius-md);
  }

  .hero-figure figcaption {
    inset: auto var(--space-sm) var(--space-sm) var(--space-sm);
  }

  .quick-strip {
    grid-template-columns: 1fr;
  }

  .quick-item {
    min-height: auto;
  }

  .quick-item + .quick-item {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .tool-section,
  .article-flow,
  .faq,
  .lena-return,
  .next-step {
    margin-block: var(--space-3xl);
  }

  .tool-board {
    min-height: auto;
    padding: var(--space-md);
    box-shadow: 6px 6px 0 color-mix(in oklch, var(--yellow) 70%, var(--ink));
  }

  .city-tool > div {
    grid-template-columns: 1fr;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .section-number {
    font-size: 1.1rem;
  }

  .section-body h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .lena-return {
    grid-template-columns: 1fr;
  }

  .lena-return img {
    min-height: 320px;
    max-height: 460px;
  }

  .next-step > div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .next-step .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
