:root {
  color-scheme: dark;
  --bg: #111111;
  --panel: #1d1d1d;
  --text: #f5f7fa;
  --muted: #a6adb7;
  --line: #343434;
  --accent: #2196f3;
  --accent-light: #64b5f6;
  --radius: 4px;
  --container: 1180px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: linear-gradient(180deg, rgba(33,150,243,.04), transparent 550px), var(--bg); color: var(--text); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
::selection { background: #24577d; color: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: #111; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(15,15,15,.96); backdrop-filter: blur(10px); border-bottom: 1px solid #2b2b2b; }
.nav { min-height: 72px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; color: var(--text); }
.brand img { display: block; flex-shrink: 0; }
.nav-links { display: flex; margin-left: auto; }
.nav-links a { padding: 12px 14px; color: var(--muted); font-size: 14px; font-weight: 650; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { background: #191919; color: var(--text); }
.nav-links a.active { border-bottom-color: var(--accent); }
.nav-actions { display: flex; gap: 22px; align-items: center; }
.lang-switch { display: flex; padding: 2px; background: #191919; border: 1px solid var(--line); border-radius: 3px; }
.lang-switch a { display: inline-flex; align-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 2px; padding: 5px 8px; font-size: 11px; font-weight: 750; min-height: 30px; }
.lang-switch a.active { background: var(--accent); color: #101010; }
.menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: #191919; color: var(--text); border: 1px solid var(--line); border-radius: 3px; }
.hero { padding: 88px 0 66px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 58px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent-light); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 750; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: clamp(38px, 4.7vw, 62px); line-height: 1.1; letter-spacing: -.045em; margin: 18px 0 24px; }
.hero-title-secondary { display: block; color: #c2c8d0; font-size: .69em; line-height: 1.2; margin-top: 15px; max-width: 470px; letter-spacing: -.035em; }
.hero p { color: var(--muted); font-size: 16px; margin-bottom: 28px; max-width: 535px; }
.hero-actions, .button-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 17px; border: 1px solid #3a3a3a; border-radius: 3px; color: var(--text); background: #222; font-size: 13px; font-weight: 750; line-height: 1.5; text-align: center; transition: background-color .15s, border-color .15s; }
.btn:hover { background: #2b2b2b; border-color: #555; }
.btn-primary { color: #071825; background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: #42a5f5; border-color: #42a5f5; }
.btn-paid { color: #dec690; background: #2a251c; border-color: #514532; }
.btn-paid:hover { color: #eed9ac; background: #383020; border-color: #8b7346; }
.btn-paid:focus-visible { outline-color: #dec690; }
.hero-note { color: #89929c; font-size: 12px; margin-top: 15px; }
.hero-screenshot { margin: 0; padding: 5px; border: 1px solid #343434; background: #151515; border-radius: 4px; box-shadow: 0 20px 44px #0005; }
.hero-screenshot img { display: block; width: 100%; }
.hero-screenshot figcaption { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); border-top: 1px solid #292929; margin-top: 5px; padding: 10px 7px 5px; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; background: var(--accent); border-radius: 50%; }
.product-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #2b2b2b; color: #b6bec7; font-size: 13px; }
.product-strip > span { padding: 20px 26px; text-align: center; border-right: 1px solid #2b2b2b; }
.product-strip > span:last-child { border-right: 0; }
.section { padding: 64px 0; }
.section-head { display: flex; gap: 38px; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.035em; margin: 8px 0 0; }
.section-head p { color: var(--muted); font-size: 14px; max-width: 445px; margin: 0; }
.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card h3 { margin-bottom: 10px; font-size: 18px; letter-spacing: -.02em; line-height: 1.4; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #31546e; border-radius: 3px; background: #202a31; color: var(--accent-light); font: 13px ui-monospace, monospace; margin-bottom: 24px; }
.tag { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid #3a3a3a; border-radius: 2px; background: #242424; color: #bbc4cf; font-size: 11px; font-weight: 650; }
.tag.accent { color: #92caf5; background: #172a38; border-color: #285674; }
.tag.paid { color: #dec690; background: #2a251c; border-color: #514532; }
.edition-path { display: flex; flex-direction: column; gap: 25px; justify-content: space-between; padding: 30px; }
.edition-path h3 { margin-top: 18px; }
.text-link { color: var(--accent-light); font-size: 13px; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-head { padding: 44px 0 35px; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 25px; }
.breadcrumb a:hover { color: var(--accent-light); }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 18px; }
.page-head p { max-width: 765px; color: var(--muted); margin: 0; }
.catalog-toolbar { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.search { flex: 1; }
.search input { width: 100%; min-height: 46px; padding: 11px 15px; background: #191919; border: 1px solid #3a3a3a; color: var(--text); border-radius: 3px; font-size: 14px; }
.search input::placeholder { color: #929ba6; }
.filter-group { display: flex; gap: 5px; }
.filter-btn { padding: 11px 14px; min-height: 44px; background: #191919; color: var(--muted); border: 1px solid #343434; border-radius: 3px; font-size: 13px; }
.filter-btn:hover { background: #222; color: var(--text); }
.filter-btn.active { border-color: #37658a; color: #b9ddf8; background: #172a38; }
.result-status { color: #929ba6; font-size: 12px; margin: 12px 0 0; }
.catalog-section { padding: 35px 0 22px; }
.catalog-section .section-head h2 { font-size: 26px; }
.release-card { display: flex; flex-direction: column; min-width: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.card-platform { font-size: 11px; color: #929ba6; }
.release-card h3 { font-size: 22px; margin-bottom: 5px; }
.release-card h3 a:hover { color: var(--accent-light); }
.release-card .release-subtitle { font-size: 12px; }
.release-card .server-names { margin: 22px 0; color: #ccd1d8; font-size: 14px; }
.release-meta { margin-top: auto; font-size: 13px; color: var(--muted); }
.card-footer { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.card-footer .btn { width: 100%; }
.empty-state { padding: 35px; border: 1px dashed #454545; margin: 35px 0; }
.empty-state h2 { font-size: 24px; }
.empty-state p { color: var(--muted); }
.detail-section { padding-top: 10px; padding-bottom: 20px; }
.detail-layout, .guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 335px; align-items: start; gap: 26px; }
.detail-copy { display: grid; gap: 18px; }
.detail-copy h2, .download-panel h2, .guide-aside h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.025em; margin: 8px 0 18px; }
.server-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.server-tags .tag { font-size: 12px; }
.check-list { padding: 0; margin: 0; list-style: none; color: #bcc3cc; font-size: 14px; }
.check-list li { position: relative; padding-left: 22px; margin-top: 12px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-light); }
.download-panel { position: sticky; top: 96px; border-color: #31546e; background: #1b2227; border-top: 3px solid var(--accent); }
.download-panel h2 { margin-top: 20px; margin-bottom: 6px; }
.download-panel .edition-name { font-size: 12px; }
.purchase-term { font-size: 23px; font-weight: 700; letter-spacing: -.03em; margin: 23px 0 10px; line-height: 1.3; }
.download-panel .btn { width: 100%; margin-top: 24px; }
.card .small-note, .small-note { font-size: 12px; color: #a0aab6; margin-top: 16px; }
.download-panel > .text-link { display: inline-block; margin-top: 16px; }
.aside-help { display: grid; gap: 12px; border-top: 1px solid #34434f; margin-top: 23px; padding-top: 20px; }
.module-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 0 30px; }
.module-list > div { padding: 18px 0; border-top: 1px solid #303030; }
.module-list dt { font-size: 15px; font-weight: 700; }
.module-list dd { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.notice { border: 1px solid #534630; border-left: 3px solid #a68952; border-radius: 3px; background: #211e18; padding: 22px 24px; color: #c8bda8; font-size: 13px; }
.notice h2 { font-size: 18px; color: #e5d7ba; margin-bottom: 12px; }
.notice p { margin-bottom: 12px; }
.notice p:last-child { margin-bottom: 0; }
.notice.info { background: #17242e; border-color: #28536f; border-left-color: var(--accent); color: #b8ccdc; margin-top: 22px; }
.terms-section { padding-top: 0; padding-bottom: 10px; }
.compact-section { padding-top: 15px; }
.module-name { color: var(--accent-light); font-size: 12px; margin-bottom: 19px; }
.module-card { display: flex; flex-direction: column; }
.module-repositories { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; margin-top: 12px; }
.repo-label { color: var(--muted); font-size: 11px; }
.module-card .module-repositories { margin-top: auto; padding-top: 20px; }
.shop-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shop-toolbar .search { min-width: 220px; }
.shop-select { min-height: 46px; padding: 10px 13px; background: #191919; border: 1px solid #3a3a3a; border-radius: 3px; color: var(--text); font-size: 13px; }
.shop-category { padding: 45px 0 15px; }
.shop-category + .shop-category { border-top: 1px solid var(--line); margin-top: 25px; }
.shop-group { margin-top: 30px; }
.shop-group-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.shop-group-heading h3 { font-size: 18px; margin: 0; }
.shop-group-heading > span { font: 12px ui-monospace, monospace; color: var(--accent-light); padding: 3px 8px; background: #172a38; border: 1px solid #285674; }
.shop-group-note { font-size: 13px; color: var(--muted); max-width: 720px; }
.shop-card { display: flex; flex-direction: column; }
.shop-card .card-top { margin-bottom: 16px; }
.shop-card h3 { font-size: 21px; }
.shop-card h3 a:hover { color: var(--accent-light); }
.shop-card p { padding-bottom: 20px; }
.shop-card .card-footer { margin-top: auto; }
.rich-text p, .rich-text li { color: #b8c0cb; font-size: 14px; }
.rich-text p + p, .rich-text ul + p { margin-top: 18px; }
.rich-text h3 { margin-top: 24px; }
.rich-text ul { padding-left: 22px; margin-block: 15px 0; }
.rich-text li { margin-top: 7px; }
.rich-text strong { color: #e0e5eb; }
.rich-text code { font-size: 12px; padding: 2px 5px; background: #101010; border-radius: 3px; color: #b9ddf8; overflow-wrap: anywhere; }
.module-detail .notice { margin: 0; }
.module-media h2 { margin-top: 0; }
.module-screenshot, .module-video { margin: 0; min-width: 0; }
.module-screenshot a { display: block; border: 1px solid var(--line); background: #141414; }
.module-screenshot a:hover { border-color: var(--accent); }
.module-screenshot img { display: block; width: auto; max-width: 100%; max-height: 650px; object-fit: contain; margin-inline: auto; }
.module-screenshot figcaption { font-size: 12px; color: var(--muted); margin-top: 9px; }
.screenshot-grid, .video-grid { display: grid; gap: 25px; }
.module-video iframe { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #111; }
.module-video figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: steps; display: grid; gap: 34px; }
.step { display: grid; grid-template-columns: 45px minmax(0, 1fr); gap: 22px; }
.step::before { counter-increment: steps; content: counter(steps, decimal-leading-zero); width: 45px; height: 45px; border: 1px solid #31546e; background: #17242e; color: var(--accent-light); border-radius: 3px; display: grid; place-items: center; font: 14px ui-monospace, monospace; }
.step h2 { font-size: 20px; letter-spacing: -.025em; line-height: 1.4; margin: 7px 0 10px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
.step .text-link { display: inline-block; margin-top: 12px; }
.code-block { font: 13px/1.6 ui-monospace, monospace; padding: 12px 16px; border: 1px solid #333; background: #181818; margin-top: 15px; }
.guide-aside { position: sticky; top: 96px; }
.guide-aside .text-link { display: inline-block; margin-top: 22px; }
.reading-width { max-width: 900px; }
.accordion { display: grid; gap: 10px; }
.faq-item { border: 1px solid #353535; border-radius: 3px; background: var(--panel); }
.faq-item summary { padding: 20px 50px 20px 23px; cursor: pointer; font-size: 15px; font-weight: 650; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 23px; top: 16px; font-size: 22px; font-weight: 400; color: var(--accent-light); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: #232323; }
.faq-answer { padding: 0 23px 20px; color: var(--muted); font-size: 14px; }
.faq-answer p { margin: 0; }
.source-list { display: grid; gap: 14px; }
.source-row { display: flex; gap: 30px; justify-content: space-between; align-items: center; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
.source-row h2 { font-size: 20px; margin-bottom: 8px; }
.source-row p { color: var(--muted); font-size: 14px; margin: 0; max-width: 700px; }
.source-row .btn { flex-shrink: 0; }
.cta { padding: 50px 0 60px; }
.cta-box { padding: 35px 38px; border: 1px solid #31546e; border-radius: 4px; background: #1b2227; box-shadow: inset 3px 0 0 var(--accent); display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.cta-box h2 { font-size: clamp(25px, 3vw, 32px); letter-spacing: -.035em; line-height: 1.3; margin: 10px 0; }
.cta-box p { color: var(--muted); font-size: 14px; max-width: 665px; margin: 0; }
.cta-box .btn { flex-shrink: 0; }
.site-footer { margin-top: 25px; padding: 38px 0 24px; border-top: 1px solid #2b2b2b; color: var(--muted); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-grid p { max-width: 320px; margin-top: 16px; }
.footer-title { color: #d2d8df; font-weight: 650; margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; gap: 20px; justify-content: space-between; margin-top: 32px; padding-top: 20px; border-top: 1px solid #242424; font-size: 11px; color: #89939f; }
@media (max-width: 1100px) {
  .nav { gap: 15px; }
  .nav-actions { gap: 14px; }
  .nav-links a { padding-inline: 11px; }
  .hero-grid { gap: 30px; }
  .hero { padding-top: 65px; }
}
@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; padding-block: 14px; }
  .nav-actions { margin-left: auto; }
  .nav-links { order: 3; width: 100%; margin: 0; flex-wrap: wrap; }
  .js .nav-links { display: none; position: absolute; left: 24px; right: 24px; top: calc(100% + 8px); width: auto; padding: 6px; background: #171717; border: 1px solid var(--line); flex-direction: column; box-shadow: 0 12px 24px #0006; }
  .js .nav-links.open { display: flex; }
  .js .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 680px; }
  .hero-title-secondary { max-width: 620px; }
  .hero p { max-width: 650px; }
  .hero-screenshot { max-width: 680px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout, .guide-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; }
  .card { padding: 22px; }
  .section-head { align-items: start; flex-direction: column; gap: 13px; }
  .section-head p { max-width: 650px; }
  .cta-box { align-items: start; flex-direction: column; gap: 24px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .nav { gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 30px; }
  .nav-actions { gap: 10px; }
  .js .nav-links { left: 16px; right: 16px; }
  .hero { padding: 45px 0; }
  .hero-title-secondary { font-size: .73em; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { flex: 1 1 190px; }
  .hero p { font-size: 15px; }
  .product-strip { grid-template-columns: 1fr; }
  .product-strip > span { padding: 12px; border-right: 0; border-bottom: 1px solid #2b2b2b; text-align: left; }
  .product-strip > span:last-child { border-bottom: 0; }
  .grid-2, .grid-3, .detail-layout, .guide-layout, .module-list { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .compact-section, .detail-section { padding-top: 10px; }
  .catalog-section { padding: 25px 0 10px; }
  .terms-section { padding-top: 0; }
  .page-head { padding-top: 28px; }
  .page-head p { font-size: 14px; }
  .breadcrumb { margin-bottom: 22px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .shop-toolbar { align-items: stretch; flex-direction: column; }
  .shop-toolbar .filter-group { display: flex; flex-wrap: wrap; }
  .shop-toolbar .filter-btn { flex: 1; }
  .shop-category { padding-top: 30px; }
  .module-detail .card { padding: 20px; }
  .module-video figcaption { flex-wrap: wrap; }
  .filter-group { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter-btn { padding-inline: 8px; font-size: 12px; }
  .download-panel, .guide-aside { position: static; }
  .download-panel { grid-row: 1; }
  .steps { gap: 29px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 15px; }
  .step::before { width: 36px; height: 36px; font-size: 12px; }
  .step h2 { margin-top: 3px; font-size: 18px; }
  .source-row { flex-direction: column; align-items: start; gap: 20px; }
  .cta { padding: 30px 0; }
  .cta-box { padding: 27px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .brand { font-size: 14px; }
  .nav-actions { gap: 6px; }
  .lang-switch a { padding-inline: 6px; }
  .menu-btn { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
