:root {
  --bg: #f4f6f5;
  --paper: #ffffff;
  --ink: #10171b;
  --muted: #53646a;
  --line: #d5dfdd;
  --panel: #edf4f2;
  --dark: #10191f;
  --cyan: #50d7ce;
  --green: #75df98;
  --blue: #236cc2;
  --amber: #eeae39;
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
li,
figcaption,
small,
.tile,
.step-copy {
  overflow-wrap: break-word;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 23, 27, .12);
  background: rgba(244, 246, 245, .96);
  backdrop-filter: blur(14px);
  overflow-x: hidden;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.nav a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: #293940;
  padding: 7px 12px;
  font-size: 14px;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.intro {
  background: var(--dark);
  color: #f5fbfa;
  border-bottom: 5px solid var(--cyan);
}

.intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 42px;
  align-items: end;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 44px;
}

.intro-inner > *,
.section-head > *,
.feature-layout > *,
.tile-grid > *,
.choice-list > *,
.check-grid > *,
.faq-grid > * {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  font-size: 58px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 21px;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

.intro p:not(.eyebrow) {
  max-width: 740px;
  margin: 20px 0 0;
  color: #cfe1e3;
  font-size: 20px;
}

.intro p:not(.eyebrow),
.lead {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.intro-links {
  display: grid;
  gap: 10px;
  align-items: end;
}

.intro-links a {
  border: 1px solid #4b6167;
  border-radius: var(--radius);
  background: #18252c;
  color: #f6fbfb;
  padding: 14px 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.intro-links a:first-child {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #0d1b1d;
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 70px;
}

.page-section {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.page-section:last-child {
  border-bottom: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 390px);
  gap: 26px;
  align-items: end;
  margin-bottom: 24px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  gap: 32px;
  align-items: center;
}

.feature-layout.reverse {
  grid-template-columns: minmax(380px, 560px) minmax(0, 1fr);
}

.feature-layout.reverse .copy {
  order: 2;
}

.feature-layout > .copy:only-child {
  grid-column: 1 / -1;
  max-width: 860px;
}

.feature-layout.reverse > .copy:only-child {
  order: initial;
}

.copy > *:first-child {
  margin-top: 0;
}

.copy h2 + p,
.copy h3 + p {
  margin-top: 14px;
}

.copy p {
  margin: 14px 0;
}

.steps {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: item;
}

.steps li::before {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  content: counter(item);
  font-size: 15px;
  font-weight: 800;
}

.steps b {
  color: #152126;
}

.visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 28, 33, .08);
}

.visual figcaption {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.visual.wide {
  margin-top: 24px;
}

.visual.wide img {
  width: 100%;
}

.visual-stack {
  display: grid;
  gap: 16px;
}

.note {
  margin-top: 20px;
  border-left: 4px solid var(--amber);
  background: #fff8e7;
  padding: 14px 16px;
  color: #52380b;
}

.note strong {
  color: #30220a;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.check-card h3 {
  margin-bottom: 10px;
}

.check-card p {
  margin: 0;
  color: var(--muted);
}

.check-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.choice-list .tile {
  min-height: 174px;
}

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 22px;
  border: 1px solid #b7dcd7;
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 20px;
}

.callout-mark {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan);
  color: #0d1b1d;
  font-weight: 900;
}

.callout p {
  margin: 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.faq h3 {
  margin-bottom: 8px;
}

.faq p {
  margin: 0;
  color: var(--muted);
}

.footer-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 38px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #f5fbfa;
  padding: 24px;
}

.footer-support h2 {
  font-size: 27px;
}

.footer-support p {
  margin: 8px 0 0;
  color: #cfe1e3;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  border: 1px solid #47636b;
  border-radius: var(--radius);
  padding: 11px 14px;
  color: #f5fbfa;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:first-child {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #0d1b1d;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  color: #164d8d;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-links .action-link {
  margin-top: 0;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compact-top {
  margin-top: 20px;
}

.widget-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.widget-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.widget-preview img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: contain;
  background: #eef2f1;
}

.widget-preview strong {
  display: block;
  padding: 9px 10px 10px;
  font-size: 14px;
}

.support-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-qr {
  display: grid;
  grid-template-columns: 64px auto;
  gap: 10px;
  align-items: center;
  min-width: 154px;
  border: 1px solid #47636b;
  border-radius: var(--radius);
  background: #18252c;
  color: #f5fbfa;
  padding: 8px;
  font-weight: 700;
  text-decoration: none;
}

.support-qr img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: #fff;
}

.support-qr small {
  display: block;
  margin-top: 2px;
  color: #b9cacc;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.support-yoomoney {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #fff;
  border-radius: var(--radius);
  background: #fff;
  color: #10191f;
}

.support-yoomoney-copy {
  min-width: 0;
}

.support-yoomoney-copy strong,
.support-yoomoney-copy small {
  display: block;
}

.support-yoomoney-copy strong {
  font-size: 15px;
}

.support-yoomoney-copy small {
  margin-top: 3px;
  color: #52656d;
  font-size: 11px;
  line-height: 1.25;
}

.support-yoomoney-frame {
  display: block;
  position: relative;
  flex: 0 0 228px;
  width: 228px;
  height: 46px;
  overflow: hidden;
  background: #fff;
}

.support-yoomoney-frame iframe {
  display: block;
  width: 330px;
  height: 50px;
  border: 0;
  background: transparent;
}

.manual-zoomable {
  cursor: zoom-in;
}

.manual-zoomable:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

body.manual-lightbox-open {
  overflow: hidden;
}

.manual-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(8, 17, 22, .9);
}

.manual-lightbox[hidden] {
  display: none;
}

.manual-lightbox-image {
  width: auto;
  max-width: min(1600px, 96vw);
  max-height: calc(100vh - 64px);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .48);
  object-fit: contain;
}

.manual-lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  background: rgba(16, 25, 31, .94);
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.manual-lightbox-close:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .intro-inner,
  .section-head,
  .feature-layout,
  .feature-layout.reverse {
    grid-template-columns: 1fr;
  }

  .feature-layout.reverse .copy {
    order: 0;
  }

  .intro-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-grid,
  .choice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .footer-support {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  html,
  body,
  .topbar,
  .intro {
    max-width: 100vw;
  }

  .topbar-inner,
  .intro-inner,
  main {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-top: 9px;
  }

  .nav {
    width: 100%;
  }

  .intro-inner {
    gap: 28px;
    padding: 36px 0 34px;
    width: calc(100vw - 24px);
  }

  .intro-inner > *,
  .intro p:not(.eyebrow),
  .eyebrow {
    width: 100%;
    min-width: 0;
    max-width: calc(100vw - 24px);
    overflow-wrap: anywhere;
  }

  .section-head > *,
  .feature-layout > * {
    max-width: calc(100vw - 24px);
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .intro p:not(.eyebrow) {
    font-size: 18px;
    padding-right: 10px;
  }

  .intro-links,
  .tile-grid,
  .choice-list,
  .check-grid,
  .faq-grid,
  .widget-preview-grid {
    grid-template-columns: 1fr;
  }

  .support-cards {
    width: 100%;
  }

  .support-qr {
    flex: 1 1 100%;
    min-width: 0;
  }

  .support-yoomoney {
    flex: 1 1 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .manual-lightbox {
    padding: 16px;
  }

  .manual-lightbox-image {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }

  .page-section {
    padding: 31px 0;
    scroll-margin-top: 130px;
  }

  .tile,
  .check-card,
  .faq {
    padding: 16px;
  }

  .callout,
  .footer-support {
    padding: 17px;
  }
}
