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

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

@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --steel: #15181C;
  --light: #F1EDE6;
  --accent: #E0603A;
  --sky: #8E9AA6;
  --line: #2A2E34;
  --pad: 64px;
}

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

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

body {
  background: var(--steel);
  color: var(--light);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  background: var(--steel);
  isolation: isolate;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 70%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(21, 24, 28, .74) 0, rgba(21, 24, 28, .3) 52%, rgba(21, 24, 28, 0) 75%),
    linear-gradient(to bottom, rgba(21, 24, 28, .45) 0, rgba(21, 24, 28, 0) 160px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { flex: none; width: 48px; height: 48px; }
.brand__name {
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--light);
  white-space: nowrap;
}
.brand__name b { font-weight: 800; }
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav__links a:hover,
.nav__links a:focus-visible { border-bottom-color: var(--accent); }

.hero__body { padding: 190px 0 81px; max-width: 680px; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
}
.eyebrow--accent { color: var(--accent); }

h1, h2 {
  font-family: "Unbounded", "Onest", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}
h1 {
  margin-top: 28px;
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: 1.07;
}
.lead {
  margin-top: 23px;
  max-width: 540px;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(241, 237, 230, .88);
}

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 31px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 59px;
  padding: 0 30px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--accent); color: var(--steel); }
.btn--primary:hover,
.btn--primary:focus-visible { background: #ec7351; }
.btn--ghost { border-color: rgba(241, 237, 230, .45); color: var(--light); }
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--light); }

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

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--first { padding-top: 96px; }
.section--line { border-top: 1px solid var(--line); }

.req { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; font-weight: 600; font-size: 22px; line-height: 1.4; }
.req a { border-bottom: 1px solid var(--accent); transition: color .2s; }
.req a:hover, .req a:focus-visible { color: var(--accent); }

/* ---------- Form ---------- */
.form__title { margin-top: 24px; max-width: 640px; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.form { margin-top: 40px; max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  font: 500 17px/1 "Onest", system-ui, sans-serif;
  color: var(--light);
  background: #1b1f24;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .2s;
}
.field input:hover { border-color: #3a3f46; }
.field input:focus { outline: none; border-color: var(--accent); }
.field input:user-invalid { border-color: #c0453a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(241, 237, 230, .7); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.check a { color: var(--light); border-bottom: 1px solid rgba(241, 237, 230, .35); }
.check a:hover, .check a:focus-visible { border-bottom-color: var(--accent); }
.form__submit { align-self: flex-start; cursor: pointer; font-family: inherit; }
.form__submit:hover, .form__submit:focus-visible { background: #ec7351; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 48px; }
.footer__grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer .brand__name { font-size: 20px; }
.footer small { font-size: 14px; color: rgba(241, 237, 230, .55); }
.footer__docs { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(241, 237, 230, .65); }
.footer__docs a { border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.footer__docs a:hover, .footer__docs a:focus-visible { color: var(--light); border-bottom-color: var(--accent); }
.footer__contacts { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.footer__mail {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  border-bottom: 1px solid var(--accent);
  transition: color .2s;
}
.footer__tg { margin-top: 10px; font-size: 15px; color: rgba(241, 237, 230, .75); transition: color .2s; }
.footer__mail:hover, .footer__mail:focus-visible, .footer__tg:hover, .footer__tg:focus-visible { color: var(--accent); }

/* ---------- Document pages ---------- */
.page .nav { padding-bottom: 8px; }
.nav__back { font-weight: 500; font-size: 15px; color: rgba(241, 237, 230, .75); }
.nav__back:hover, .nav__back:focus-visible { color: var(--accent); }
.doc { max-width: 860px; padding-top: 56px; padding-bottom: 96px; font-size: 17px; line-height: 1.7; color: rgba(241, 237, 230, .85); }
.doc h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; color: var(--light); }
.doc h2 { margin-top: 44px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; color: var(--light); }
.doc .meta { margin: 14px 0 32px; color: var(--sky); font-size: 15px; }
.doc p { margin-top: 14px; }
.doc ul { margin: 12px 0 0 1.3em; list-style: disc; }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--accent); }
.result .btn { margin-top: 12px; color: var(--steel); border: 1px solid transparent; }
.doc .btn { border-bottom: 1px solid transparent; }
.doc b { color: var(--light); font-weight: 600; }
.doc a { color: var(--light); border-bottom: 1px solid var(--accent); }
.doc a:hover, .doc a:focus-visible { color: var(--accent); }


/* ---------- Telegram bot ---------- */
.bot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.bot__lead { margin-top: 24px; max-width: 620px; color: rgba(241, 237, 230, .85); }
.bot__lead b { color: var(--light); font-weight: 600; }
.bot__list { margin-top: 24px; max-width: 620px; display: flex; flex-direction: column; gap: 12px; }
.bot__list li { position: relative; padding-left: 28px; line-height: 1.5; }
.bot__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--accent); }
.bot__qr { padding: 20px; background: var(--light); color: var(--steel); text-align: center; }
.bot__qr img { width: 250px; height: 250px; image-rendering: pixelated; }
.bot__qr figcaption { margin-top: 12px; font-size: 14px; line-height: 1.4; font-weight: 500; }
@media (max-width: 900px) {
  .bot { grid-template-columns: 1fr; gap: 40px; }
  .bot__qr { justify-self: start; }
}
@media (max-width: 760px) {
  .bot__qr img { width: 200px; height: 200px; }
  .bot__list li { font-size: 17px; }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1100px) {
  .hero__shade { background: linear-gradient(to right, rgba(21, 24, 28, .85) 0, rgba(21, 24, 28, .5) 60%, rgba(21, 24, 28, .2) 100%), linear-gradient(to bottom, rgba(21, 24, 28, .45) 0, rgba(21, 24, 28, 0) 160px); }
}

@media (max-width: 760px) {
  :root { --pad: 24px; }
  body { font-size: 17px; }
  .hero { min-height: 720px; }
  .hero__photo { object-position: 60% 62%; }
  .hero__shade { background: linear-gradient(to bottom, rgba(21, 24, 28, .6), rgba(21, 24, 28, .3) 45%, rgba(21, 24, 28, .8)); }
  .nav { padding-top: 20px; }
  .brand__mark { width: 40px; height: 40px; }
  .section { padding: 72px 0; }
  .section--first { padding-top: 64px; }
  .form__submit { width: 100%; }
  .req { font-size: 19px; }
  .doc { padding-top: 32px; padding-bottom: 64px; font-size: 16px; }
  .brand__name { font-size: 17px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 14px; }
  .hero__body { padding: 96px 0 56px; }
  .btn { height: 54px; padding: 0 24px; }
  .list li { font-size: 18px; }
}

@media (max-width: 520px) {
  .footer__contacts { text-align: left; align-items: flex-start; }
  .nav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__body { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
