/* BlackBird — лендинг, оформление B1 «Монохром». Без внешних ресурсов: шрифты лежат рядом. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-tight-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-tight-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-tight-latin-wght-normal.woff2) format("woff2-variations");
  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 {
  --bg: #000000;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --faint: #6b6b6b;
  --rule: #262626;
  --step: #3a3a3a;
  --inv-muted: #555555;
  --inv-rule: #d4d4d4;
  --pad: clamp(16px, 3.4vw, 48px);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--pad);
  top: 8px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.nb {
  white-space: nowrap;
}

/* ---------- шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

/* Якоря (#how, #plans, #faq) не прячутся под закреплённой шапкой */
section[id] {
  scroll-margin-top: 88px;
}

.top .wrap {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
}

.brand span {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

.menu a {
  padding: 12px 0;
}

.top-actions {
  margin-left: auto;
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

@media (max-width: 720px) {
  .menu {
    display: none;
  }
}

/* На телефоне в шапке остаётся одна кнопка: «Войти в кабинет» есть на первом экране */
@media (max-width: 440px) {
  .top-actions .btn:not(.btn-fill) {
    display: none;
  }
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-fill {
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.btn-lg {
  min-height: 60px;
  padding: 0 26px;
  font-family: var(--display);
  font-size: 18px;
}

@media (max-width: 480px) {
  .btn-lg {
    width: 100%;
    gap: 12px;
    padding: 0 20px;
    font-size: 17px;
  }
}

/* ---------- первый экран ---------- */

.hero {
  padding-top: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}

h1,
h2,
.big {
  font-family: var(--display);
  font-weight: 800;
}

h1 {
  margin: 20px 0 0;
  max-width: 11ch;
  font-size: clamp(42px, min(7.4vw, 13vh), 108px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

h2,
.big {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead {
  margin: 28px 0 0;
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.fine {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- цифры ---------- */

.stats {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stats ul {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .stats ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stats li {
  min-width: 0;
  padding: 32px 24px;
  border-right: 1px solid var(--rule);
}

/* У левой колонки отступа нет: две колонки — каждая нечётная, четыре — только первая */
.stats li:nth-child(odd) {
  padding-left: 0;
}

.stats li:nth-child(even) {
  border-right: 0;
}

@media (min-width: 900px) {
  .stats li:nth-child(even) {
    border-right: 1px solid var(--rule);
  }

  .stats li:last-child {
    border-right: 0;
  }

  .stats li:nth-child(odd) {
    padding-left: 24px;
  }

  .stats li:first-child {
    padding-left: 0;
  }
}

.stats b {
  display: block;
  font-family: var(--display);
  font-size: clamp(56px, 6.2vw, 96px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.stats span {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 560px) {
  .stats ul {
    grid-template-columns: 1fr;
  }

  .stats li {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .stats li {
    padding-left: 0;
  }

  .stats li:last-child {
    border-bottom: 0;
  }
}

/* ---------- разделы ---------- */

.section {
  padding-top: clamp(64px, 7vw, 112px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.section-head p {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  border-top: 1px solid var(--rule);
  counter-reset: step;
}

.steps li {
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--step);
}

.steps h3 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.steps p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- тарифы ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.plan {
  --pm: var(--muted);
  --pr: var(--rule);
  padding: 28px 24px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.plan.hi {
  --pm: var(--inv-muted);
  --pr: var(--inv-rule);
  background: var(--text);
  color: var(--bg);
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.plan h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.badge {
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan.hi .badge {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--text);
}

.plan > p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pm);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
}

.price b {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price span {
  font-size: 14px;
  color: var(--pm);
  white-space: nowrap;
}

.plan dl {
  margin: 20px 0 0;
}

.plan dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--pr);
  font-size: 14px;
}

.plan dt {
  color: var(--pm);
}

.plan dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.plans-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 28px;
}

.plans-foot p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* В ряду из пяти колонок цены стоят на одной линии */
@media (min-width: 1100px) {
  .plan > p {
    min-height: 88px;
  }
}

/* ---------- вопросы ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px 64px;
  padding-bottom: clamp(64px, 7vw, 112px);
}

.faq-list {
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
}

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

.faq details p {
  margin: 0;
  padding: 0 40px 22px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- финал и подвал ---------- */

.final {
  border-top: 1px solid var(--rule);
}

.final .wrap {
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(56px, 6vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 40px;
}

.final .big {
  max-width: 14ch;
}

.foot {
  border-top: 1px solid var(--rule);
}

.foot .wrap {
  padding-top: 28px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--muted);
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

/* ---------- 404 ---------- */

.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
