/* ======================================================================
   WSPÓLNE STYLE — dr Maciej Rzeszut / Korepetycje z Matematyki
   Ten plik jest współdzielony przez wszystkie podstrony serwisu.
   Sekcja "SHARED" zawiera elementy identyczne na każdej stronie
   (nawigacja, przyciski, stopka, typografia). Poniżej znajdują się
   bloki właściwe dla poszczególnych podstron, oznaczone komentarzem
   i przypisane do klasy <body class="page-...">.
   ====================================================================== */

:root {
  --bg:       #181c25;
  --bg2:      #20242f;
  --bg3:      #2a2f3d;
  --chalk:    #f2eee4;
  --chalk2:   #b7b0a0;
  --gold:     #e8c84a;
  --gold2:    #c9a62e;
  --gold-bright: #f0d45e;
  --teal:     #4ecdc4;
  --red:      #e05a5a;
  --gold-rgb:  232,200,74;
  --teal-rgb:  78,205,196;
  --chalk-rgb: 242,238,228;
  --border:   rgba(var(--gold-rgb),0.12);
  --glow:     rgba(var(--gold-rgb),0.05);
  --toggle-bg: #f1ead9;  /* przycisk zawsze w kolorach przeciwnego motywu, dla kontrastu */
  --toggle-fg: #211d15;
  --nav-glass:   linear-gradient(135deg, rgba(35, 42, 56, 0.72) 0%, rgba(18, 22, 30, 0.72) 100%);
  --nav-glass-2: linear-gradient(135deg, rgba(45, 54, 72, 0.55) 0%, rgba(14, 18, 26, 0.55) 100%);
  --nav-h: 64px; /* wartość zapasowa – realna wysokość nav (zależna od vh) jest ustawiana przez theme.js */
  color-scheme: dark;
}

/* ── TRYB JASNY ───────────────────── */
:root[data-theme="light"] {
  --bg:       #faf7f0;
  --bg2:      #f1ead9;
  --bg3:      #e6dcc4;
  --chalk:    #211d15;
  --chalk2:   #6b6250;
  --gold:     #a8710f;
  --gold2:    #8a5c0a;
  --gold-bright: #c68e15;
  --teal:     #106b6f;
  --red:      #a83a2f;
  --gold-rgb:  168,113,15;
  --teal-rgb:  16,107,111;
  --chalk-rgb: 33,29,21;
  --border:   rgba(120,90,40,0.16);
  --glow:     rgba(168,113,15,0.07);
  --toggle-bg: #20242f;  /* przycisk zawsze w kolorach przeciwnego motywu, dla kontrastu */
  --toggle-fg: #f2eee4;
  --nav-glass:   linear-gradient(135deg, rgba(255, 253, 247, 0.76) 0%, rgba(240, 233, 215, 0.76) 100%);
  --nav-glass-2: linear-gradient(135deg, rgba(255, 255, 250, 0.58) 0%, rgba(228, 214, 182, 0.58) 100%);
  color-scheme: light;
}

/* Subtelniejsza tekstura papieru pod ciepłymi kolorami w trybie jasnym */
:root[data-theme="light"] body {
  background-color: var(--bg);
  background-image: url('grafiki/paper.jpg');
  background-repeat: repeat;
  background-size: 800px auto;
  background-blend-mode: multiply;
}

:root[data-theme="light"] section.alt,
:root[data-theme="light"] .alt,
:root[data-theme="light"] footer {
  background-color: var(--bg2);
  background-image: url('grafiki/paper.jpg');
  background-repeat: repeat;
  background-size: 800px auto;
  background-blend-mode: multiply;
}

/* Te same sekcje strony głównej mają ustawiony płaski kolor tła
   (.about, .offer, .science, .youtube, .review-section, .contact),
   ale brakowało im obrazka tekstury, którą mają odpowiedniki .alt
   na podstronach — stąd wrażenie, że tekstura jest tylko miejscami. */
:root[data-theme="light"] .page-home .about,
:root[data-theme="light"] .page-home .offer,
:root[data-theme="light"] .page-home .science,
:root[data-theme="light"] .page-home .youtube,
:root[data-theme="light"] .page-home .review-section,
:root[data-theme="light"] .page-home .contact {
  background-image: url('grafiki/paper.jpg');
  background-repeat: repeat;
  background-size: 800px auto;
  background-blend-mode: multiply;
}

:root[data-theme="light"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('grafiki/paper.jpg');
  background-repeat: repeat;
  background-size: 800px auto;
  pointer-events: none;
  z-index: 999;
  opacity: 0.14;
  mix-blend-mode: multiply;
}

/* Wzmocniony kolor i tekstura papieru w sekcji CTA nad footerem (.contact-strip) */
:root[data-theme="light"] .contact-strip {
  position: relative;
  background-color: #e6d7b8 !important;
  background-image: url('grafiki/paper.jpg');
  background-repeat: repeat;
  background-size: 550px auto;
  background-blend-mode: multiply;
  border-top: 1px solid rgba(168,113,15,0.35);
  border-bottom: 1px solid rgba(168,113,15,0.35);
  box-shadow: inset 0 0 35px rgba(168, 113, 15, 0.12);
}

:root[data-theme="light"] .contact-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('grafiki/paper.jpg');
  background-repeat: repeat;
  background-size: 500px auto;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: multiply;
  z-index: 1;
}

:root[data-theme="light"] .contact-strip * {
  position: relative;
  z-index: 2;
}

body, nav, .subnav, footer, .contact-strip { transition: background-color .3s ease, color .3s ease; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--chalk);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

/* subtelny szum na tle całej strony */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 999; opacity: .18;
}

h1, h2, h3 { font-family: 'Libre Baskerville', serif; line-height: 1.2; }
.mono { font-family: 'DM Mono', monospace; }
a { color: inherit; }

/* ── NAWIGACJA ────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 0.95rem 2.5rem;
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

.subnav {
  position: sticky; top: var(--nav-h); z-index: 90;
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
  padding: .75rem 6rem;
  background: var(--nav-glass-2);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.12);
}
.subnav a {
  font-family: 'DM Mono', monospace; font-size: 1.25vh; font-weight: 500; letter-spacing: .05em; text-decoration: none;
  color: var(--chalk2); padding: .45rem 1.1rem; border-radius: 2rem;
  background: rgba(var(--chalk-rgb), 0.06);
  border: 1px solid rgba(var(--gold-rgb), 0.18);
  transition: all .25s ease; white-space: nowrap;
}
.subnav a:hover, .subnav a.active {
  color: var(--gold);
  border-color: rgba(var(--gold-rgb), 0.5);
  background: var(--glow);
  transform: translateY(-1px);
}

:root[data-theme="light"] .subnav a {
  color: #2b251a;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(168, 113, 15, 0.25);
  box-shadow: 0 2px 8px rgba(120, 90, 40, 0.06);
}
:root[data-theme="light"] .subnav a:hover,
:root[data-theme="light"] .subnav a.active {
  color: #a8710f;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(168, 113, 15, 0.65);
  box-shadow: 0 4px 14px rgba(168, 113, 15, 0.18);
}
.nav-logo { font-family: 'Libre Baskerville', serif; font-size: 1.96vh; color: var(--gold); text-decoration: none; letter-spacing: .02em; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--chalk2); text-decoration: none; font-size: 1.6vh; font-weight: 400; letter-spacing: .04em; transition: color .2s; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-cta { padding: .65rem 1.5rem; font-size: 1.42vh; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Przycisk hamburger dla wersji mobilnej */
body.nav-mobile-open { overflow: hidden !important; }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .4rem;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: .4rem;
  border: 1px solid var(--border);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--chalk);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
}
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--gold);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--gold);
}

/* rozwijane podmenu (np. Korepetycje → Matura / Studia / Olimpiady / FAQ) */
.nav-links li.has-dropdown { position: relative; }
.nav-links li.has-dropdown > a::after { content: '▾'; font-size: .8em; margin-left: .35em; opacity: .7; }
.nav-links .dropdown {
  position: absolute; top: var(--dd-top, 100%); left: 50%;
  transform: translateX(-50%) translateY(4px);
  list-style: none; min-width: 11rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: .6rem;
  padding: .5rem 0; margin-top: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  z-index: 200;
}
.nav-links li.has-dropdown:hover .dropdown,
.nav-links li.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-links .dropdown a {
  display: block; padding: .55rem 1.3rem; font-size: 1.42vh; white-space: nowrap;
  color: var(--chalk2); letter-spacing: .02em;
}
.nav-links .dropdown a::after { content: none; }
.nav-links .dropdown a:hover, .nav-links .dropdown a.active { color: var(--gold); background: var(--glow); }



/* ── OKRUSZKI (breadcrumb) ─────────── */
.breadcrumb { padding: 8.5rem 6rem 0; font-family: 'DM Mono', monospace; font-size: 1.24vh; color: var(--chalk2); }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── ODZNAKI ──────────────────────── */
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; z-index: 1; }
.badge { padding: .35rem .9rem; border-radius: 2rem; border: 1px solid var(--border); background: var(--glow); font-size: 1.42vh; font-weight: 500; color: var(--chalk2); letter-spacing: .03em; }
.badge.gold { border-color: rgba(var(--gold-rgb),.35); color: var(--gold); background: rgba(var(--gold-rgb),.07); }
.badge.teal { border-color: rgba(var(--teal-rgb),.35); color: var(--teal); background: rgba(var(--teal-rgb),.06); }

/* ── PRZYCISKI Z ZŁOTYMI GRADIENTAMI ────────────── */
@keyframes gradientFlow45 {
  0% { background-position: 0% 100%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: .45rem;
  font-size: 1.5vh;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(45deg, #c99826 0%, #e8c84a 30%, #f7e48b 60%, #e0b438 85%, #c99826 100%);
  background-size: 260% 260%;
  animation: gradientFlow45 5s ease infinite;
  color: #12141a;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 18px rgba(var(--gold-rgb), 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--gold-rgb), 0.48), 0 0 16px rgba(232, 200, 74, 0.35);
  border-color: rgba(255,255,255,0.45);
}

.btn-ghost {
  background: linear-gradient(45deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.16) 40%, rgba(255,255,255,0.28) 70%, rgba(255,255,255,0.04) 100%);
  background-size: 260% 260%;
  animation: gradientFlow45 6s ease infinite;
  color: var(--chalk);
  border: 1px solid rgba(var(--chalk-rgb), 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.btn-ghost:hover {
  border-color: rgba(var(--gold-rgb), 0.5);
  color: var(--chalk);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(var(--gold-rgb), 0.2), 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* Wzmocnienie czytelności i płynny jasny gradient w Light Mode */
:root[data-theme="light"] .btn-ghost {
  background: linear-gradient(45deg, rgba(255, 253, 247, 0.55) 0%, rgba(238, 226, 200, 0.6) 45%, rgba(255, 255, 252, 0.8) 75%, rgba(255, 253, 247, 0.55) 100%);
  background-size: 260% 260%;
  animation: gradientFlow45 6s ease infinite;
  color: var(--chalk);
  border: 1px solid rgba(168, 113, 15, 0.28);
  box-shadow: 0 4px 14px rgba(120, 90, 40, 0.12);
}
:root[data-theme="light"] .btn-ghost:hover {
  border-color: rgba(168, 113, 15, 0.65);
  color: #15120d;
  background: linear-gradient(45deg, rgba(255, 255, 252, 0.8) 0%, rgba(243, 233, 210, 0.88) 50%, rgba(255, 255, 255, 0.95) 100%);
  background-size: 260% 260%;
  box-shadow: 0 6px 22px rgba(168, 113, 15, 0.22), 0 10px 24px rgba(0, 0, 0, 0.08);
}
.btn-sm { padding: .5rem 1.1rem; font-size: 1.33vh; }

/* przycisk hero na stronie głównej jest większy */
.page-home .btn { padding: .85rem 2.1rem; font-size: 1.69vh; }
.page-home .btn-ghost { border: 1px solid rgba(var(--chalk-rgb),.28); }

/* ── SEKCJE — wspólne elementy ────── */
section { padding: 5rem 6rem; }
.section-label { font-family: 'DM Mono', monospace; font-size: 1.33vh; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
h2.section-title { font-size: clamp(3.2vh, 4vh, 4.8vh); margin-bottom: 1rem; color: var(--chalk); }
.section-intro { font-size: 1.87vh; color: var(--chalk2); max-width: 66ch; margin-bottom: 3rem; }
.alt { background: var(--bg2); }

/* animacja "wjazdu" pływających formuł w tle sekcji hero (podstrony) */
@keyframes settleIn { to { opacity: 1; } }

/* ── PASEK KONTAKTOWY (CTA na dole podstron) ─── */
.contact-strip {
  background: linear-gradient(135deg, #252a3a 0%, #1a1e2a 100%);
  border-top: 1px solid rgba(var(--gold-rgb), 0.28);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.28);
  box-shadow: inset 0 0 45px rgba(var(--gold-rgb), 0.06);
  padding: 3.2rem 6rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.contact-strip .cs-text h3 { font-size: 2.2vh; color: var(--chalk); margin-bottom: .4rem; }
.contact-strip .cs-text p { font-size: 1.6vh; color: var(--chalk2); }
.contact-strip .cs-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── STOPKA ───────────────────────── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3.5rem 6rem 2rem; display: flex; flex-direction: column; gap: 2.2rem; }
footer p { font-size: 1.51vh; color: var(--chalk2); }
.footer-brand { font-family: 'Libre Baskerville', serif; font-size: 1.78vh; color: var(--gold); display: block; margin-bottom: .5rem; }
.footer-main { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem; }
.footer-brand-block { max-width: 32ch; }
.footer-brand-block .footer-meta { color: var(--chalk2); font-size: 1.42vh; margin-top: .3rem; }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h4 {
  font-family: 'DM Mono', monospace; font-size: 1.15vh; letter-spacing: .12em;
  text-transform: uppercase; color: var(--chalk2); margin-bottom: .3rem;
}
.footer-col a { font-size: 1.51vh; color: var(--chalk2); text-decoration: none; transition: color .2s; }
.footer-col a:hover, .footer-col a.active { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.2rem; font-size: 1.24vh; color: var(--chalk2); }

/* ── ANIMACJA POJAWIANIA SIĘ (scroll-reveal) ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.fade-in { opacity: 0; transform: translateY(24px); animation: fadeIn .7s ease forwards; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.fade-in:nth-child(1) { animation-delay: .1s; }
.fade-in:nth-child(2) { animation-delay: .25s; }
.fade-in:nth-child(3) { animation-delay: .4s; }
.fade-in:nth-child(4) { animation-delay: .55s; }

/* ── PRZEŁĄCZNIK TRYBU JASNY/CIEMNY ─── */
.theme-toggle {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 500;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--toggle-bg); border: 1px solid var(--border);
  color: var(--toggle-fg); cursor: pointer; padding: 0;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  transition: background-color .3s ease, color .3s ease, transform .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.theme-toggle:active { transform: translateY(-1px) scale(.98); }
.theme-toggle svg { width: 1.4rem; height: 1.4rem; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── RESPONSYWNOŚĆ (wspólna) ──────── */
@media (max-width: 1024px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-cta { padding: .5rem 1rem; font-size: 1.24vh; }
  .subnav { padding: .8rem 1.5rem; top: var(--nav-h); overflow-x: auto; flex-wrap: nowrap; }
  .breadcrumb { padding: 7.5rem 1.5rem 0; }
  section { padding: 3.5rem 1.5rem; }
  .contact-strip, footer { padding: 2rem 1.5rem; }
  .footer-main { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 2.5rem; }
  .theme-toggle { bottom: 1.2rem; right: 1.2rem; width: 2.9rem; height: 2.9rem; }
}
/* ===================================================================
   STRONA GŁÓWNA (index.html)
   =================================================================== */
.page-home .nav-links a:hover { color: var(--gold); }

.page-home .hero {
      min-height: 100vh; display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      padding: 7rem 6rem 4rem;
      position: relative; overflow: hidden;
    }

.page-home .hero::after {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(var(--gold-rgb),.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--gold-rgb),.04) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
    }

.page-home .hero-formulas {
      position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    }

.page-home .hero-formulas span {
      position: absolute;
      font-family: 'Libre Baskerville', serif;
      color: rgba(var(--gold-rgb),.14);
      font-style: italic; user-select: none;
      will-change: transform, text-shadow;
    }

.page-home .hero-formulas span:nth-child(1) { left:5%;  top:20%; font-size:4.98vh; animation: waveA 15s infinite ease-in-out, glowPulse 20s  infinite ease-in-out; animation-delay:0s, -4s;    }

.page-home .hero-formulas span:nth-child(2) { left:70%; top:15%; font-size:3.56vh; animation: waveB 18s infinite ease-in-out, glowPulse 26s infinite ease-in-out; animation-delay:-9s, -12s;   }

.page-home .hero-formulas span:nth-child(3) { left:55%; top:55%; font-size:5.69vh; animation: waveC 13s infinite ease-in-out, glowPulse 18s infinite ease-in-out; animation-delay:-4s, 0s;   }

.page-home .hero-formulas span:nth-child(4) { left:15%; top:65%; font-size:3.2vh;  animation: waveA 17s infinite ease-in-out, glowPulse 28s  infinite ease-in-out; animation-delay:-10s, -8s;  }

.page-home .hero-formulas span:nth-child(5) { left:80%; top:70%; font-size:4.27vh; animation: waveB 14s infinite ease-in-out, glowPulse 22s infinite ease-in-out; animation-delay:-6s, -16s;   }

.page-home .hero-formulas span:nth-child(6) { left:40%; top:85%; font-size:2.67vh; animation: waveC 16s infinite ease-in-out, glowPulse 24s  infinite ease-in-out; animation-delay:-8s, -6s; }

.page-home .hero-formulas span:nth-child(7) { left:90%; top:40%; font-size:3.56vh; animation: waveA 19s infinite ease-in-out, glowPulse 16s  infinite ease-in-out; animation-delay:-2s, -14s;  }

.page-home .hero-formulas span:nth-child(8) { left:28%; top:10%; font-size:2.84vh; animation: waveB 15.5s infinite ease-in-out, glowPulse 30s infinite ease-in-out; animation-delay:-12s, -20s;}

@keyframes waveA {
      0%   { transform: translate(0, 0)          rotate(-2deg)  scale(1);    }
      20%  { transform: translate(26px, -30px)   rotate(1deg)   scale(1.04); }
      40%  { transform: translate(8px, -54px)    rotate(3deg)   scale(1.08); }
      60%  { transform: translate(-22px, -32px)  rotate(-1deg)  scale(1.03); }
      80%  { transform: translate(-16px, -8px)   rotate(-3deg)  scale(1);    }
      100% { transform: translate(0, 0)          rotate(-2deg)  scale(1);    }
    }

@keyframes waveB {
      0%   { transform: translate(0, 0)          rotate(2deg)   scale(1);    }
      25%  { transform: translate(-30px, -18px)  rotate(-2deg)  scale(1.05); }
      50%  { transform: translate(-12px, -48px)  rotate(3deg)   scale(1.1);  }
      75%  { transform: translate(22px, -22px)   rotate(-3deg)  scale(1.02); }
      100% { transform: translate(0, 0)          rotate(2deg)   scale(1);    }
    }

@keyframes waveC {
      0%   { transform: translate(0, 0)          rotate(-1deg)  scale(1);    }
      30%  { transform: translate(18px, -40px)   rotate(2deg)   scale(1.06); }
      55%  { transform: translate(-26px, -54px)  rotate(-2.5deg) scale(1.1); }
      80%  { transform: translate(-10px, -14px)  rotate(3deg)   scale(1.02); }
      100% { transform: translate(0, 0)          rotate(-1deg)  scale(1);    }
    }

@keyframes glowPulse {
      0%, 100% {
        opacity: .45;
        text-shadow: 0 0 4px rgba(var(--gold-rgb),.15), 0 0 10px rgba(var(--gold-rgb),.05);
      }
      50% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(var(--gold-rgb),.65), 0 0 26px rgba(var(--gold-rgb),.4), 0 0 48px rgba(var(--teal-rgb),.15);
      }
    }

.page-home .hero-text { position: relative; z-index: 1; }

.page-home .hero-eyebrow {
      font-family: 'DM Mono', monospace;
      font-size: 1.42vh; letter-spacing: .18em; text-transform: uppercase;
      color: var(--gold); margin-bottom: 1.4rem;
      display: flex; align-items: center; gap: .75rem;
    }

.page-home .hero-eyebrow::before {
      content: ''; display: block; width: 2.5rem; height: 1px; background: var(--gold);
    }

.page-home h1.hero-title {
      font-size: clamp(4.98vh, 6.75vh, 8.53vh);
      font-weight: 700;
      color: var(--chalk);
      line-height: 1.05;
      margin-bottom: 1rem;
    }

.page-home h1.hero-title em {
      font-style: italic; color: var(--gold);
    }

.page-home .hero-sub {
      font-size: 2.04vh; color: var(--chalk2);
      max-width: 42ch; margin-bottom: 2.8rem; line-height: 1.7;
    }

.page-home .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-home .hero-visual {
      position: relative; z-index: 1;
      display: flex; justify-content: center; align-items: center;
    }

.page-home .chalkboard {
      width: 440px; height: 340px;
      background: #1b2a1e;
      border-radius: 6px;
      border: 3px solid #3a4a3c;
      box-shadow:
        0 0 0 8px #2a1f0e,
        0 0 0 10px #3a2f1e,
        0 30px 80px rgba(0,0,0,.6);
      display: flex; flex-direction: column;
      justify-content: center; align-items: center;
      gap: 1.1rem;
      padding: 2.5rem;
      position: relative; overflow: hidden;
    }

.page-home .chalkboard::before {
      content: '';
      position: absolute; inset: 0;
      background: repeating-linear-gradient(
        0deg, transparent, transparent 28px,
        rgba(255,255,255,.015) 28px, rgba(255,255,255,.015) 29px
      );
    }

.page-home .chalk-line {
      font-family: 'Libre Baskerville', serif;
      font-style: italic;
      color: rgba(240,236,226,.82);
      font-size: 2.31vh;
      text-align: center;
      line-height: 1.4;
      position: relative; z-index: 1;
      text-shadow: 0 0 8px rgba(240,236,226,.2);
    }

.page-home .chalk-line.big { font-size: 3.38vh; color: rgba(var(--gold-rgb),.9); }

.page-home .chalk-divider {
      width: 70%; height: 1px;
      background: rgba(240,236,226,.15);
      position: relative; z-index: 1;
    }

.page-home .chalk-small {
      font-family: 'DM Mono', monospace;
      font-size: 1.33vh; color: rgba(240,236,226,.45);
      text-align: center; position: relative; z-index: 1; letter-spacing: .1em;
    }

.page-home .stats-bar {
      background: var(--bg2);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 2rem 6rem;
      display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1.5rem;
    }

.page-home .stat { text-align: center; }

.page-home .stat-num {
      font-family: 'Libre Baskerville', serif;
      font-size: 4.27vh; font-weight: 700;
      color: var(--gold); display: block; line-height: 1;
    }

.page-home .stat-label {
      font-size: 1.42vh; color: var(--chalk2); letter-spacing: .08em; text-transform: uppercase;
      margin-top: .4rem;
    }

.page-home .about { background: var(--bg2); }

.page-home .about-grid {
      display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start;
    }

.page-home .about-text p { color: var(--chalk2); margin-bottom: 1.2rem; font-size: 1.87vh; }

.page-home .about-text p strong { color: var(--chalk); font-weight: 600; }

.page-home .quote-block {
      border-left: 3px solid var(--gold);
      padding: 1rem 1.5rem;
      margin: 2rem 0;
      background: var(--glow);
      border-radius: 0 .4rem .4rem 0;
    }

.page-home .quote-block p {
      font-family: 'Libre Baskerville', serif;
      font-style: italic; font-size: 1.96vh;
      color: var(--chalk) !important;
      margin: 0 !important;
    }

.page-home .timeline { display: flex; flex-direction: column; gap: 0; }

.page-home .tl-item {
      display: grid; grid-template-columns: 1fr 1.5rem 1fr;
      gap: 0 1rem; align-items: start; padding-bottom: 2rem;
    }

.page-home .tl-item:last-child { padding-bottom: 0; }

.page-home .tl-right { grid-column: 3; }

.page-home .tl-left { grid-column: 1; text-align: right; }

.page-home .tl-dot-col {
      grid-column: 2; display: flex; flex-direction: column; align-items: center;
    }

.page-home .tl-dot {
      width: 12px; height: 12px; border-radius: 50%;
      background: var(--gold); flex-shrink: 0;
      box-shadow: 0 0 12px rgba(var(--gold-rgb),.5);
      margin-top: .3rem;
    }

.page-home .tl-line {
      width: 1px; flex: 1; background: var(--border); min-height: 2rem;
    }

.page-home .tl-year { font-family: 'DM Mono', monospace; font-size: 1.42vh; color: var(--gold); }

.page-home .tl-title { font-weight: 600; color: var(--chalk); font-size: 1.69vh; }

.page-home .tl-sub { font-size: 1.51vh; color: var(--chalk2); margin-top: .2rem; }

.page-home .offer { background: var(--bg); }

.page-home .offer-grid {
      display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
    }

.page-home .offer-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: .75rem;
      padding: 2.2rem;
      transition: transform .25s, box-shadow .25s, border-color .25s;
      position: relative; overflow: hidden;
    }

.page-home .offer-card::before {
      content: '';
      position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      opacity: 0; transition: opacity .25s;
    }

.page-home .offer-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 50px rgba(0,0,0,.4);
      border-color: rgba(var(--gold-rgb),.35);
    }

.page-home .offer-card:hover::before { opacity: 1; }

.page-home .offer-icon {
      font-size: 3.56vh; margin-bottom: 1.2rem; display: block; line-height: 1;
    }

.page-home .offer-card h3 {
      font-size: 2.13vh; color: var(--chalk); margin-bottom: .7rem;
    }

.page-home .offer-card p { font-size: 1.6vh; color: var(--chalk2); line-height: 1.6; }

.page-home .offer-card .tag {
      display: inline-block; margin-top: 1.2rem;
      font-family: 'DM Mono', monospace;
      font-size: 1.33vh; letter-spacing: .08em;
      color: var(--teal); padding: .3rem .7rem;
      border: 1px solid rgba(var(--teal-rgb),.25);
      border-radius: .3rem; background: rgba(var(--teal-rgb),.06);
    }

.page-home .pricing-callout {
      margin-top: 2.5rem;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: .75rem;
      padding: 2rem 2.5rem;
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 1.5rem;
    }

.page-home .price-big {
      font-family: 'Libre Baskerville', serif;
      font-size: 5.33vh; font-weight: 700; color: var(--gold); line-height: 1;
    }

.page-home .price-meta { font-size: 1.6vh; color: var(--chalk2); margin-top: .3rem; }

.page-home .price-details { font-size: 1.6vh; color: var(--chalk2); max-width: 42ch; line-height: 1.7; }

.page-home .science { background: var(--bg2); }

.page-home .science-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
    }

.page-home .research-area {
      padding: 1.5rem;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: .6rem;
      margin-bottom: 1rem;
    }

.page-home .research-area h4 {
      font-family: 'DM Mono', monospace;
      font-size: 1.42vh; letter-spacing: .1em; text-transform: uppercase;
      color: var(--gold); margin-bottom: .5rem;
    }

.page-home .research-area p { font-size: 1.6vh; color: var(--chalk2); }

.page-home .pub-card {
      padding: 1.5rem;
      border: 1px solid var(--border);
      border-radius: .6rem;
      background: var(--bg3);
      margin-bottom: 1rem;
    }

.page-home .pub-card h4 {
      font-family: 'Libre Baskerville', serif;
      font-style: italic;
      font-size: 1.69vh; color: var(--chalk); margin-bottom: .4rem;
    }

.page-home .pub-card .pub-meta {
      font-family: 'DM Mono', monospace; font-size: 1.33vh; color: var(--teal);
      margin-bottom: .5rem;
    }

.page-home .pub-card p { font-size: 1.51vh; color: var(--chalk2); }

.page-home .youtube { background: var(--bg); }

.page-home .yt-inner {
      display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    }

.page-home .yt-embed {
      aspect-ratio: 16/9; background: #000;
      border-radius: .75rem; overflow: hidden;
      border: 1px solid var(--border);
      box-shadow: 0 20px 60px rgba(0,0,0,.5);
    }

.page-home .yt-embed iframe { width: 100%; height: 100%; border: none; }

.page-home .yt-text h2 { margin-bottom: 1rem; }

.page-home .yt-text p { color: var(--chalk2); margin-bottom: 1.5rem; font-size: 1.87vh; }

.page-home .yt-btn {
      display: inline-flex; align-items: center; gap: .6rem;
      background: #ff0000; color: #fff;
      padding: .8rem 1.8rem; border-radius: .4rem;
      text-decoration: none; font-weight: 600; font-size: 1.69vh;
      transition: all .2s;
    }

.page-home .yt-btn:hover { background: #cc0000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,0,0,.35); }

.page-home .yt-btn svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

.page-home .review-section { background: var(--bg2); }

.page-home .review-card {
      max-width: 600px; margin: 0 auto;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 1rem; padding: 2.5rem;
      text-align: center;
    }

.page-home .stars { color: var(--gold); font-size: 2.67vh; margin-bottom: 1rem; letter-spacing: .1em; }

.page-home .review-text {
      font-family: 'Libre Baskerville', serif;
      font-style: italic; font-size: 2.04vh; color: var(--chalk);
      margin-bottom: 1.5rem; line-height: 1.7;
    }

.page-home .reviewer { font-size: 1.51vh; color: var(--chalk2); }

.page-home .reviewer strong { color: var(--chalk); }

.page-home .contact { background: var(--bg); position: relative; overflow: hidden; }

.page-home .contact .section-label, .page-home .contact .section-title, .page-home .contact .section-intro, .page-home .contact .contact-grid {
      position: relative; z-index: 1;
    }

.page-home .contact-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
    }

.page-home .contact-items { display: flex; flex-direction: column; gap: 1.2rem; }

.page-home .contact-item {
      display: flex; align-items: center; gap: 1.2rem;
      padding: 1.2rem 1.5rem;
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: .6rem;
      text-decoration: none;
      transition: border-color .2s, transform .2s;
    }

.page-home .contact-item:hover {
      border-color: rgba(var(--gold-rgb),.4); transform: translateX(4px);
    }

.page-home .contact-icon {
      width: 2.8rem; height: 2.8rem; border-radius: .5rem;
      background: var(--glow); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      font-size: 2.13vh; flex-shrink: 0;
    }

.page-home .contact-info { flex: 1; }

.page-home .contact-label {
      font-family: 'DM Mono', monospace; font-size: 1.24vh;
      letter-spacing: .12em; text-transform: uppercase; color: var(--chalk2);
    }

.page-home .contact-value { color: var(--chalk); font-weight: 500; font-size: 1.69vh; }

.page-home .location-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: .75rem; overflow: hidden;
    }

.page-home .location-map {
      height: 200px;
      background: #151a24;
      display: flex; align-items: center; justify-content: center;
      position: relative;
      overflow: hidden;
    }

.page-home .location-map::before {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(var(--teal-rgb),.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--teal-rgb),.07) 1px, transparent 1px);
      background-size: 30px 30px;
    }

.page-home .location-map::after {
      content: '📍';
      font-size: 4.44vh; position: relative; z-index: 1;
      filter: drop-shadow(0 4px 12px rgba(var(--teal-rgb),.5));
    }

.page-home .location-info { padding: 1.5rem; }

.page-home .location-info h4 { color: var(--chalk); font-size: 1.78vh; margin-bottom: .5rem; }

.page-home .location-info p { font-size: 1.6vh; color: var(--chalk2); line-height: 1.6; }

.page-home .location-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }

.page-home .fade-in {
      opacity: 0; transform: translateY(24px);
      animation: fadeIn .7s ease forwards;
    }

@keyframes fadeIn {
      to { opacity: 1; transform: translateY(0); }
    }

.page-home .fade-in:nth-child(1) { animation-delay: .1s; }

.page-home .fade-in:nth-child(2) { animation-delay: .25s; }

.page-home .fade-in:nth-child(3) { animation-delay: .4s; }

.page-home .fade-in:nth-child(4) { animation-delay: .55s; }

@media (max-width: 1024px) {
.page-home .hero { grid-template-columns: 1fr; padding: 7rem 2rem 3rem; }
.page-home .hero-visual { display: none; }
.page-home .stats-bar { padding: 1.5rem 2rem; }
.page-home .about-grid, .page-home .science-grid, .page-home .contact-grid, .page-home .yt-inner { grid-template-columns: 1fr; gap: 2.5rem; }
.page-home .offer-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   O MNIE (o-mnie.html)
   =================================================================== */
.page-omnie .bio-hero {
      display: grid; grid-template-columns: 1.15fr .85fr; gap: 4.5rem;
      align-items: center;
      padding: 3rem 6rem 5rem;
      position: relative; overflow: hidden;
    }

.page-omnie .bio-hero-formulas {
      position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
    }

.page-omnie .bio-hero-formulas span {
      position: absolute;
      font-family: 'Libre Baskerville', serif; font-style: italic;
      color: rgba(var(--gold-rgb),.07);
      font-size: 4vh;
      opacity: 0; animation: settleIn 1.4s ease forwards;
    }

.page-omnie .bio-hero-formulas span:nth-child(1) { left: 4%;  top: 12%; animation-delay: .1s; }

.page-omnie .bio-hero-formulas span:nth-child(2) { left: 85%; top: 8%;  font-size: 3vh; animation-delay: .3s; }

.page-omnie .bio-hero-formulas span:nth-child(3) { left: 78%; top: 75%; font-size: 3.4vh; animation-delay: .5s; }



.page-omnie .hero-eyebrow {
      font-family: 'DM Mono', monospace;
      font-size: 1.42vh; letter-spacing: .18em; text-transform: uppercase;
      color: var(--gold); margin-bottom: 1.4rem;
      display: flex; align-items: center; gap: .75rem; position: relative; z-index: 1;
    }

.page-omnie .hero-eyebrow::before { content: ''; display: block; width: 2.5rem; height: 1px; background: var(--gold); }

.page-omnie h1.bio-title {
      font-size: clamp(4.27vh, 5.69vh, 6.75vh);
      font-weight: 700; color: var(--chalk); line-height: 1.15;
      margin-bottom: 1.3rem; position: relative; z-index: 1;
    }

.page-omnie h1.bio-title em { font-style: italic; color: var(--gold); }

.page-omnie .bio-sub {
      font-size: 2vh; color: var(--chalk2); max-width: 52ch;
      margin-bottom: 2.2rem; position: relative; z-index: 1;
    }

.page-omnie .badge.soon { border-color: rgba(183,176,160,.3); color: var(--chalk2); font-style: italic; }

.page-omnie .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-omnie .photo-frame {
      position: relative; z-index: 1;
      aspect-ratio: 1/1; border-radius: .75rem;
      border: 1px solid rgba(var(--gold-rgb),.3);
      background: var(--bg2);
      overflow: hidden;
      box-shadow: 0 30px 70px rgba(0,0,0,.35);
    }

.page-omnie .photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.page-omnie .journey-wrap { display: grid; grid-template-columns: .95fr 1.4fr; gap: 4.5rem; align-items: start; }

.page-omnie .journey-text p { color: var(--chalk2); margin-bottom: 1.2rem; font-size: 1.78vh; }

.page-omnie .journey-text p strong { color: var(--chalk); font-weight: 600; }

.page-omnie .quote-block {
      border-left: 3px solid var(--gold); padding: 1rem 1.5rem; margin: 1.6rem 0 0;
      background: var(--glow); border-radius: 0 .4rem .4rem 0;
    }

.page-omnie .quote-block p {
      font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.87vh;
      color: var(--chalk) !important; margin: 0 !important;
    }

.page-omnie .timeline { display: flex; flex-direction: column; }

.page-omnie .tl-item { display: grid; grid-template-columns: 5.5rem 1.5rem 1fr; gap: 0 1.2rem; align-items: start; padding-bottom: 2.1rem; }

.page-omnie .tl-item:last-child { padding-bottom: 0; }

.page-omnie .tl-dot-col { display: flex; flex-direction: column; align-items: center; }

.page-omnie .tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); flex-shrink: 0; box-shadow: 0 0 10px rgba(var(--gold-rgb),.45); margin-top: .3rem; }

.page-omnie .tl-line { width: 1px; flex: 1; background: var(--border); min-height: 1.6rem; }

.page-omnie .tl-year { font-family: 'DM Mono', monospace; font-size: 1.42vh; color: var(--gold); padding-top: .15rem; }

.page-omnie .tl-title { font-weight: 600; color: var(--chalk); font-size: 1.69vh; }

.page-omnie .tl-sub { font-size: 1.51vh; color: var(--chalk2); margin-top: .25rem; line-height: 1.65; }

.page-omnie .tl-item.muted .tl-title { color: var(--chalk2); font-weight: 500; }

.page-omnie .tl-item.muted .tl-dot { background: var(--chalk2); box-shadow: none; opacity: .6; }

.page-omnie .phil-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.page-omnie .phil-card {
      background: var(--bg3); border: 1px solid var(--border); border-radius: .75rem;
      padding: 2.1rem; position: relative; overflow: hidden;
    }

.page-omnie .phil-card::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      opacity: 0; transition: opacity .25s;
    }

.page-omnie .phil-card:hover::before { opacity: 1; }

.page-omnie .phil-card .num { font-family: 'DM Mono', monospace; font-size: 1.24vh; color: var(--teal); letter-spacing: .1em; margin-bottom: .8rem; display: block; }

.page-omnie .phil-card h3 { font-size: 2.1vh; color: var(--chalk); margin-bottom: .8rem; }

.page-omnie .phil-card p { font-size: 1.6vh; color: var(--chalk2); line-height: 1.7; }

.page-omnie .phil-card p + p { margin-top: .8rem; }

.page-omnie .phil-card .steps { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }

.page-omnie .step-chip {
      font-family: 'DM Mono', monospace; font-size: 1.15vh; letter-spacing: .05em;
      color: var(--chalk2); padding: .3rem .65rem; border: 1px solid var(--border); border-radius: .3rem;
    }

.page-omnie .phil-card.quote-card { background: var(--glow); border-color: rgba(var(--gold-rgb),.28); }

.page-omnie .phil-card.quote-card p.quote-text {
      font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 1.78vh; color: var(--chalk);
    }

.page-omnie .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

.page-omnie .gallery-tile {
      aspect-ratio: 4/3; border-radius: .6rem;
      border: 1px dashed rgba(var(--gold-rgb),.22);
      background: repeating-linear-gradient(135deg, rgba(var(--gold-rgb),.03) 0 2px, transparent 2px 14px), var(--bg3);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: .6rem; text-align: center; padding: 1rem;
      transition: border-color .2s, transform .2s;
    }

.page-omnie .gallery-tile:hover { border-color: rgba(var(--gold-rgb),.45); transform: translateY(-3px); }

.page-omnie .gallery-tile .icon { font-size: 2.8vh; opacity: .55; }

.page-omnie .gallery-tile .label { font-family: 'DM Mono', monospace; font-size: 1.24vh; color: var(--chalk2); letter-spacing: .04em; }

.page-omnie .gallery-note { margin-top: 1.3rem; font-size: 1.42vh; color: var(--chalk2); font-style: italic; }

.page-omnie .media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.page-omnie .media-card {
      background: var(--bg3); border: 1px solid var(--border); border-radius: .75rem;
      padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
    }

.page-omnie .media-card .icon { font-size: 2.6vh; }

.page-omnie .media-card h3 { font-size: 1.96vh; color: var(--chalk); }

.page-omnie .media-card p { font-size: 1.51vh; color: var(--chalk2); line-height: 1.65; flex: 1; }

.page-omnie .media-card .yt-link {
      display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
      color: #ff5050; font-size: 1.51vh; font-weight: 600;
    }

.page-omnie .media-card .yt-link:hover { text-decoration: underline; }

.page-omnie .faq-list { max-width: 74ch; }

.page-omnie .faq-item {
      border-bottom: 1px solid var(--border);
      padding: 1.3rem 0;
    }

.page-omnie .faq-item summary {
      cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
      font-size: 1.87vh; color: var(--chalk); font-weight: 500;
    }

.page-omnie .faq-item summary::-webkit-details-marker { display: none; }

.page-omnie .faq-item summary::after {
      content: '+'; font-family: 'DM Mono', monospace; font-size: 2.2vh; color: var(--gold);
      transition: transform .2s; margin-left: 1rem; flex-shrink: 0;
    }

.page-omnie .faq-item[open] summary::after { transform: rotate(45deg); }

.page-omnie .faq-item p { font-size: 1.6vh; color: var(--chalk2); margin-top: .9rem; line-height: 1.75; max-width: 64ch; }

@media (max-width: 1024px) {
.page-omnie .bio-hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 3rem; }
.page-omnie .photo-frame { max-width: 320px; margin: 0 auto; }
.page-omnie .journey-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
.page-omnie .phil-grid, .page-omnie .gallery-grid, .page-omnie .media-grid { grid-template-columns: 1fr; }
.page-omnie .contact-strip, .page-omnie footer { padding: 2rem 1.5rem; }
}

/* ===================================================================
   KOREPETYCJE (korepetycje.html)
   =================================================================== */
.page-korepetycje .hero { padding: 3rem 6rem 4.5rem; position: relative; overflow: hidden; max-width: 82ch; }

.page-korepetycje .hero-formulas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }

.page-korepetycje .hero-formulas span { position: absolute; font-family: 'Libre Baskerville', serif; font-style: italic; color: rgba(var(--gold-rgb),.07); font-size: 4vh; opacity: 0; animation: settleIn 1.4s ease forwards; }

.page-korepetycje .hero-formulas span:nth-child(1) { left: 90%; top: 8%;  animation-delay: .1s; }

.page-korepetycje .hero-formulas span:nth-child(2) { left: 85%; top: 65%; font-size: 3vh; animation-delay: .3s; }



.page-korepetycje .hero-eyebrow { font-family: 'DM Mono', monospace; font-size: 1.42vh; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .75rem; position: relative; z-index: 1; }

.page-korepetycje .hero-eyebrow::before { content: ''; display: block; width: 2.5rem; height: 1px; background: var(--gold); }

.page-korepetycje h1.hero-title { font-size: clamp(4.3vh, 5.8vh, 6.9vh); font-weight: 700; color: var(--chalk); margin-bottom: 1.3rem; position: relative; z-index: 1; }

.page-korepetycje h1.hero-title em { font-style: italic; color: var(--gold); }

.page-korepetycje .hero-sub { font-size: 2.05vh; color: var(--chalk2); max-width: 55ch; margin-bottom: 2.2rem; position: relative; z-index: 1; }

.page-korepetycje .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-korepetycje .audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.page-korepetycje .audience-card { background: var(--bg3); border: 1px solid var(--border); border-radius: .75rem; padding: 1.8rem; text-align: center; text-decoration: none; display: block; transition: transform .2s, border-color .2s; }
.page-korepetycje a.audience-card:hover { transform: translateY(-3px); border-color: rgba(var(--gold-rgb),.4); }

.page-korepetycje .audience-card .icon { font-size: 3vh; margin-bottom: 1rem; display: block; }

.page-korepetycje .audience-card h3 { font-size: 1.8vh; color: var(--chalk); margin-bottom: .5rem; }

.page-korepetycje .audience-card p { font-size: 1.42vh; color: var(--chalk2); line-height: 1.6; }

.page-korepetycje .subject-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.page-korepetycje .subject-chip { font-family: 'DM Mono', monospace; font-size: 1.6vh; color: var(--chalk); padding: .7rem 1.3rem; border: 1px solid var(--border); border-radius: .4rem; background: var(--glow); }

.page-korepetycje .flow-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }

.page-korepetycje .flow-row::before { content: ''; position: absolute; top: 1.6rem; left: 6%; right: 6%; height: 1px; background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px); z-index: 0; }

.page-korepetycje .flow-step { position: relative; z-index: 1; text-align: center; padding: 0 .8rem; }

.page-korepetycje .flow-num { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Libre Baskerville', serif; font-size: 2vh; color: var(--gold); margin: 0 auto 1.1rem; }

.page-korepetycje .flow-step:last-child .flow-num { border-color: var(--teal); color: var(--teal); }

.page-korepetycje .flow-step h3 { font-size: 1.7vh; color: var(--chalk); margin-bottom: .5rem; }

.page-korepetycje .flow-step p { font-size: 1.4vh; color: var(--chalk2); line-height: 1.6; }

.page-korepetycje .why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }

.page-korepetycje .why-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg3); border: 1px solid var(--border); border-radius: .75rem; padding: 1.6rem 1.8rem; }

.page-korepetycje .why-item .check { color: var(--teal); font-size: 2vh; flex-shrink: 0; }

.page-korepetycje .why-item h3 { font-size: 1.8vh; color: var(--chalk); margin-bottom: .4rem; }

.page-korepetycje .why-item p { font-size: 1.5vh; color: var(--chalk2); line-height: 1.65; }

.page-korepetycje .review-featured { max-width: 66ch; background: var(--bg3); border: 1px solid var(--border); border-radius: .9rem; padding: 2.6rem 3rem; position: relative; }

.page-korepetycje .review-featured .stars { color: var(--gold); font-size: 2.2vh; margin-bottom: 1rem; letter-spacing: .2rem; }

.page-korepetycje .review-featured .quote { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 2.15vh; color: var(--chalk); line-height: 1.6; margin-bottom: 1.3rem; }

.page-korepetycje .review-featured .reviewer { font-family: 'DM Mono', monospace; font-size: 1.4vh; color: var(--chalk2); }

.page-korepetycje .review-featured .reviewer strong { color: var(--gold); }

.page-korepetycje .price-card { max-width: 60ch; background: var(--bg3); border: 1px solid rgba(var(--gold-rgb),.3); border-radius: .9rem; padding: 2.8rem 3rem; text-align: center; }

.page-korepetycje .price-card .amount { font-family: 'Libre Baskerville', serif; font-size: 6vh; color: var(--gold); line-height: 1; }

.page-korepetycje .price-card .amount span { font-size: 2.2vh; color: var(--chalk2); font-family: 'Outfit', sans-serif; }

.page-korepetycje .price-card .note { font-size: 1.6vh; color: var(--chalk2); margin-top: 1rem; }

.page-korepetycje .price-tags { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.page-korepetycje .price-extra { max-width: 60ch; margin-top: 1.5rem; font-size: 1.5vh; color: var(--chalk2); text-align: center; }

.page-korepetycje .price-extra a { color: var(--teal); text-decoration: none; }

.page-korepetycje .price-extra a:hover { text-decoration: underline; }

.page-korepetycje .pricing-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; width: 100%; }

.page-korepetycje .pricing-row .price-card { justify-self: center; align-self: center; width: 100%; max-width: 60ch; margin: 0; }

.page-korepetycje .package-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 190px)); gap: 1rem; margin: 0; justify-self: center; align-self: center; }

.page-korepetycje .package-card { position: relative; background: var(--bg3); border: 1px solid var(--border); border-radius: .8rem; padding: 1.8rem 1.1rem 1.4rem; text-align: center; transition: border-color .2s ease, transform .2s ease; }

.page-korepetycje .package-card:hover { border-color: rgba(var(--gold-rgb),.4); transform: translateY(-3px); }

.page-korepetycje .package-was { position: absolute; top: .55rem; right: .7rem; font-size: 1.1vh; color: var(--chalk2); text-decoration: line-through; opacity: .75; }

.page-korepetycje .package-name { font-family: 'DM Mono', monospace; font-size: 1.9vh; letter-spacing: .04em; color: var(--teal); margin-bottom: .9rem; }

.page-korepetycje .package-lessons { font-size: 1.55vh; color: var(--chalk2); }

.page-korepetycje .package-bonus { display: inline-block; color: var(--gold); font-weight: 500; }

.page-korepetycje .package-price { font-family: 'Libre Baskerville', serif; font-size: 3.2vh; color: var(--chalk); margin: .7rem 0 .3rem; }

.page-korepetycje .package-save { font-size: 1.3vh; color: var(--gold); letter-spacing: .02em; }

.page-korepetycje .faq-list { max-width: 74ch; }

.page-korepetycje .faq-item { border-bottom: 1px solid var(--border); padding: 1.3rem 0; }

.page-korepetycje .faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-size: 1.87vh; color: var(--chalk); font-weight: 500; }

.page-korepetycje .faq-item summary::-webkit-details-marker { display: none; }

.page-korepetycje .faq-item summary::after { content: '+'; font-family: 'DM Mono', monospace; font-size: 2.2vh; color: var(--gold); transition: transform .2s; margin-left: 1rem; flex-shrink: 0; }

.page-korepetycje .faq-item[open] summary::after { transform: rotate(45deg); }

.page-korepetycje .faq-item p { font-size: 1.6vh; color: var(--chalk2); margin-top: .9rem; line-height: 1.75; max-width: 64ch; }

@media (max-width: 1024px) {
.page-korepetycje .hero { padding: 2.5rem 1.5rem 3rem; }
.page-korepetycje .audience-grid { grid-template-columns: 1fr 1fr; }
.page-korepetycje .flow-row { grid-template-columns: 1fr; gap: 2rem; }
.page-korepetycje .flow-row::before { display: none; }
.page-korepetycje .why-grid { grid-template-columns: 1fr; }
.page-korepetycje .pricing-row { flex-direction: column; gap: 1.8rem; }
.page-korepetycje .package-grid { grid-template-columns: 1fr; width: 100%; }
.page-korepetycje .review-featured, .page-korepetycje .price-card { padding: 2rem; }
.page-korepetycje .contact-strip, .page-korepetycje footer { padding: 2rem 1.5rem; }
}

/* ===================================================================
   MATURA (matura.html)
   =================================================================== */
.page-matura .hero {padding:3rem 6rem 4rem;max-width:78ch;position:relative;overflow:hidden;}

.page-matura .hero-formulas {position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0;}

.page-matura .hero-formulas span {position:absolute;font-family:'Libre Baskerville',serif;font-style:italic;color:rgba(var(--gold-rgb),.07);font-size:4vh;opacity:0;animation:settleIn 1.4s ease forwards;}

.page-matura .hero-formulas span:nth-child(1) {left:90%;top:8%;animation-delay:.1s;}

.page-matura .hero-formulas span:nth-child(2) {left:85%;top:65%;font-size:3vh;animation-delay:.3s;}



.page-matura .hero-eyebrow {font-family:'DM Mono',monospace;font-size:1.42vh;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:1.4rem;display:flex;align-items:center;gap:.75rem;position:relative;z-index:1;}

.page-matura .hero-eyebrow::before {content:'';display:block;width:2.5rem;height:1px;background:var(--gold);}

.page-matura h1.hero-title {font-size:clamp(4vh,5.4vh,6.4vh);font-weight:700;color:var(--chalk);margin-bottom:1.3rem;position:relative;z-index:1;}

.page-matura h1.hero-title em {font-style:italic;color:var(--gold);}

.page-matura .hero-sub {font-size:2.05vh;color:var(--chalk2);max-width:58ch;margin-bottom:2.2rem;position:relative;z-index:1;}

.page-matura .hero-cta {display:flex;gap:1rem;flex-wrap:wrap;}

.page-matura .compare-grid {display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;}

.page-matura .compare-card {background:var(--bg3);border:1px solid var(--border);border-radius:.9rem;padding:2.4rem;}

.page-matura .compare-card.hi {border-color:rgba(var(--gold-rgb),.35);}

.page-matura .compare-card .tag {font-family:'DM Mono',monospace;font-size:1.15vh;letter-spacing:.1em;text-transform:uppercase;color:var(--teal);margin-bottom:.6rem;}

.page-matura .compare-card h3 {font-size:2.4vh;color:var(--chalk);margin-bottom:1.4rem;}

.page-matura .compare-stat {display:flex;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid var(--border);font-size:1.55vh;}

.page-matura .compare-stat:last-child {border-bottom:none;}

.page-matura .compare-stat .k {color:var(--chalk2);}

.page-matura .compare-stat .v {color:var(--chalk);font-weight:600;font-family:'DM Mono',monospace;}

.page-matura .compare-stat .v.gold {color:var(--gold);}

.page-matura .compare-stat .v.teal {color:var(--teal);}

.page-matura .terms-box {max-width:80ch;background:var(--glow);border:1px solid rgba(var(--gold-rgb),.3);border-radius:.9rem;padding:2.2rem 2.6rem;}

.page-matura .terms-box .yr {font-family:'DM Mono',monospace;font-size:1.2vh;letter-spacing:.1em;color:var(--gold);text-transform:uppercase;margin-bottom:1.2rem;}

.page-matura .terms-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}

.page-matura .term-item .lbl {font-family:'DM Mono',monospace;font-size:1.2vh;color:var(--chalk2);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.4rem;}

.page-matura .term-item .dt {font-size:1.65vh;color:var(--chalk);font-weight:600;}

.page-matura .term-item .dt2 {font-size:1.3vh;color:var(--chalk2);margin-top:.2rem;}

.page-matura .topic-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem;}

.page-matura .topic-card {background:var(--bg3);border:1px solid var(--border);border-radius:.7rem;padding:1.6rem 1.8rem;}

.page-matura .topic-card h3 {font-size:1.7vh;color:var(--chalk);margin-bottom:.4rem;}

.page-matura .topic-card p {font-size:1.42vh;color:var(--chalk2);line-height:1.6;}

.page-matura .topic-note {margin-top:1.3rem;font-size:1.42vh;color:var(--chalk2);font-style:italic;max-width:70ch;}

.page-matura .two-col {display:grid;grid-template-columns:1fr 1fr;gap:3rem;}

.page-matura .tip-list {display:flex;flex-direction:column;gap:1.3rem;}

.page-matura .tip-item {display:flex;gap:1rem;align-items:flex-start;}

.page-matura .tip-item .n {font-family:'Libre Baskerville',serif;font-size:2.2vh;color:var(--gold);flex-shrink:0;width:2rem;}

.page-matura .tip-item.bad .n {color:#e8746a;}

.page-matura .tip-item h4 {font-size:1.7vh;color:var(--chalk);margin-bottom:.3rem;}

.page-matura .tip-item p {font-size:1.45vh;color:var(--chalk2);line-height:1.6;}

.page-matura .review-featured {max-width:66ch;background:var(--bg3);border:1px solid var(--border);border-radius:.9rem;padding:2.4rem 2.8rem;}

.page-matura .review-featured .stars {color:var(--gold);font-size:2.1vh;margin-bottom:.9rem;letter-spacing:.2rem;}

.page-matura .review-featured .quote {font-family:'Libre Baskerville',serif;font-style:italic;font-size:2vh;color:var(--chalk);line-height:1.6;margin-bottom:1.2rem;}

.page-matura .review-featured .reviewer {font-family:'DM Mono',monospace;font-size:1.35vh;color:var(--chalk2);}

.page-matura .review-featured .reviewer strong {color:var(--gold);}

@media (max-width:1024px) {
.page-matura .hero {padding:2.5rem 1.5rem 3rem;}
.page-matura .compare-grid, .page-matura .two-col, .page-matura .topic-grid {grid-template-columns:1fr;}
.page-matura .terms-grid {grid-template-columns:1fr 1fr;gap:1.2rem;}
.page-matura .terms-box {padding:1.8rem;}
.page-matura .contact-strip, .page-matura footer {padding:2rem 1.5rem;}
}

/* ===================================================================
   STUDIA (studia.html)
   =================================================================== */
.page-studia .hero {padding:3rem 6rem 4rem;max-width:78ch;position:relative;overflow:hidden;}

.page-studia .hero-formulas {position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0;}

.page-studia .hero-formulas span {position:absolute;font-family:'Libre Baskerville',serif;font-style:italic;color:rgba(var(--gold-rgb),.07);font-size:4vh;opacity:0;animation:settleIn 1.4s ease forwards;}

.page-studia .hero-formulas span:nth-child(1) {left:90%;top:8%;animation-delay:.1s;}

.page-studia .hero-formulas span:nth-child(2) {left:85%;top:65%;font-size:3vh;animation-delay:.3s;}



.page-studia .hero-eyebrow {font-family:'DM Mono',monospace;font-size:1.42vh;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:1.4rem;display:flex;align-items:center;gap:.75rem;position:relative;z-index:1;}

.page-studia .hero-eyebrow::before {content:'';display:block;width:2.5rem;height:1px;background:var(--gold);}

.page-studia h1.hero-title {font-size:clamp(4vh,5.4vh,6.4vh);font-weight:700;color:var(--chalk);margin-bottom:1.3rem;position:relative;z-index:1;}

.page-studia h1.hero-title em {font-style:italic;color:var(--gold);}

.page-studia .hero-sub {font-size:2.05vh;color:var(--chalk2);max-width:58ch;margin-bottom:2.2rem;position:relative;z-index:1;}

.page-studia .hero-cta {display:flex;gap:1rem;flex-wrap:wrap;}

.page-studia .shock-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem;}

.page-studia .shock-card {background:var(--bg3);border:1px solid var(--border);border-radius:.75rem;padding:1.8rem;}

.page-studia .shock-card h3 {font-size:1.8vh;color:var(--chalk);margin-bottom:.6rem;}

.page-studia .shock-card p {font-size:1.48vh;color:var(--chalk2);line-height:1.65;}

.page-studia .subject-row {display:flex;flex-wrap:wrap;gap:.8rem;}

.page-studia .subject-chip {font-family:'DM Mono',monospace;font-size:1.55vh;color:var(--chalk);padding:.7rem 1.2rem;border:1px solid var(--border);border-radius:.4rem;background:var(--glow);}

.page-studia .uni-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem;}

.page-studia .uni-card {background:var(--bg3);border:1px solid var(--border);border-radius:.8rem;padding:1.8rem;position:relative;}

.page-studia .uni-card.mine {border-color:rgba(var(--gold-rgb),.4);background:linear-gradient(160deg, rgba(var(--gold-rgb),.08), var(--bg3) 60%);}

.page-studia .uni-tag {font-family:'DM Mono',monospace;font-size:1.05vh;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin-bottom:.7rem;display:inline-block;}

.page-studia .uni-card.mine .uni-tag {color:var(--gold);}

.page-studia .uni-abbr {font-family:'Libre Baskerville',serif;font-size:2.4vh;color:var(--chalk);margin-bottom:.3rem;}

.page-studia .uni-full {font-size:1.3vh;color:var(--chalk2);margin-bottom:.9rem;line-height:1.5;}

.page-studia .uni-card p.desc {font-size:1.42vh;color:var(--chalk2);line-height:1.65;}

.page-studia .why-grid {display:grid;grid-template-columns:repeat(2,1fr);gap:1.3rem;}

.page-studia .why-item {display:flex;gap:1rem;align-items:flex-start;background:var(--bg3);border:1px solid var(--border);border-radius:.75rem;padding:1.6rem 1.8rem;}

.page-studia .why-item .check {color:var(--teal);font-size:2vh;flex-shrink:0;}

.page-studia .why-item h3 {font-size:1.8vh;color:var(--chalk);margin-bottom:.4rem;}

.page-studia .why-item p {font-size:1.5vh;color:var(--chalk2);line-height:1.65;}

.page-studia .review-featured {max-width:66ch;background:var(--bg3);border:1px solid var(--border);border-radius:.9rem;padding:2.4rem 2.8rem;}

.page-studia .review-featured .stars {color:var(--gold);font-size:2.1vh;margin-bottom:.9rem;letter-spacing:.2rem;}

.page-studia .review-featured .quote {font-family:'Libre Baskerville',serif;font-style:italic;font-size:2vh;color:var(--chalk);line-height:1.6;margin-bottom:1.2rem;}

.page-studia .review-featured .reviewer {font-family:'DM Mono',monospace;font-size:1.35vh;color:var(--chalk2);}

.page-studia .review-featured .reviewer strong {color:var(--gold);}

.page-studia .faq-list {max-width:74ch;}

.page-studia .faq-item {border-bottom:1px solid var(--border);padding:1.2rem 0;}

.page-studia .faq-item summary {cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;font-size:1.8vh;color:var(--chalk);font-weight:500;}

.page-studia .faq-item summary::-webkit-details-marker {display:none;}

.page-studia .faq-item summary::after {content:'+';font-family:'DM Mono',monospace;font-size:2.2vh;color:var(--gold);transition:transform .2s;margin-left:1rem;flex-shrink:0;}

.page-studia .faq-item[open] summary::after {transform:rotate(45deg);}

.page-studia .faq-item p {font-size:1.55vh;color:var(--chalk2);margin-top:.8rem;line-height:1.75;max-width:64ch;}

@media (max-width:1024px) {
.page-studia .hero {padding:2.5rem 1.5rem 3rem;}
.page-studia .shock-grid, .page-studia .uni-grid, .page-studia .why-grid {grid-template-columns:1fr;}
.page-studia .contact-strip, .page-studia footer {padding:2rem 1.5rem;}
}

/* ===================================================================
   OLIMPIADY (olimpiady.html)
   =================================================================== */
.page-olimpiady .hero {padding:3rem 6rem 4rem;max-width:78ch;position:relative;overflow:hidden;}

.page-olimpiady .hero-formulas {position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:0;}

.page-olimpiady .hero-formulas span {position:absolute;font-family:'Libre Baskerville',serif;font-style:italic;color:rgba(var(--gold-rgb),.07);font-size:4vh;opacity:0;animation:settleIn 1.4s ease forwards;}

.page-olimpiady .hero-formulas span:nth-child(1) {left:90%;top:8%;animation-delay:.1s;}

.page-olimpiady .hero-formulas span:nth-child(2) {left:85%;top:65%;font-size:3vh;animation-delay:.3s;}



.page-olimpiady .hero-eyebrow {font-family:'DM Mono',monospace;font-size:1.42vh;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:1.4rem;display:flex;align-items:center;gap:.75rem;position:relative;z-index:1;}

.page-olimpiady .hero-eyebrow::before {content:'';display:block;width:2.5rem;height:1px;background:var(--gold);}

.page-olimpiady h1.hero-title {font-size:clamp(4vh,5.4vh,6.4vh);font-weight:700;color:var(--chalk);margin-bottom:1.3rem;position:relative;z-index:1;}

.page-olimpiady h1.hero-title em {font-style:italic;color:var(--gold);}

.page-olimpiady .hero-sub {font-size:2.05vh;color:var(--chalk2);max-width:60ch;margin-bottom:2.2rem;position:relative;z-index:1;}

.page-olimpiady .hero-cta {display:flex;gap:1rem;flex-wrap:wrap;}

.page-olimpiady .why-grid {display:grid;grid-template-columns:repeat(2,1fr);gap:1.3rem;}

.page-olimpiady .why-item {display:flex;gap:1rem;align-items:flex-start;background:var(--bg3);border:1px solid var(--border);border-radius:.75rem;padding:1.6rem 1.8rem;}

.page-olimpiady .why-item .check {color:var(--teal);font-size:2vh;flex-shrink:0;}

.page-olimpiady .why-item h3 {font-size:1.8vh;color:var(--chalk);margin-bottom:.4rem;}

.page-olimpiady .why-item p {font-size:1.5vh;color:var(--chalk2);line-height:1.65;}

.page-olimpiady .funnel {display:flex;flex-direction:column;gap:0;max-width:64ch;margin:0 auto;}

.page-olimpiady .funnel-step {background:var(--bg3);border:1px solid var(--border);border-radius:.6rem;padding:1.6rem 2rem;margin-bottom:1rem;position:relative;}

.page-olimpiady .funnel-step:nth-child(1) {width:100%;}

.page-olimpiady .funnel-step:nth-child(2) {width:82%;margin-left:9%;border-color:rgba(var(--teal-rgb),.25);}

.page-olimpiady .funnel-step:nth-child(3) {width:64%;margin-left:18%;border-color:rgba(var(--gold-rgb),.4);background:linear-gradient(160deg, rgba(var(--gold-rgb),.08), var(--bg3) 60%);}

.page-olimpiady .funnel-step .tag {font-family:'DM Mono',monospace;font-size:1.1vh;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin-bottom:.4rem;}

.page-olimpiady .funnel-step:nth-child(3) .tag {color:var(--gold);}

.page-olimpiady .funnel-step h3 {font-size:1.9vh;color:var(--chalk);margin-bottom:.5rem;}

.page-olimpiady .funnel-step p {font-size:1.5vh;color:var(--chalk2);line-height:1.6;}

.page-olimpiady .terms-box {max-width:80ch;background:var(--glow);border:1px solid rgba(var(--gold-rgb),.3);border-radius:.9rem;padding:2.2rem 2.6rem;}

.page-olimpiady .terms-box .yr {font-family:'DM Mono',monospace;font-size:1.2vh;letter-spacing:.1em;color:var(--gold);text-transform:uppercase;margin-bottom:1.2rem;}

.page-olimpiady .terms-grid {display:grid;grid-template-columns:repeat(5,1fr);gap:1.2rem;}

.page-olimpiady .term-item .lbl {font-family:'DM Mono',monospace;font-size:1.1vh;color:var(--chalk2);text-transform:uppercase;letter-spacing:.04em;margin-bottom:.4rem;}

.page-olimpiady .term-item .dt {font-size:1.45vh;color:var(--chalk);font-weight:600;line-height:1.4;}

.page-olimpiady .level-grid {display:grid;grid-template-columns:1fr 1fr;gap:1.3rem;}

.page-olimpiady .level-card {background:var(--bg3);border:1px solid var(--border);border-radius:.75rem;padding:1.9rem;}

.page-olimpiady .level-card.mine {border-color:rgba(var(--gold-rgb),.35);}

.page-olimpiady .level-card .tag {font-family:'DM Mono',monospace;font-size:1.1vh;letter-spacing:.08em;text-transform:uppercase;color:var(--chalk2);margin-bottom:.5rem;}

.page-olimpiady .level-card.mine .tag {color:var(--gold);}

.page-olimpiady .level-card h3 {font-size:2vh;color:var(--chalk);margin-bottom:.5rem;}

.page-olimpiady .level-card p {font-size:1.5vh;color:var(--chalk2);line-height:1.65;}

.page-olimpiady .tip-list {display:flex;flex-direction:column;gap:1.3rem;max-width:70ch;}

.page-olimpiady .tip-item {display:flex;gap:1rem;align-items:flex-start;}

.page-olimpiady .tip-item .n {font-family:'Libre Baskerville',serif;font-size:2.2vh;color:var(--gold);flex-shrink:0;width:2rem;}

.page-olimpiady .tip-item h4 {font-size:1.7vh;color:var(--chalk);margin-bottom:.3rem;}

.page-olimpiady .tip-item p {font-size:1.45vh;color:var(--chalk2);line-height:1.6;}

.page-olimpiady .problem-list {display:flex;flex-direction:column;gap:1.2rem;max-width:78ch;}

.page-olimpiady .problem-card {background:var(--bg3);border:1px solid var(--border);border-radius:.7rem;padding:1.7rem 2rem;}

.page-olimpiady .problem-card .tag {font-family:'DM Mono',monospace;font-size:1.1vh;letter-spacing:.06em;text-transform:uppercase;color:var(--teal);margin-bottom:.6rem;}

.page-olimpiady .problem-card p {font-size:1.7vh;color:var(--chalk);line-height:1.6;font-family:'Libre Baskerville',serif;font-style:italic;}

.page-olimpiady .problem-note {margin-top:1.2rem;font-size:1.4vh;color:var(--chalk2);font-style:italic;max-width:70ch;}

@media (max-width:1024px) {
.page-olimpiady .hero {padding:2.5rem 1.5rem 3rem;}
.page-olimpiady .why-grid, .page-olimpiady .level-grid {grid-template-columns:1fr;}
.page-olimpiady .funnel-step, .page-olimpiady .funnel-step:nth-child(2), .page-olimpiady .funnel-step:nth-child(3) {width:100%;margin-left:0;}
.page-olimpiady .terms-grid {grid-template-columns:1fr 1fr;}
.page-olimpiady .terms-box {padding:1.8rem;}
.page-olimpiady .contact-strip, .page-olimpiady footer {padding:2rem 1.5rem;}
}

/* ===================================================================
   BADANIA (badania.html)
   =================================================================== */
.page-badania .res-hero { padding: 3rem 6rem 4.5rem; position: relative; overflow: hidden; max-width: 78ch; }

.page-badania .res-hero-formulas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }

.page-badania .res-hero-formulas span {
      position: absolute; font-family: 'Libre Baskerville', serif; font-style: italic;
      color: rgba(var(--teal-rgb),.07); font-size: 4vh; opacity: 0; animation: settleIn 1.4s ease forwards;
    }

.page-badania .res-hero-formulas span:nth-child(1) { left: 88%; top: 6%;  animation-delay: .1s; }

.page-badania .res-hero-formulas span:nth-child(2) { left: 92%; top: 55%; font-size: 3vh; animation-delay: .3s; }



.page-badania .hero-eyebrow {
      font-family: 'DM Mono', monospace; font-size: 1.42vh; letter-spacing: .18em; text-transform: uppercase;
      color: var(--teal); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .75rem; position: relative; z-index: 1;
    }

.page-badania .hero-eyebrow::before { content: ''; display: block; width: 2.5rem; height: 1px; background: var(--teal); }

.page-badania h1.res-title { font-size: clamp(4vh, 5.3vh, 6.2vh); font-weight: 700; color: var(--chalk); margin-bottom: 1.3rem; position: relative; z-index: 1; }

.page-badania h1.res-title em { font-style: italic; color: var(--gold); }

.page-badania .res-sub { font-size: 2vh; color: var(--chalk2); margin-bottom: 2rem; position: relative; z-index: 1; }

.page-badania .bio-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.page-badania .bio-cols p { color: var(--chalk2); font-size: 1.78vh; margin-bottom: 1.1rem; }

.page-badania .bio-cols p strong { color: var(--chalk); font-weight: 600; }

.page-badania .stat-row { display: flex; gap: 2.5rem; margin-top: 1rem; flex-wrap: wrap; }

.page-badania .stat { }

.page-badania .stat .num { font-family: 'Libre Baskerville', serif; font-size: 4.2vh; color: var(--gold); line-height: 1; }

.page-badania .stat .lbl { font-family: 'DM Mono', monospace; font-size: 1.2vh; color: var(--chalk2); letter-spacing: .06em; text-transform: uppercase; margin-top: .4rem; }

.page-badania .pub-list { display: flex; flex-direction: column; max-width: 84ch; }

.page-badania .pub-item { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0 2rem; padding: 2.1rem 0; border-bottom: 1px solid var(--border); }

.page-badania .pub-item:first-child { padding-top: 0; }

.page-badania .pub-item:last-child { border-bottom: none; }

.page-badania .pub-year { font-family: 'DM Mono', monospace; color: var(--gold); font-size: 1.87vh; padding-top: .2rem; }

.page-badania .pub-year .sub { display: block; font-size: 1.1vh; color: var(--chalk2); margin-top: .3rem; letter-spacing: .04em; }

.page-badania .pub-head { display: flex; align-items: flex-start; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }

.page-badania .pub-title { font-family: 'Libre Baskerville', serif; font-size: 2.05vh; color: var(--chalk); line-height: 1.4; }

.page-badania .pub-new { font-family: 'DM Mono', monospace; font-size: 1.05vh; letter-spacing: .08em; color: #14161d; background: var(--teal); padding: .15rem .5rem; border-radius: .25rem; white-space: nowrap; margin-top: .25rem; }

.page-badania .pub-meta { font-family: 'DM Mono', monospace; font-size: 1.24vh; color: var(--teal); letter-spacing: .04em; margin-bottom: .9rem; }

.page-badania .pub-meta .sep { color: var(--chalk2); margin: 0 .4rem; }

.page-badania .pub-desc { font-size: 1.6vh; color: var(--chalk2); line-height: 1.75; max-width: 70ch; margin-bottom: 1rem; }

.page-badania .pub-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

.page-badania .pub-cite { font-family: 'DM Mono', monospace; font-size: 1.2vh; color: var(--chalk2); font-style: italic; }

.page-badania .collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.page-badania .collab-card { background: var(--bg3); border: 1px solid var(--border); border-radius: .75rem; padding: 2rem; }

.page-badania .collab-card .role { font-family: 'DM Mono', monospace; font-size: 1.15vh; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem; }

.page-badania .collab-card h3 { font-size: 2vh; color: var(--chalk); margin-bottom: .6rem; }

.page-badania .collab-card p { font-size: 1.51vh; color: var(--chalk2); line-height: 1.7; }

.page-badania .tag-row { display: flex; flex-wrap: wrap; gap: .7rem; }

.page-badania .tag-chip { font-family: 'DM Mono', monospace; font-size: 1.42vh; color: var(--chalk); padding: .55rem 1.1rem; border: 1px solid var(--border); border-radius: .4rem; background: var(--glow); }

.page-badania .profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.page-badania .profile-card {
      display: flex; align-items: center; gap: 1rem;
      background: var(--bg3); border: 1px solid var(--border); border-radius: .75rem;
      padding: 1.6rem 1.8rem; text-decoration: none; transition: border-color .2s, transform .2s;
    }

.page-badania .profile-card:hover { border-color: rgba(var(--gold-rgb),.4); transform: translateY(-2px); }

.page-badania .profile-card .icon { font-size: 2.4vh; }

.page-badania .profile-card .name { color: var(--chalk); font-weight: 600; font-size: 1.7vh; }

.page-badania .profile-card .sub { color: var(--chalk2); font-size: 1.33vh; font-family: 'DM Mono', monospace; margin-top: .2rem; }

@media (max-width: 1024px) {
.page-badania .res-hero { padding: 2.5rem 1.5rem 3rem; }
.page-badania .bio-cols, .page-badania .collab-grid, .page-badania .profile-grid { grid-template-columns: 1fr; }
.page-badania .pub-item { grid-template-columns: 1fr; gap: .5rem; }
.page-badania .contact-strip, .page-badania footer { padding: 2rem 1.5rem; }
}

/* ===================================================================
   YOUTUBE (youtube.html)
   =================================================================== */
.page-youtube .yt-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; padding: 3rem 6rem 4.5rem; position: relative; overflow: hidden; }

.page-youtube .yt-hero-formulas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }

.page-youtube .yt-hero-formulas span { position: absolute; font-family: 'Libre Baskerville', serif; font-style: italic; color: rgba(255,80,80,.06); font-size: 4vh; opacity: 0; animation: settleIn 1.4s ease forwards; }

.page-youtube .yt-hero-formulas span:nth-child(1) { left: 5%; top: 10%; animation-delay: .1s; }

.page-youtube .yt-hero-formulas span:nth-child(2) { left: 82%; top: 70%; font-size: 3vh; animation-delay: .3s; }



.page-youtube .hero-eyebrow { font-family: 'DM Mono', monospace; font-size: 1.42vh; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .75rem; position: relative; z-index: 1; }

.page-youtube .hero-eyebrow::before { content: ''; display: block; width: 2.5rem; height: 1px; background: var(--red); }

.page-youtube h1.yt-title { font-size: clamp(4.2vh, 5.6vh, 6.6vh); font-weight: 700; color: var(--chalk); line-height: 1.1; margin-bottom: 1.3rem; position: relative; z-index: 1; }

.page-youtube h1.yt-title em { font-style: italic; color: var(--gold); }

.page-youtube .yt-sub { font-size: 2vh; color: var(--chalk2); max-width: 50ch; margin-bottom: 2.2rem; position: relative; z-index: 1; }

.page-youtube .badge.red { border-color: rgba(255,80,80,.35); color: var(--red); background: rgba(255,80,80,.07); }

.page-youtube .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.page-youtube .btn svg { width: 1.5vh; height: 1.5vh; fill: currentColor; }

.page-youtube .yt-hero-card {
      position: relative; z-index: 1; aspect-ratio: 1/1; border-radius: .75rem;
      border: 1px solid var(--border); background: var(--bg2);
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem;
      padding: 2.5rem; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.35);
    }

.page-youtube .yt-hero-card .play-circle { width: 8vh; height: 8vh; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; }

.page-youtube .yt-hero-card .play-circle svg { width: 3vh; height: 3vh; fill: #fff; margin-left: .3vh; }

.page-youtube .yt-hero-card .ch-name { font-family: 'Libre Baskerville', serif; font-size: 2.3vh; color: var(--chalk); }

.page-youtube .yt-hero-card .ch-handle { font-family: 'DM Mono', monospace; font-size: 1.4vh; color: var(--chalk2); }

.page-youtube .about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.page-youtube .about-cols p { color: var(--chalk2); font-size: 1.78vh; margin-bottom: 1.1rem; }

.page-youtube .about-cols p strong { color: var(--chalk); font-weight: 600; }

.page-youtube .topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.page-youtube .topic-card { background: var(--bg3); border: 1px solid var(--border); border-radius: .75rem; padding: 1.8rem; }

.page-youtube .topic-card .icon { font-size: 2.4vh; margin-bottom: .9rem; display: block; }

.page-youtube .topic-card h3 { font-size: 1.9vh; color: var(--chalk); margin-bottom: .6rem; }

.page-youtube .topic-card p { font-size: 1.5vh; color: var(--chalk2); line-height: 1.65; }

.page-youtube .watch-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }

.page-youtube .yt-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: .75rem; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 30px 70px rgba(0,0,0,.35); }

.page-youtube .yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.page-youtube .watch-text p { color: var(--chalk2); font-size: 1.78vh; margin-bottom: 1.3rem; }

.page-youtube .steps-row { display: flex; flex-direction: column; gap: 0; max-width: 70ch; }

.page-youtube .step-item { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--border); }

.page-youtube .step-item:last-child { border-bottom: none; }

.page-youtube .step-num { font-family: 'Libre Baskerville', serif; font-size: 3vh; color: var(--gold); line-height: 1; }

.page-youtube .step-item h3 { font-size: 1.9vh; color: var(--chalk); margin-bottom: .4rem; }

.page-youtube .step-item p { font-size: 1.6vh; color: var(--chalk2); line-height: 1.7; }

@media (max-width: 1024px) {
.page-youtube .yt-hero { grid-template-columns: 1fr; padding: 2.5rem 1.5rem 3rem; }
.page-youtube .yt-hero-card { max-width: 280px; margin: 0 auto; }
.page-youtube .about-cols, .page-youtube .watch-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
.page-youtube .topic-grid { grid-template-columns: 1fr 1fr; }
.page-youtube .contact-strip, .page-youtube footer { padding: 2rem 1.5rem; }
}

/* ===================================================================
   KONTAKT (kontakt.html)
   =================================================================== */
.page-kontakt .hero {padding:3rem 6rem 3.5rem;max-width:70ch;}

.page-kontakt .hero-eyebrow {font-family:'DM Mono',monospace;font-size:1.42vh;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:1.4rem;display:flex;align-items:center;gap:.75rem;}

.page-kontakt .hero-eyebrow::before {content:'';display:block;width:2.5rem;height:1px;background:var(--gold);}

.page-kontakt h1.hero-title {font-size:clamp(4.3vh,5.8vh,6.9vh);font-weight:700;color:var(--chalk);margin-bottom:1.3rem;}

.page-kontakt h1.hero-title em {font-style:italic;color:var(--gold);}

.page-kontakt .hero-sub {font-size:2.05vh;color:var(--chalk2);max-width:52ch;}

.page-kontakt .contact-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:1.3rem;}

.page-kontakt .contact-card {background:var(--bg3);border:1px solid var(--border);border-radius:.75rem;padding:2rem;text-decoration:none;display:flex;flex-direction:column;gap:.5rem;transition:border-color .2s,transform .2s;}

.page-kontakt .contact-card:hover {border-color:rgba(var(--gold-rgb),.4);transform:translateY(-2px);}

.page-kontakt .contact-card .icon {font-size:2.6vh;margin-bottom:.4rem;}

.page-kontakt .contact-card h3 {font-size:1.9vh;color:var(--chalk);}

.page-kontakt .contact-card .val {font-family:'DM Mono',monospace;font-size:1.55vh;color:var(--gold);}

.page-kontakt .contact-card p {font-size:1.4vh;color:var(--chalk2);line-height:1.6;}

.page-kontakt .split-wrap {display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start;}

.page-kontakt .form-box {display:flex;flex-direction:column;gap:1.1rem;}

.page-kontakt .field label {display:block;font-family:'DM Mono',monospace;font-size:1.2vh;letter-spacing:.06em;text-transform:uppercase;color:var(--chalk2);margin-bottom:.5rem;}

.page-kontakt .field input, .page-kontakt .field textarea {width:100%;background:var(--bg3);border:1px solid var(--border);border-radius:.4rem;padding:.85rem 1rem;color:var(--chalk);font-family:'Outfit',sans-serif;font-size:1.6vh;font-weight:300;}

.page-kontakt .field input:focus, .page-kontakt .field textarea:focus {outline:none;border-color:var(--gold);}

.page-kontakt .field textarea {resize:vertical;min-height:110px;}

.page-kontakt .form-note {font-size:1.3vh;color:var(--chalk2);font-style:italic;}

.page-kontakt .map-box {border-radius:.75rem;overflow:hidden;border:1px solid var(--border);box-shadow:0 30px 70px rgba(0,0,0,.3);}

.page-kontakt .map-box iframe {width:100%;height:280px;border:none;display:block;filter:grayscale(.3) contrast(1.05);}

.page-kontakt .loc-list {margin-top:1.2rem;display:flex;flex-direction:column;gap:.9rem;}

.page-kontakt .loc-item {display:flex;gap:.8rem;align-items:flex-start;font-size:1.55vh;color:var(--chalk2);}

.page-kontakt .loc-item strong {color:var(--chalk);font-weight:600;}

.page-kontakt .faq-list {max-width:74ch;}

.page-kontakt .faq-item {border-bottom:1px solid var(--border);padding:1.2rem 0;}

.page-kontakt .faq-item summary {cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;font-size:1.8vh;color:var(--chalk);font-weight:500;}

.page-kontakt .faq-item summary::-webkit-details-marker {display:none;}

.page-kontakt .faq-item summary::after {content:'+';font-family:'DM Mono',monospace;font-size:2.2vh;color:var(--gold);transition:transform .2s;margin-left:1rem;flex-shrink:0;}

.page-kontakt .faq-item[open] summary::after {transform:rotate(45deg);}

.page-kontakt .faq-item p {font-size:1.55vh;color:var(--chalk2);margin-top:.8rem;line-height:1.75;max-width:64ch;}

@media (max-width:1024px) {
.page-kontakt .hero {padding:2rem 1.5rem 2.5rem;}
.page-kontakt .contact-grid {grid-template-columns:1fr;}
.page-kontakt .split-wrap {grid-template-columns:1fr;gap:2.5rem;}
}

/* ===================================================================
   FAQ (faq.html)
   =================================================================== */
.page-faq .hero {padding:3rem 6rem 3.5rem;max-width:70ch;}

.page-faq .hero-eyebrow {font-family:'DM Mono',monospace;font-size:1.42vh;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:1.4rem;display:flex;align-items:center;gap:.75rem;}

.page-faq .hero-eyebrow::before {content:'';display:block;width:2.5rem;height:1px;background:var(--gold);}

.page-faq h1.hero-title {font-size:clamp(4.2vh,5.6vh,6.6vh);font-weight:700;color:var(--chalk);margin-bottom:1.3rem;}

.page-faq h1.hero-title em {font-style:italic;color:var(--gold);}

.page-faq .hero-sub {font-size:2.05vh;color:var(--chalk2);max-width:56ch;}

.page-faq .cat-grid {display:grid;grid-template-columns:repeat(4,1fr);gap:.9rem;padding:0 6rem 3rem;}

.page-faq .cat-chip {background:var(--bg3);border:1px solid var(--border);border-radius:.6rem;padding:1rem 1.3rem;text-decoration:none;display:flex;align-items:center;gap:.7rem;transition:border-color .2s,transform .2s;}

.page-faq .cat-chip:hover {border-color:rgba(var(--gold-rgb),.4);transform:translateY(-2px);}

.page-faq .cat-chip .n {font-family:'DM Mono',monospace;color:var(--gold);font-size:1.4vh;}

.page-faq .cat-chip .t {font-size:1.5vh;color:var(--chalk);}

.page-faq .section-label .count {color:var(--chalk2);text-transform:none;letter-spacing:0;font-size:1.24vh;}

.page-faq .faq-list {max-width:80ch;}

.page-faq .faq-item {border-bottom:1px solid var(--border);padding:1.15rem 0;}

.page-faq .faq-item summary {cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;font-size:1.75vh;color:var(--chalk);font-weight:500;}

.page-faq .faq-item summary::-webkit-details-marker {display:none;}

.page-faq .faq-item summary::after {content:'+';font-family:'DM Mono',monospace;font-size:2.1vh;color:var(--gold);transition:transform .2s;flex-shrink:0;}

.page-faq .faq-item[open] summary::after {transform:rotate(45deg);}

.page-faq .faq-item p {font-size:1.55vh;color:var(--chalk2);margin-top:.8rem;line-height:1.75;max-width:66ch;}

@media (max-width:1024px) {
.page-faq .hero {padding:2rem 1.5rem 2.5rem;}
.page-faq .cat-grid {grid-template-columns:1fr 1fr;padding:0 1.5rem 2.5rem;}
.page-faq .contact-strip, .page-faq footer {padding:2rem 1.5rem;}
}

/* ===================================================================
   KOMPLETNA RESPONSYWNOŚĆ MOBILNA (URZĄDZENIA MOBILNE I TABLETY)
   =================================================================== */
@media (max-width: 900px) {
  nav {
    padding: 0.9rem 1.25rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 35px rgba(0,0,0,0.6);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 1.8rem 2.5rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    overflow-y: auto;
  }
  .nav-right.nav-open {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }
  .nav-links a {
    font-size: 2.1vh;
    display: block;
    padding: .35rem 0;
  }
  .nav-links li.has-dropdown {
    width: 100%;
  }
  .nav-links li.has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 2px solid var(--border);
    margin-left: .5rem;
    padding-left: 1rem;
    margin-top: .5rem;
    display: none;
  }
  .nav-links li.has-dropdown.dropdown-open .dropdown {
    display: block;
  }
  .nav-links li.has-dropdown > a::after {
    float: right;
    transition: transform .2s ease;
  }
  .nav-links li.has-dropdown.dropdown-open > a::after {
    transform: rotate(180deg);
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    padding: .85rem 1.2rem;
  }

  /* SUBNAV MOBILNA */
  .subnav {
    padding: .65rem 1.25rem;
    top: var(--nav-h);
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .subnav::-webkit-scrollbar {
    display: none;
  }
  .subnav a {
    font-size: 1.45vh;
    padding: .35rem .8rem;
    flex-shrink: 0;
  }

  /* BREADCRUMB MOBILNA */
  .breadcrumb {
    padding: 6.5rem 1.25rem 0;
  }

  /* OGÓLNE UKŁADY SEKCJI */
  section {
    padding: 3.5rem 1.25rem;
  }
  .page-home .hero {
    grid-template-columns: 1fr;
    padding: 6.5rem 1.25rem 3rem;
    gap: 2.5rem;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(3.8vh, 5.2vh, 6vh);
  }
  .hero-sub {
    font-size: 1.9vh;
  }
  .chalkboard {
    padding: 1.8rem;
  }
  .chalk-line.big {
    font-size: 1.8vh;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* STATSTYKI */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
  }

  /* KARTY & SIATKI */
  .offer-grid, .science-grid, .contact-grid, .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pricing-callout {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  .pricing-callout .btn {
    width: 100%;
    justify-content: center;
  }

  /* FOOTER MOBILNY */
  footer {
    padding: 3rem 1.25rem 2rem;
  }
  .footer-main {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-links {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .hero-badges {
    gap: .4rem;
  }
  .badge {
    font-size: 1.3vh;
    padding: .3rem .75rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .theme-toggle {
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

/* ===================================================================
   KOMPONENTY I EFEKTY UI/UX PREMIUM
   =================================================================== */

/* Górny pasek postępu czytania */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.7);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* Pulsujący wskaźnik LED przy etykietach sekcji */
.led-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  margin-right: 8px;
  vertical-align: middle;
  animation: ledPulse 2s infinite ease-in-out;
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--teal); }
  50% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 2px var(--teal); }
}

/* Pojemniki/Medaliony dla ikon kart */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.12), rgba(var(--teal-rgb), 0.08));
  border: 1px solid var(--border);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 6px 16px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.offer-card:hover .icon-box,
.topic-card:hover .icon-box,
.contact-card:hover .icon-box {
  transform: scale(1.08) translateY(-2px);
  border-color: rgba(var(--gold-rgb), 0.4);
}

/* Podświetlenie Spotlight Hover oraz Glassmorphism dla kart */
.offer-card, .pub-card, .topic-card, .contact-card, .collab-card, .review-card, .cat-chip {
  position: relative;
  background: rgba(32, 36, 47, 0.65) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
:root[data-theme="light"] .offer-card,
:root[data-theme="light"] .pub-card,
:root[data-theme="light"] .topic-card,
:root[data-theme="light"] .contact-card,
:root[data-theme="light"] .collab-card,
:root[data-theme="light"] .review-card,
:root[data-theme="light"] .cat-chip {
  background: rgba(241, 234, 217, 0.75) !important;
}

.offer-card::before, .pub-card::before, .topic-card::before, .contact-card::before, .collab-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--gold-rgb), 0.12), transparent 80%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.offer-card:hover::before, .pub-card:hover::before, .topic-card:hover::before, .contact-card:hover::before, .collab-card:hover::before {
  opacity: 1;
}

/* Dolny pasek szybkiego kontaktu na urządzeniach mobilnych */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--nav-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: .75rem 1.25rem;
  z-index: 98;
  gap: .75rem;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.45);
}
.mobile-bottom-bar .btn {
  flex: 1;
  justify-content: center;
  font-size: 1.45vh;
  padding: .65rem .8rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
}

/* =====================================================================
   ANIMACJE TŁA SEKCJI — CSS
   Wspólne style dla canvasów i efekt halo w sekcji opinii.
   ===================================================================== */

/* ── Review Halo — wirujący conic-gradient za kartą opinii ────────── */
.review-section {
  position: relative;
  overflow: hidden;
}

.review-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(650px, 85vw);
  height: min(650px, 85vw);
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    rgba(var(--gold-rgb), 0.06),
    transparent 20%,
    rgba(var(--teal-rgb), 0.045),
    transparent 45%,
    rgba(var(--gold-rgb), 0.06),
    transparent 70%,
    rgba(var(--teal-rgb), 0.045),
    transparent 95%
  );
  border-radius: 50%;
  filter: blur(50px);
  animation: reviewHaloRotate 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes reviewHaloRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Treść sekcji opinii nad halo */
.review-section .section-label,
.review-section .review-card,
.review-section .review-featured {
  position: relative;
  z-index: 1;
}

/* ── Wariant jasny — cieplejsze kolory halo ──────────────────────── */
:root[data-theme="light"] .review-section::before {
  background: conic-gradient(
    from 0deg,
    rgba(var(--gold-rgb), 0.05),
    transparent 20%,
    rgba(var(--teal-rgb), 0.035),
    transparent 45%,
    rgba(var(--gold-rgb), 0.05),
    transparent 70%,
    rgba(var(--teal-rgb), 0.035),
    transparent 95%
  );
  filter: blur(55px);
}

/* ── Reduced Motion — wyłączenie wszystkich animacji tła ──────────── */
@media (prefers-reduced-motion: reduce) {
  .review-section::before {
    animation: none !important;
  }

  .aurora-canvas,
  .wave-canvas,
  .fourier-canvas,
  .waveform-canvas,
  .orbital-canvas,
  .conformal-canvas,
  .delaunay-canvas,
  .attractor-canvas,
  .tesseract-canvas {
    display: none !important;
  }
}

/* ── Mobile ≤ 768px — ukrycie canvasów orbit (CSS halo wystarczy) ── */
@media (max-width: 768px) {
  .orbital-canvas {
    display: none !important;
  }

  .review-section::before {
    width: min(400px, 90vw);
    height: min(400px, 90vw);
    filter: blur(35px);
  }
}

