:root {
  --ink: #0a0c0e;
  --bg: #0f1114;
  --surface: #161a1e;
  --surface-2: #1e2329;
  --line: #2a3037;
  --edge: #3b424c;
  --faint: #7a828b;
  --muted: #a1a7ae;
  --text: #ece8df;
  --accent: #ffb224;
  --accent-hover: #ffc457;
  --accent-ink: #1b1304;

  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --accent-ring: color-mix(in srgb, var(--accent) 22%, transparent);
  --veil: color-mix(in srgb, var(--bg) 92%, transparent);
  --shadow: 0 12px 32px color-mix(in srgb, var(--ink) 80%, transparent);

  --font-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fira Sans Condensed", "Fira Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;
  --s9: 112px;

  --r: 4px;
  --wrap: 1160px;
  --gutter: 24px;
}

@supports not (color: color-mix(in srgb, red, red)) {
  :root {
    --accent-soft: rgba(255, 178, 36, 0.12);
    --accent-line: rgba(255, 178, 36, 0.45);
    --accent-ring: rgba(255, 178, 36, 0.22);
    --veil: rgba(15, 17, 20, 0.92);
    --shadow: 0 12px 32px rgba(10, 12, 14, 0.8);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

.i18n-wait body {
  visibility: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

:where(a) {
  color: var(--accent);
  text-underline-offset: 3px;
}

:where(a:hover) {
  color: var(--accent-hover);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: var(--s6);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
}

h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip:focus {
  left: 16px;
}

.tag {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 18px/1.1 var(--font-head);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--ghost {
  border-color: var(--edge);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--muted);
  background: var(--surface-2);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 16px;
}

.btn__short {
  display: none;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--veil);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.top__in {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--text);
  text-decoration: none;
}

.logo__mark {
  flex: none;
}

.logo__outline {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
}

.logo__band {
  fill: var(--accent);
}

.logo__glyph {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo__tag {
  max-width: 9.5em;
  color: var(--muted);
  font: 400 12px/1.25 var(--font-mono);
}

.logo:hover .logo__tag {
  color: var(--text);
}

.top__nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.top__nav a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--text);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.lang button {
  min-width: 42px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang button:hover {
  color: var(--text);
}

.lang button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--text);
}

.lang button:focus-visible {
  outline-offset: -2px;
}

.hero {
  padding: var(--s7) 0 var(--s8);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--s7);
  align-items: center;
}

.hero__lead {
  max-width: 32em;
  margin-top: var(--s5);
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}

.facts {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin: var(--s6) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font: 400 13px/1.4 var(--font-mono);
}

.facts li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: var(--s2);
  background: var(--accent);
  vertical-align: middle;
}

.hero__visual {
  position: relative;
  padding-top: var(--s5);
}

.osd {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: min(46%, 270px);
  margin: 0;
  padding: 10px 12px 8px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: rgba(10, 12, 14, 0.92);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
}

.osd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.osd__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.osd__key {
  width: 12px;
  height: 2px;
  background: var(--faint);
}

.osd__key--after {
  margin-left: 4px;
  background: var(--accent);
}

.osd__graph {
  width: 100%;
  height: auto;
  margin: 8px 0 6px;
}

.osd__grid {
  stroke: var(--line);
  stroke-dasharray: 2 4;
}

.osd__before {
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.osd__after {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s 0.5s ease-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.osd__foot {
  color: var(--muted);
  font-size: 10.5px;
}

.board {
  width: 100%;
  height: auto;
}

.sv-pcb {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 2;
}

.sv-trace {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
}

.sv-hole {
  fill: none;
  stroke: var(--edge);
  stroke-width: 2;
}

.sv-part {
  fill: var(--surface-2);
  stroke: var(--edge);
  stroke-width: 1.5;
}

.sv-slot {
  fill: var(--bg);
  stroke: var(--edge);
  stroke-width: 1.5;
}

.sv-latch {
  fill: var(--edge);
}

.sv-fin {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.sv-hl {
  fill: var(--surface-2);
  stroke: var(--accent);
  stroke-width: 2;
}

.sv-fan {
  fill: var(--bg);
  stroke: var(--edge);
  stroke-width: 1.5;
}

.sv-blade {
  fill: var(--line);
}

.sv-hub {
  fill: var(--surface-2);
  stroke: var(--edge);
}

.sv-lead {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.sv-dot {
  fill: var(--accent);
}

.sv-label {
  fill: var(--text);
  font: 600 22px var(--font-head);
  letter-spacing: 0.04em;
}

.sv-sub {
  fill: var(--muted);
  font: 400 15px var(--font-mono);
}

.section {
  padding: var(--s8) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.readouts li {
  padding: var(--s5) 0 var(--s6);
  border-top: 1px solid var(--line);
}

.readouts h3 {
  margin: 14px 0 var(--s2);
}

.readouts p {
  color: var(--muted);
}

.spec__head,
.spec__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6);
}

.spec__head {
  padding-bottom: var(--s3);
  color: var(--muted);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec__row {
  padding: var(--s5) 0;
  border-top: 1px solid var(--line);
}

.spec__name h3 {
  margin-top: 10px;
}

.spec__do {
  color: var(--muted);
}

.spec__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.spec__row--minor h3 {
  color: var(--muted);
  font-size: 18px;
}

.spec__row--minor .tag {
  border-color: var(--edge);
  background: none;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 30px;
  right: calc(-1 * var(--s5));
  height: 2px;
  background: var(--edge);
}

.step__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: var(--surface-2);
  font: 600 13px/1 var(--font-mono);
}

.step:last-child .step__num {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.step h3 {
  margin: var(--s4) 0 var(--s2);
  font-size: 20px;
}

.step p {
  color: var(--muted);
  font-size: 16px;
}

.need {
  margin-top: var(--s7);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
}

.need b {
  color: var(--text);
  font-weight: 600;
}

.honest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  padding: var(--s6);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.honest h3 {
  margin-bottom: var(--s2);
  font-size: 20px;
}

.honest p {
  color: var(--muted);
  font-size: 16px;
}

.prices {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s7);
  align-items: start;
}

.prices h2 {
  margin-bottom: var(--s4);
}

.prices__note {
  color: var(--muted);
}

.price {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price li {
  display: flex;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
}

.price li:last-child {
  border-bottom: 1px solid var(--line);
}

.price__name {
  font-weight: 500;
}

.price__dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted var(--edge);
  transform: translateY(-5px);
}

.price__val {
  font: 600 17px var(--font-mono);
  white-space: nowrap;
}

.faq {
  max-width: 820px;
}

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

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

.faq summary {
  position: relative;
  display: block;
  padding: var(--s5) 48px var(--s5) 0;
  font: 600 21px/1.25 var(--font-head);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font: 400 24px/1 var(--font-mono);
}

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

.faq summary:hover::after {
  color: var(--accent-hover);
}

.faq details p {
  max-width: 46em;
  padding: 0 48px var(--s5) 0;
  color: var(--muted);
}

.request__intro {
  max-width: 40em;
  margin: calc(-1 * var(--s4)) 0 var(--s6);
  color: var(--muted);
}

.request__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s7);
  align-items: start;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 15px;
  font-weight: 500;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font: 400 16px/1.3 var(--font-body);
}

.field input::placeholder {
  color: var(--faint);
}

.field input:hover {
  border-color: var(--muted);
}

.field input:focus {
  outline: 2px solid transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.msg {
  position: sticky;
  top: 88px;
}

.msg__panel {
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--ink);
}

.msg__head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 11px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.msg__text {
  min-height: 240px;
  margin: 0;
  padding: 14px;
  color: var(--text);
  font: 400 14px/1.6 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg__text.is-empty {
  color: var(--muted);
}

.msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s4);
}

.status {
  min-height: 1.6em;
  margin-top: var(--s3);
  color: var(--muted);
  font-size: 15px;
}

.privacy {
  margin-top: var(--s3);
  color: var(--muted);
  font-size: 14px;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin-top: var(--s5);
  color: var(--muted);
  font: 400 14px/1.6 var(--font-mono);
}

.foot {
  padding: var(--s6) 0 var(--s7);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4) var(--s6);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s5);
  margin-left: auto;
}

.foot__links a {
  color: var(--text);
}

.lost {
  padding: var(--s9) 0;
}

.lost__fps {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s3);
  margin-bottom: var(--s5);
  padding: 10px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--ink);
  font-family: var(--font-mono);
}

.lost__fps span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lost__fps b {
  color: var(--accent);
  font-size: 40px;
  line-height: 1;
}

.lost p {
  max-width: 32em;
  margin: var(--s4) 0 var(--s6);
  color: var(--muted);
  font-size: 19px;
}

@media (max-width: 960px) {
  .top__nav {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .hero__grid,
  .prices,
  .request__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__grid {
    gap: var(--s6);
  }

  .hero__visual {
    max-width: 640px;
  }

  .spec__head {
    display: none;
  }

  .spec__row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s3);
  }

  .spec__label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    margin-bottom: 2px;
    color: var(--muted);
    font: 600 11px/1.4 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s6) var(--s5);
  }

  .step:not(:last-child)::before {
    display: none;
  }

  .honest {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
  }

  .msg {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: var(--s7) 0;
  }

  .top__in {
    gap: var(--s3);
  }

  .top .logo__tag,
  .top .btn__long {
    display: none;
  }

  .top .btn__short {
    display: inline;
  }

  .need {
    padding: var(--s4);
  }

  .msg__text.is-empty {
    min-height: 0;
  }

  .lang button {
    min-height: 44px;
    min-width: 46px;
  }

  .hero {
    padding: var(--s6) 0 var(--s7);
  }

  .hero__lead {
    font-size: 17px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .facts {
    margin-top: var(--s5);
  }

  .hero__visual {
    display: flex;
    flex-direction: column;
    padding-top: 0;
  }

  .osd {
    position: relative;
    order: 2;
    width: 100%;
    margin-top: var(--s3);
    box-shadow: none;
  }

  .sv-sub {
    display: none;
  }

  .readouts,
  .steps,
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .readouts {
    gap: 0;
  }

  .steps {
    gap: var(--s5);
  }

  .step {
    padding-left: 46px;
  }

  .step__num {
    position: absolute;
    left: 0;
    top: 0;
  }

  .step h3 {
    margin-top: 3px;
  }

  .step:not(:last-child)::before {
    display: block;
    top: 30px;
    left: 14px;
    right: auto;
    bottom: calc(-1 * var(--s5));
    width: 2px;
    height: auto;
  }

  .honest {
    padding: var(--s5);
  }

  .faq summary {
    font-size: 19px;
  }

  .faq details p {
    padding-right: 0;
  }

  .msg__actions .btn {
    flex: 1 1 100%;
  }

  .foot__links {
    margin-left: 0;
  }
}

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

  .osd__after {
    animation: none;
    stroke-dashoffset: 0;
  }

  .btn {
    transition: none;
  }
}
