:root {
  --bg: #0c1118;
  --bg-soft: #161d27;
  --card: rgba(14, 22, 32, 0.9);
  --card-strong: rgba(19, 29, 41, 0.96);
  --line: rgba(92, 255, 130, 0.18);
  --line-strong: rgba(86, 207, 255, 0.18);
  --text: #eff7ef;
  --muted: #b8c7bc;
  --accent: #5cff82;
  --accent-strong: #56cfff;
  --accent-soft: rgba(92, 255, 130, 0.12);
  --shadow: 0 24px 64px rgba(3, 6, 10, 0.4);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shell: 1180px;
  --header-h: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(92, 255, 130, 0.18), transparent 32%),
    radial-gradient(circle at 100% 18%, rgba(86, 207, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #131b25 0%, #0c1118 48%, #080d13 100%);
  font: 16px/1.68 "Segoe UI", "Tahoma", sans-serif;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.44), rgba(0,0,0,0));
}
body::after {
  background:
    radial-gradient(circle at 18% 22%, rgba(92, 255, 130, 0.08), transparent 18%),
    radial-gradient(circle at 82% 28%, rgba(86, 207, 255, 0.08), transparent 16%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.shell { width: min(calc(100% - 28px), var(--shell)); margin: 0 auto; }
.page-main { padding: 24px 0 56px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 17, 24, 0.86);
  border-bottom: 1px solid var(--line);
}
.topbar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 156px; height: auto; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong {
  font: 800 0.96rem/1 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-copy span { font-size: 0.8rem; color: var(--muted); }
.menu-wrap { display: flex; align-items: center; gap: 14px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a,
.lang-switcher a {
  font-weight: 700;
  font-size: 0.94rem;
  color: rgba(239, 247, 239, 0.94);
}
.main-nav a {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.main-nav a:hover,
.lang-switcher a:hover,
.toc-links a:hover,
.route-card a:hover,
.related-card a:hover,
.footer-grid a:hover {
  color: var(--accent);
}
.main-nav a:hover {
  background: rgba(92, 255, 130, 0.08);
}
.lang-switcher { display: flex; align-items: center; gap: 8px; }
.lang-switcher a {
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 999px;
}
.lang-switcher a.active {
  border-color: rgba(92, 255, 130, 0.26);
  background: var(--accent-soft);
}
.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.header-cta,
.primary-btn {
  background: linear-gradient(135deg, #5cff82 0%, #2ed573 52%, #56cfff 100%);
  color: #08110d;
  box-shadow: 0 18px 34px rgba(46, 213, 115, 0.22);
}
.secondary-btn {
  border: 1px solid rgba(86, 207, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.header-cta:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}
.secondary-btn:hover {
  border-color: rgba(92, 255, 130, 0.34);
}
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(92, 255, 130, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
}
.hero-grid,
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.78fr);
  gap: 20px;
}
.hero-card,
.guide-copy,
.guide-points,
.section-block,
.route-card,
.step-card,
.faq-card,
.related-card,
.toc-box,
.article-box,
.cta-strip {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 25, 36, 0.94), rgba(11, 17, 24, 0.98));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero-card,
.guide-copy,
.guide-points,
.section-block,
.cta-strip,
.article-box,
.toc-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-card,
.guide-copy,
.guide-points,
.section-block,
.cta-strip { border-radius: var(--radius-xl); }
.hero-main,
.guide-copy,
.article-box,
.section-block,
.cta-strip { padding: 24px; }
.hero-side,
.guide-points,
.toc-box { padding: 22px; }
.hero-main::before,
.guide-copy::before,
.section-block::before,
.article-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(92, 255, 130, 0.1), transparent 34%),
    linear-gradient(320deg, rgba(86, 207, 255, 0.08), transparent 28%);
  z-index: -1;
}
.hero-main::after,
.guide-copy::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(92, 255, 130, 0.16);
  border-radius: 18px;
  transform: rotate(8deg);
  z-index: -1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(2rem, 4vw, 4.15rem);
  max-width: 13ch;
  font-weight: 800;
}
h2 { font-size: clamp(1.45rem, 2.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 800; }
.hero-copy {
  margin: 16px 0 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.chip-grid,
.steps-grid,
.route-grid,
.faq-grid,
.related-grid,
.footer-grid { display: grid; gap: 16px; }
.chip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
.chip-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(92, 255, 130, 0.12);
}
.chip-card strong { font-size: 0.98rem; }
.chip-card span,
.route-card p,
.step-card p,
.faq-card p,
.related-card p,
.side-list li,
.guide-points li,
.article-box p,
.cta-strip p,
.footer-grid p { color: var(--muted); }
.hero-image {
  margin-top: 22px;
  border-radius: 22px;
  border: 1px solid rgba(92, 255, 130, 0.14);
}
.hero-side h2 { font-size: 1.34rem; }
.side-list,
.guide-points ul {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}
.side-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.side-meta span,
.guide-date {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(92, 255, 130, 0.1);
  color: var(--accent);
  font-size: 0.88rem;
}
.section-block { margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.route-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-card,
.step-card,
.faq-card,
.related-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}
.route-card,
.step-card,
.related-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
}
.route-card { border: 1px solid rgba(92, 255, 130, 0.12); }
.step-card { border: 1px solid rgba(86, 207, 255, 0.12); }
.route-card h3,
.step-card h3,
.faq-card summary,
.related-card h3 { margin-bottom: 8px; }
.route-card a,
.related-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
}
.steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-card { background: var(--card-strong); }
.faq-card summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card p { margin: 12px 0 0; }
.guide-shell { display: grid; gap: 20px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.breadcrumbs a:hover { color: var(--accent); }
.guide-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.toc-box {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border-radius: var(--radius-lg);
}
.toc-title {
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.toc-links { display: grid; gap: 10px; }
.toc-links a {
  color: var(--text);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.article-box { border-radius: var(--radius-xl); }
.article-section + .article-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(92, 255, 130, 0.12);
}
.article-section p { margin-top: 12px; }
.article-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-section a:hover { color: var(--accent-strong); }
.article-section ul {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.article-section li::marker { color: var(--accent); }
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(92, 255, 130, 0.1), rgba(86, 207, 255, 0.08));
}
.related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-footer { padding: 0 0 40px; }
.footer-grid {
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.8fr));
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  box-shadow: var(--shadow);
}
.footer-grid h3 { margin-bottom: 12px; font-size: 1rem; }
.footer-grid a { display: block; margin-top: 8px; color: var(--muted); }
@media (max-width: 960px) {
  .hero-grid,
  .guide-hero,
  .guide-layout,
  .route-grid,
  .steps-grid,
  .related-grid,
  .footer-grid,
  .chip-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .toc-box { position: static; }
  h1 { max-width: none; }
}
@media (max-width: 840px) {
  .brand-copy { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .menu-wrap {
    position: fixed;
    inset: var(--header-h) 14px auto 14px;
    z-index: 15;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(13, 20, 27, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  body.menu-open .menu-wrap {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav,
  .lang-switcher { display: grid; gap: 12px; }
  .main-nav a,
  .lang-switcher a,
  .header-cta {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .page-main { padding-top: 16px; }
  .topbar { min-height: var(--header-h); }
  .shell { width: min(calc(100% - 20px), var(--shell)); }
  .hero-main,
  .hero-side,
  .guide-copy,
  .guide-points,
  .section-block,
  .article-box,
  .cta-strip,
  .footer-grid { padding: 18px; }
  .cta-strip { flex-direction: column; align-items: stretch; }
  .header-cta,
  .primary-btn,
  .secondary-btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
