:root {
  color-scheme: dark;
  --background: #0b1015;
  --panel: #121a22;
  --line: #27323c;
  --text: #f2f5f2;
  --muted: #a7b3bc;
  --gold: #f4c671;
  --mint: #72d9b0;
  --gutter: 16px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
button, summary, .button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
main [id] { scroll-margin-top: 95px; }

.wrap { width: 100%; padding-inline: var(--gutter); }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  background: var(--gold);
  color: var(--background);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid #242d36;
  background: #0c1117f5;
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; font-size: .925rem; font-weight: 800; letter-spacing: .028em; white-space: nowrap; }
.brand strong { color: var(--gold); font-weight: inherit; }
.brand-mark {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 33px;
  height: 33px;
  padding-bottom: 8px;
  background: #2b261c;
  border: 1px solid #624c2e;
  border-radius: 8px;
}
.brand-mark i { width: 3px; background: var(--gold); border-radius: 1px; height: 7px; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 16px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.site-nav a { position: relative; display: grid; align-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current]::after { position: absolute; content: ""; left: 0; right: 0; bottom: -15px; height: 2px; background: var(--gold); }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; font-size: .9375rem; font-weight: 700; text-align: center; transition: background .15s, border-color .15s; }
.button-primary { color: #19140d; background: var(--gold); border-color: #ffe0a3; }
.button-primary:hover { background: #ffda96; }
.button-secondary { background: #151e27; border-color: #34414d; }
.button-secondary:hover { background: #202c37; border-color: #758290; }
.button-small { min-height: 42px; padding: 8px 14px; border-color: #604c30; color: var(--gold); font-size: .875rem; }
.button-small:hover { background: #2b261c; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(40px, 4vw, 76px) 0 28px;
  border-bottom: 1px solid #252f38;
  background: radial-gradient(ellipse at 80% 43%, #1b343a 0%, #13212b 35%, #0b1015 73%);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(0deg, transparent 0 39px, #91a5ad0b 39px 40px),
              repeating-linear-gradient(90deg, transparent 0 39px, #91a5ad0b 39px 40px);
  mask-image: linear-gradient(90deg, transparent 14%, black 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 2vw, 42px); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: .875rem; font-weight: 750; letter-spacing: .14em; }
.accent-rule { width: 21px; height: 2px; background: currentColor; }
.hero h1 { margin-top: 20px; font-size: clamp(2.75rem, 4.4vw, 5.4rem); font-weight: 790; line-height: 1.02; letter-spacing: -.06em; }
.hero h1 em { color: var(--gold); font: inherit; }
.hero-description { max-width: 48ch; margin-top: 24px; font-size: clamp(1.1rem, 1.4vw, 1.35rem); color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 29px; }

.terminal { min-width: 0; overflow: hidden; color: #c5d5d9; background: #10191f; border: 1px solid #385159; border-radius: 13px; box-shadow: 0 20px 55px #0006, 0 0 40px #71d7b018; }
.hero-chart { display: block; width: 100%; height: clamp(230px, 19vw, 365px); background: #101b20; }

.section { padding: clamp(56px, 6vw, 105px) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 31px; }
h2 { font-size: clamp(2.1rem, 3.65vw, 4.1rem); line-height: 1.17; font-weight: 760; letter-spacing: -.045em; }
.section-heading p, .telegram-content p { margin-top: 9px; color: var(--muted); }
.filter { display: flex; flex: none; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #10171e; }
.filter button { min-width: 56px; min-height: 44px; padding: 4px 12px; cursor: pointer; color: var(--muted); border: 1px solid transparent; border-radius: 5px; background: transparent; font-weight: 650; font-size: .875rem; white-space: nowrap; }
.filter button:hover { color: var(--text); }
.filter button[aria-pressed="true"] { color: var(--gold); border-color: #56462f; background: #2d271e; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.7vw, 32px); }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.product-apex { --art-background: #292118; --category: #f4c671; }
.product-smc { --art-background: #142923; --category: #84dfbd; }
.product-stratos { --art-background: #1e2238; --category: #b9c1fe; }
.product-art { overflow: hidden; position: relative; aspect-ratio: 1; flex: none; border-bottom: 1px solid #34424d; background: var(--art-background); }
.product-info { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(16px, 1.75vw, 32px); }
.product-category { color: var(--category); font-size: .875rem; font-weight: 700; letter-spacing: .075em; }
.product-info h3 { margin-top: 12px; font-size: clamp(1.27rem, 1.85vw, 2.1rem); line-height: 1.25; letter-spacing: -.02em; }
.product-summary { margin: 6px 0 10px; color: var(--muted); line-height: 1.5; }
.product-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.product-link { min-height: 44px; padding: 7px 12px; color: #e3e9eb; background: #19232c; border-color: #35434f; font-size: .875rem; }
.product-link:hover { background: #283640; border-color: #63717c; }

.section-guide { background: #0e151d; border-block: 1px solid #252f38; }
.text-link { display: inline-block; padding-block: 10px; margin-top: 4px; color: var(--gold); font-size: .9375rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: #ffe0a3; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 15px 42px 15px 0; list-style: none; cursor: pointer; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--gold); }
.faq details p { padding: 0 28px 16px 0; color: var(--muted); }
.faq strong { color: #dce5e9; }

.section-telegram { padding: 48px 0; }
.telegram-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; background: linear-gradient(110deg, #182d3c, #151e29 78%); border: 1px solid #334554; border-radius: 10px; }
.telegram-content { display: flex; align-items: center; gap: 16px; }
.telegram-content h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.telegram-content p { margin-top: 4px; }
.telegram-mark { display: grid; flex: none; place-items: center; width: 47px; height: 47px; color: #9bdcff; background: #203b4d; border: 1px solid #3c637c; border-radius: 10px; }
.telegram-mark::before { content: ""; width: 23px; height: 23px; background: currentColor; clip-path: polygon(1% 42%, 98% 7%, 78% 94%, 49% 72%, 36% 86%, 36% 60%, 79% 26%, 25% 52%); }
.telegram-panel .button { flex: none; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 74px; padding-block: 12px; flex-wrap: wrap; }
.footer-inner .brand { color: var(--text); }
.footer-inner p, .footer-inner small { font-size: .875rem; }

.terminal-body { display: grid; grid-template-columns: minmax(0, 1fr); }

.section-products { background: linear-gradient(180deg, #0e151c, #0b1015 100%); }
.product-meta { display: flex; flex-wrap: wrap; width: 100%; align-items: center; justify-content: space-between; gap: 7px 9px; }
.platform { flex: none; display: inline-block; padding: 3px 7px; background: #1e2a34; border: 1px solid #35444e; border-radius: 4px; color: #dce5e8; font-size: .8125rem; font-weight: 650; white-space: nowrap; }
.feature-list { padding: 13px 0 16px; margin: 0; width: 100%; display: grid; gap: 8px; border-top: 1px solid var(--line); list-style: none; }
.feature-list li { position: relative; padding-left: 15px; color: #d1dadf; }
.feature-list li::before { position: absolute; left: 1px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--category); content: ""; }

.section-feature { border-block: 1px solid #31404a; background: radial-gradient(ellipse at 90% 39%, #26313a 0%, #121b23 50%, #0d141a 90%); }
.feature-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(30px, 4.2vw, 90px); align-items: center; }
.feature-copy h2 { margin-top: 15px; max-width: 19ch; }
.workflow-details { margin: 23px 0; }
.workflow-details > div { padding: 11px 0; border-top: 1px solid #31414d; }
.workflow-details dt { color: var(--gold); font-weight: 700; }
.workflow-details dd { margin: 4px 0 0; color: var(--muted); }
.feature-screen { min-width: 0; overflow: hidden; border: 1px solid #485863; border-radius: 10px; background: #142029; box-shadow: 0 22px 56px #0007; }
.feature-screen-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; padding: 10px 14px; color: #dee7eb; font-weight: 650; font-size: .875rem; }
.feature-screen-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--gold); }
.screen-zoom { position: relative; display: block; background: #06090b; }
.screen-zoom img { display: block; width: 100%; height: auto; }
.zoom-label { position: absolute; bottom: 10px; right: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; color: #f1f5f5; background: #19252df2; border: 1px solid #596d78; border-radius: 5px; font-size: .875rem; font-weight: 650; }
.screen-zoom:hover .zoom-label, .screen-zoom:focus-visible .zoom-label { color: var(--gold); border-color: var(--gold); }
.screen-zoom:focus-visible { outline-offset: -3px; }
.zoom-icon { width: 10px; height: 10px; position: relative; margin-right: 2px; border-radius: 50%; border: 1px solid; }
.zoom-icon::after { position: absolute; content: ""; bottom: -3px; right: -3px; width: 5px; height: 1px; transform: rotate(45deg); background: currentColor; }

.guide-steps { list-style: none; margin: 0 0 clamp(32px, 4.2vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.7vw, 32px); }
.guide-steps li { min-width: 0; display: grid; align-content: start; justify-items: start; padding: clamp(16px, 1.8vw, 30px); border: 1px solid #32404c; border-radius: 8px; background: linear-gradient(160deg, #18232c, #121a23); }
.step-index { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 12px; color: var(--gold); border: 1px solid #705731; background: #342a20; border-radius: 5px; font: 700 .9rem ui-monospace, monospace; }
.guide-steps h3, .faq-grid h3 { font-size: clamp(1.18rem, 1.54vw, 1.55rem); line-height: 1.24; letter-spacing: -.02em; }
.guide-steps p, .faq-grid > div:first-child p { margin-top: 7px; color: var(--muted); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(20px, 4.2vw, 90px); }
.faq { border-top-color: #35434d; }

.image-dialog { width: min(96vw, 1600px); max-width: none; max-height: 91dvh; padding: 0; color: var(--text); background: #111a23; border: 1px solid #55636e; border-radius: 10px; }
.image-dialog::backdrop { background: #020508dc; }
.image-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; background: #17212a; }
.image-dialog-head h2 { font-size: clamp(1rem, 2vw, 1.45rem); letter-spacing: -.015em; }
.image-dialog-head .button { min-height: 44px; }
.image-dialog-body { overflow: auto; }
.image-dialog-body img { display: block; width: 100%; min-width: 850px; height: auto; }

@media (max-width: 1160px) {
  .hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.4rem); }
  .terminal-body { grid-template-columns: 1fr; }
  .hero-chart { height: clamp(265px, 33vw, 425px); }
}

@media (max-width: 850px) {
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: 0; }
  .header-market { display: none; }
  .menu-toggle {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--text);
    background: #17212a;
    border: 1px solid #35434f;
    border-radius: 7px;
    cursor: pointer;
  }
  .menu-toggle i { width: 16px; height: 2px; border-radius: 1px; background: currentColor; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 1px; padding: 5px 0 10px; }
  .menu-toggle[aria-expanded="true"] + .site-nav { display: flex; }
  .site-nav a { padding: 0 9px; }
  .site-nav a[aria-current] { border-radius: 6px; color: var(--gold); background: #2b261c; }
  .site-nav a[aria-current]::after { display: none; }
  .hero-grid, .feature-grid { grid-template-columns: 1fr; gap: 27px; }
  .hero { padding: clamp(40px, 8vw, 68px) 0; }
  .hero h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); }
  .hero-description { margin-top: 17px; max-width: 44ch; }
  .actions { margin-top: 21px; }
  .hero-chart { height: clamp(193px, 46vw, 360px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-steps { gap: 12px; }
  .section { padding-block: 48px; }
}

@media (max-width: 590px) {
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 18px; }
  .product-grid, .guide-steps, .faq-grid { grid-template-columns: 1fr; }
  .feature-copy h2 { max-width: none; }
  .telegram-panel { align-items: flex-start; flex-direction: column; padding: 19px; gap: 16px; }
  .telegram-content { align-items: flex-start; gap: 11px; }
  .telegram-mark { width: 39px; height: 39px; }
  .telegram-panel > .button { margin-left: 50px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 18px; }
}

@media (max-width: 390px) {
  .hero .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 7px; }
  .hero .actions .button { padding-inline: 7px; font-size: .875rem; }
  .terminal-head { padding-inline: 12px; }
  .feature-screen-head { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.product-audience { color: var(--text); border-left: 2px solid var(--category); padding-left: 10px; }


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

.catalog-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.catalog-search { min-height: 48px; max-width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; }
.catalog-status { margin-bottom: 12px; color: var(--muted); font-size: .875rem; }

.hero-copy { padding-inline: clamp(0px, 1.3vw, 24px); }
.hero h1 em { display: block; }


.header-inner, .hero > .wrap, .section-products > .wrap { padding-inline: clamp(16px, 1.9vw, 40px); }
.site-header .brand { font-size: clamp(1.05rem, 1.75vw, 1.8rem); }
.site-header .site-nav { margin-inline-start: auto; }
.site-header .header-market { background: linear-gradient(#ffe298, #e4b350); color: #101722; border-color: #e3bd6b; }
.hero { padding-block: 22px 24px; }
.hero-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.hero-copy { padding-inline: 0; }
.hero h1 { margin-top: 0; font-size: clamp(2rem, 3.8vw, 5rem); letter-spacing: -.036em; line-height: 1.08; }
.hero-description { font-size: clamp(1rem, 1.5vw, 1.45rem); margin-top: 12px; }
.hero .actions { margin-top: 22px; }
.hero .button-secondary { border: 1px solid var(--gold); color: var(--text); }
.terminal { position: relative; }
.terminal-head { position: absolute; top: 12px; left: 18px; z-index: 1; display: grid; gap: 2px; padding: 3px 6px; border: 0; background: #0b1922eb; border-radius: 4px; pointer-events: none; }
.terminal-head strong { font-size: clamp(1rem, 1.7vw, 1.65rem); line-height: 1.1; }
.terminal-head span { font-size: .875rem; color: var(--muted); }
.hero-chart { height: clamp(225px, 20.2vw, 380px); }
.section-products { padding-top: 24px; }
.section-products .section-heading { align-items: center; margin-bottom: 12px; }
.section-products .section-heading h2 { font-size: clamp(1.6rem, 2.35vw, 2.7rem); }
.catalog-search { width: clamp(180px, 23vw, 380px); }
.filter button[aria-pressed="true"] { background: var(--gold); color: #121922; }
.product-cover { padding: 4%; background: color-mix(in srgb, var(--category), #0b141c 94%); }
.product-cover img { width: 100%; height: 100%; display: block; object-fit: contain; filter: brightness(.91) saturate(.89); }
.product-details { margin-block: 8px 12px; color: var(--muted); }
.product-details summary { cursor: pointer; color: var(--text); font-size: .875rem; }
.product-details p { margin: 10px 0; }
.product-link { color: var(--gold); }
@media (max-width: 850px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
  .catalog-search { width: min(100%, 380px); }
}

.section-feature {
  background: radial-gradient(ellipse at 88% 100%, #102e41 0%, transparent 55%), #0c1822;
}
.workflow-details > div {
  padding: 12px 0 12px 16px;
  border-left: 2px solid #4a9bbb;
}
.section-guide .lower-heading { flex-direction: column; align-items: center; text-align: center; }
.faq-grid { grid-template-columns: 1fr; gap: 16px; }
.faq-grid > div:first-child { text-align: center; }
.faq-grid h3 { font-size: clamp(1.45rem, 2.4vw, 2.2rem); }
.faq { border: 1px solid #40596d; border-radius: 10px; background: #111e29; }
.faq details:last-child { border-bottom: 0; }
.faq summary { padding-inline: 18px 48px; }
.faq summary::after { right: 18px; }
.faq details p { padding-inline: 18px; }
.telegram-panel { background: linear-gradient(115deg, #292619, #131e27 38%, #131e27 72%, #26241b); }
.telegram-content h2 { color: var(--gold); }
.telegram-panel .button { border-color: var(--gold); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--text); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--gold); }

@media (min-width: 591px) {
  .product-info h3 { min-block-size: 2.5em; }
}

.product-screenshot { margin: 12px 0; }
.product-screenshot img { display: block; width: 100%; height: auto; border-radius: 5px; }
.product-screenshot figcaption { margin-top: 7px; font-size: .875rem; }

.product-interface { background: #203a49; border-color: #527f91; color: #ecf9ff; }
.product-interface:hover { background: #294858; border-color: #79a9bd; }
.product-screenshot-zoom { display: grid; gap: 6px; color: var(--gold); font-size: .875rem; }
.product-screenshot-zoom span { text-decoration: underline; text-underline-offset: 3px; }

.language-switch { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.site-nav .language-switch > * { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 5px; border: 1px solid transparent; border-radius: 6px; font-size: .875rem; font-weight: 650; }
.language-switch [aria-current] { color: var(--gold); background: #2b261c; }
.site-nav .language-link { border-color: var(--line); }
