@font-face { font-family: 'UI'; src: url(../fonts/ibm-plex-mono-r.ttf); font-weight: 400; }
@font-face { font-family: 'UI'; src: url(../fonts/ibm-plex-mono-b.ttf); font-weight: 700; }
@font-face { font-family: 'Text'; src: url(../fonts/ibm-plex-sans-r.ttf); font-weight: 400; }
@font-face { font-family: 'Text'; src: url(../fonts/ibm-plex-sans-b.ttf); font-weight: 700; }
@font-face { font-family: 'Pix'; src: url(../fonts/pixelify-sans-b.ttf); font-weight: 700; }

:root {
  --ink: #2b2b2b;
  --ink2: #6b6b6b;
  --line: #d6d6d6;
  --desk: #ececec;
  --bg: #ffffff;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 'Text', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* шапка */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); border-bottom: 1px solid var(--ink);
  position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.logo { font: 700 18px 'Pix', 'UI'; display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo i { width: 14px; height: 14px; background: var(--ink); box-shadow: 4px 4px 0 #a3a3a3; display: block; }
.bar-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; }
.lang a, .lang button { font: 400 12px/28px 'UI'; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); height: 30px; padding: 0 8px; cursor: pointer; margin-left: -1px; text-decoration: none; }
.lang a:first-child, .lang button:first-child { margin-left: 0; }
.lang a.on, .lang button.on { background: var(--ink); color: var(--bg); }
.bar-cta { font: 700 13px 'UI'; text-decoration: none; border: 1px solid var(--ink); padding: 6px 12px; white-space: nowrap; }
.bar-cta:hover { background: var(--ink); color: var(--bg); }

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h2 { font: 700 13px 'UI'; text-transform: uppercase; letter-spacing: .14em; color: var(--ink2); margin: 0 0 28px; }

/* первый экран */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding-top: 64px; }
.tag { font: 400 13px 'UI'; color: var(--ink2); margin: 0 0 20px; }
/* крупная пиксельная надпись — оформление; заголовок страницы (h1) — под ней, для поиска и чтения */
.brand { font: 700 clamp(56px, 9vw, 112px)/0.9 'Pix', 'UI'; margin: 0 0 24px; letter-spacing: -0.01em; }
.hero h1 { font: 700 clamp(22px, 2.6vw, 30px)/1.25 'Text', sans-serif; margin: 0 0 14px; max-width: 22em; }
.lead { font-size: 19px; max-width: 30em; margin: 0 0 36px; color: var(--ink2); }

.cta {
  display: inline-flex; align-items: center; gap: 14px;
  font: 700 22px 'UI'; text-decoration: none;
  background: var(--ink); color: var(--bg); padding: 18px 28px;
  box-shadow: 6px 6px 0 #a3a3a3; transition: transform .08s, box-shadow .08s;
}
.cta:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 #a3a3a3; }
.cta:active { transform: translate(6px, 6px); box-shadow: 0 0 0 #a3a3a3; }
.cta span:last-child { font-size: 26px; line-height: 1; }

.hero-sheet { margin: 0; }
.sheet {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 848; background: #fff;
  outline: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--desk);
}
figcaption { font: 400 12px 'UI'; color: var(--ink2); margin-top: 16px; }

/* шаги */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; }
.steps li::before {
  content: counter(s); font: 700 18px 'Pix', 'UI'; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); margin-bottom: 8px;
}
.steps b { font: 700 18px 'UI'; }
.steps span { color: var(--ink2); font-size: 15px; }

/* как сложить */
.fold-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.fold-sheet { width: 100%; height: auto; display: block; }
.fold-steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.fold-steps li::marker { font: 700 15px 'UI'; }

/* вопросы */
.faq dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.faq dt { font: 700 17px 'UI'; margin: 0 0 6px; }
.faq dd { margin: 0; color: var(--ink2); }

/* миссия и автор */
.mission .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mission p { font-size: 21px; line-height: 1.5; margin: 0; }
.author p { font-size: 18px; margin: 0 0 16px; max-width: 40em; }
.author p:last-child { margin-bottom: 0; }
.author .who { font-size: 21px; line-height: 1.5; }
.author .contact { color: var(--ink2); }
.author .contact a, .contacts a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.author .contact a:hover, .contacts a:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.contacts { padding-top: 64px; }
.contacts h1 { font: 700 clamp(44px, 7vw, 80px)/0.95 'Pix', 'UI'; margin: 0 0 32px; }
.clist { display: grid; grid-template-columns: max-content 1fr; gap: 14px 32px; margin: 0; font-size: 20px; }
.clist dt { font: 400 13px/30px 'UI'; text-transform: uppercase; letter-spacing: .12em; color: var(--ink2); }
.clist dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .clist { grid-template-columns: 1fr; gap: 2px; } .clist dd { margin-bottom: 14px; } }

.final { text-align: center; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px var(--gutter); border-top: 1px solid var(--ink);
  font: 400 12px 'UI'; color: var(--ink2);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .mission .cols { grid-template-columns: 1fr; gap: 20px; }
  .fold-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq dl { grid-template-columns: 1fr; }
  .mission p { font-size: 18px; }
  section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .steps ol { grid-template-columns: 1fr; }
  .cta { font-size: 18px; padding: 16px 22px; }
  .lead { font-size: 17px; }
  .bar-cta { display: none; }
}

/* поддержка проекта */
.support p { font-size: 18px; margin: 0 0 24px; max-width: 40em; }
.support .note-sm { font: 400 13px 'UI'; color: var(--ink2); margin-top: -12px; }
.cta-alt { background: var(--bg); color: var(--ink); outline: 2px solid var(--ink); outline-offset: -2px; }
.cta-alt:hover { background: var(--ink); color: var(--bg); }
