:root {
  color-scheme: dark;

  --color-bg: #141414;
  --color-text: #E8E8E4;
  --color-text-secondary: #9A9A9A;
  --color-accent: #3DAF4D;
  --color-accent-secondary: #E4B82A;
  --color-surface: #1E1E1E;
  --color-border: #333330;
  --color-success: #3DAF4D;
  --color-danger: #E05545;

  /* “white” лучше использовать как светлый текст на тёмном */
  --color-white: #E8E8E4;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --content-width: 780px;
  --component-width: 960px;
  --section-gap: 80px;
  --section-gap-h3: 48px;
  --sidebar-width: 220px;
  --header-bg: #0f0f0f;
  --accent-color: #00ff88;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --header-height: 80px;
}



*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   2. GENERAL TYPOGRAPHY
   ============================================ */
p {
  text-align: left;
  margin-bottom: 1.2em;
  color: var(--color-text);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: left;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 32px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.6em;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
  scroll-margin-top: 2rem;
}

ul, ol {
  text-align: left;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

li {
  text-align: left;
  margin-bottom: 0.4em;
}

strong {
  font-weight: 500;
}

em {
  font-style: italic;
}

blockquote {
  text-align: left;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 16px;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

th {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

figure {
  margin: 2em auto;
  max-width: 100%;
}

figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 0.8em;
}

/* ============================================
   3. LAYOUT — MAIN & DATA-CONTENT SECTIONS
   ============================================ */
header {
  margin: 0;
  padding: 0;
}

main {
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 0 48px;
}

[data-content] {
  grid-column: 2;
  max-width: var(--content-width);
  padding: 0 24px;
  margin-bottom: var(--section-gap);
}

[data-content="hero"] {
  grid-column: 1 / -1;
  max-width: 100%;
  padding: 0;
  margin-bottom: 0;
}

[data-content="toc"] {
  grid-column: 1;
  grid-row: 2 / 50;
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 0 16px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

[data-content="toc"]::-webkit-scrollbar {
  width: 4px;
}

[data-content="toc"]::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 2px;
}

[data-content="toc"]::-webkit-scrollbar-track {
  background: transparent;
}

/* H3-level sections get smaller gap */
[data-content="mecanique-calcul"],
[data-content="mecanique-proba"],
[data-content="strat-petites-cotes"],
[data-content="strat-buteurs"],
[data-content="strat-live"],
[data-content="strat-sports-mixtes"],
[data-content="strat-cashout"],
[data-content="risques-maths"],
[data-content="risques-biais"] {
  margin-bottom: var(--section-gap-h3);
}

/* ============================================
   4. COMPONENTS
   ============================================ */

/* --- info-box --- */
.info-box {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  margin: 1.5em 0;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 0.6em;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box p strong {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}

/* --- odds-example --- */
.odds-example {
  background-color: #0D0D0D;
  color: #FAFAF8;
  padding: 32px;
  margin: 1.5em 0;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.odds-example table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.odds-example th {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 250, 248, 0.6);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(250, 250, 248, 0.15);
  text-align: left;
}

.odds-example td {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #FAFAF8;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(250, 250, 248, 0.08);
  text-align: left;
}

.odds-example p {
  text-align: center;
  background-color: #2D8C3C;
  color: #FAFAF8;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 15px;
  padding: 12px 16px;
  margin: 0;
}

.odds-example p strong {
  color: #FAFAF8;
}



/* --- callout --- */
.callout {
  background-color: transparent;
  border: 2px solid var(--color-accent-secondary);
  padding: 20px 24px;
  margin: 1.5em 0;
  border-radius: 0;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.callout::before {
  content: "!";
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-accent-secondary);
  position: absolute;
  top: 18px;
  left: -12px;
  background-color: var(--color-bg);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.callout p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 0;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  max-width: 600px;
  margin: 48px auto;
  position: relative;
  padding: 24px 0;
}

.section-bridge::before,
.section-bridge::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
}

.section-bridge::before {
  margin-bottom: 20px;
}

.section-bridge::after {
  margin-top: 20px;
}

.section-bridge p {
  text-align: center;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.2em 0;
}

.glossary-term p {
  margin-bottom: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
  text-align: left;
}

.glossary-term p strong {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-accent);
  text-decoration: underline dotted var(--color-accent);
  text-underline-offset: 4px;
  font-weight: 400;
  white-space: nowrap;
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 3px solid var(--color-text);
  margin-top: 32px;
  padding-top: 20px;
  margin-bottom: 1.5em;
}

.key-takeaway p {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--color-accent);
  max-width: 80%;
  margin: 1.5em 0;
}

.fun-fact p {
  text-align: left;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.comparison > div:first-child {
  background-color: var(--color-surface);
  padding: 24px;
  border-right: 2px solid var(--color-border);
}

.comparison > div:last-child {
  background-color: var(--color-bg);
  padding: 24px;
}

.comparison p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
}

.comparison p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  color: var(--color-text);
}

.comparison ul {
  text-align: left;
  padding-left: 1.2em;
}

.comparison li {
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 1.5em 0;
}

.card-grid > div {
  background-color: var(--color-surface);
  padding: 24px;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card-grid > div:hover {
  border-left-color: var(--color-accent);
}

.card-grid > div p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 0.5em;
}

.card-grid > div p:last-child {
  margin-bottom: 0;
}

.card-grid > div p strong {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.dos-donts > div:first-child {
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

.dos-donts > div:first-child p strong {
  color: var(--color-success);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 12px;
}

.dos-donts > div:last-child {
  padding: 24px;
}

.dos-donts > div:last-child p strong {
  color: var(--color-danger);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 12px;
}

.dos-donts p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 0;
}

.dos-donts ul {
  text-align: left;
  padding-left: 1.2em;
}

.dos-donts li {
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 1.5em 0;
}

.pre-bet-checklist p strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.pre-bet-checklist p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 0;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 24px;
  border-left: 2px solid var(--color-border);
  text-align: left;
}

.pre-bet-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  background-color: var(--color-bg);
  padding: 0 4px;
  margin-left: -14px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.at-a-glance > div {
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

.at-a-glance > div:last-child {
  border-right: none;
}

.at-a-glance p {
  text-align: center;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 0.4em;
}

.at-a-glance p:last-child {
  margin-bottom: 0;
}

.at-a-glance p strong {
  font-family: var(--font-display);
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
}

/* --- worked-example --- */
.worked-example {
  background-color: var(--color-surface);
  padding: 32px;
  margin: 1.5em 0;
  border-radius: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 0.8em;
}

.worked-example p:last-child {
  margin-bottom: 0;
}

.worked-example p strong {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-text);
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 16px 0;
}

.worked-example .result {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--color-accent);
  font-weight: 400;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
[data-content="hero"] {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(61, 175, 77, 0.08) 0%, transparent 70%);
  padding: clamp(48px, 8vw, 96px) 24px clamp(32px, 4vw, 48px);
  text-align: center;
  margin-bottom: var(--section-gap);
}


[data-content="hero"] .hero-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

[data-content="hero"] h1 {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
}

[data-content="hero"] .hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.5;
  text-align: center;
}

[data-content="hero"] .hero-separator {
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  border: none;
  margin: 0 auto 24px;
}

[data-content="hero"] .hero-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

[data-content="hero"] figure {
  max-width: var(--content-width);
  margin: 0 auto;
}

[data-content="hero"] figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

[data-content="hero"] figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-top: 12px;
}

/* ============================================
   5b. TOC SIDEBAR
   ============================================ */
[data-content="toc"] nav {
  padding-top: 24px;
}

[data-content="toc"] .toc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

[data-content="toc"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

[data-content="toc"] > nav > ul > li {
  margin-bottom: 8px;
}

[data-content="toc"] > nav > ul > li > a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease;
}

[data-content="toc"] > nav > ul > li > a:hover {
  color: var(--color-accent);
  opacity: 1;
}

[data-content="toc"] > nav > ul > li > a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

[data-content="toc"] ul ul {
  padding-left: 12px;
  margin-top: 4px;
}

[data-content="toc"] ul ul li {
  margin-bottom: 4px;
}

[data-content="toc"] ul ul a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  padding: 2px 0;
  transition: color 0.2s ease;
}

[data-content="toc"] ul ul a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ============================================
   6. FAQ ACCORDION
   ============================================ */
details {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
  interpolate-size: allow-keywords;
}

summary {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text);
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  list-style: none;
  text-align: left;
  transition: color 0.2s ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}

details[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
}

summary:hover {
  color: var(--color-accent);
}

summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
}

details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

details div p {
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  padding-bottom: 18px;
}

@supports not selector(::details-content) {
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  details[open] > *:not(summary) {
    animation: fade-in 0.3s ease forwards;
  }
}

/* ============================================
   7. ARTICLE IMAGES
   ============================================ */
.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================
   8. BACK TO TOP
   ============================================ */
.back-to-top {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
  text-align: center;
  margin: 0 auto;
  display: block;
  max-width: 200px;
}

.back-to-top:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  opacity: 1;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================
   10. MEDIA QUERIES
   ============================================ */
@media (max-width: 900px) {
  main {
    display: block;
  }

  [data-content] {
    max-width: 100%;
    padding: 0 20px;
  }

  [data-content="toc"] {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding: 0 20px;
    margin-bottom: var(--section-gap-h3);
  }

  [data-content="hero"] {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: clamp(32px, 6vw, 64px) 20px clamp(24px, 3vw, 36px);
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .comparison > div:first-child {
    border-right: none;
    border-bottom: 2px solid var(--color-border);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .dos-donts {
    grid-template-columns: 1fr;
  }

  .dos-donts > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .at-a-glance {
    grid-template-columns: 1fr;
  }

  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .at-a-glance > div:last-child {
    border-bottom: none;
  }

  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }

  .fun-fact {
    max-width: 100%;
  }

  table {
    font-size: 14px;
  }

  th, td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-gap: 56px;
    --section-gap-h3: 36px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- Desktop Navigation Styles --- */


.site-header {
    background-color: var(--header-bg);
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styling */
.site-logo a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-dot {
    color: var(--accent-color);
}

/* Desktop Menu List */
.menu-desktop {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Menu Items */
.menu-desktop li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

/* Hover Effect: Color change and underline */
.menu-desktop li a:hover,
.menu-desktop li.current-menu-item a {
    color: var(--text-main);
}

.menu-desktop li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.menu-desktop li a:hover::after,
.menu-desktop li.current-menu-item a::after {
    width: 100%;
}

/* Breadcrumbs Alignment */
.breadcrumbs-wrapper {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hide desktop nav on mobile */
@media (max-width: 991px) {
    .site-nav--desktop {
        display: none;
    }
}

/* --- Footer Layout & Typography --- */
.site-footer {
    background-color: #0d0d0d; /* Slightly darker than main body */
    color: #a0a0a0;
    padding: 60px 0 20px;
    font-size: 0.85rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4 Column Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-heading {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 15px;
}

/* Custom bullet points for text lists */
.warning-list li, .info-list li {
    position: relative;
    padding-left: 18px;
}

/* Warning red dots for the first column */
.warning-list li::before {
    content: '•';
    color: #ff4a4a; /* Red warning accent */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Neutral dots for the second column */
.info-list li::before {
    content: '•';
    color: #555555;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.highlight-phone {
    color: #ff4a4a;
    font-weight: bold;
}

/* Styling for links with hover effect */
.link-list a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.link-list a:hover {
    color: #00ff88; /* Matches your header accent */
    transform: translateX(5px); /* Small slide effect */
}

/* Bottom Copyright Bar */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    font-size: 0.8rem;
    color: #777777;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    /* Tablet: 2 columns */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    /* Mobile: 1 column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-heading {
        margin-bottom: 15px;
    }
}

/* --- Mobile Menu Button (Hamburger) --- */
.burger {
    display: none; /* Hidden on desktop by default */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Show hamburger button on mobile and tablet */
@media (max-width: 991px) {
    .burger {
        display: block;
    }
}

/* --- Mobile Overlay (Background Dimming) --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* Modern blur effect */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active state triggered by your JavaScript */
.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* --- Mobile Menu Sliding Panel --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    background-color: var(--header-bg); /* Uses the dark background variable */
    z-index: 1001;
    transform: translateX(100%); /* Hides panel off-screen to the right */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Smooth sliding animation */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 80px 30px 30px; /* Top padding clears space for the close button */
}

/* Open state triggered by your JavaScript */
.mobile-menu.is-open {
    transform: translateX(0);
}

/* --- Close Button --- */
.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.mobile-menu__close:hover {
    color: var(--accent-color); /* Turns neon green on hover */
}

/* --- Mobile Navigation Links --- */
.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-mobile li {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator */
    padding-bottom: 10px;
}

.menu-mobile li:last-child {
    border-bottom: none;
}

.menu-mobile li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

/* Hover and Active states for mobile links */
.menu-mobile li a:hover,
.menu-mobile li.current-menu-item a {
    color: var(--accent-color);
    padding-left: 10px; /* Slight indent effect on tap/hover */
}

/* --- 404 Page Styles --- */
.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Keeps the footer from jumping up too high */
    text-align: center;
    padding: 60px 20px;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Hollow text effect with neon green outline */
.error-title {
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-color); /* Uses your neon green */
    margin: 0;
    line-height: 1;
    letter-spacing: 5px;
}

.error-subtitle {
    font-size: 2.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    margin: 20px 0;
    font-weight: 800;
}

.error-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- Primary Button Style --- 
   (You can reuse this class across your site for important call-to-actions) */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000000; /* Dark text for maximum contrast on neon green */
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #00cc6a; /* Slightly darker green on hover */
    transform: translateY(-3px); /* Small lift effect on hover */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .error-title {
        font-size: 5rem;
    }
    .error-subtitle {
        font-size: 1.8rem;
    }
}

.footer-bottom p {
  text-align: center;
  margin-bottom: 0;
}

