@import url('data:text/css,');

:root {
  --ink: #101411;
  --muted: #667068;
  --paper: #f4f5ef;
  --white: #fffef9;
  --line: rgba(16, 20, 17, .14);
  --acid: #c9f43b;
  --cyan: #39d6c0;
  --orange: #ff7048;
  --radius: 22px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); overflow-x: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.ambient { position: fixed; z-index: -1; width: 36vw; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.ambient-a { background: var(--acid); right: -12vw; top: 4vh; }
.ambient-b { background: var(--cyan); left: -18vw; top: 55vh; }

.topbar { width: min(1280px, calc(100% - 32px)); min-height: 70px; margin: 14px auto 0; padding: 0 22px; display: flex; align-items: center; gap: 28px; position: sticky; top: 14px; z-index: 20; background: rgba(255, 254, 249, .83); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 10px 35px rgba(16,20,17,.08); border-radius: 16px; backdrop-filter: blur(18px); }
.brand, .modal-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 760; font-size: 22px; letter-spacing: -.8px; }
.brand small, .modal-brand small { padding: 4px 6px; background: var(--ink); color: var(--acid); border-radius: 5px; font: 700 9px/1 var(--mono); letter-spacing: .12em; }
.brand-mark { width: 26px; height: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; transform: skew(-10deg); }
.brand-mark i { display: block; background: var(--ink); border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 55%; align-self: end; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 72%; align-self: start; background: var(--orange); }
.topbar nav { display: flex; gap: 26px; margin: auto; font-size: 13px; color: #4f5852; }
.topbar nav a { transition: color .2s; }
.topbar nav a:hover { color: var(--ink); }
.console-button, .text-button { border: 0; background: transparent; cursor: pointer; color: inherit; }
.console-button { padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 700; }
.console-button span, .text-button span, .primary span { margin-left: 8px; }

.hero { min-height: 720px; padding: 92px 0 72px; display: grid; grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr); align-items: center; gap: 64px; }
.eyebrow { width: fit-content; padding: 8px 11px; display: flex; align-items: center; gap: 8px; background: rgba(57,214,192,.11); border: 1px solid rgba(26,147,131,.2); border-radius: 100px; color: #207f72; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pulse { width: 7px; height: 7px; background: #26ae70; border-radius: 50%; box-shadow: 0 0 0 0 rgba(38,174,112,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(38,174,112,0); } 100% { box-shadow: 0 0 0 0 rgba(38,174,112,0); } }
h1 { margin: 25px 0 22px; font-size: clamp(49px, 5.3vw, 78px); line-height: .96; letter-spacing: -.065em; font-weight: 760; }
h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1.5px var(--ink); }
.lead { max-width: 580px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 34px; }
.primary { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: white; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 5px 5px 0 var(--acid); transition: transform .2s, box-shadow .2s; }
.primary:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--acid); }
.text-button { font-size: 13px; font-weight: 700; padding: 14px 2px; }
.hero-meta { margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-meta div { padding-top: 18px; }
.hero-meta b { display: block; font: 700 17px/1 var(--mono); }
.hero-meta span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }

.endpoint-panel { min-width: 0; padding: 24px; background: #121715; color: #edf1eb; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(16,20,17,.22); transform: rotate(.8deg); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; color: #8e9990; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.live-dot { display: flex; align-items: center; gap: 7px; color: #9be8b7; }
.live-dot::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: #67df91; }
.endpoint-row { padding: 13px 11px; display: flex; align-items: center; gap: 10px; background: #202622; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; min-width: 0; }
.method { padding: 6px 8px; background: var(--acid); color: #17200e; border-radius: 5px; font: 800 10px/1 var(--mono); }
.endpoint-row code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11px/1 var(--mono); color: #dfe7e0; }
.icon-button { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 0; background: transparent; color: #96a198; cursor: pointer; border-radius: 6px; }
.icon-button:hover { background: rgba(255,255,255,.08); color: white; }
.icon-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.request-line { padding: 10px 2px; display: grid; grid-template-columns: 120px minmax(0,1fr); border-bottom: 1px solid rgba(255,255,255,.07); font-size: 11px; }
.request-line span { color: #748078; }
.request-line code { overflow: hidden; text-overflow: ellipsis; color: #bac3bc; font-family: var(--mono); white-space: nowrap; }
.code-window { margin-top: 18px; background: #090c0a; border-radius: 11px; overflow: hidden; }
.code-tabs { min-height: 38px; padding: 0 12px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-tabs button { align-self: stretch; border: 0; border-bottom: 2px solid transparent; color: #707b72; background: none; font: 700 10px var(--mono); cursor: pointer; }
.code-tabs button.active { color: white; border-bottom-color: var(--acid); }
.code-tabs span { margin-left: auto; color: #525b54; font: 500 9px var(--mono); }
pre { margin: 0; padding: 19px; min-height: 145px; overflow: auto; color: #a7b2a9; font: 11px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
pre i { color: var(--cyan); font-style: normal; } pre b { color: #dfed93; font-weight: 500; }
.response-strip { margin-top: 18px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: rgba(57,214,192,.08); border: 1px solid rgba(57,214,192,.16); border-radius: 9px; }
.response-strip > span { color: #78e5b0; font: 800 12px var(--mono); }
.response-strip b, .response-strip small { display: block; }
.response-strip b { font-size: 11px; }.response-strip small { color: #718078; font-size: 9px; margin-top: 3px; }
.response-strip time { color: #78857b; font: 10px var(--mono); }

.ticker { width: 100%; overflow: hidden; background: var(--acid); border-block: 1px solid var(--ink); }
.ticker > div { width: max-content; display: flex; align-items: center; gap: 25px; padding: 12px 0; animation: marquee 24s linear infinite; font: 800 11px var(--mono); letter-spacing: .1em; }
.ticker i { font-size: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding-top: 128px; padding-bottom: 128px; }
.section-title > span, .cta > div > span { display: block; margin-bottom: 20px; font: 700 10px var(--mono); letter-spacing: .15em; color: #657068; }
.section-title h2 { margin: 0; max-width: 720px; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.055em; }
.section-title p { max-width: 570px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.schema-card { margin-top: 55px; border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: 8px 8px 0 #dfe3d3; }
.schema-head { padding: 18px 20px; display: flex; justify-content: space-between; background: var(--ink); color: white; font-size: 12px; }
.schema-head code { color: var(--acid); font-family: var(--mono); }
.schema-row { padding: 17px 20px; display: grid; grid-template-columns: 150px 100px 90px 1fr; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.schema-row:last-child { border: 0; }
.schema-row code, .schema-row b { font: 700 11px var(--mono); }
.schema-row > span { color: var(--muted); font-size: 10px; }
.schema-row .required { width: fit-content; padding: 4px 6px; color: #98412a; background: rgba(255,112,72,.12); border-radius: 4px; }
.schema-row b { color: #168f80; }
.schema-row p { margin: 0; color: var(--muted); font-size: 12px; }

.templates-section { background: #e7e9df; border-block: 1px solid var(--line); }
.section-title.compact h2 { font-size: clamp(34px,4vw,52px); }
.template-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.template-card { min-height: 245px; padding: 24px; display: flex; flex-direction: column; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.template-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16,20,17,.1); }
.file-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: white; font: 700 13px var(--mono); }
.file-icon.xml { background: #f16b47; }.file-icon.csv { background: #169c8a; }
.template-card > div { margin-top: auto; }
.template-card small { color: var(--muted); font: 700 9px var(--mono); letter-spacing: .1em; }
.template-card h3 { margin: 7px 0; font-size: 28px; letter-spacing: -.04em; }
.template-card p { margin: 0; max-width: 230px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.download-icon { position: absolute; right: 22px; top: 24px; font-size: 24px; }
.validation-note { margin-top: 16px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; background: var(--ink); color: white; border-radius: 14px; }
.shield { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--acid); }
.validation-note b { font-size: 13px; }.validation-note p { margin: 5px 0 0; color: #89928b; font-size: 11px; }
.validation-note button { padding: 11px 14px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: white; border-radius: 8px; cursor: pointer; font-size: 11px; }

.responses { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.response-list { border-top: 1px solid var(--ink); }
.response-list > div { padding: 19px 0; display: grid; grid-template-columns: 54px 140px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.response-list b { font: 800 13px var(--mono); color: var(--orange); }.response-list b.ok { color: #168f80; }
.response-list span { font: 700 11px var(--mono); }.response-list p { margin: 0; color: var(--muted); font-size: 11px; }
.cta { margin-bottom: 80px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--cyan); border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 9px 9px 0 var(--ink); }
.cta h2 { max-width: 720px; margin: 0; font-size: clamp(28px,3.4vw,46px); line-height: 1.05; letter-spacing: -.045em; }
.footer { min-height: 120px; display: flex; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer p { margin: auto; }

.login-modal { width: min(460px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 20px; background: transparent; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.4); }
.login-modal::backdrop { background: rgba(8,12,9,.72); backdrop-filter: blur(7px); }
.modal-shell { padding: 34px; position: relative; background: var(--white); border-radius: 20px; }
.modal-close { position: absolute; right: 18px; top: 16px; width: 34px; height: 34px; border: 0; background: #eef0e9; border-radius: 50%; cursor: pointer; font-size: 22px; }
.modal-brand { margin-bottom: 45px; }
.modal-kicker { color: #168f80; font: 800 9px var(--mono); letter-spacing: .14em; }
.modal-shell h2 { margin: 9px 0 8px; font-size: 35px; letter-spacing: -.05em; }
.modal-shell > p { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.modal-shell label { display: block; margin-top: 15px; color: #4f5852; font-size: 11px; font-weight: 700; }
.modal-shell input { width: 100%; height: 48px; margin-top: 7px; padding: 0 13px; border: 1px solid var(--line); background: #f5f6f1; border-radius: 9px; outline: none; }
.modal-shell input:focus { border-color: #169c8a; box-shadow: 0 0 0 3px rgba(22,156,138,.12); }
.login-error { margin-top: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: rgba(255,112,72,.1); border: 1px solid rgba(255,112,72,.25); border-radius: 9px; }
.login-error[hidden] { display: none; }.login-error b { font-size: 12px; color: #9c3f27; }.login-error span { color: #76564e; font-size: 11px; }
.submit { width: 100%; margin-top: 18px; }
.security-note { display: block; margin-top: 17px; text-align: center; color: #879087; font-size: 9px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 12px 16px; color: white; background: var(--ink); border-radius: 8px; font-size: 11px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }.delay-2 { transition-delay: .2s; }

@media (max-width: 960px) {
  .topbar nav { display: none; }
  .console-button { margin-left: auto; }
  .hero { min-height: 0; padding-top: 70px; grid-template-columns: 1fr; gap: 55px; }
  .hero-copy { max-width: 720px; }
  .endpoint-panel { max-width: 680px; justify-self: center; width: 100%; transform: none; }
  .responses { grid-template-columns: 1fr; gap: 42px; }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .topbar { width: calc(100% - 20px); top: 8px; margin-top: 8px; padding: 0 14px; min-height: 62px; }
  .console-button { padding: 9px 10px; font-size: 0; }.console-button::before { content:"Консоль"; font-size: 11px; }.console-button span { font-size: 11px; }
  .hero { padding-top: 60px; padding-bottom: 60px; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  .lead { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-meta { margin-top: 40px; }.hero-meta span { max-width: 80px; }
  .endpoint-panel { padding: 16px; }
  .request-line { grid-template-columns: 104px minmax(0,1fr); }
  pre { padding: 15px; font-size: 10px; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .schema-row { grid-template-columns: 1fr auto; gap: 8px; }
  .schema-row b { text-align: right; }.schema-row p { grid-column: 1/-1; }.schema-row > span { grid-row: 2; }
  .template-grid { grid-template-columns: 1fr; }.template-card { min-height: 210px; }
  .validation-note { grid-template-columns: auto 1fr; }.validation-note button { grid-column: 1/-1; }
  .response-list > div { grid-template-columns: 45px 1fr; }.response-list p { grid-column: 2; }
  .cta { padding: 32px 24px; align-items: flex-start; flex-direction: column; }
  .footer { padding: 28px 0; flex-wrap: wrap; }.footer p { width: 100%; order: 3; margin: 0; }
}
@media (max-width: 390px) {
  .brand { font-size: 19px; }.brand-mark { width: 23px; height: 23px; }
  .console-button span { display: none; }
  .hero-meta { gap: 8px; }.hero-meta b { font-size: 14px; }
  .endpoint-row code { font-size: 9px; }
  .response-strip time { display: none; }.response-strip { grid-template-columns: auto 1fr; }
  .modal-shell { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
