:root {
  --ink: #17211d;
  --muted: #64706a;
  --paper: #f6f5f0;
  --white: #fff;
  --green: #315d47;
  --green-dark: #1e3d2e;
  --lime: #dfff7a;
  --line: #dcded7;
  --shadow: 0 20px 60px rgba(25, 42, 33, .12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: var(--green-dark); }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; left: 16px; top: -80px; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }

.hero { overflow: hidden; color: var(--white); background: radial-gradient(circle at 88% 10%, rgba(223,255,122,.19), transparent 28%), linear-gradient(145deg, #12271d 0%, #254b38 70%, #315d47 100%); }
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; font-weight: 850; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--green-dark); background: var(--lime); letter-spacing: 0; }
.nav-link { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 650; }
.hero-body { padding: 92px 0 86px; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: #7ec89d; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 24px; font-size: clamp(2.5rem, 7vw, 5.7rem); line-height: .98; letter-spacing: -.055em; }
h1 span { color: var(--lime); }
.lead { max-width: 730px; margin-bottom: 30px; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; text-decoration: none; font-weight: 780; }
.button.primary { color: var(--green-dark); background: var(--lime); }
.button.secondary { color: var(--white); border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 42px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.76); font-size: .92rem; }
.hero-facts li::before { content: "✓"; margin-right: 8px; color: var(--lime); font-weight: 900; }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 54px; padding-block: 72px 100px; }
.toc { position: sticky; top: 24px; align-self: start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.toc-title { margin-bottom: 8px; font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 22px; color: var(--muted); }
.toc li { margin: 7px 0; padding-left: 3px; }
.toc a { color: inherit; text-decoration: none; font-size: .88rem; }
.toc a:hover, .toc a:focus-visible { color: var(--green); text-decoration: underline; }
.content { min-width: 0; }
.intro-card, .security, .after { padding: clamp(24px, 5vw, 46px); border-radius: 24px; }
.intro-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; margin-bottom: 72px; color: var(--white); background: var(--green-dark); }
.intro-card h2, .security h2, .after h2 { margin-bottom: 0; font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.12; letter-spacing: -.03em; }
.intro-card p:last-child { margin: 0; color: rgba(255,255,255,.78); }

.step { display: grid; grid-template-columns: minmax(0, .78fr) minmax(360px, 1.22fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin: 0 0 92px; scroll-margin-top: 28px; }
.step:nth-of-type(even) .step-copy { order: 2; }
.step:nth-of-type(even) .shot { order: 1; }
.number { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 15px; color: var(--green-dark); background: var(--lime); font-weight: 900; }
.step h2 { margin-bottom: 15px; font-size: clamp(1.65rem, 3.2vw, 2.55rem); line-height: 1.08; letter-spacing: -.035em; }
.step p { color: var(--muted); }
.shot { width: 100%; padding: 10px; border: 0; border-radius: 20px; background: #121613; box-shadow: var(--shadow); cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16/10; border-radius: 12px; object-fit: contain; background: #090b0a; }
.shot:focus-visible { outline: 4px solid var(--lime); outline-offset: 4px; }
.important { padding: clamp(22px, 4vw, 36px); border: 1px solid #cbd9a4; border-radius: 26px; background: #f4fadf; }
pre { overflow-x: auto; margin: 20px 0 0; padding: 16px 18px; border-radius: 12px; color: #e9ffb9; background: #16241b; font-size: .9rem; }
.bot-flow { padding-left: 20px; color: var(--muted); }
.bot-flow li { margin: 8px 0; }
.security { display: grid; grid-template-columns: 52px 1fr; gap: 22px; margin-top: 12px; color: var(--white); background: #272b29; }
.security-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #2f2610; background: #ffd878; font-size: 1.4rem; font-weight: 900; }
.security .section-kicker { color: #ffd878; }
.security p:last-child { margin: 16px 0 0; color: rgba(255,255,255,.72); }
.after { margin-top: 26px; border: 1px solid var(--line); background: var(--white); }
.after p:last-child { margin: 16px 0 0; color: var(--muted); }

footer { color: rgba(255,255,255,.72); background: var(--green-dark); }
.footer-inner { min-height: 90px; display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; align-items: center; gap: 28px; }
.footer-note { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.58); font-size: .82rem; line-height: 1.45; text-align: center; }
.footer-inner a { color: var(--lime); }

.lightbox { width: min(1440px, calc(100% - 32px)); max-width: none; padding: 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; color: var(--white); background: #0d110f; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.lightbox::backdrop { background: rgba(4,8,6,.86); backdrop-filter: blur(5px); }
.lightbox-toolbar { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 4px 10px; }
.zoom-button, .lightbox-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--white); background: rgba(255,255,255,.08); font-size: 1.35rem; cursor: pointer; }
.zoom-button:disabled { opacity: .38; cursor: not-allowed; }
.zoom-level { min-width: 54px; color: rgba(255,255,255,.76); text-align: center; font-variant-numeric: tabular-nums; }
.open-original { margin-left: 6px; color: var(--lime); font-weight: 720; }
.lightbox-close { margin-left: auto; font-size: 1.8rem; }
.lightbox-stage { overflow: auto; max-height: 78vh; border-radius: 12px; background: #090b0a; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.lightbox-stage img { width: 100%; max-width: none; height: auto; border-radius: 12px; }
.lightbox-stage:focus-visible, .zoom-button:focus-visible, .lightbox-close:focus-visible, .open-original:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.lightbox p { margin: 8px 4px 0; color: rgba(255,255,255,.58); font-size: .82rem; }

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; padding-top: 38px; }
  .toc { position: static; }
  .toc ol { columns: 2; }
  .step { grid-template-columns: 1fr; gap: 26px; margin-bottom: 72px; }
  .step:nth-of-type(even) .step-copy, .step:nth-of-type(even) .shot { order: initial; }
  .shot { order: 2 !important; }
  .intro-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav { height: 64px; }
  .hero-body { padding: 62px 0 60px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { display: grid; }
  .layout { gap: 38px; padding-bottom: 70px; }
  .toc ol { columns: 1; }
  .step { margin-bottom: 58px; }
  .important { padding: 20px 16px; }
  .security { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding-block: 24px; align-items: flex-start; gap: 14px; }
  .footer-note { margin: 0; text-align: left; }
  .lightbox { width: calc(100% - 16px); padding: 8px; }
  .lightbox-toolbar { flex-wrap: wrap; }
  .open-original { order: 2; width: 100%; margin: 0; text-align: center; }
}

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