/* Лендинг getapri.app — одна статическая страница (SEO/ЛЕНДИНГ-ТЗ.md). Цвета и шрифты — значения токенов
   apps/web/src/app/globals.css (--paper, --text, --accent…), переписанные числами: пакет не зависит от приложения.
   Тема системная; тёмная — через prefers-color-scheme. */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/rubik-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #ede5d9;
  --surface: #ffffff;
  --surface-2: #f6f0e6;
  --text: #1e1810;
  --text-2: #5f5147;
  --text-3: #74634f;
  --border: #dcd0bd;
  --border-strong: #e2cdba;
  --accent: #a8410b;
  --accent-ui: #c25415;
  --accent-press: #d95f1e;
  --accent-ink: #ffffff;
  --display: "Rubik", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100e0c;
    --surface: #171614;
    --surface-2: #1e1c19;
    --text: #f4efe9;
    --text-2: #b3a89f;
    --text-3: #8a7f76;
    --border: #2a2723;
    --border-strong: #46352a;
    --accent: #e88c3e;
    --accent-ui: #e88c3e;
    --accent-press: #f5a85a;
    --accent-ink: #20120a;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--text);
  font: 400 16px / 1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--text);
}

.dot {
  color: var(--accent);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-right: 16px;
  padding-left: 16px;
}

/* Шапка */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 700 26px / 1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

.quiet {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font: 600 14px / 1 var(--body);
  text-decoration: none;
}

.quiet:hover {
  border-color: var(--text-3);
}

/* Первый экран */
.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 48px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 34em;
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.55;
}

.name {
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent-ui);
  color: var(--accent-ink);
  font: 600 16px / 1 var(--body);
  text-decoration: none;
}

.cta:hover {
  background: var(--accent-press);
}

.link {
  color: var(--text);
  font-weight: 600;
  text-underline-offset: 3px;
}

.hero-art img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
}

/* Блоки */
.block {
  padding-top: 40px;
  padding-bottom: 40px;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.block p,
.final p {
  margin: 0;
  color: var(--text-2);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid4,
.grid2 {
  display: grid;
  gap: 16px;
}

.tile {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.ico {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.familiar {
  display: grid;
  gap: 12px;
}

.familiar li {
  padding: 16px 20px;
  border-left: 3px solid var(--accent-ui);
  border-radius: 4px 14px 14px 4px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 17px;
}

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-ui);
  color: var(--accent-ink);
  font: 700 17px / 1 var(--display);
}

.note {
  margin-top: 16px !important;
}

.grid2 li {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.faq {
  max-width: 760px;
}

.faq h3 {
  margin-top: 24px;
}

.faq h3:first-child {
  margin-top: 0;
}

.final {
  padding-top: 56px;
  padding-bottom: 64px;
  text-align: center;
}

.final h2 {
  margin-bottom: 12px;
}

.final .cta {
  margin-top: 24px;
}

/* Подвал */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 15px;
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* 404 */
.nf {
  padding-top: 80px;
  padding-bottom: 120px;
  text-align: center;
}

.nf p {
  margin: 0 0 24px;
  color: var(--text-2);
}

@media (min-width: 720px) {
  .grid4,
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .wrap {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .grid4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .block {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
