/* ─────────────────────────────────────────────────────────────────────────
   CryPAY — фирменный стиль: чёрный с золотом, как в картинках бота.
   Шрифты системные: сайт должен открываться мгновенно и без обращений
   на чужие домены, а лишние сто килобайт веб-шрифта того не стоят.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #08080a;
  --bg-alt: #0c0c10;
  --surface: #131318;
  --surface-2: #1a1a21;
  --line: #26262f;
  --line-soft: #1e1e26;

  --gold: #f0b53f;
  --gold-deep: #d0912a;
  --gold-dim: rgba(240, 181, 63, .12);

  --text: #f3f3f5;
  --muted: #9c9caa;
  --muted-2: #6f6f7d;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

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

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p  { margin: 0; }

.gold { color: var(--gold); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: 800px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #000; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ─────────────────────────────── Кнопки ─────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-weight: 650; font-size: .98rem; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn--gold {
  background: linear-gradient(135deg, #f8c85c 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #17120a;
  box-shadow: 0 6px 24px rgba(240, 181, 63, .22);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(240, 181, 63, .34); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--lg { padding: 17px 38px; font-size: 1.06rem; }

/* ─────────────────────────────── Шапка ─────────────────────────────── */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 10, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header__in { display: flex; align-items: center; gap: 28px; height: 70px; }
.header__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 9px; color: var(--gold);
  display: grid; place-items: center;
  background: linear-gradient(150deg, #1d1a12, #0f0e0b);
  border: 1px solid rgba(240, 181, 63, .3);
}
.logo__mark svg { width: 17px; height: 17px; }
.logo__text { font-weight: 800; font-size: 1.24rem; letter-spacing: -.03em; }
.logo__text b { color: var(--gold); font-weight: 800; }

.nav { display: flex; gap: 26px; font-size: .95rem; color: var(--muted); }
.nav a { transition: color .18s ease; }
.nav a:hover { color: var(--text); }

.burger { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 9px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .22s ease, opacity .18s ease; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ────────────────────────────── Первый экран ────────────────────────────── */

/* Снизу отступ заметно меньше, чем сверху: под первым экраном к нему
   прибавляется ещё и отступ витрины, и вместе они давали разрыв почти
   в четверть экрана. */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 44px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(46% 52% at 74% 42%, rgba(240, 181, 63, .17), transparent 68%),
    radial-gradient(38% 46% at 18% 20%, rgba(240, 181, 63, .07), transparent 70%);
}
.hero__in {
  position: relative;
  display: grid;
  /* Первый экран шире остальной страницы, и картинке отдано почти две
     трети: у неё своя надпись и мелкие плитки сервисов, в тесной колонке
     они читались с трудом. Текст при этом не ужимается ниже 450 пикселей,
     иначе заголовок начинает ломаться по словам. */
  max-width: 1360px;
  grid-template-columns: .82fr 1.48fr;
  gap: clamp(20px, 3vw, 44px); align-items: center;
}
.hero__text { max-width: 520px; }
/* Заголовок первого экрана на треть мельче общего: рядом с крупной
   картинкой прежний размер перетягивал внимание на себя. Правило своё,
   чтобы не задеть заголовки правовых страниц и «страница не найдена». */
.hero h1 { font-size: clamp(1.54rem, 3.78vw, 2.73rem); }

.eyebrow {
  /* На узком экране подпись переносится, и точка-индикатор при выравнивании
     по центру повисает между строк. Держим её у первой строки. */
  display: inline-flex; align-items: flex-start; gap: 9px;
  font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow .dot {
  flex-shrink: 0; margin-top: .42em;
  width: 7px; height: 7px; border-radius: 50%; background: #45d67a;
  box-shadow: 0 0 0 3px rgba(69, 214, 122, .16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(69, 214, 122, 0); } }

.lead { color: var(--muted); font-size: 1.08rem; margin-top: 22px; max-width: 54ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 34px;
  list-style: none; margin: 44px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line-soft);
}
.trust li { display: flex; flex-direction: column; gap: 2px; }
.trust b { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--gold); }
.trust span { font-size: .84rem; color: var(--muted-2); }

.hero__art { position: relative; }
.hero__art img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.6); }

/* ─────────────────────────────── Секции ─────────────────────────────── */

.section { padding: clamp(64px, 9vw, 108px) 0; }
/* Витрина идёт сразу за первым экраном — сверху ей столько не нужно. */
#services { padding-top: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.shead { max-width: 660px; margin-bottom: clamp(36px, 5vw, 54px); }
.shead h2 { margin-bottom: 14px; }
.shead__sub { color: var(--muted); }

.stamp {
  display: inline-block; margin-left: 8px; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .78rem; color: var(--muted-2); white-space: nowrap;
}
/* Пока время не получено, значок скрыт атрибутом hidden. Своё display
   выше перебивает его, поэтому прячем явно — иначе на странице висит
   «Обновлено» без даты. */
.stamp[hidden] { display: none; }

.note { margin-top: 30px; color: var(--muted-2); font-size: .92rem; max-width: 66ch; }

/* ─────────────────────────────── Витрина ─────────────────────────────── */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.card > a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .28s ease;
}
.card > a:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 181, 63, .45);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(240,181,63,.08);
}
.card__img { display: block; position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #000; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card > a:hover .card__img img { transform: scale(1.05); }
.card__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,0) 42%, rgba(19,19,24,.92) 100%);
}
.card__body { display: flex; flex-direction: column; gap: 9px; padding: 17px 19px 21px; flex: 1; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__title { font-size: 1.14rem; font-weight: 750; letter-spacing: -.02em; }
.card__desc { color: var(--muted); font-size: .92rem; line-height: 1.5; }

.price {
  flex-shrink: 0; font-size: .95rem; font-weight: 700; color: var(--gold);
  padding: 4px 11px; border-radius: 999px;
  background: var(--gold-dim); border: 1px solid rgba(240, 181, 63, .22);
  transition: opacity .3s ease;
}
/* Цену ещё не получили — место под неё держим, но пустой ярлык не рисуем. */
.price:empty { display: none; }

.tag {
  display: inline-block; margin-left: 2px; padding: 2px 8px;
  border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap;
}

/* ───────────────────────────────── Шаги ───────────────────────────────── */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px; counter-reset: s;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.steps li {
  position: relative; padding: 28px 24px 26px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.steps__n {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px;
  border-radius: 11px; font-weight: 800; font-size: 1.02rem; color: var(--gold);
  background: linear-gradient(150deg, #1e1a11, #121016);
  border: 1px solid rgba(240, 181, 63, .28);
}
.steps h3 { margin-bottom: 9px; }
.steps p { color: var(--muted); font-size: .93rem; }

/* ──────────────────────────────── Почему мы ──────────────────────────────── */

.why__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.why__text h2 { margin-bottom: 6px; }
.why__text .btn { margin-top: 34px; }
.why__art img { border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.55); }

.checks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 15px; }
.checks li {
  position: relative; padding-left: 32px; color: var(--muted); font-size: .96rem;
}
.checks li b { color: var(--text); font-weight: 650; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .34em;
  width: 19px; height: 19px; border-radius: 6px;
  background: var(--gold-dim); border: 1px solid rgba(240, 181, 63, .34);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: .62em;
  width: 6px; height: 10px; border: solid var(--gold);
  border-width: 0 2px 2px 0; transform: rotate(42deg);
}

/* ──────────────────────────────── Вопросы ──────────────────────────────── */

.faq { display: grid; gap: 11px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 19px 52px 19px 22px; position: relative;
  font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border: solid var(--gold); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { padding: 0 22px 21px; color: var(--muted); font-size: .96rem; }
.faq a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────────────────────── Призыв ───────────────────────────────── */

.cta { padding: clamp(60px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 78% at 50% 50%, rgba(240, 181, 63, .12), transparent 70%);
}
.cta__in { position: relative; text-align: center; display: grid; justify-items: center; gap: 14px; }
.cta p { color: var(--muted); }
.cta .btn { margin-top: 14px; }

/* ───────────────────────────────── Подвал ───────────────────────────────── */

.footer { border-top: 1px solid var(--line-soft); background: var(--bg-alt); padding: 56px 0 30px; }
.footer__in {
  display: grid; gap: 36px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
}
.footer__brand p { color: var(--muted-2); font-size: .9rem; margin-top: 14px; max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h3 {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 650; margin-bottom: 3px;
}
.footer__col a { color: var(--muted); font-size: .93rem; transition: color .18s ease; }
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  color: var(--muted-2); font-size: .85rem;
}

/* ─────────────────────────── Страницы сервисов ─────────────────────────── */

.lead-section { padding: clamp(28px, 4vw, 52px) 0 clamp(32px, 4vw, 56px); }
.srv__in {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(24px, 4vw, 52px); align-items: center;
}
.srv__text { max-width: 620px; }
.srv__art img {
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 22px 54px rgba(0,0,0,.55);
}

.crumbs { font-size: .86rem; color: var(--muted-2); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Цена приходит скриптом; пока её нет, строка скрыта атрибутом hidden,
   который снимает скрипт. Своё display его перебивает, поэтому прячем
   явно — и обходимся без :has(), который понимают не все браузеры. */
.srv__price { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.srv__price[hidden] { display: none; }
.srv__price .price { font-size: 1.15rem; padding: 6px 15px; }
.srv__price-note { font-size: .86rem; color: var(--muted-2); }

.need { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.need li {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px 22px;
}
.need h3 { margin-bottom: 7px; }
.need p { color: var(--muted); font-size: .95rem; }
.need code {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px; font-size: .9em; color: var(--gold);
}

.steps--flow { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.more a {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-soft);
  color: var(--muted); font-size: .93rem; font-weight: 600;
  transition: border-color .2s ease, color .2s ease;
}
.more a:hover { border-color: var(--gold); color: var(--gold); }

.section h2 + .need,
.section h2 + .steps,
.section h2 + .faq,
.section h2 + .more { margin-top: clamp(22px, 3vw, 34px); }

.footer__col--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.footer__col--wide h3 { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .srv__in { grid-template-columns: 1fr; }
  .srv__art { order: -1; max-width: 560px; }
}

/* ──────────────────────────── Правовые страницы ──────────────────────────── */

.doc { padding: clamp(44px, 6vw, 76px) 0 clamp(56px, 8vw, 92px); }
.doc__head { margin-bottom: 38px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.doc__head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.doc__head p { color: var(--muted-2); font-size: .93rem; }
.doc__body { color: var(--muted); font-size: 1rem; }
.doc__body h2 {
  color: var(--text); font-size: 1.24rem; margin: 40px 0 14px;
  padding-top: 4px;
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body p { margin-bottom: 15px; }
.doc__body ul { margin: 0 0 15px; padding-left: 22px; }
.doc__body li { margin-bottom: 8px; }
.doc__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.doc__body strong { color: var(--text); font-weight: 650; }

.back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: .92rem; margin-bottom: 26px;
  transition: color .18s ease;
}
.back:hover { color: var(--gold); }

/* ─────────────────────────────── Адаптив ─────────────────────────────── */

@media (max-width: 980px) {
  .hero__in, .why__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 560px; }
  .why__art { max-width: 560px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 70px 0 auto; z-index: 49;
    flex-direction: column; gap: 0;
    background: rgba(8, 8, 10, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 6px 22px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); }
  .nav a:last-child { border-bottom: 0; }
  .trust { gap: 22px 28px; }
  .footer__in { grid-template-columns: 1fr; gap: 30px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .header__right .btn { width: auto; }
  .hero__cta { gap: 10px; }
}
