@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Primitive palette */
  --p-cream: oklch(0.9668 0.0095 93.57);
  --p-beige: oklch(0.8898 0.0134 82.40);
  --p-sage: oklch(0.9236 0.0100 181.39);
  --p-cool: oklch(0.9357 0.0080 286.24);
  --p-paper: oklch(0.9942 0.0069 88.64);
  --p-ink: oklch(0.2178 0.0000 89.88);
  --p-dark: oklch(0.1448 0.0000 89.88);
  --p-muted: oklch(0.4701 0.0128 76.50);
  --p-success: oklch(0.4383 0.0554 167.73);
  --p-error: oklch(0.4696 0.1122 29.12);
  /* Semantic palette */
  --surface: var(--p-cream);
  --surface-secondary: var(--p-beige);
  --surface-document: var(--p-paper);
  --text: var(--p-ink);
  --text-muted: var(--p-muted);
  --text-inverse: var(--p-paper);
  --action: var(--p-ink);
  --action-hover: oklch(0.31 0.006 80);
  --focus: var(--p-success);
  --danger: var(--p-error);
  /* Component tokens */
  --header-bg: color-mix(in oklch, var(--p-cream) 92%, transparent);
  --line: color-mix(in oklch, var(--p-ink) 24%, transparent);
  --line-strong: color-mix(in oklch, var(--p-ink) 55%, transparent);
  --button-radius: 0;
  --shell: 77.5rem;
  --measure: 47rem;
  --header-height: 5rem;
  --space-section: 6rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body {
  min-width: 20rem;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, [role="button"] { cursor: pointer; }
button { color: inherit; }
p + p { margin-top: 1.25rem; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(2.125rem, 7vw, 3.5rem); }
h3 { font-size: 1.25rem; }
::selection { color: var(--p-paper); background: var(--p-success); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--p-paper);
  background: var(--p-dark);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; z-index: 0; inset: 0; pointer-events: none; }
.ambient__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 240ms ease-out; }
.ambient__layer.is-active { opacity: 1; }
.ambient__layer[data-bg="cream"] { background: var(--p-cream); }
.ambient__layer[data-bg="beige"] { background: var(--p-beige); }
.ambient__layer[data-bg="sage"] { background: var(--p-sage); }
.ambient__layer[data-bg="cool"] { background: var(--p-cool); }
main { position: relative; z-index: 1; }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 1.25rem; }
.editorial { max-width: var(--measure); }
.section { position: relative; padding-block: var(--space-section); }
.section-label, .eyebrow {
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lead { margin-top: 2rem; font-size: 1.25rem; line-height: 1.55; letter-spacing: -0.015em; }
.editorial > p:not(.section-label, .lead, .prototype-note) { max-width: 67ch; margin-top: 1.5rem; }
.prototype-note {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.prototype-label {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding-block: 0.5rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--line-strong);
  transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}
.text-link:hover { color: var(--p-success); text-decoration-color: currentColor; }
.text-link--large { margin-top: 2rem; font-size: 1.125rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}
.button:active { transform: scale(0.98); }
.button--primary { color: var(--p-paper); background: var(--action); }
.button--primary:hover { background: var(--action-hover); }
.button--light { color: var(--p-dark); background: var(--p-paper); }
.button--light:hover { background: var(--p-sage); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-height); }
.no-js-nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; padding-block: 0.5rem; border-bottom: 1px solid var(--line); }
.no-js-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.25rem; }
.brand { display: flex; flex-direction: column; justify-content: center; min-height: 2.75rem; line-height: 1.25; }
.brand__name { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.02em; }
.brand__role { margin-top: 0.25rem; color: var(--text-muted); font-size: 0.75rem; }
.desktop-nav, .header__cta { display: none; }
.menu-toggle {
  display: grid;
  flex: 0 0 auto;
  place-content: center;
  gap: 0.4375rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: transparent;
}
.menu-toggle span { display: block; width: 1.125rem; height: 1px; background: currentColor; }
.menu-toggle:hover { background: var(--p-beige); }
.mobile-menu { position: fixed; z-index: 50; inset: 0; }
.mobile-menu__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: color-mix(in oklch, var(--p-dark) 55%, transparent); }
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(90vw, 26rem);
  height: 100dvh;
  overflow-y: auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  background: var(--p-cream);
  transform: translateX(100%);
  transition: transform 220ms ease-out;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-strong); }
.mobile-menu__top p { font-size: 0.875rem; font-weight: 600; }
.menu-close { min-height: 2.75rem; padding: 0.5rem 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 0.25rem; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a { display: flex; align-items: center; min-height: 3.75rem; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
.mobile-nav a:hover { color: var(--p-success); }
.mobile-menu__note { margin-top: 2rem; color: var(--text-muted); font-size: 0.875rem; }

.hero { padding-top: 4rem; }
.hero__grid { display: grid; gap: 3.5rem; }
.hero h1 { max-width: 12ch; font-size: clamp(2.625rem, 11vw, 4.75rem); font-weight: 450; line-height: 0.99; }
.hero__lead { max-width: 36rem; margin-top: 2rem; font-size: 1.25rem; line-height: 1.5; letter-spacing: -0.02em; }
.hero__support { max-width: 35rem; margin-top: 1.25rem; color: var(--text-muted); }
.hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; margin-top: 2rem; }
.hero__actions .text-link { justify-content: center; margin-top: 0; }
.trust-line { display: flex; flex-wrap: wrap; gap: 0.625rem 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.trust-line li { font-size: 0.8125rem; }
.trust-line li + li::before { content: "·"; margin-right: 1rem; }
.hero__evidence { max-width: 32rem; }
.document-preview { display: block; padding: 0.75rem; border: 1px solid var(--line-strong); background: var(--surface-document); }
.document-preview > img { width: 100%; max-height: 37rem; object-fit: contain; }
.document-preview__caption { display: grid; gap: 0.5rem; padding: 1rem 0.25rem 0.25rem; font-size: 0.75rem; line-height: 1.45; }
.document-preview__caption > span:last-child { font-weight: 500; text-decoration: underline; text-underline-offset: 0.25rem; }
.document-preview:hover .document-preview__caption > span:last-child { color: var(--p-success); }
.evidence-note { margin-top: 1rem; color: var(--text-muted); font-size: 0.8125rem; line-height: 1.55; }
.evidence-note a { color: var(--text); text-decoration: underline; text-underline-offset: 0.2rem; }

.verification-list { margin-top: 3rem; border-top: 1px solid var(--line-strong); }
.verification-list > div { display: grid; gap: 0.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.verification-list dt { font-weight: 600; }
.verification-list dd { color: var(--text-muted); }
.section-heading { margin-bottom: 3rem; }
.service-list { border-top: 1px solid var(--line-strong); }
.service-item { border-bottom: 1px solid var(--line-strong); }
.service-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 0.75rem 1rem;
  align-items: center;
  min-height: 5rem;
  padding-block: 1.5rem;
  list-style: none;
}
.service-item summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.service-item__category { grid-column: 1; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.service-item__title { grid-column: 1; font-size: 1.375rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; }
.details-marker { position: relative; display: block; grid-column: 2; grid-row: 1 / span 2; width: 2rem; height: 2rem; justify-self: end; }
.details-marker::before, .details-marker::after { content: ""; position: absolute; top: 50%; left: 50%; width: 1rem; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform 180ms ease-out; }
.details-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .details-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.service-item summary:hover .service-item__title { color: var(--p-success); }
.service-item__body { max-width: 47rem; padding: 0 0 2rem; }
.service-item__body p { max-width: 65ch; }
.service-item__result { margin-top: 1rem; color: var(--text-muted); }

.about__grid { display: grid; gap: 3.5rem; }
.about__intro > p:not(.section-label) { max-width: 40rem; }
.about__intro .lead { margin-bottom: 1.5rem; }
.credentials { border-top: 1px solid var(--line-strong); }
.credential { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1.25rem; padding-block: 2rem; border-bottom: 1px solid var(--line-strong); }
.credential__image { align-self: start; padding: 0.375rem; border: 1px solid var(--line); background: var(--p-paper); }
.credential__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.credential__meta { margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.75rem; line-height: 1.45; }
.credential__copy h3 { font-size: 1.125rem; line-height: 1.3; }
.credential__copy > p:not(.credential__meta) { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.55; }
.credential__copy .text-link { font-size: 0.875rem; }

.process-list { border-top: 1px solid var(--line-strong); counter-reset: process; }
.process-list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line-strong); }
.process-list__number { padding-top: 0.2rem; color: var(--text-muted); font-size: 0.75rem; }
.process-list h3 { font-size: 1.25rem; }
.process-list p { max-width: 46rem; margin-top: 0.75rem; color: var(--text-muted); }

.cost__grid { display: grid; gap: 3rem; }
.cost__intro .lead { font-size: 1.125rem; }
.cost-ledger { border-top: 1px solid var(--line-strong); }
.cost-ledger__row { padding-block: 1.5rem; border-bottom: 1px solid var(--line-strong); }
.cost-ledger__row h3 { font-size: 1.125rem; }
.cost-ledger__row p { margin-top: 0.75rem; color: var(--text-muted); }
.cost-ledger__principle { padding-top: 1.5rem; font-size: 1.125rem; font-weight: 500; }

.faq__grid { display: grid; gap: 3rem; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { display: grid; grid-template-columns: minmax(0, 1fr) 2rem; gap: 1rem; align-items: center; min-height: 4.5rem; padding-block: 1.25rem; font-weight: 500; line-height: 1.4; list-style: none; }
.faq-list summary:hover { color: var(--p-success); }
.faq-list .details-marker { grid-row: 1; }
.faq-list details > p { max-width: 65ch; padding: 0 0 1.75rem; color: var(--text-muted); }

.contact { position: relative; padding-top: var(--space-section); color: var(--text-inverse); background: var(--p-dark); }
.contact__grid { display: grid; gap: 3rem; }
.contact__intro > p:not(.section-label, .contact__verify) { max-width: 38rem; margin-top: 1.5rem; color: var(--p-beige); }
.contact__intro h2 { max-width: 13ch; }
.direct-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-top: 2rem; font-style: normal; }
.direct-contacts a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.125rem; text-decoration: underline; text-underline-offset: 0.3rem; overflow-wrap: anywhere; }
.direct-contacts a:hover { color: var(--p-sage); }
.contact__verify { max-width: 35rem; margin-top: 1.25rem; color: var(--p-beige); font-size: 0.75rem; line-height: 1.55; }
.contact-form { padding-top: 2rem; border-top: 1px solid color-mix(in oklch, var(--p-paper) 40%, transparent); }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.form-field label span { color: var(--p-beige); font-size: 0.75rem; font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--p-paper) 55%, transparent);
  border-radius: 0;
  color: var(--p-paper);
  background: transparent;
}
.form-field textarea { min-height: 7rem; resize: vertical; }
.form-field select { color-scheme: dark; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--p-beige); opacity: 0.8; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-bottom-color: var(--p-paper); box-shadow: 0 2px 0 var(--p-paper); }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-bottom-color: oklch(0.78 0.09 25); }
.field-error { display: block; min-height: 1.25rem; padding-top: 0.25rem; color: oklch(0.82 0.08 25); font-size: 0.75rem; }
.contact-form .button { width: 100%; margin-top: 0.5rem; }
.contact :focus-visible { outline-color: var(--p-paper); }
.form-note { margin-top: 1rem; color: var(--p-beige); font-size: 0.75rem; line-height: 1.55; }
.form-status { margin-top: 1.25rem; padding: 1rem; color: var(--p-dark); background: var(--p-sage); font-size: 0.875rem; }
.form-status.is-error { color: var(--p-paper); background: var(--p-error); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 5rem; padding-block: 2rem max(2rem, env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in oklch, var(--p-paper) 25%, transparent); color: var(--p-beige); font-size: 0.75rem; }
.footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--p-paper); text-decoration: underline; text-underline-offset: 0.25rem; }

@media (min-width: 40rem) {
  :root { --space-section: 7rem; }
  .shell { padding-inline: 2rem; }
  .hero__actions { flex-direction: row; align-items: center; gap: 1.5rem; }
  .hero__actions .text-link { justify-content: flex-start; }
  .document-preview__caption { grid-template-columns: 1fr auto; align-items: end; }
  .verification-list > div { grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; }
  .credential { grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; }
  .credential__copy h3 { font-size: 1.375rem; }
  .contact-form .button { width: auto; min-width: 12rem; }
}

@media (min-width: 48rem) {
  .header__cta { display: inline-flex; align-items: center; min-height: 2.75rem; margin-left: auto; font-size: 0.875rem; font-weight: 500; text-decoration: underline; text-underline-offset: 0.25rem; }
  .header__cta:hover { color: var(--p-success); }
  .menu-toggle { margin-left: 0.5rem; }
  .cost-ledger__row { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; }
  .cost-ledger__row p { margin-top: 0; }
}

@media (min-width: 60rem) {
  :root { --space-section: 9rem; --header-height: 5.5rem; }
  .hero { padding-top: 6rem; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.72fr); gap: 5rem; align-items: center; }
  .hero__evidence { justify-self: end; }
  .about__grid { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 6rem; align-items: start; }
  .about__intro, .faq__intro { position: sticky; top: calc(var(--header-height) + 2rem); }
  .cost__grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 6rem; }
  .faq__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 6rem; align-items: start; }
  .contact__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6rem; }
  .contact-form { padding-top: 0; padding-left: 3rem; border-top: 0; border-left: 1px solid color-mix(in oklch, var(--p-paper) 40%, transparent); }
}

@media (min-width: 67.5rem) {
  .desktop-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
  .desktop-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.875rem; }
  .desktop-nav a:hover { color: var(--p-success); }
  .header__cta { margin-left: 1rem; }
  .menu-toggle { display: none; }
  .service-item summary { grid-template-columns: 11rem minmax(0, 1fr) 2rem; gap: 2rem; }
  .service-item__category, .service-item__title { grid-column: auto; }
  .service-item__title { font-size: 1.625rem; }
  .details-marker { grid-column: 3; grid-row: 1; }
  .service-item__body { margin-left: 13rem; }
  .process-list li { grid-template-columns: 6rem minmax(0, 1fr); gap: 2rem; padding-block: 2rem; }
  .process-list h3 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mobile-menu__panel { transform: none; }
}
