@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #071315;
  --bg-soft: #102126;
  --card: rgba(10, 26, 31, 0.94);
  --card-strong: rgba(8, 20, 25, 0.98);
  --line: rgba(125, 211, 200, 0.16);
  --line-strong: rgba(239, 180, 93, 0.24);
  --text: #f1f7f5;
  --muted: #b7cbc8;
  --accent: #7dd3c8;
  --accent-strong: #efb45d;
  --accent-soft: rgba(125, 211, 200, 0.12);
  --accent-soft-strong: rgba(239, 180, 93, 0.12);
  --shadow: 0 30px 78px rgba(2, 9, 12, 0.5);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --shell: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(125, 211, 200, 0.2), transparent 28%),
    radial-gradient(circle at 100% 18%, rgba(239, 180, 93, 0.16), transparent 24%),
    linear-gradient(180deg, #0d2025 0%, #071315 46%, #041014 100%);
  font: 16px/1.7 "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0));
}

body::after {
  background:
    radial-gradient(circle at 18% 30%, rgba(125, 211, 200, 0.12), transparent 18%),
    radial-gradient(circle at 82% 34%, rgba(239, 180, 93, 0.1), transparent 22%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 24px), var(--shell)); margin: 0 auto; }
.page-main { padding: 22px 0 56px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 19, 21, 0.84);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(2, 9, 12, 0.28);
}

.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: 154px; height: auto; }
.brand-copy { display: grid; gap: 2px; }

.brand-copy strong {
  font: 700 0.98rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-copy span {
  font-size: 0.82rem;
  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.93rem;
  color: rgba(241, 247, 245, 0.96);
}

.main-nav a {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--accent);
  border-color: rgba(125, 211, 200, 0.24);
  background: rgba(125, 211, 200, 0.08);
}

.lang-switcher { display: flex; align-items: center; gap: 8px; }
.lang-switcher a {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.lang-switcher a:hover,
.toc-links a:hover,
.route-card a:hover,
.related-card a:hover,
.footer-grid a:hover {
  color: var(--accent);
}

.lang-switcher a.active {
  border-color: rgba(125, 211, 200, 0.28);
  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: 16px;
  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, #8de4d6 0%, #58b6b6 48%, #efb45d 100%);
  color: #082025;
  box-shadow: 0 20px 36px rgba(88, 182, 182, 0.18);
}

.secondary-btn {
  border: 1px solid rgba(125, 211, 200, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.header-cta:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.secondary-btn:hover {
  border-color: rgba(239, 180, 93, 0.28);
  background: rgba(239, 180, 93, 0.08);
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 200, 0.22);
  background: rgba(255, 255, 255, 0.035);
  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(13, 32, 37, 0.96), rgba(7, 20, 24, 0.98));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.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,
.toc-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(125, 211, 200, 0.12), transparent 34%),
    linear-gradient(320deg, rgba(239, 180, 93, 0.12), transparent 30%);
  z-index: -1;
}

.hero-main::after,
.guide-copy::after,
.section-block::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 84px;
  height: 84px;
  border-top: 1px solid rgba(125, 211, 200, 0.24);
  border-right: 1px solid rgba(239, 180, 93, 0.24);
  border-radius: 0 18px 0 0;
  opacity: 0.95;
  z-index: -1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4vw, 4.1rem); max-width: 13ch; }
h2 { font-size: clamp(1.5rem, 2.3vw, 2.34rem); }
h3 { font-size: 1.12rem; }

.hero-copy {
  margin: 16px 0 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.03rem;
}

.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: 16px;
  border: 1px solid rgba(125, 211, 200, 0.16);
  background: linear-gradient(180deg, rgba(125, 211, 200, 0.08), rgba(255,255,255,0.018));
}

.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: 20px;
  border: 1px solid rgba(125, 211, 200, 0.18);
  box-shadow: 0 20px 40px rgba(2, 9, 12, 0.28);
}

.hero-side h2 { font-size: 1.3rem; }
.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: linear-gradient(135deg, rgba(125, 211, 200, 0.14), rgba(239, 180, 93, 0.12));
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.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.055), rgba(255,255,255,0.018));
}

.route-card { border: 1px solid rgba(125, 211, 200, 0.18); }
.step-card { border: 1px solid rgba(239, 180, 93, 0.14); }

.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: linear-gradient(180deg, rgba(10, 25, 29, 0.98), rgba(8, 20, 25, 0.98)); }
.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.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.toc-links { display: grid; gap: 10px; }
.toc-links a {
  color: var(--text);
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.028);
}

.article-box { border-radius: var(--radius-xl); }

.article-section + .article-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 180, 93, 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: #9ee9df; }

.article-section ul {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.article-section li::marker { color: var(--accent-strong); }

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(125, 211, 200, 0.14), rgba(239, 180, 93, 0.11));
}

.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: linear-gradient(180deg, rgba(125, 211, 200, 0.06), rgba(255,255,255,0.02));
  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) 12px auto 12px;
    z-index: 15;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(10, 24, 28, 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: 64px; }

  .page-main { padding-top: 16px; }
  .topbar { min-height: var(--header-h); }
  .shell { width: min(calc(100% - 18px), 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; }
}
