/*
Theme Name:  Element Guru Child
Theme URI:   https://element.guru
Description: Child theme for GeneratePress — Element Guru project
Author:      Element Guru
Author URI:  https://element.guru
Template:    generatepress
Version:     1.0.0
Text Domain: element-guru-child
License:     GPL-2.0-or-later
*/


/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  --bg:        #000000;
  --bg2:       #0d0d10;
  --bg3:       #141418;
  --bg4:       #1c1c22;
  --bg5:       #242430;

  --mint:      #98FFD9;
  --mint2:     color-mix(in srgb, var(--mint) 72%, white 28%);
  --blue:      #B2C9DA;
  --blue2:     #C8DDE8;
  --banana:    #EEDCA7;
  --banana2:   #F5E8C0;
  --blueberry: #2D3E56;
  --vanilla:   #DFCFBA;
  --zephyr:    #D5CECB;
  --zephyr2:   #E5DEDC;

  --text:      #DFCFBA;
  --text2:     #7a7268;
  --text3:     #3a3630;

  --border:    rgba(255, 255, 255, 0.07);
  --border2:   rgba(255, 255, 255, 0.13);

  /* Akcent UI (zamiast niespecyfikowanego / czerwonego) */
  --accent:     #15b0a6;
  --accent-rgb: 21, 176, 166;

  /* Szablony archiwów — brakujące tokeny (fallback) */
  --text-muted:    var(--text2);
  --surface:       var(--bg2);
  --surface-hover: var(--bg3);

  /* Treść / opisy — Georgia; nagłówki h1–h4 też (var(--serif) w typografii) */
  --serif:     Georgia, 'Times New Roman', serif;
  --sans:      'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:      'DM Sans', ui-monospace, system-ui, sans-serif;

  /* Etykiety sekcji (np. „Wybierz intencję”) — ten sam rozmiar co podpis Holonic w logo */
  --eg-section-label-font-size: 11px;
  --eg-section-label-tracking: 0.14em;

  --r:         10px;
  --rl:        18px;

  /* Wspólny rozmiar tekstu przycisków EG (= .eg-btn-app) */
  --eg-btn-font-size: 13px;

  /* Desktop → mobile (nav, layout chrome) */
  --eg-bp-mobile: 1024px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--serif);
}

body {
  background-color: #000000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M 70 0 L 98 0 C 98 14, 112 14, 112 0 L 140 0' fill='none' stroke='rgba(255, 255, 255, 0.022)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 70 L 28 70 C 28 84, 42 84, 42 70 L 70 70 L 98 70 C 98 56, 112 56, 112 70 L 140 70' fill='none' stroke='rgba(255, 255, 255, 0.022)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 140 L 28 140 C 28 126, 42 126, 42 140 L 70 140' fill='none' stroke='rgba(255, 255, 255, 0.022)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 0 0 L 0 28 C 14 28, 14 42, 0 42 L 0 70' fill='none' stroke='rgba(255, 255, 255, 0.022)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 70 0 L 70 28 C 56 28, 56 42, 70 42 L 70 70 L 70 98 C 84 98, 84 112, 70 112 L 70 140' fill='none' stroke='rgba(255, 255, 255, 0.022)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M 140 70 L 140 98 C 126 98, 126 112, 140 112 L 140 140' fill='none' stroke='rgba(255, 255, 255, 0.022)' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

::selection {
  background: rgba(152, 255, 217, 0.38);
  color: var(--text);
}

::-moz-selection {
  background: rgba(152, 255, 217, 0.38);
  color: var(--text);
}

/* Treść nad warstwą traila kursora (canvas z-index:0) */
#eg-page-wrap.eg-page-stack {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

/* Globalne kule tla: niezalezne od sekcji, plywajace po calej stronie. */
#eg-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#eg-bg-orbs .eg-bg-orb {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(300px, 32vw, 560px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  opacity: 0.42;
  filter: blur(58px) saturate(1.25);
  will-change: transform, background;
}

#eg-bg-orbs .eg-bg-orb--1 { width: clamp(340px, 35vw, 620px); }
#eg-bg-orbs .eg-bg-orb--2 { width: clamp(300px, 31vw, 540px); }
#eg-bg-orbs .eg-bg-orb--3 { width: clamp(360px, 37vw, 660px); }

/* GeneratePress resets */
.site-header,
.inside-header,
.main-nav,
.nav-float,
.site-main,
.site-footer,
.inside-site-footer {
  all: unset;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .18s;
}

a:hover {
  color: var(--blue2);
}

/* Treść główna: linki miętowe + podkreślenie */
#eg-main a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--mint) 42%, transparent);
}

#eg-main a:hover {
  color: var(--mint2);
  text-decoration-color: color-mix(in srgb, var(--mint2) 50%, transparent);
}

#eg-main a.eg-btn-primary,
#eg-main a.eg-btn-secondary,
#eg-main a.eg-btn-outline,
#eg-main a.eg-btn-app,
#eg-main a.eg-app-zone-cta-btn,
#eg-main a.eg-intention-card,
#eg-main a.eg-wiedza-card,
#eg-main a.eg-format-card,
#eg-main a.eg-slide-card,
#eg-main a.eg-pobieralnia-card,
#eg-main a.eg-pobieralnia-card-v2,
#eg-main a.eg-mentor-card,
#eg-main a.eg-book-card,
#eg-main a.eg-refleksja-card,
#eg-main a.eg-enote-archive-card,
#eg-main a.eg-enote-bubble,
#eg-main button.eg-enote-bubble,
#eg-main a.eg-topic-pill,
#eg-main a.eg-filter-pill,
#eg-main a.eg-topic-format-link {
  text-decoration: none;
  color: inherit;
}

#eg-main a.eg-btn-secondary,
#eg-main a.eg-btn-outline,
#eg-main a.eg-btn-app {
  color: inherit;
}

#eg-main a.eg-app-zone-cta-btn:not(:hover):not(:focus-visible) {
  color: #000000;
}

#eg-main a.eg-btn-primary:not(:hover):not(:focus-visible) {
  color: #000000;
}

#eg-main a.eg-btn-primary:hover,
#eg-main a.eg-btn-primary:focus-visible {
  color: var(--mint);
}

/*
 * Ikony social w treści (Kontakt, /linki/) — ten sam wygląd co w stopce.
 * Globalne #eg-main a { color: mint } ma wyższą specyficzność niż .eg-footer-social a,
 * więc bez tego bloku wszystkie kółka były jednolite miętowe zamiast kolorów marek.
 */
#eg-main .eg-footer-social a.eg-footer-social-link {
  text-decoration: none;
  color: var(--icon, var(--color));
}

#eg-main .eg-footer-social a.eg-footer-social-link:hover {
  color: var(--icon-hover, #050801);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--mint);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  /* o 20% ciemniej niż H1 (bazowo mięta) */
  color: color-mix(in srgb, var(--mint) 80%, black 20%);
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  /* o 30% ciemniej niż H1 */
  color: color-mix(in srgb, var(--mint) 70%, black 30%);
}

h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--mint) 82%, white 18%);
}

h5, h6 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

h1 .eg-dim,
h2 .eg-dim,
h3 .eg-dim {
  color: var(--text3);
}

p {
  color: var(--text);
}

strong, b {
  color: var(--text);
  font-weight: 600;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--banana);
  padding-left: 24px;
  font-style: italic;
  color: var(--text2);
  margin: 32px 0;
  font-size: 1.1rem;
}

code, pre {
  font-family: var(--mono);
  font-size: 0.875rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2px 6px;
  color: var(--blue);
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

pre {
  padding: 20px 24px;
  overflow-x: auto;
}

hr.eg-divider {
  /* Visual: eg-dividers.css (fade-to-transparent). */
  margin: 56px 0;
}


/* ============================================================
   LAYOUT
   ============================================================ */

.eg-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.eg-wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Odsunięcie treści od fixed nav + ticker (wysokość ustawia JS: --eg-header-chrome-h) */
.eg-main {
  padding-top: var(--eg-header-chrome-h, 102px);
}

.eg-section {
  padding: 72px 0;
}

.eg-section-label {
  font-family: var(--sans);
  font-size: var(--eg-section-label-font-size);
  font-weight: 600;
  letter-spacing: var(--eg-section-label-tracking);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: block;
}

/* Etykieta bez wymuszania wielkich liter (np. Element.Guru na O projekcie) */
.eg-section-label--mixedcase {
  text-transform: none;
  letter-spacing: 0.1em;
  font-size: 12px;
}

/* O projekcie — każde zdanie w osobnym akapicie (po . ? !) */
.eg-op-tab-sentences p {
  margin: 0 0 0.65em;
  line-height: 1.7;
}

.eg-op-tab-sentences p:last-child {
  margin-bottom: 0;
}

.eg-op-proj-quote {
  margin: 1.25em 0 0;
  padding: 16px 20px;
  border-left: 3px solid rgba(152, 255, 217, 0.45);
  background: rgba(0, 0, 0, 0.12);
  border-radius: 0 12px 12px 0;
}

.eg-op-proj-quote p {
  margin: 0 0 0.5em;
  font-style: normal;
}

.eg-op-proj-quote cite,
.eg-op-proj-quote__cite {
  display: block;
  margin-top: 0.65em;
  text-align: right;
  font-family: var(--serif);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: var(--text2);
}

.eg-page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}

.eg-page-header--estudio {
  border-bottom: none;
}

.eg-page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.eg-lead {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 560px;
  line-height: 1.6;
}

.eg-error-404-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.eg-error-404-inner .eg-lead {
  margin-left: auto;
  margin-right: auto;
}

.eg-error-404-actions {
  margin-top: 28px;
}

.eg-page-default-content {
  padding-bottom: 72px;
}


/* ============================================================
   GRID HELPERS
   ============================================================ */

.eg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.eg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .eg-grid-3 { grid-template-columns: 1fr 1fr; }
  .eg-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .eg-grid-2,
  .eg-grid-3,
  .eg-grid-4 { grid-template-columns: 1fr; }
  .eg-wrap,
  .eg-wrap-narrow { padding: 0 20px; }
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.eg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(178, 201, 218, 0.1);
}

/*
 * #wpadminbar jest fixed z bardzo wysokim z-indexem — .eg-nav na top:0 chowa się pod nim.
 * Przesuwamy menu pod pasek. WordPress i tak dodaje margin-top na html dla .admin-bar,
 * więc .eg-main zostaje przy 70px (nie dublujemy offsetu treści).
 */
body.admin-bar .eg-nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .eg-nav {
    top: 46px;
  }
}

.eg-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 68px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* /linki/ — bez menu: wyśrodkowane logo, pod spodem tytuł „Linki” */
.eg-nav-inner--linki-hub {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: 96px;
  padding: 16px 32px 18px;
  gap: 0;
}

.eg-linki-hub-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.eg-logo--linki-hub {
  flex-shrink: 0;
}

.eg-linki-hub-title {
  margin: 0;
  max-width: min(90vw, 480px);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text2);
  line-height: 1.35;
}

/*
 * Hub /linki/: dokładne odsunięcie = wysokość #eg-header (eg-linki-hub.js / eg-ui.js).
 */
body.eg-is-linki-hub .eg-main,
body.page-linki .eg-main,
body:has(#eg-header.eg-nav--linki-hub) .eg-main {
  padding-top: var(--eg-header-chrome-h, 102px);
}

.eg-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.eg-logo-element {
  color: var(--blue);
}

.eg-logo .eg-logo-dot {
  color: var(--mint);
  font-size: 1.55em;
}

.eg-logo em {
  color: var(--text2);
  font-style: normal;
}

.eg-logo:hover .eg-logo-element {
  color: var(--blue2);
}

.eg-logo:hover .eg-logo-dot {
  color: var(--mint2);
}

.eg-logo:hover em {
  color: var(--zephyr);
}

.eg-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.eg-nav-link {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  padding: 6px 13px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all .18s;
  white-space: nowrap;
  background: none;
  text-decoration: none;
  display: inline-block;
}

.eg-nav-link:hover {
  color: var(--text);
  background: var(--bg3);
  border-color: var(--border);
}

.eg-nav-link.current-menu-item,
.eg-nav-link[aria-current="page"],
.eg-nav-link.active {
  color: var(--mint);
  background: rgba(152, 255, 217, 0.08);
  border-color: rgba(152, 255, 217, 0.18);
}

.eg-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Hamburger — mobile */
.eg-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.eg-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all .25s;
}

.eg-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.eg-hamburger.open span:nth-child(2) { opacity: 0; }
.eg-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.eg-mobile-menu {
  display: none;
  background: rgba(0, 0, 0, 0.98);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
}

.eg-mobile-menu.open {
  display: flex;
}

.eg-mobile-menu .eg-nav-link {
  font-size: 15px;
  padding: 10px 14px;
}

/* Pasek ticker — wdrażanie tłumaczeń (pod wierszem menu, wewnątrz #eg-header) */
.eg-translation-ticker {
  display: flex;
  align-items: stretch;
  border-top: 1px solid color-mix(in srgb, var(--mint) 18%, var(--border));
  background: color-mix(in srgb, var(--bg2) 88%, #000 12%);
  overflow: hidden;
}

.eg-translation-ticker__viewport {
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 7px 0;
}

.eg-translation-ticker__track {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  animation: eg-translation-ticker-scroll var(--eg-ticker-duration, 36s) linear infinite;
  will-change: transform;
}

.eg-translation-ticker__group {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.eg-translation-ticker__chunk {
  flex: 0 0 auto;
  padding-right: 3rem;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: color-mix(in srgb, var(--mint) 72%, var(--text2));
  white-space: nowrap;
}

.eg-translation-ticker__dismiss {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--mint) 72%, var(--text2));
  cursor: pointer;
}

.eg-translation-ticker__dismiss:hover,
.eg-translation-ticker__dismiss:focus-visible {
  color: var(--text);
}

@keyframes eg-translation-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--eg-ticker-distance, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-translation-ticker__track {
    animation: none;
    width: 100%;
    justify-content: center;
  }

  .eg-translation-ticker__group + .eg-translation-ticker__group {
    display: none;
  }

  .eg-translation-ticker__chunk {
    padding-right: 0;
    white-space: normal;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 1024px) {
  .eg-nav-links { display: none; }
  .eg-hamburger { display: flex; }

  .eg-nav-inner {
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .eg-nav-inner > .eg-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(46vw, 220px);
    overflow: visible;
  }

  .eg-nav-inner > .eg-logo .eg-logo-brand-inject--holonic.eg-logo-brand-inject--has-height {
    height: clamp(2.35rem, 7.2vw, 3.35rem) !important;
    max-width: 100%;
  }

  .eg-nav-inner > .eg-logo .eg-logo-brand-inject--holonic .eg-logo-brand__holon-shell {
    transform-origin: left top;
  }

  .eg-nav-right {
    gap: 6px;
    flex-shrink: 0;
    --eg-nav-chip: 38px;
  }

  .eg-nav-right .eg-hamburger,
  .eg-nav-right .eg-btn-account.eg-btn-outline,
  .eg-nav-right .eg-btn-app,
  .eg-nav-right .eg-lang-dd__btn {
    width: var(--eg-nav-chip);
    height: var(--eg-nav-chip);
    min-width: var(--eg-nav-chip);
    min-height: var(--eg-nav-chip);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 10px;
  }

  .eg-nav-right .eg-hamburger {
    gap: 4px;
  }

  .eg-nav-right .eg-hamburger span {
    width: 18px;
  }

  .eg-nav-right .eg-btn-app {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
  }

  .eg-nav-right .eg-btn-account__icon {
    font-size: 16px;
  }

  .eg-nav-right .eg-lang-dd__icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .eg-nav-inner { padding: 0 12px; }

  .eg-nav-inner > .eg-logo {
    max-width: min(40vw, 180px);
  }

  .eg-nav-inner > .eg-logo .eg-logo-brand-inject--holonic.eg-logo-brand-inject--has-height {
    height: clamp(2.1rem, 6.5vw, 2.75rem) !important;
  }

  .eg-nav-right {
    gap: 5px;
    --eg-nav-chip: 36px;
  }
}


/* ============================================================
   BUTTONS
   ============================================================ */

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

/* Wszystkie przyciski EG: ten sam rozmiar czcionki co „Aplikacja”, tekst wyśrodkowany */
.eg-btn-primary,
.eg-btn-secondary,
.eg-btn-outline,
.eg-btn-app,
.eg-app-zone-cta-btn,
.eg-btn-full {
  font-size: var(--eg-btn-font-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  box-sizing: border-box;
}

/* Jedna typografia dla wszystkich przyciskow (menu + sekcje + formularze). */
.eg-btn-primary,
.eg-btn-secondary,
.eg-btn-outline,
.eg-btn-app,
.eg-app-zone-cta-btn,
.eg-btn-full,
.eg-btn-sm,
.eg-plan-join-btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
a.button {
  font-family: Georgia, "Times New Roman", serif !important;
}

/* Primary CTA — animated conic border, dot mask, inner shimmer (Ryan Mulligan / css-property style) */
.eg-btn-primary {
  --animation: gradient-angle linear infinite;
  --duration: 8s;
  --shadow-size: 2px;
  --transition-shiny: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  --shiny-cta-bg: #000000;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: var(--mint);
  --shiny-cta-highlight-subtle: color-mix(in srgb, var(--mint) 68%, white 32%);

  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 0.625rem 2.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  background-color: var(--mint);
  background-image: radial-gradient(
    circle at 2px 2px,
    color-mix(in srgb, var(--mint) 90%, black 10%) calc(2px / 4),
    transparent 0
  );
  background-size: 4px 4px;
  background-repeat: repeat;
  box-shadow:
    0 0 12px color-mix(in srgb, var(--mint) 45%, transparent),
    0 0 28px color-mix(in srgb, var(--mint) 22%, transparent);
  text-shadow: none;

  transition: var(--transition-shiny);
  transition-property:
    --gradient-angle-offset,
    --gradient-percent,
    --gradient-shine,
    color,
    text-shadow,
    background,
    box-shadow;

  animation: none;
}

a.eg-btn-primary:hover,
a.eg-btn-primary:focus-visible {
  color: var(--mint);
}

.eg-btn-primary::before,
.eg-btn-primary::after,
.eg-btn-primary span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
  opacity: 0;
  animation: none;
}

.eg-btn-primary:active {
  translate: 0 1px;
}

/* Dots pattern */
.eg-btn-primary::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background:
    radial-gradient(
        circle at var(--position) var(--position),
        color-mix(in srgb, var(--shiny-cta-bg) 90%, white 10%) calc(var(--position) / 4),
        transparent 0
      )
      padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(
    from calc(var(--gradient-angle) + 45deg),
    black,
    transparent 10% 90%,
    black
  );
  border-radius: inherit;
  opacity: 0.4;
  transition: opacity 0.4s ease;
  animation:
    var(--animation) var(--duration),
    var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}

/* Inner shimmer */
.eg-btn-primary::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(
    -50deg,
    transparent,
    var(--shiny-cta-highlight),
    transparent
  );
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
  transition: opacity 0.4s ease;
  animation:
    var(--animation) var(--duration),
    var(--animation) calc(var(--duration) / 0.4) reverse paused;
  animation-composition: add;
}

.eg-btn-primary span {
  position: relative;
  z-index: 1;
}

.eg-btn-primary span::before {
  --size: calc(100% + 1rem);
  width: var(--size);
  height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
  opacity: 0;
  transition: opacity var(--transition-shiny);
  animation: calc(var(--duration) * 1.5) breathe linear infinite;
}

/* Hover / focus: pełne czarne tło, napis miętowy z podświetleniem */
.eg-btn-primary:is(:hover, :focus-visible) {
  color: var(--mint);
  text-shadow: none;
  background-color: #000000;
  background-image: radial-gradient(
    circle at 2px 2px,
    color-mix(in srgb, #000000 90%, white 10%) calc(2px / 4),
    transparent 0
  );
}

.eg-btn-primary:is(:hover, :focus-visible)::before,
.eg-btn-primary:is(:hover, :focus-visible)::after {
  opacity: 0;
  animation: none;
}

.eg-btn-primary:is(:hover, :focus-visible) span::before {
  opacity: 0;
  animation: none;
}

.eg-btn-primary:disabled,
.eg-btn-primary[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  animation: none;
}

.eg-btn-primary:disabled::before,
.eg-btn-primary:disabled::after,
.eg-btn-primary[aria-disabled="true"]::before,
.eg-btn-primary[aria-disabled="true"]::after {
  animation: none;
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  from,
  to {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
}

.eg-btn-secondary {
  font-family: var(--sans);
  font-weight: 500;
  padding: 6.5px 28px;
  border-radius: 15px;
  background: transparent;
  color: var(--zephyr);
  border: 1px solid rgba(213, 206, 203, 0.3);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.eg-btn-secondary:hover {
  background: rgba(213, 206, 203, 0.06);
  border-color: rgba(213, 206, 203, 0.45);
  color: var(--zephyr2);
}


.eg-btn-outline {
  font-family: var(--sans);
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(213, 206, 203, 0.25);
  color: var(--zephyr);
  cursor: pointer;
  background: none;
  transition: all .18s;
  text-decoration: none;
}

.eg-btn-outline:hover {
  color: var(--zephyr2);
  border-color: rgba(213, 206, 203, 0.45);
  background: rgba(213, 206, 203, 0.05);
}

.eg-btn-app {
  font-family: var(--sans);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  color: #0a1a0d;
  cursor: pointer;
  border: none;
  transition: all .18s;
  white-space: nowrap;
  box-shadow:
    0 0 12px color-mix(in srgb, var(--mint) 45%, transparent),
    0 0 28px color-mix(in srgb, var(--mint) 22%, transparent);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background-color: var(--mint);
  background-image: radial-gradient(
    circle at 2px 2px,
    color-mix(in srgb, var(--mint) 90%, black 10%) calc(2px / 4),
    transparent 0
  );
  background-size: 4px 4px;
  background-repeat: repeat;
}

.eg-btn-app:hover {
  color: #050d08;
  background-color: var(--mint2);
  background-image: radial-gradient(
    circle at 2px 2px,
    color-mix(in srgb, var(--mint2) 90%, black 10%) calc(2px / 4),
    transparent 0
  );
  box-shadow:
    0 0 16px color-mix(in srgb, var(--mint) 55%, transparent),
    0 0 36px color-mix(in srgb, var(--mint) 28%, transparent);
}

.eg-btn-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eg-btn-account__icon {
  display: none;
  font-size: 17px;
  line-height: 1;
}

.eg-btn-app__label--short {
  display: none;
}

@media (max-width: 1024px) {
  .eg-btn-account__label {
    display: none;
  }

  .eg-btn-account__icon {
    display: block;
  }

  .eg-btn-app__label--long {
    display: none;
  }

  .eg-btn-app__label--short {
    display: inline;
  }
}

.eg-btn-full {
  width: 100%;
  padding: 13px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  color: #0a1a0d;
  transition: all .18s;
  display: flex;
  /* jasne tło → kropki ~10% ciemniejsze */
  background-color: var(--mint);
  background-image: radial-gradient(
    circle at 2px 2px,
    color-mix(in srgb, var(--mint) 90%, black 10%) calc(2px / 4),
    transparent 0
  );
  background-size: 4px 4px;
  background-repeat: repeat;
}

.eg-btn-full:hover {
  background-color: var(--mint2);
  background-image: radial-gradient(
    circle at 2px 2px,
    color-mix(in srgb, var(--mint2) 90%, black 10%) calc(2px / 4),
    transparent 0
  );
}


/* ============================================================
   CARDS
   ============================================================ */

.eg-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 32px;
  transition: border-color .2s, transform .2s;
}

.eg-card:hover {
  border-color: var(--border2);
}

.eg-card-link {
  cursor: pointer;
}

.eg-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(152, 255, 217, 0.35);
}


/* ============================================================
   TAGS / BADGES
   ============================================================ */

.eg-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  line-height: 1;
}

.eg-tag-banana  { background: rgba(238, 220, 167, 0.08); color: var(--banana);  border: 1px solid rgba(238, 220, 167, 0.18); }
.eg-tag-mint    { background: rgba(152, 255, 217, 0.08); color: var(--mint);    border: 1px solid rgba(152, 255, 217, 0.2); }
.eg-tag-blue    { background: rgba(178, 201, 218, 0.08); color: var(--blue);    border: 1px solid rgba(178, 201, 218, 0.15); }
.eg-tag-zephyr  { background: rgba(213, 206, 203, 0.06); color: var(--zephyr); border: 1px solid rgba(213, 206, 203, 0.2); }
.eg-tag-dim     { background: var(--bg4);                color: var(--text2);   border: 1px solid var(--border); }

/* Kolory per format */
.eg-tag-espace  { background: rgba(152, 255, 217, 0.08); color: var(--mint);   border: 1px solid rgba(152, 255, 217, 0.2); }
.eg-tag-elog    { background: rgba(213, 206, 203, 0.06); color: var(--zephyr); border: 1px solid rgba(213, 206, 203, 0.2); }
.eg-tag-eshot   { background: rgba(178, 201, 218, 0.08); color: var(--blue);   border: 1px solid rgba(178, 201, 218, 0.15); }
.eg-tag-enote   { background: rgba(238, 220, 167, 0.08); color: var(--banana); border: 1px solid rgba(238, 220, 167, 0.18); }
.eg-tag-eroom   { background: rgba(178, 201, 218, 0.08); color: var(--blue);   border: 1px solid rgba(178, 201, 218, 0.15); }
.eg-tag-eserie  { background: rgba(238, 220, 167, 0.08); color: var(--banana); border: 1px solid rgba(238, 220, 167, 0.18); }
.eg-tag-ecut    { background: rgba(213, 206, 203, 0.06); color: var(--zephyr); border: 1px solid rgba(213, 206, 203, 0.2); }
.eg-tag-eset    { background: rgba(152, 255, 217, 0.08); color: var(--mint);   border: 1px solid rgba(152, 255, 217, 0.2); }
.eg-tag-ekh     { background: rgba(238, 220, 167, 0.08); color: var(--banana); border: 1px solid rgba(238, 220, 167, 0.18); }


/* ============================================================
   FILTER PILLS
   ============================================================ */

.eg-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.eg-filter-pill {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text2);
  background: var(--bg3);
  transition: all .18s;
}

.eg-filter-pill.active,
.eg-filter-pill[aria-pressed="true"] {
  background: rgba(178, 201, 218, 0.08);
  color: var(--blue);
  border-color: rgba(178, 201, 218, 0.3);
}

.eg-filter-pill:hover {
  color: var(--text);
  border-color: var(--border2);
}


/* ============================================================
   SEARCH INPUT
   ============================================================ */

.eg-search,
.eg-enc-search {
  font-family: var(--serif);
  font-size: 16px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  outline: none;
  width: 280px;
  transition: border-color .18s;
  box-sizing: border-box;
}

.eg-search::placeholder,
.eg-enc-search::placeholder {
  color: var(--text3);
}

.eg-topics-block .eg-search--topic::placeholder {
  color: var(--text, #0a0a0a);
  opacity: 1;
}

.eg-search:focus,
.eg-enc-search:focus {
  border-color: rgba(21, 176, 166, 0.45);
  box-shadow: 0 0 0 1px rgba(21, 176, 166, 0.2);
}

/* Blok wyszukiwania Gutenberga — odstęp i spójne zaokrąglenia */
.wp-block-search__inside-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.wp-block-search__input {
  border-radius: 12px !important;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

.eg-form-row {
  margin-bottom: 18px;
}

.eg-form-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}

.eg-form-input,
.eg-form-textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 9px;
  outline: none;
  transition: border-color .18s;
}

.eg-form-input:focus,
.eg-form-textarea:focus {
  border-color: rgba(21, 176, 166, 0.45);
  box-shadow: 0 0 0 1px rgba(21, 176, 166, 0.2);
}

.eg-form-input::placeholder,
.eg-form-textarea::placeholder {
  color: var(--text3);
}

.eg-form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* WP natywny formularz logowania */
#loginform {
  background: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rl) !important;
  padding: 40px !important;
  max-width: 440px;
  margin: 0 auto;
}

#loginform label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#loginform input[type="text"],
#loginform input[type="password"] {
  background: var(--bg3) !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  border-radius: 9px !important;
  font-family: var(--serif) !important;
  font-size: 16px !important;
  padding: 12px 16px !important;
  width: 100% !important;
}

#loginform .button-primary {
  background: var(--mint) !important;
  border: none !important;
  color: #0a1a0d !important;
  border-radius: 9px !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 13px !important;
  width: 100% !important;
  cursor: pointer !important;
}


/* ============================================================
   SLIDER / HORIZONTAL SCROLL
   ============================================================ */

.eg-slider-wrap {
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg4) transparent;
}

.eg-slider-wrap::-webkit-scrollbar {
  height: 4px;
}

.eg-slider-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.eg-slider-wrap::-webkit-scrollbar-thumb {
  background: var(--bg5);
  border-radius: 2px;
}

.eg-slider-row {
  display: flex;
  gap: 16px;
  min-width: max-content;
}


/* ============================================================
   SLIDE CARD (Najnowsze materiały)
   ============================================================ */

.eg-slide-card {
  width: 290px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  /* overflow: visible — żeby ::before (świecący border) nie był obcięty; klip tylko na miniaturze */
  overflow: visible;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
  position: relative;
}

.eg-slide-card:hover {
  border-color: rgba(178, 201, 218, 0.22);
  transform: translateY(-3px);
}

.eg-slide-card .eg-slide-thumb,
.eg-slide-card .eg-slide-body {
  position: relative;
  z-index: 2;
}

.eg-slide-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--rl) var(--rl) 0 0;
}

.eg-slide-body {
  padding: 20px 22px 22px;
}

.eg-slide-body h4 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--zephyr);
  margin-bottom: 6px;
  line-height: 1.4;
}

.eg-slide-meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}


/* ============================================================
   TOPIC PILLS (Tematy)
   ============================================================ */

.eg-topics-block {
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 56px;
  text-align: center;
}

.eg-topics-block h2 {
  color: var(--mint);
  margin-bottom: 12px;
}

.eg-topics-block p {
  color: var(--text2);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.eg-topic-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}

.eg-topic-pill {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--text2);
  cursor: pointer;
  transition: all .18s;
  background: var(--bg3);
  text-decoration: none;
  display: inline-block;
}

.eg-topic-pill:hover,
.eg-topic-pill.active {
  color: var(--mint);
  border-color: rgba(152, 255, 217, 0.45);
  background: rgba(152, 255, 217, 0.08);
}

#eg-tematy-wyniki.eg-topics-results {
  margin-top: 32px;
  text-align: left;
  display: none;
}

#eg-tematy-wyniki.eg-topics-results.is-visible {
  display: block;
}


/* ============================================================
   INTENTION CARDS (Strona główna)
   ============================================================ */

.eg-intention-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 36px 32px;
  cursor: pointer;
  transition: all .22s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
}

.eg-intention-card:hover {
  border-color: rgba(152, 255, 217, 0.35);
  transform: translateY(-3px);
}

.eg-intention-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--bg4);
  border: 1px solid var(--border);
  margin-bottom: 4px;
  flex-shrink: 0;
}

.eg-intention-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.eg-intention-card p {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text2);
  line-height: 1.55;
}

.eg-intention-arrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--mint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}


/* ============================================================
   HERO
   ============================================================ */

.eg-hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.eg-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}

.eg-hero-eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: eg-pulse 2s ease-in-out infinite;
}

@keyframes eg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.eg-hero h1 {
  margin-bottom: 22px;
  max-width: 780px;
  color: var(--mint);
}

.eg-hero h1 .eg-dim {
  color: var(--text3);
}

.eg-hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--banana);
  max-width: 560px;
  margin-bottom: 40px;
}

.eg-hero-lead strong {
  font-weight: 700;
  color: var(--zephyr, #d5cecb);
}

.eg-hero-mint-text {
  color: var(--mint, #98ffd9);
  font-weight: 700;
}

.eg-hero-lead-tagline-white {
  color: #ffffff;
  font-weight: 700;
}

.eg-hero-lead-tagline-mint {
  color: var(--mint, #98ffd9);
  font-weight: 700;
}

/* ── Standardowy dymek kotwicowy (.eg-float-tip) — treść w __body, szerokość z treści ── */
.eg-float-tip {
  position: relative;
  display: inline;
}

.eg-float-tip__label {
  transition: color 0.2s ease;
}

.eg-float-tip__anchor {
  display: inline;
  cursor: help;
  outline: none;
  color: inherit;
  vertical-align: baseline;
}

button.eg-float-tip__anchor {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
}

.eg-float-tip__anchor:hover,
.eg-float-tip__anchor:focus-visible {
  color: inherit;
}

.eg-float-tip__anchor:focus-visible {
  outline: 2px solid rgba(152, 255, 217, 0.45);
  outline-offset: 3px;
}

/* Wariant hero: etykieta + gwiazdka w indeksie górnym */
.eg-float-tip--hero-sup .eg-float-tip__anchor {
  margin-left: 0.08em;
  font-size: 0.42em;
  font-weight: 600;
  vertical-align: super;
  color: rgba(152, 255, 217, 0.7);
  user-select: none;
  line-height: 0;
  position: relative;
  top: -0.35em;
  padding: 0.15em 0.12em;
  margin-right: -0.06em;
}

.eg-float-tip--hero-sup .eg-float-tip__anchor:hover,
.eg-float-tip--hero-sup .eg-float-tip__anchor:focus-visible {
  color: rgba(152, 255, 217, 0.95);
}

/* Panel: pozycja w JS (fixed + body), nad menu */
.eg-float-tip__bubble {
  position: fixed;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: min(440px, 94vw);
  min-width: 0;
  max-height: none;
  overflow: visible;
  padding: 24px 26px 22px;
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text2);
  background: var(--eg-glass-bg, rgba(0, 0, 0, 0.5));
  border: 1px dashed rgba(152, 255, 217, 0.42);
  border-radius: 18px;
  box-shadow: var(--eg-glass-shadow, 0 14px 42px rgba(0, 0, 0, 0.24));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100000;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  overflow-wrap: break-word;
}

.eg-float-tip__bubble.eg-float-tip__bubble--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.eg-float-tip__body {
  max-width: 100%;
}

.eg-float-tip__p {
  margin: 0 0 16px;
  text-wrap: balance;
}

.eg-float-tip__p:last-child {
  margin-bottom: 0;
}

.eg-tip-mint {
  color: var(--mint, #98ffd9);
  font-weight: 700;
}

@media (max-width: 768px) {
  .eg-float-tip__bubble.eg-float-tip__bubble--open {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: max-content;
    max-width: min(400px, 92vw);
    max-height: none;
    overflow: visible;
  }
}

.eg-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .eg-hero { padding: 64px 0 56px; }
}

@media (max-width: 1024px) {
  .eg-hero-btns {
    justify-content: center;
    align-items: center;
  }
}


/* ============================================================
   ENCYCLOPEDIA ROW
   ============================================================ */

.eg-enc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 28px 36px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 12px;
  text-decoration: none;
}

.eg-enc-row:hover {
  border-color: rgba(178, 201, 218, 0.3);
  transform: translateX(4px);
}

.eg-enc-num {
  font-family: var(--sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bg5);
  line-height: 1;
  flex-shrink: 0;
}

.eg-enc-body {
  flex: 1;
}

.eg-enc-body h3 {
  margin-bottom: 4px;
}

.eg-enc-body p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.4;
}

.eg-enc-arrow {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color .18s;
}

.eg-enc-row:hover .eg-enc-arrow {
  color: var(--blue);
}

@media (max-width: 640px) {
  .eg-enc-row { padding: 20px 24px; flex-wrap: wrap; }
  .eg-enc-num { font-size: 1.8rem; }
}


/* ============================================================
   FORMAT CARDS (Treści hub)
   ============================================================ */

.eg-format-card {
  border-radius: var(--rl);
  padding: 44px 40px;
  cursor: pointer;
  transition: all .22s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  text-decoration: none;
}

.eg-format-card:hover {
  transform: translateY(-4px);
}

.eg-format-card h3 {
  color: var(--mint);
}

.eg-format-card p {
  font-size: 15px;
  line-height: 1.5;
  flex: 1;
}

.eg-format-card .eg-format-arrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 8px;
  color: var(--blue);
}

.eg-format-bg-icon {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 100px;
  opacity: .07;
  pointer-events: none;
  line-height: 1;
}

.eg-fc-dark {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
}

.eg-fc-dark h3 { color: var(--mint); }

.eg-fc-navy {
  background: linear-gradient(135deg, #080c14, #050810);
  border: 1px solid rgba(45, 62, 86, 0.5);
  color: var(--text);
}

.eg-fc-sage {
  background: linear-gradient(135deg, #14121a, #0e0c14);
  border: 1px solid rgba(213, 206, 203, 0.15);
  color: var(--text);
}

.eg-fc-sage h3 { color: var(--mint); }


/* ============================================================
   ARTICLE / SINGLE LAYOUT
   ============================================================ */

.eg-article-hero {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  margin-bottom: 24px;
}

.eg-article-top {
  padding: 56px;
  border-bottom: 1px solid var(--border);
}

.eg-article-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 56px;
}

.eg-article-text h3 {
  margin: 36px 0 14px;
}

.eg-article-text p {
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 18px;
}

.eg-sidebar-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 28px;
  margin-bottom: 16px;
}

.eg-sidebar-box h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
}

.eg-key-ideas {
  list-style: none;
}

.eg-key-ideas li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text2);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.eg-key-ideas li:last-child {
  border-bottom: none;
}

.eg-key-ideas li::before {
  content: '→';
  color: var(--blue);
  flex-shrink: 0;
}

.eg-source-list li {
  font-size: 13px;
  color: var(--text3);
  padding: 6px 0;
  font-family: var(--sans);
  border-bottom: 1px solid var(--border);
}

.eg-source-list li:last-child {
  border-bottom: none;
}

.eg-player-mock {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  cursor: pointer;
  transition: border-color .2s;
  overflow: hidden;
}

.eg-player-mock:hover {
  border-color: rgba(178, 201, 218, 0.22);
}

.eg-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--banana);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1208;
  font-size: 22px;
  transition: transform .18s;
  padding-left: 3px;
  flex-shrink: 0;
}

.eg-play-btn .eg-play-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.eg-player-mock:hover .eg-play-btn {
  transform: scale(1.08);
}

/* Lite YouTube — brak iframe do momentu kliknięcia (RODO) */
.eg-youtube-lite.eg-player-mock {
  display: block;
  position: relative;
  aspect-ratio: var(--eg-yt-aspect, 16 / 9);
  padding: 0;
  cursor: default;
}
.eg-youtube-lite__activate {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: inherit;
  position: relative;
  overflow: hidden;
}
.eg-youtube-lite__activate:focus-visible {
  outline: 2px solid var(--banana, #f4d35e);
  outline-offset: 2px;
}
.eg-youtube-lite__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}
.eg-youtube-lite__thumb--empty {
  background: #16161a;
}
.eg-youtube-lite__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s;
}
.eg-youtube-lite__activate:hover .eg-youtube-lite__play {
  background: rgba(0, 0, 0, 0.35);
}
.eg-youtube-lite--playing {
  cursor: default;
}
.eg-youtube-lite--playing iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--rl);
}

/* Rzadki fallback oEmbed (nie-YouTube) */
.eg-player-mock--iframe {
  position: relative;
}
.eg-player-mock--iframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--rl);
}

@media (max-width: 900px) {
  .eg-article-body { grid-template-columns: 1fr; }
  .eg-article-top  { padding: 32px 28px; }
  .eg-article-body { padding: 32px 28px; gap: 32px; }
}

@media (max-width: 640px) {
  .eg-article-top  { padding: 24px 20px; }
  .eg-article-body { padding: 24px 20px; }
}


/* ============================================================
   REFLECTION / PUZZLE
   ============================================================ */

.eg-puzzle-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 40px;
}

.eg-question-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 32px 36px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
}

.eg-question-card:hover {
  border-color: rgba(178, 201, 218, 0.22);
}

.eg-question-card h3 {
  margin-bottom: 8px;
}

.eg-question-card p {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text2);
  line-height: 1.55;
}

.eg-monthly-theme {
  background: linear-gradient(135deg, #080c14, #050810);
  border: 1px solid rgba(45, 62, 86, 0.5);
  border-radius: var(--rl);
  padding: 48px;
  margin-bottom: 52px;
}

.eg-monthly-theme .eg-month {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.eg-monthly-theme h2 {
  margin-bottom: 16px;
}

.eg-monthly-theme p {
  font-family: var(--serif);
  color: var(--text2);
  max-width: 500px;
  line-height: 1.7;
  font-size: 1.05rem;
}


/* ============================================================
   DOWNLOAD GRID (Pobieralnia)
   ============================================================ */

.eg-download-cat {
  margin-bottom: 48px;
}

.eg-download-cat h3 {
  margin-bottom: 4px;
}

.eg-download-cat h3 span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  margin-left: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.eg-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.eg-dl-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 24px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eg-dl-card:hover {
  border-color: rgba(178, 201, 218, 0.22);
  transform: translateY(-2px);
}

.eg-dl-card h4 {
  line-height: 1.3;
}

.eg-dl-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.45;
  flex: 1;
}

.eg-dl-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color .18s;
}

.eg-dl-btn:hover {
  color: var(--blue2);
}

.eg-dl-card.locked {
  opacity: .5;
  cursor: default;
}

.eg-dl-card.locked .eg-dl-btn {
  color: var(--text3);
  cursor: default;
}


/* ============================================================
   MENTOR CARD
   ============================================================ */

.eg-mentor-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: border-color .2s;
}

.eg-mentor-card:hover {
  border-color: var(--border2);
}

.eg-mentor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.eg-mentor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-mentor-body {
  flex: 1;
  min-width: 0;
}

.eg-mentor-body h4 {
  margin-bottom: 2px;
}

.eg-mentor-role {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  margin-bottom: 10px;
}

.eg-mentor-body > p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

.eg-mentor-links {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.eg-mentor-link {
  font-family: var(--sans);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--bg3);
  color: var(--text3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  display: inline-block;
}

.eg-mentor-link:hover {
  color: var(--text);
  border-color: var(--border2);
}

@media (max-width: 640px) {
  .eg-mentor-card { flex-direction: column; gap: 16px; }
}


/* ============================================================
   ELOG
   ============================================================ */

.eg-log-entry {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--rl);
  padding: 32px 36px;
  margin-bottom: 16px;
  text-decoration: none;
  display: block;
  transition: border-color .2s;
}

.eg-log-entry:hover {
  border-color: rgba(178, 201, 218, 0.3);
  border-left-color: var(--blue2);
}

.eg-log-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
}

.eg-log-entry h3 {
  margin-bottom: 8px;
}

.eg-log-entry p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.75;
}


/* ============================================================
   STREFY BANNER
   ============================================================ */

.eg-strefy-banner {
  background: linear-gradient(135deg, #080c14, #050810);
  border: 1px solid rgba(45, 62, 86, 0.4);
  border-radius: var(--rl);
  padding: 56px;
  text-align: center;
  margin: 56px 0;
}

.eg-strefy-banner h2 {
  margin-bottom: 12px;
}

.eg-strefy-banner p {
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

.eg-strefy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.eg-strefa {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  text-align: left;
}

.eg-strefa .eg-strefa-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: #d8d0c4;
  margin: 10px 0 6px;
  font-family: var(--serif);
}

.eg-strefa p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .eg-strefy-banner { padding: 36px 24px; }
  .eg-strefy-grid   { grid-template-columns: 1fr; }
}


/* ============================================================
   TABS (O projekcie)
   ============================================================ */

.eg-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  width: fit-content;
  flex-wrap: wrap;
}

.eg-tab {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text2);
  transition: all .18s;
  border: 1px solid transparent;
  background: none;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.eg-tab:hover,
.eg-tab:focus-visible {
  color: var(--mint);
  background: var(--bg3);
  border-color: rgba(21, 176, 166, 0.3);
}

.eg-tab.active,
.eg-tab[aria-selected="true"] {
  background: var(--bg4);
  color: var(--zephyr);
  border-color: rgba(213, 206, 203, 0.15);
}

.eg-tab.active:hover,
.eg-tab[aria-selected="true"]:hover,
.eg-tab.active:focus-visible,
.eg-tab[aria-selected="true"]:focus-visible {
  color: var(--zephyr);
  background: var(--bg4);
  border-color: rgba(213, 206, 203, 0.22);
}

.eg-tab-content {
  display: none;
  animation: eg-fade-up .3s ease;
}

.eg-tab-content.active {
  display: block;
}

@media (max-width: 640px) {
  .eg-tabs { width: 100%; }
  .eg-tab  { flex: 1; text-align: center; padding: 8px 10px; }
}


/* ============================================================
   FAQ ACCORDION (przyciski jak reszta UI — zaokrąglone)
   ============================================================ */

.eg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.eg-faq-item {
  border-bottom: none;
  scroll-margin-top: 88px;
}

.eg-faq-q,
.eg-faq-btn {
  width: 100%;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  cursor: pointer;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 15px;
  text-align: left;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--mint);
  transition: border-color .2s, color .18s;
  box-sizing: border-box;
}

.eg-faq-q:hover,
.eg-faq-btn:hover {
  border-color: rgba(152, 255, 217, 0.35);
  color: var(--mint2);
}

.eg-faq-q .eg-faq-icon,
.eg-faq-btn .eg-faq-icon {
  font-size: 1.35rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--mint) 72%, transparent);
  transition: transform .25s, color .2s;
  flex-shrink: 0;
  margin-left: 0;
}

.eg-faq-q.open .eg-faq-icon,
.eg-faq-btn[aria-expanded="true"] .eg-faq-icon {
  transform: rotate(45deg);
  color: var(--mint);
}

.eg-faq-q[aria-expanded="true"],
.eg-faq-btn[aria-expanded="true"] {
  border-color: rgba(152, 255, 217, 0.35);
}

.eg-faq-a,
.eg-faq-answer {
  font-size: clamp(0.92rem, 1.22vw, 1.05rem);
  color: var(--text2);
  line-height: 1.75;
  padding: 4px 8px 8px 12px;
}

.eg-faq-a {
  display: none;
}

.eg-faq-a.visible {
  display: block;
  animation: eg-fade-up .25s ease;
}

.eg-faq-answer p {
  margin: 0;
}

.eg-faq-answer p + p {
  margin-top: 0.75em;
}

.eg-faq-benefits {
  margin: 0.75em 0 0;
  padding-left: 1.25em;
}

.eg-faq-benefits li {
  margin-bottom: 0.45em;
}

.eg-faq-benefits li:last-child {
  margin-bottom: 0;
}


/* ============================================================
   CALENDARIUM
   ============================================================ */

.eg-cal-month {
  margin-bottom: 48px;
}

.eg-cal-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.eg-cal-header .eg-cal-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: #d8d0c4;
}

.eg-cal-header .eg-cal-title {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--mint);
  font-weight: 500;
}

.eg-cal-body {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 32px 36px;
}

.eg-cal-motyw {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.eg-cal-body p {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}

.eg-cal-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--banana);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}


/* ============================================================
   TOOLTIP (Autolink encyklopedii)
   ============================================================ */

.eg-term {
  color: var(--blue);
  border-bottom: 1px dotted rgba(178, 201, 218, 0.4);
  cursor: help;
  transition: color .15s, border-color .15s;
}

.eg-term:hover {
  color: var(--blue2);
}

/* Autolink: pełny link w akapicie (mint) */
a.eg-term.eg-term-link {
  color: var(--mint, #98ffd9);
  border-bottom: 1px solid rgba(152, 255, 217, 0.45);
  text-decoration: none;
  cursor: pointer;
  font-weight: inherit;
}

a.eg-term.eg-term-link:hover {
  color: var(--mint, #98ffd9);
  border-bottom-color: rgba(152, 255, 217, 0.75);
}

/* Autolink: pozostałe wystąpienia — jak zwykły tekst, tooltip + delikatny hover */
.eg-term.eg-term-muted {
  color: inherit;
  border-bottom: none;
  cursor: help;
  font-weight: inherit;
}

.eg-term.eg-term-muted:hover {
  color: var(--mint, #98ffd9);
  border-bottom: 1px dotted rgba(152, 255, 217, 0.4);
}

.eg-tooltip {
  position: absolute;
  z-index: 200;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--rl);
  padding: 20px 24px;
  max-width: 320px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.eg-tooltip.eg-tooltip--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: eg-fade-up .2s ease;
}

.eg-tooltip h5 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--mint);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.eg-tooltip p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 12px;
}

.eg-tooltip-more {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.eg-tooltip-more:hover {
  color: var(--blue2);
}


/* ============================================================
   STICKY PLAYER (ESet)
   ============================================================ */

.eg-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(13, 13, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border2);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateY(100%);
  transition: transform .3s ease;
}

.eg-player-bar.visible,
.eg-player-bar.eg-player-bar--open {
  transform: translateY(0);
}

/* Iframe ESet nad paskiem playera */
.eg-player-iframe-wrap {
  position: fixed;
  bottom: 64px;
  right: 24px;
  z-index: 149;
  width: 320px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  display: none;
}
.eg-player-iframe-wrap.eg-player-iframe-wrap--open {
  display: block;
}
.eg-player-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.eg-player-post-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}
.eg-player-post-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .eg-player-iframe-wrap {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 64px;
  }
}

.eg-player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eg-player-btn {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all .18s;
  line-height: 1;
}

.eg-player-btn:hover {
  color: var(--text);
  background: var(--bg4);
}

.eg-player-btn.play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--banana);
  color: #1a1208;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 2px;
}

.eg-player-btn.play:hover {
  background: var(--banana2);
}

.eg-player-info {
  flex: 1;
  min-width: 0;
}

.eg-player-info .eg-player-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eg-player-info .eg-player-sub {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.eg-player-close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  transition: color .18s;
}

.eg-player-close:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .eg-player-bar { padding: 0 16px; gap: 12px; }
}


/* ============================================================
   PROSE (artykuły, O projekcie)
   ============================================================ */

.eg-prose h3 {
  margin-top: 40px;
  margin-bottom: 12px;
}

.eg-prose p {
  font-family: var(--serif);
  color: var(--text2);
  margin-bottom: 18px;
  line-height: 1.8;
}

.eg-prose blockquote {
  margin: 32px 0;
}

.eg-prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}

.eg-prose ul li {
  font-family: var(--serif);
  color: var(--text2);
  font-size: 16px;
  padding: 4px 0;
  line-height: 1.6;
  list-style: disc;
}

.eg-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eg-prose a:hover {
  color: var(--blue2);
}


/* ============================================================
   BACK BUTTON
   ============================================================ */

.eg-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  cursor: pointer;
  padding: 8px 0;
  transition: color .18s;
  background: none;
  border: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.eg-back:hover {
  color: var(--blue2);
}


/* ============================================================
   LOADING / EMPTY STATES
   ============================================================ */

.eg-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text3);
  padding: 32px 0;
}

.eg-loading::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: eg-spin .8s linear infinite;
  flex-shrink: 0;
}

@keyframes eg-spin {
  to { transform: rotate(360deg); }
}

.eg-empty {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text3);
  padding: 40px 0;
  text-align: center;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes eg-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eg-fade-up {
  animation: eg-fade-up .35s ease;
}


/* ============================================================
   FOOTER
   ============================================================ */

.eg-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
  font-family: var(--serif);
}

#eg-footer h5,
#eg-footer h6 {
  font-family: var(--serif);
}

.eg-footer--linki-minimal {
  padding: 28px 0 24px;
  margin-top: 0;
}

.eg-footer-linki-minimal-inner {
  text-align: center;
}

.eg-footer-linki-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.eg-footer-linki-stack p {
  margin: 0;
}

.eg-footer-linki-domain {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text3);
  text-transform: lowercase;
}

.eg-footer-linki-domain a {
  color: inherit;
  text-decoration: none;
}

.eg-footer-linki-domain a:hover {
  color: var(--mint);
}

.eg-footer-linki-copy {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

.eg-footer-linki-copy a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--mint) 38%, transparent);
}

.eg-footer-linki-copy a:hover {
  color: var(--mint2);
  text-decoration-color: color-mix(in srgb, var(--mint2) 45%, transparent);
}

.eg-footer-linki-impressum {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
}

.eg-footer-linki-impressum a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--mint) 38%, transparent);
}

.eg-footer-linki-impressum a:hover {
  color: var(--mint2);
  text-decoration-color: color-mix(in srgb, var(--mint2) 45%, transparent);
}

.eg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.eg-footer-col-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eg-footer-col-logo .eg-logo {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
  overflow: visible;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.eg-footer-col-logo .eg-logo-brand-inject {
  max-width: none;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.eg-footer-col-logo .eg-logo-brand-inject--has-height {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eg-footer-col-logo .eg-logo-brand,
.eg-footer-col-logo .eg-logo-brand__stage,
.eg-footer-col-logo .eg-logo-brand__rows-wrap {
  overflow: visible;
}

.eg-footer-col-logo .eg-logo-brand-inject--has-height > .eg-logo-brand {
  max-height: none;
  height: auto;
  width: auto;
}

.eg-footer-col-logo__tagline {
  font-size: 14px;
  line-height: 1.6;
  max-width: 22em;
  margin: 0;
  color: var(--text2);
  font-family: var(--serif);
}

.eg-footer-col-logo__accent {
  color: var(--mint);
}

.eg-footer-col h5 {
  margin-bottom: 14px;
}

.eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) h5 {
  color: var(--text2);
}

.eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) > a,
.eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) > button {
  display: block;
  font-size: 14px;
  color: var(--text3);
  cursor: pointer;
  padding: 3px 0;
  transition: color .18s;
  text-decoration: none;
  font-family: var(--serif);
  background: none;
  border: none;
  text-align: left;
}

.eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) > a:hover,
.eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) > button:hover {
  color: var(--text2);
}

.eg-footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.eg-footer-bottom p {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--text3);
}

.eg-footer-bottom p.eg-footer-copy {
  color: #dc2626;
}

.eg-footer-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35em 0.5em;
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-family: var(--serif);
  line-height: 1.5;
}

.eg-footer-copy__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-sizing: border-box;
}

.eg-footer-copy__box--symbol {
  font-size: 1.55em;
  font-weight: 900;
  line-height: 1;
  color: inherit;
}

/* inline-flex na .eg-footer-copy__box zjada spację między <a> a tekstem — tu zwykły przepływ + margines */
.eg-footer-copy__box--tail {
  display: inline;
}

.eg-footer-copy__tail-suffix {
  margin-left: 0.4em;
}

.eg-footer-copy a.eg-footer-copy__holon {
  color: var(--mint);
  text-decoration: none;
}

.eg-footer-copy a.eg-footer-copy__holon:hover {
  color: var(--mint2);
}

@media (max-width: 1024px) {
  .eg-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .eg-footer-col-logo {
    margin-bottom: 4px;
  }

  .eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) {
    text-align: center;
  }

  .eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) > a,
  .eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) > button {
    text-align: center;
  }

  .eg-footer-grid .eg-footer-col:not(.eg-footer-col-logo) h5 {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .eg-footer       { padding: 36px 0 24px; }
}


/* ============================================================
   Logo marki Element.Guru — static / dynamic / holonic / static_holonic (eg_render_site_logo_brand)
   Domyślnie skala z font-size rodzica .eg-logo; opcjonalnie .eg-logo-brand-inject--has-height (arg height).
   ============================================================ */

.eg-logo-brand-inject {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  width: max-content;
  max-width: 100%;
}

.eg-logo-brand-inject--has-height {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  overflow: visible;
}

.eg-logo-brand-inject--holonic.eg-logo-brand-inject--has-height {
  align-items: flex-start;
}

.eg-logo-brand-inject--has-height > .eg-logo-brand {
  flex: 0 1 auto;
  max-height: 100%;
}

/* Holonic: napis nad animowanym logo (ten sam układ co tekst; nie w DOM animacji) */
.eg-logo-brand-inject--holonic .eg-logo-brand__holon-shell {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: visible;
}

.eg-logo-brand-inject--holonic .eg-logo-brand {
  position: relative;
  z-index: 1;
}

/* Szerokość lustra = całe „Element.Guru”; podpis pod wordmarkiem, wyrównany w prawo */
.eg-logo-brand__holon-mirror {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  row-gap: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
}

/* Wrapper bez własnego font-size — margin w em liczy się od wordmarku, nie od 11px podpisu */
.eg-logo-brand__holon-line-wrap {
  width: 100%;
  align-self: stretch;
  margin-top: -0.26em;
  padding-top: 0;
  line-height: 0;
  overflow: visible;
}

.eg-logo-brand__holon-mirror-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  white-space: nowrap;
}

.eg-logo-brand__holon-mirror-el,
.eg-logo-brand__holon-mirror-dot,
.eg-logo-brand__holon-mirror-guru {
  visibility: hidden;
}

.eg-logo-brand__holon-mirror-dot {
  font-size: 1.55em;
}

.eg-logo-brand__holon-line {
  display: block;
  box-sizing: border-box;
  width: 100%;
  font-family: var(--sans);
  font-size: var(--eg-section-label-font-size);
  font-weight: 600;
  font-style: normal;
  line-height: 1;
  letter-spacing: var(--eg-section-label-tracking);
  text-align: right;
  text-transform: none;
  color: var(--mint);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.eg-logo:hover .eg-logo-brand__holon-line {
  color: var(--mint2);
}

.eg-logo-brand {
  display: inline-block;
  vertical-align: baseline;
}

.eg-logo-brand__stage {
  position: relative;
  display: inline-block;
  overflow: visible;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
}

.eg-logo-brand__rows-wrap {
  position: relative;
  z-index: 2;
  display: inline-block;
  isolation: isolate;
}

.eg-logo-brand__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  white-space: nowrap;
}

.eg-logo-brand__row--base {
  position: relative;
  z-index: 1;
}

.eg-logo-brand__row--front {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  width: 100%;
}

.eg-logo-brand__word-back {
  position: relative;
  z-index: 0;
}

.eg-logo-brand__word-front {
  position: relative;
}

.eg-logo-brand__el.eg-logo-brand__word-front {
  z-index: 4;
}

.eg-logo-brand__guru.eg-logo-brand__word-front {
  z-index: 6;
}

.eg-logo-brand__dot-slot--front {
  position: relative;
  z-index: 5;
}

.eg-logo-brand__el {
  color: var(--blue);
}

.eg-logo-brand__dot-slot {
  font-size: 1.55em;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.eg-logo-brand__dot-slot--front {
  color: transparent;
}

.eg-logo-brand__guru {
  color: var(--text2);
  font-style: normal;
}

.eg-logo-brand__trail {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.eg-logo-brand__particle {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.42em;
  height: 0.42em;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--mint);
  box-shadow:
    0 0 6px color-mix(in srgb, var(--mint) 55%, transparent),
    0 0 14px color-mix(in srgb, var(--mint) 35%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.eg-logo-brand__particle--depth-behind-guru,
.eg-logo-brand__particle--depth-behind-el {
  z-index: 3;
}

.eg-logo-brand__particle--depth-front-el {
  z-index: 5;
}

.eg-logo-brand__particle--depth-front-guru {
  z-index: 7;
}

.eg-logo-brand--static .eg-logo-brand__particle,
.eg-logo-brand--static .eg-logo-brand__trail {
  display: none;
}

.eg-logo-brand--static .eg-logo-brand__dot-slot {
  color: var(--mint);
}

/* Wariant PHP „static” — jeden rząd jak stare .eg-logo-inner */
.eg-logo-brand__row--static {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  white-space: nowrap;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.2;
}

.eg-logo-brand__dot--visible {
  font-size: 1.55em;
  color: var(--mint);
  user-select: none;
  pointer-events: none;
}

.eg-logo:hover .eg-logo-brand__el {
  color: var(--blue2);
}

.eg-logo:hover .eg-logo-brand__dot--visible {
  color: var(--mint2);
}

.eg-logo:hover .eg-logo-brand__guru {
  color: var(--zephyr);
}


/* ============================================================
   WORDPRESS GUTENBERG CONTENT
   ============================================================ */

.wp-block-image img {
  border-radius: var(--r);
}

.wp-block-quote {
  border-left: 3px solid var(--banana);
  padding-left: 24px;
  font-style: italic;
  color: var(--text2);
  margin: 32px 0;
}

.wp-block-separator {
  border-color: var(--border);
}

.entry-content p {
  color: var(--text2);
  margin-bottom: 18px;
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 40px;
  margin-bottom: 14px;
}

/* Legal pages: bardziej dokumentowy rytm, mniejsze nagłówki */
.eg-legal-page {
  max-width: 920px;
}

.eg-legal-page h2 {
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
  line-height: 1.28;
  margin-top: 28px;
  margin-bottom: 10px;
}

.eg-legal-page h3 {
  font-size: clamp(1.06rem, 1.7vw, 1.26rem);
  line-height: 1.35;
  margin-top: 20px;
  margin-bottom: 8px;
}

.eg-legal-page p,
.eg-legal-page li {
  line-height: 1.72;
}

.eg-legal-page > h2:first-of-type {
  margin-top: 6px;
}

.eg-legal-page table.eg-legal-table th,
.eg-legal-page table.eg-legal-table td {
  vertical-align: top;
  font-size: 0.97rem;
}

.eg-legal-page .eg-legal-phone-note {
  display: block;
  line-height: 1.42;
  margin-top: 0.25em;
}

/* Body padding dla sticky player (gdy aktywny) */
body.eg-player-active {
  padding-bottom: 64px;
}


/* ============================================================
   MODAL
   ============================================================ */

.eg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.eg-modal.open {
  display: flex;
}

.eg-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.eg-modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--rl);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: eg-fade-up .25s ease;
}

.eg-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.eg-modal-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.eg-modal-close {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .18s;
  flex-shrink: 0;
  line-height: 1;
}

.eg-modal-close:hover {
  color: var(--text);
  background: var(--bg4);
}

.eg-modal-body {
  padding: 24px 32px;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}

.eg-modal-footer {
  padding: 16px 32px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .eg-modal-header { padding: 20px 20px 16px; }
  .eg-modal-body   { padding: 16px 20px; }
  .eg-modal-footer { padding: 12px 20px 20px; }
}


/* ============================================================
   PRZEŁĄCZNIK JĘZYKA
   ============================================================ */

.eg-lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
}

.eg-lang-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 5px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: all .18s;
  border: 1px solid transparent;
}

.eg-lang-btn:hover {
  color: var(--text);
  background: var(--bg3);
  border-color: var(--border);
}

.eg-lang-btn.active,
.eg-lang-btn[aria-current="true"] {
  color: var(--blue);
  background: rgba(178, 201, 218, 0.08);
  border-color: rgba(178, 201, 218, 0.2);
}

/* Polylang generuje <ul> — stylujemy */
.eg-lang-switcher ul {
  display: flex;
  gap: 2px;
  list-style: none;
}

.eg-lang-switcher ul li a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 5px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: all .18s;
  border: 1px solid transparent;
  display: inline-block;
}

.eg-lang-switcher ul li.current-lang a {
  color: var(--blue);
  background: rgba(178, 201, 218, 0.08);
  border-color: rgba(178, 201, 218, 0.2);
}

.eg-lang-switcher ul li a:hover {
  color: var(--text);
  background: var(--bg3);
  border-color: var(--border);
}

/* Przełącznik języka (natywny, <details>) */
.eg-lang-dd {
  position: relative;
}

.eg-lang-dd__btn {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  transition: background .18s, border-color .18s, color .18s;
}

.eg-lang-dd__btn::-webkit-details-marker {
  display: none;
}

.eg-lang-dd__btn:hover,
.eg-lang-dd[open] .eg-lang-dd__btn {
  color: var(--mint);
  border-color: rgba(152, 255, 217, 0.35);
  background: var(--bg3);
}

.eg-lang-dd__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.eg-lang-dd__panel {
  position: absolute;
  left: 50%;
  right: auto;
  top: calc(100% + 8px);
  z-index: 80;
  min-width: 220px;
  max-width: min(220px, calc(100vw - 24px));
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.eg-lang-dd--open-up > .eg-lang-dd__panel {
  top: auto;
  bottom: calc(100% + 8px);
}

#eg-header .eg-nav-right .eg-lang-dd {
  overflow: visible;
}

.eg-lang-dd__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}

.eg-lang-dd__opt:hover {
  background: var(--bg3);
  border-color: var(--border);
  color: var(--mint);
}

.eg-lang-dd__opt.is-current {
  color: var(--blue);
  background: rgba(178, 201, 218, 0.1);
  border-color: rgba(178, 201, 218, 0.25);
}

.eg-lang-dd__flag {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.eg-lang-dd__flag .eg-lang-flag,
.eg-lang-flag {
  display: inline-block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.eg-lang-dd__flag--current {
  font-size: 20px;
}

.eg-lang-dd__code {
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.eg-lang-dd__code--current {
  font-size: 10px;
}

@media (max-width: 1024px) {
  #eg-header .eg-nav-right .eg-lang-dd__panel {
    min-width: 200px;
    max-width: min(220px, calc(100vw - 20px));
  }
}

#eg-mobile-menu .eg-lang-dd {
  width: 100%;
}

#eg-mobile-menu .eg-lang-dd__btn {
  width: 100%;
  justify-content: flex-start;
  padding: 0 14px;
  gap: 10px;
}

#eg-mobile-menu .eg-lang-dd__panel {
  position: relative;
  top: 0;
  left: 0;
  right: auto;
  transform: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-top: 10px;
  max-height: 55vh;
}


/* ============================================================
   PASEK SUGESTII JĘZYKA (Accept-Language)
   ============================================================ */

html.eg-lang-suggest-on {
  --eg-lang-suggest-h: 0px;
}

.eg-lang-suggest-bar {
  position: fixed;
  top: var(--eg-header-chrome-h, 102px);
  left: 0;
  right: 0;
  z-index: 999;
  background: color-mix(in srgb, var(--bg2) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--mint) 22%, var(--border));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.admin-bar .eg-lang-suggest-bar {
  top: calc(32px + var(--eg-header-chrome-h, 102px));
}

@media screen and (max-width: 782px) {
  body.admin-bar .eg-lang-suggest-bar {
    top: calc(46px + var(--eg-header-chrome-h, 102px));
  }
}

html.eg-lang-suggest-on .eg-main {
  padding-top: calc(var(--eg-header-chrome-h, 102px) + var(--eg-lang-suggest-h));
}

body.admin-bar.eg-lang-suggest-on .eg-main {
  padding-top: calc(32px + var(--eg-header-chrome-h, 102px) + var(--eg-lang-suggest-h));
}

@media screen and (max-width: 782px) {
  body.admin-bar.eg-lang-suggest-on .eg-main {
    padding-top: calc(46px + var(--eg-header-chrome-h, 102px) + var(--eg-lang-suggest-h));
  }
}

.eg-lang-suggest-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.eg-lang-suggest-bar__text {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2);
  flex: 1 1 220px;
}

.eg-lang-suggest-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eg-lang-suggest-bar .eg-btn-primary,
.eg-lang-suggest-bar .eg-btn-secondary {
  padding: 7px 14px;
  font-size: 12px;
}


/* ============================================================
   PRZEŁĄCZNIK JĘZYKA W STOPCE
   ============================================================ */

.eg-footer-col__lang {
  margin-bottom: 14px;
  overflow: visible;
}

.eg-footer-lang {
  overflow: visible;
}

#eg-footer .eg-lang-dd--footer {
  overflow: visible;
}

#eg-footer .eg-lang-dd--footer > .eg-footer-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: auto;
  padding: 7px 12px;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.eg-footer-lang__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--text3);
}

.eg-footer-lang__flag {
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.eg-footer-lang__flag .eg-lang-flag {
  width: 28px;
  height: 18px;
}

.eg-footer-lang__name {
  font-weight: 500;
}

#eg-footer .eg-lang-dd--footer .eg-lang-dd__panel {
  left: 0;
  transform: none;
}

.eg-footer-linki-impressum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}

.eg-footer-linki-impressum .eg-footer-lang {
  width: 100%;
  margin-bottom: 2px;
}


/* ============================================================
   FOOTER SOCIAL ICONS (nad kolumnami) — kółka + glow marki
   ============================================================ */

.eg-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 0 4px;
  row-gap: 12px;
}

.eg-footer-social a,
.eg-bookstores-row--grid a.eg-footer-social-link {
  position: relative;
  margin: 0 10px;
  border-radius: 50%;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease;
  background: transparent;
  color: var(--icon, var(--color));
  font-size: 1.8em;
  line-height: 1;
  isolation: isolate;
}

/* Tło + poświata na jednej warstwie (opacity) — bez rozjazdu background vs filter */
.eg-footer-social a::before,
.eg-bookstores-row--grid a.eg-footer-social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: var(--color-hover, var(--color));
  box-shadow:
    0 0 6px color-mix(in srgb, var(--glow-color, var(--color-hover, var(--color))) 85%, transparent),
    0 0 18px color-mix(in srgb, var(--glow-color, var(--color-hover, var(--color))) 55%, transparent),
    0 0 36px color-mix(in srgb, var(--glow-color, var(--color-hover, var(--color))) 35%, transparent);
  transition: opacity 0.2s ease;
}

.eg-footer-social a:hover::before,
.eg-bookstores-row--grid a.eg-footer-social-link:hover::before {
  opacity: 1;
}

/* Lekkie „odbicie” pod kółkiem — maska elipsy, bez sztucznego kwadratu */
.eg-footer-social a::after,
.eg-bookstores-row--grid a.eg-footer-social-link::after {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  width: 42px;
  height: 18px;
  transform: translateX(-50%) scaleY(-1);
  border-radius: 50%;
  background: radial-gradient(
    ellipse 80% 100% at 50% 100%,
    color-mix(in srgb, var(--icon, var(--color)) 28%, transparent),
    transparent 72%
  );
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  filter: blur(0.5px);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.eg-footer-social a:hover::after,
.eg-bookstores-row--grid a.eg-footer-social-link:hover::after {
  opacity: 0.65;
  background: radial-gradient(
    ellipse 85% 100% at 50% 100%,
    color-mix(in srgb, var(--color-hover, var(--icon, var(--color))) 45%, transparent),
    transparent 70%
  );
}

.eg-footer-social a i {
  line-height: 1;
  position: relative;
  z-index: 1;
}

.eg-footer-social a svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
  position: relative;
  z-index: 1;
}

.eg-footer-social a:hover,
.eg-bookstores-row--grid a.eg-footer-social-link:hover {
  /* --color-hover: dla marek #000 (białe tło + #050801 jak YouTube itd.) */
  color: var(--icon-hover, #050801);
}

/* Ta sama siatka ikon co w stopce, układ pionowy (np. O projekcie → Kontakt) */
.eg-footer-social--vertical {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  padding-top: 4px;
  row-gap: 14px;
}

.eg-footer-social--vertical a.eg-footer-social-link {
  margin-left: 0;
  margin-right: 0;
}

/* O projekcie → Kontakt: 2 ikony na wiersz, siatka na szerokość kolumny (wyrównanie do nagłówka) */
.eg-footer-social--kontakt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  width: 100%;
  max-width: 100%;
  justify-items: center;
  align-items: center;
  padding: 6px 0 0;
  flex-wrap: unset;
  flex-direction: unset;
  row-gap: 18px;
}

.eg-footer-social--kontakt .eg-footer-social-link {
  margin: 0;
}

/* /linki/ — hub: wiersze 2 + 3 + 2 + 3 + 1; 50px od paska i od stopki */
.eg-linki-hub-wrap {
  padding-top: 50px;
  padding-bottom: 50px;
}

.eg-linki-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
}

.eg-linki-hub__row.eg-footer-social {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 0 22px;
  column-gap: clamp(18px, 5vw, 32px);
  row-gap: 0;
}

.eg-linki-hub__row.eg-footer-social .eg-footer-social-link {
  margin: 0;
}

.eg-linki-hub__row.eg-footer-social:last-child {
  margin-bottom: 0;
}


/* ============================================================
   PAGINACJA
   ============================================================ */

.eg-pagination {
  margin: 48px 0 24px;
  display: flex;
  justify-content: center;
}

.eg-pagination .page-numbers {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
}

.eg-pagination .page-numbers li a,
.eg-pagination .page-numbers li span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text2);
  text-decoration: none;
  transition: all .18s;
  display: inline-block;
}

.eg-pagination .page-numbers li a:hover {
  color: var(--text);
  background: var(--bg3);
  border-color: var(--border2);
}

.eg-pagination .page-numbers li span.current {
  background: rgba(178, 201, 218, 0.08);
  color: var(--blue);
  border-color: rgba(178, 201, 218, 0.3);
}

.eg-pagination .page-numbers li span.dots {
  border-color: transparent;
  background: none;
  color: var(--text3);
}


/* ============================================================
   SKIP LINK (dostępność)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--banana);
  color: #1a1208;
  text-decoration: none;
  transition: top .2s;
}

.skip-link:focus {
  top: 16px;
}


/* ============================================================
   PAGE HEADER (wspólny dla szablonów)
   ============================================================ */

.eg-page-header {
  padding: 64px 0 40px;
  max-width: 720px;
}

.eg-page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--mint);
  margin: 8px 0 16px;
}

.eg-page-header-lead {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--banana);
  margin: 0;
}


/* ============================================================
   TREŚCI — Karty formatów
   ============================================================ */

.eg-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 80px;
}

@media (max-width: 960px) {
  .eg-formats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .eg-formats-grid { grid-template-columns: 1fr; }
}

.eg-format-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s;
}

.eg-format-card:hover {
  border-color: var(--border2);
}

.eg-format-card--wip {
  opacity: .55;
}

.eg-format-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.eg-format-icon {
  font-size: 22px;
  line-height: 1;
}

.eg-format-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid currentColor;
}

.eg-badge-wip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  color: var(--text3);
  border: 1px solid var(--border);
  margin-left: auto;
}

.eg-format-desc {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  margin: 0;
  flex: 1;
}

.eg-format-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.eg-format-recent-list li {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.eg-format-recent-list li a {
  color: var(--text2);
  text-decoration: none;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}

.eg-format-recent-list li a:hover {
  color: var(--text);
}

.eg-dur {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  flex-shrink: 0;
}

.eg-format-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .15s;
  margin-top: auto;
}

.eg-format-link:hover {
  color: var(--blue2);
}

.eg-format-wip-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text3);
  margin: 0;
  font-style: italic;
}

/* ── Treści hub (/tresci/) ─────────────────────────────────── */

.eg-page-tresci .eg-page-header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.eg-page-tresci .eg-page-header-lead {
  white-space: pre-line;
  margin-inline: auto;
}

.eg-tresci-section-heading {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  text-align: center;
  margin: 0 0 24px;
}

.eg-tresci-section-divider {
  width: 100%;
  margin: 40px 0 36px;
}

.eg-tresci-formats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 8px;
}

.eg-tresci-formats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.eg-page-tresci .eg-tresci-formats-row .eg-tresci-format-card {
  flex: 0 1 calc((100% - 40px) / 3);
  max-width: 380px;
  min-width: 260px;
}

@media (max-width: 860px) {
  .eg-page-tresci .eg-tresci-formats-row .eg-tresci-format-card {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "icon title meta arrow"
      "desc desc desc desc"
      "note note note note";
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .eg-page-tresci .eg-tresci-format-card .eg-wiedza-card-top {
    display: contents;
  }

  .eg-page-tresci .eg-tresci-format-card .eg-wiedza-icon {
    grid-area: icon;
    font-size: 18px;
  }

  .eg-page-tresci .eg-tresci-format-card .eg-wiedza-title {
    grid-area: title;
    margin: 0;
    font-size: 1rem;
    min-width: 0;
  }

  .eg-page-tresci .eg-tresci-format-card .eg-wiedza-count,
  .eg-page-tresci .eg-tresci-format-card .eg-badge-wip {
    grid-area: meta;
    margin-left: 0;
    justify-self: end;
    white-space: nowrap;
  }

  .eg-page-tresci .eg-tresci-format-card .eg-wiedza-arrow {
    grid-area: arrow;
    margin-top: 0;
    font-size: 0;
  }

  .eg-page-tresci .eg-tresci-format-card .eg-wiedza-arrow::after {
    content: '→';
    font-family: var(--sans);
    font-size: 16px;
    color: var(--mint);
  }

  .eg-page-tresci .eg-tresci-format-card .eg-wiedza-desc {
    grid-area: desc;
    display: none;
    width: 100%;
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.55;
  }

  .eg-page-tresci .eg-tresci-format-card .eg-format-wip-note {
    grid-area: note;
    display: none;
    width: 100%;
    margin: 8px 0 0;
    font-size: 13px;
  }

  .eg-page-tresci .eg-tresci-format-card.is-expanded .eg-wiedza-desc {
    display: block;
  }

  .eg-page-tresci .eg-tresci-format-card.is-expanded .eg-format-wip-note {
    display: block;
  }
}


/* ============================================================
   WIEDZA — hub
   ============================================================ */

.eg-wiedza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

@media (max-width: 860px) {
  .eg-wiedza-grid { grid-template-columns: 1fr; }
}

.eg-wiedza-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

button.eg-tresci-format-card {
  appearance: none;
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.eg-wiedza-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}

.eg-wiedza-card--wip {
  opacity: .55;
}

.eg-wiedza-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eg-wiedza-icon {
  font-size: 32px;
  line-height: 1;
  color: var(--mint);
}

.eg-wiedza-icon i {
  display: block;
  line-height: 1;
}

.eg-wiedza-count {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .06em;
}

.eg-wiedza-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--mint);
  margin: 0;
}

.eg-wiedza-desc {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  margin: 0;
  flex: 1;
}

.eg-wiedza-arrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .04em;
  margin-top: 4px;
}

/* Ostatnio dodane (Wiedza hub) */

.eg-wiedza-latest {
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.eg-wiedza-latest-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
}

.eg-wiedza-recent {
  text-align: center;
}

.eg-wiedza-recent .eg-wiedza-latest-title {
  margin-bottom: 8px;
}

.eg-wiedza-recent-label {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.eg-wiedza-recent-label:first-of-type {
  margin-top: 16px;
}

.eg-enc-chips--wiedza-recent {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
}

.eg-enc-chips--wiedza-recent .eg-enc-chip {
  flex: 0 1 280px;
  max-width: 100%;
  text-align: left;
}

.eg-wiedza-recent-books {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 8px;
}

.eg-wiedza-recent-book {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  transition: border-color .18s, transform .18s;
  line-height: 0;
}

.eg-wiedza-recent-book:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.eg-wiedza-recent-book img {
  display: block;
  width: auto;
  max-width: min(140px, 28vw);
  height: auto;
  max-height: 210px;
  object-fit: cover;
}

.eg-wiedza-recent-book--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(140px, 28vw);
  aspect-ratio: 2/3;
  font-size: 48px;
  background: var(--bg2);
}

.eg-enc-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .eg-enc-chips { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .eg-enc-chips { grid-template-columns: 1fr; }
}

.eg-enc-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .18s, background .18s;
}

.eg-enc-chip:hover {
  border-color: var(--border2);
  background: var(--bg3);
}

.eg-enc-chip-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--banana);
}

.eg-enc-chip-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text3);
}

.eg-enc-chip-skrot {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   ENCYKLOPEDIA — lista haseł
   ============================================================ */

.eg-enc-mission-box {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--mint) 42%, transparent);
  background: rgba(0, 0, 0, 0.22);
  text-align: center;
}

.eg-enc-mission-box__text {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--banana);
  margin: 0;
}

.eg-enc-mission-box__text strong {
  font-weight: 700;
  color: var(--mint);
}

.eg-enc-search-wrap {
  margin-bottom: 16px;
}

.eg-search--full {
  width: 100%;
  max-width: 540px;
}

.eg-enc-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.eg-enc-filter-rail {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.eg-enc-rail-viewport {
  overflow: hidden;
}

.eg-enc-cats--rail {
  --eg-pill-h: 32px;
  --eg-row-gap: 8px;
  --eg-col-gap: 10px;
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  align-content: flex-start;
  max-height: calc((var(--eg-rows, 2) * var(--eg-pill-h)) + ((var(--eg-rows, 2) - 1) * var(--eg-row-gap)));
  overflow: hidden;
  gap: var(--eg-row-gap) var(--eg-col-gap);
  margin-bottom: 0;
  transform: none !important;
  transition: none;
  will-change: auto;
}

.eg-enc-rail-nav {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.eg-enc-rail-nav:disabled {
  opacity: .35;
  cursor: default;
}

.eg-enc-meta-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 10px;
}

.eg-enc-cat-pill {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 40px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: all .18s;
  letter-spacing: .04em;
  width: max-content;
  min-height: var(--eg-pill-h, 32px);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.eg-enc-cat-pill:hover,
.eg-enc-cat-pill.is-active {
  background: rgba(152, 255, 217, 0.1);
  border-color: rgba(152, 255, 217, 0.45);
  color: var(--mint);
}

a.eg-enc-cat-pill {
  text-decoration: none;
  box-sizing: border-box;
}

.eg-enc-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  padding: 8px 0 48px;
  max-width: 720px;
  margin: 0 auto;
}

.eg-enc-page-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.04em;
}

.eg-enc-page-btn--disabled {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text3);
  opacity: 0.45;
  user-select: none;
}

.eg-enc-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--border);
}

.eg-enc-alpha-link {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text2);
  text-decoration: none;
  transition: background .15s, color .15s;
  overflow: hidden;
  box-sizing: border-box;
}

/* "Wszystkie" / "All" / "Alle" must not share the fixed 36px letter cell (overlap root cause). */
.eg-enc-alpha-link--all {
  width: auto;
  min-width: 36px;
  flex: 0 0 auto;
  padding: 0 12px;
  overflow: visible;
  white-space: nowrap;
}

.eg-enc-alpha-link:hover {
  background: var(--bg3);
  color: var(--banana);
}

.eg-enc-alpha-link.is-active {
  background: var(--bg3);
  color: var(--banana);
}

.eg-enc-alpha-link.is-disabled {
  opacity: .45;
  pointer-events: none;
}

/* Grupy alfabetyczne */

.eg-enc-group {
  margin-bottom: 40px;
}

.eg-enc-letter-marker {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--blueberry);
  line-height: 1;
  margin-bottom: 16px;
  user-select: none;
}

.eg-enc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eg-enc-item-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  row-gap: 4px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--eg-enc-border, var(--border));
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .18s, background .18s;
}

.eg-enc-item-link:hover {
  border-color: var(--border2);
  background: var(--bg3);
}

.eg-enc-item-header {
  grid-column: 1;
  grid-row: 1;
}

.eg-enc-item-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--banana);
}

.eg-enc-item-skrot {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--text2);
  margin: 0;
}

.eg-enc-item-read {
  grid-column: 2;
  grid-row: 1 / span 3;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  align-self: center;
  white-space: nowrap;
  letter-spacing: .04em;
}

@media (max-width: 600px) {
  .eg-enc-item-link {
    grid-template-columns: 1fr;
  }
  .eg-enc-item-read {
    grid-column: 1;
    grid-row: auto;
  }
}


/* ============================================================
   KSIĘGOZBIÓR
   ============================================================ */

.eg-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

/* Księgozbiór — „Wszystkie pozycje”: pełna szerokość w `.eg-wrap` (wcześniej max 1100px ściskało karty) */
.eg-ksz-all-books-inner {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.eg-ksz-section-title.eg-ksz-all-books-heading {
  text-align: center;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.eg-ksz-all-books-inner .eg-ksz-grid-empty {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.eg-books-grid.eg-ksz-books-grid {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
  justify-content: stretch;
}

@media (max-width: 900px) {
  .eg-books-grid.eg-ksz-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .eg-books-grid.eg-ksz-books-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .eg-books-grid:not(.eg-ksz-books-grid) { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .eg-books-grid:not(.eg-ksz-books-grid) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .eg-books-grid:not(.eg-ksz-books-grid) { grid-template-columns: 1fr; }
}

.eg-book-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
  scroll-margin-top: 96px;
}

.eg-book-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.eg-book-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eg-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-book-cover--empty {
  font-size: 40px;
}

.eg-book-body {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.eg-book-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.eg-book-author {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text2);
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.45;
}

.eg-book-desc {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text2);
  margin: 0;
  flex: 1;
}

.eg-book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.eg-btn-sm {
  padding: 3.5px 14px;
  font-size: var(--eg-btn-font-size);
  margin-top: 8px;
  align-self: flex-start;
}

.eg-book-cover-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.eg-book-cover-link:hover .eg-book-cover {
  opacity: 0.92;
}

.eg-book-title {
  margin: 0;
}

.eg-book-title a {
  color: inherit;
  text-decoration: none;
}

.eg-book-title a:hover {
  text-decoration: underline;
}

.eg-books-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .eg-books-featured { grid-template-columns: 1fr; }
}

/* ---- POLECANE — układ pionowy, wszystko wyśrodkowane ---- */
.eg-book-card--featured {
  align-items: center;
  text-align: center;
}

.eg-book-card--featured .eg-book-body {
  padding-bottom: 20px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.eg-book-card--featured .eg-book-cover-link {
  display: block;
  width: fit-content;
  max-width: min(168px, 55vw);
  margin-left: auto;
  margin-right: auto;
  padding: 14px 14px 10px;
  box-sizing: border-box;
}

.eg-book-card--featured .eg-book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
}

.eg-book-card--featured .eg-book-tags {
  justify-content: center;
}

.eg-book-card--featured .eg-btn-sm {
  align-self: center;
}

/* ---- WSZYSTKIE POZYCJE — układ 4-wierszowy ---- */
.eg-book-card--grid {
  flex-direction: column;
  align-items: stretch;
  padding: 18px 18px 16px;
  gap: 6px;
}

/* 1: tytuł, 2: autor — wyśrodkowane */
.eg-book-card--grid > .eg-book-title {
  text-align: center;
  margin: 0;
}

.eg-book-card--grid > .eg-book-author {
  text-align: center;
  margin: 0 0 4px;
}

/* 3: kolumna okładka + kolumna opis */
.eg-book-card__split {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex: 1;
  margin-top: 6px;
}

.eg-book-card--grid .eg-book-cover-link {
  flex: 0 0 auto;
  align-self: center;
  padding: 0;
  box-sizing: border-box;
}

.eg-book-card--grid .eg-book-cover {
  width: 140px;
  max-width: 32vw;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  max-height: 220px;
  border-radius: 8px;
}

.eg-book-card--grid .eg-book-cover img {
  object-fit: contain;
}

.eg-book-card__split-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eg-book-card--grid .eg-book-desc {
  margin: 0;
}

/* 4: przyciski — wyśrodkowane */
.eg-book-card--grid > .eg-book-actions {
  margin-top: 12px;
}

.eg-book-actions--center {
  justify-content: center;
}

@media (max-width: 420px) {
  .eg-book-card__split {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .eg-book-card--grid .eg-book-cover {
    width: 136px;
    max-width: 52vw;
    max-height: 210px;
  }

  .eg-book-card__split-text {
    text-align: center;
    align-items: center;
  }

  .eg-book-card--grid .eg-book-tags {
    justify-content: center;
  }
}

.eg-ksz-section-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.eg-ksz-empty-hub__text {
  max-width: 52rem;
  margin: 0 0 12px;
  line-height: 1.55;
  color: var(--text2);
}

.eg-ksz-empty-hub__admin {
  margin: 20px 0 0;
}

.eg-ksz-empty-hub__hint {
  font-size: 14px;
}

.eg-ksz-search__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .eg-ksz-search__row { grid-template-columns: 1fr; }
}

.eg-ksz-search__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-ksz-search__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
}

.eg-ksz-search__actions {
  margin-top: 4px;
}

.eg-ksz-search-shell {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg2);
  overflow: hidden;
}

.eg-ksz-search-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  border: none;
  background: var(--bg3);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.eg-ksz-search-toggle:hover {
  background: var(--bg2);
  color: var(--mint);
}

.eg-ksz-search-toggle__chev {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  flex-shrink: 0;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.eg-ksz-search-toggle[aria-expanded="true"] .eg-ksz-search-toggle__chev {
  transform: rotate(-135deg);
}

.eg-ksz-search-panel {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--border);
}

.eg-ksz-search-panel[hidden] {
  display: none !important;
}

.eg-ksz-grid-empty {
  text-align: left;
  padding: 12px 0 40px;
  color: var(--text2);
}

.eg-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.eg-book-actions--hero {
  margin-top: 16px;
}

.eg-book-actions--modal {
  margin-top: 12px;
}

.eg-book-actions--icon-only {
  flex-wrap: nowrap;
  gap: 6px;
}

.eg-book-actions--icon-only .eg-book-action {
  position: relative;
  padding: 8px 10px;
  min-width: 38px;
  justify-content: center;
}

.eg-book-actions--icon-only .eg-book-action > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eg-book-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.eg-book-action:hover {
  border-color: var(--text3);
  background: var(--bg2);
}

.eg-book-action i {
  font-size: 14px;
  opacity: 0.85;
}

html.eg-ksz-modal-open,
html.eg-ksz-modal-open body {
  overflow: hidden;
}

.eg-ksz-modal[hidden] {
  display: none !important;
}

.eg-ksz-modal:not([hidden]) {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100200;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 32px;
  overflow-y: auto;
  box-sizing: border-box;
}

.eg-ksz-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.eg-ksz-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  min-height: 160px;
  max-height: min(85vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.eg-ksz-modal__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0;
  padding: 20px 48px 12px 20px;
  border-bottom: 1px solid var(--border);
}

/* Zamknięcie modala: bez obramowania i tła (nadpisuje style globalne / GP dla button) */
.eg-ksz-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  color: var(--text2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font: inherit;
  line-height: 0;
}

.eg-ksz-modal__close:hover,
.eg-ksz-modal__close:focus,
.eg-ksz-modal__close:focus-visible,
.eg-ksz-modal__close:active {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.eg-ksz-modal__close:hover {
  color: var(--text);
}

.eg-ksz-modal__close:focus:not(:focus-visible) {
  outline: none;
}

.eg-ksz-modal__close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  color: var(--text);
}

#eg-page-wrap .eg-ksz-modal__close,
#eg-page-wrap .eg-ksz-modal__close:hover,
#eg-page-wrap .eg-ksz-modal__close:focus,
#eg-page-wrap .eg-ksz-modal__close:active {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.eg-ksz-modal__close-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
  background: transparent !important;
  border: 0 !important;
}

.eg-ksz-modal__body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.eg-ksz-modal__loading {
  margin: 0;
  color: var(--text2);
}

.eg-ksz-hits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eg-ksz-hit {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.eg-ksz-hit:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.eg-ksz-hit__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

@media (max-width: 520px) {
  .eg-ksz-hit { grid-template-columns: 1fr; }
}

.eg-ksz-hit__cover {
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
}

.eg-ksz-hit__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-ksz-hit__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.eg-ksz-hit__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.eg-ksz-hit__author {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text2);
  margin: 0 0 8px;
  line-height: 1.45;
}

.eg-ksz-hit__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text2);
  margin: 0 0 8px;
}

.eg-ksz-hit__page {
  margin-top: 12px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 20px !important;
  font-size: 14px;
}

.eg-ksz-empty {
  margin: 0 0 16px;
  color: var(--text2);
}

.eg-ksz-contact-hint {
  margin-top: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--border2);
  background: var(--bg3);
}

.eg-ksz-contact-hint__lead {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
}

.eg-ksz-contact-hint__instr {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text2);
}

/* pojedyncza książka */
.eg-book-single-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 12px;
}

.eg-book-single-header {
  display: grid;
  grid-template-columns: min(220px, 38%) 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .eg-book-single-header {
    grid-template-columns: 1fr;
  }
}

.eg-book-single-cover-wrap {
  margin: 0;
}

.eg-book-single-cover {
  aspect-ratio: 2/3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.eg-book-single-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-book-single-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 48px;
}

.eg-book-single-author {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text2);
  margin: 8px 0 0;
  line-height: 1.45;
}

.eg-book-single-lead {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text2);
  margin: 14px 0 18px;
  max-width: 42rem;
}

.eg-book-single-lead p {
  margin: 0 0 0.65em;
}

.eg-book-single-lead p:last-child {
  margin-bottom: 0;
}

.eg-book-single-desc p {
  margin: 0 0 0.75em;
}

.eg-book-more-covers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eg-book-more-cover {
  display: block;
  width: 88px;
  height: 132px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  flex-shrink: 0;
}

.eg-book-more-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-book-more-cover--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 28px;
}

/* Formularz polecajki */

.eg-suggest-section {
  border-top: 1px solid var(--border);
}

.eg-suggest-box {
  max-width: 600px;
}

.eg-suggest-box h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--mint);
  margin: 0 0 10px;
}

.eg-suggest-box > p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text2);
  margin: 0 0 28px;
  line-height: 1.65;
}

.eg-suggest-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eg-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-form-row label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}

.eg-input,
.eg-textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  transition: border-color .18s;
  outline: none;
}

.eg-input:focus,
.eg-textarea:focus {
  border-color: rgba(21, 176, 166, 0.45);
  outline: none;
  box-shadow: 0 0 0 1px rgba(21, 176, 166, 0.25);
}

.eg-textarea {
  resize: vertical;
  min-height: 80px;
}

.eg-form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.eg-form-msg {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text2);
}

.eg-form-msg--ok    { color: var(--mint); }
.eg-form-msg--error { color: var(--accent); }

.eg-suggest-login {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text2);
}

.eg-suggest-login a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(178,201,218,.4);
}

.eg-suggest-login a:hover {
  color: var(--blue2);
}


/* ============================================================
   MENTORZY
   ============================================================ */

.eg-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  margin-left: 5px;
  vertical-align: middle;
}

/* Kolory kategorii mentorow (tabs + karty) */
.eg-tab--cat-psychologia { --eg-mentor-cat: #a882ff; border-color: rgba(168, 130, 255, 0.45); color: #d9c8ff; }
.eg-tab--cat-duchowosc   { --eg-mentor-cat: #fac15e; border-color: rgba(250, 193, 94, 0.45); color: #ffe3b0; }
.eg-tab--cat-codziennosc { --eg-mentor-cat: #60d6ad; border-color: rgba(96, 214, 173, 0.45); color: #bff7df; }
.eg-tab--cat-fizycznosc  { --eg-mentor-cat: #49a9ff; border-color: rgba(73, 169, 255, 0.45); color: #c5e7ff; }
.eg-tab--cat-biznes      { --eg-mentor-cat: #ff926b; border-color: rgba(255, 146, 107, 0.45); color: #ffd2c0; }
.eg-tab--cat-finanse     { --eg-mentor-cat: #66dd72; border-color: rgba(102, 221, 114, 0.45); color: #caf7cf; }
.eg-tab--cat-zdrowie     { --eg-mentor-cat: #40e4d3; border-color: rgba(64, 228, 211, 0.45); color: #b8f9f2; }
.eg-tab--cat-relaks      { --eg-mentor-cat: #ff96d6; border-color: rgba(255, 150, 214, 0.45); color: #ffd3ef; }

.eg-mentor-main .eg-tab--cat-psychologia[aria-selected="true"],
.eg-mentor-main .eg-tab--cat-duchowosc[aria-selected="true"],
.eg-mentor-main .eg-tab--cat-codziennosc[aria-selected="true"],
.eg-mentor-main .eg-tab--cat-fizycznosc[aria-selected="true"],
.eg-mentor-main .eg-tab--cat-biznes[aria-selected="true"],
.eg-mentor-main .eg-tab--cat-finanse[aria-selected="true"],
.eg-mentor-main .eg-tab--cat-zdrowie[aria-selected="true"],
.eg-mentor-main .eg-tab--cat-relaks[aria-selected="true"] {
  background: color-mix(in srgb, var(--eg-mentor-cat) 62%, transparent) !important;
  color: #000 !important;
  border-color: color-mix(in srgb, var(--eg-mentor-cat) 74%, transparent) !important;
}

.eg-mentor-main .eg-tabs {
  margin-top: 20px;
}

.eg-mentor-lang-note {
  margin: 14px 0 34px;
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
  color: #e57373;
  font-size: 14px;
  line-height: 1.5;
}

.eg-mentor-divider-bottom {
  margin: 14px 0 42px;
}

.eg-mentors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 28px;
}

@media (max-width: 1100px) {
  .eg-mentors-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .eg-mentors-grid { grid-template-columns: 1fr; }
}

.eg-mentor-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "avatar body"
    "links links";
  column-gap: 18px;
  row-gap: 10px;
  align-items: flex-start;
  transition: border-color .2s;
}

.eg-mentor-card:hover {
  border-color: var(--border2);
}

.eg-mentor-avatar {
  grid-area: avatar;
  width: 180px !important;
  height: 180px !important;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg4);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eg-mentor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 900px) {
  .eg-mentor-avatar {
    width: 140px !important;
    height: 140px !important;
  }
}

.eg-mentor-avatar-initials {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text2);
}

.eg-mentor-body {
  grid-area: body;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  text-align: left;
}

.eg-mentor-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.eg-mentor-zawod {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .05em;
  margin: 0;
  text-transform: uppercase;
}

.eg-mentor-opis {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text2);
  margin: 4px 0 0;
}

.eg-mentor-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  justify-content: center;
  width: 100%;
}

.eg-mentor-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text2);
  text-decoration: none;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}

.eg-mentor-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.eg-mentor-link--label {
  background: rgba(178, 201, 218, 0.06);
}

.eg-mentor-link.brand-facebook {
  background: rgba(24, 119, 242, 0.18);
  border-color: rgba(24, 119, 242, 0.55);
  color: #dce9ff;
}

.eg-mentor-link.brand-instagram {
  background: linear-gradient(120deg, rgba(245, 133, 41, 0.18), rgba(131, 58, 180, 0.2));
  border-color: rgba(221, 42, 123, 0.5);
  color: #ffe6f4;
}

.eg-mentor-link.brand-youtube {
  background: rgba(255, 0, 0, 0.16);
  border-color: rgba(255, 0, 0, 0.5);
  color: #ffdede;
}

.eg-mentor-link.brand-website {
  background: rgba(178, 201, 218, 0.08);
  border-color: rgba(178, 201, 218, 0.36);
  color: var(--blue2);
}

.eg-mentor-link.brand-custom {
  background: rgba(255, 255, 255, 0.04);
}

.eg-mentor-card--cat-psychologia { background: rgba(168, 130, 255, 0.12); border-color: rgba(168, 130, 255, 0.32); }
.eg-mentor-card--cat-duchowosc   { background: rgba(250, 193, 94, 0.11); border-color: rgba(250, 193, 94, 0.30); }
.eg-mentor-card--cat-codziennosc { background: rgba(96, 214, 173, 0.10); border-color: rgba(96, 214, 173, 0.28); }
.eg-mentor-card--cat-fizycznosc  { background: rgba(73, 169, 255, 0.10); border-color: rgba(73, 169, 255, 0.30); }
.eg-mentor-card--cat-biznes      { background: rgba(255, 146, 107, 0.11); border-color: rgba(255, 146, 107, 0.31); }
.eg-mentor-card--cat-finanse     { background: rgba(102, 221, 114, 0.10); border-color: rgba(102, 221, 114, 0.30); }
.eg-mentor-card--cat-zdrowie     { background: rgba(64, 228, 211, 0.11); border-color: rgba(64, 228, 211, 0.30); }
.eg-mentor-card--cat-relaks      { background: rgba(255, 150, 214, 0.11); border-color: rgba(255, 150, 214, 0.30); }

.eg-mentor-card--cat-psychologia .eg-mentor-avatar { border-color: rgba(168, 130, 255, 0.58); }
.eg-mentor-card--cat-duchowosc .eg-mentor-avatar   { border-color: rgba(250, 193, 94, 0.58); }
.eg-mentor-card--cat-codziennosc .eg-mentor-avatar { border-color: rgba(96, 214, 173, 0.58); }
.eg-mentor-card--cat-fizycznosc .eg-mentor-avatar  { border-color: rgba(73, 169, 255, 0.58); }
.eg-mentor-card--cat-biznes .eg-mentor-avatar      { border-color: rgba(255, 146, 107, 0.58); }
.eg-mentor-card--cat-finanse .eg-mentor-avatar     { border-color: rgba(102, 221, 114, 0.58); }
.eg-mentor-card--cat-zdrowie .eg-mentor-avatar     { border-color: rgba(64, 228, 211, 0.58); }
.eg-mentor-card--cat-relaks .eg-mentor-avatar      { border-color: rgba(255, 150, 214, 0.58); }

.eg-mentor-card--cat-psychologia .eg-mentor-links { border-top-color: rgba(168, 130, 255, 0.58); }
.eg-mentor-card--cat-duchowosc .eg-mentor-links   { border-top-color: rgba(250, 193, 94, 0.58); }
.eg-mentor-card--cat-codziennosc .eg-mentor-links { border-top-color: rgba(96, 214, 173, 0.58); }
.eg-mentor-card--cat-fizycznosc .eg-mentor-links  { border-top-color: rgba(73, 169, 255, 0.58); }
.eg-mentor-card--cat-biznes .eg-mentor-links      { border-top-color: rgba(255, 146, 107, 0.58); }
.eg-mentor-card--cat-finanse .eg-mentor-links     { border-top-color: rgba(102, 221, 114, 0.58); }
.eg-mentor-card--cat-zdrowie .eg-mentor-links     { border-top-color: rgba(64, 228, 211, 0.58); }
.eg-mentor-card--cat-relaks .eg-mentor-links      { border-top-color: rgba(255, 150, 214, 0.58); }

.eg-mentor-card[class*="eg-mentor-card--lang-"],
.eg-mentor-hub-card[class*="eg-mentor-hub-card--lang-"],
.eg-mentor-single--lang-pl,
.eg-mentor-single--lang-en,
.eg-mentor-single--lang-de,
.eg-mentor-single--lang-es,
.eg-mentor-single--lang-pt,
.eg-mentor-single--lang-fr,
.eg-mentor-single--lang-it,
.eg-mentor-single--lang-cs,
.eg-mentor-single--lang-ru,
.eg-mentor-single--lang-uk,
.eg-mentor-single--lang-vi,
.eg-mentor-single--lang-id,
.eg-mentor-single--lang-tr,
.eg-mentor-single--lang-nl,
.eg-mentor-single--lang-sv,
.eg-mentor-single--lang-no,
.eg-mentor-single--lang-ar,
.eg-mentor-single--lang-da,
.eg-mentor-single--lang-zh_hans,
.eg-mentor-single--lang-ja,
.eg-mentor-single--lang-ko,
.eg-mentor-single--lang-hi {
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--eg-lang-c1, #98ffd9) 18%, transparent), color-mix(in srgb, var(--eg-lang-c2, #7db5ff) 18%, transparent));
}

.eg-mentor-spoken-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 4px 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--eg-lang-c2, #7db5ff) 60%, #ffffff 40%);
  color: color-mix(in srgb, var(--eg-lang-c2, #7db5ff) 75%, #f5f7fa 25%);
  background: color-mix(in srgb, var(--eg-lang-c1, #98ffd9) 24%, transparent);
}

.eg-mentor-bottom {
  display: grid;
  grid-template-columns: minmax(0, 430px) auto minmax(0, 430px);
  grid-template-rows: auto auto;
  gap: 40px;
  align-items: start;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.eg-mentor-bottom__box--left-main { grid-column: 1; grid-row: 1; }
.eg-mentor-bottom__box--left-media { grid-column: 1; grid-row: 2; }
.eg-mentor-bottom__box--right-main { grid-column: 3; grid-row: 1; }
.eg-mentor-bottom__box--right-secondary { grid-column: 3; grid-row: 2; }

.eg-mentor-bottom__box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.eg-mentor-bottom__heading {
  margin: 0 0 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.32;
  color: var(--mint);
}

.eg-mentor-bottom__box p {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text2);
  line-height: 1.52;
  text-align: center;
}

.eg-mentor-bottom__box p:last-child {
  margin-bottom: 0;
}

.eg-mentor-bottom__ps {
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
}

.eg-mentor-bottom__cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: center;
  align-items: stretch;
  align-self: stretch;
}

.eg-mentor-bottom__cta-stick {
  position: sticky;
  top: calc(var(--eg-app-sticky-top, 82px) + ((100dvh - var(--eg-app-sticky-top, 82px)) / 2) - 26px);
  z-index: 18;
  align-self: start;
}

.eg-mentor-bottom__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg3);
}

/* Bazowy obraz lekko przygaszony; druga warstwa — pełna widoczność w wąskim pasie (maska animowana BL → TR). */
.eg-mentor-bottom__img--base {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  opacity: 0.7;
}

.eg-mentor-bottom__img--shine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    135deg,
    transparent 0%,
    transparent 44%,
    #000 50%,
    transparent 56%,
    transparent 100%
  );
  mask-image: linear-gradient(
    135deg,
    transparent 0%,
    transparent 44%,
    #000 50%,
    transparent 56%,
    transparent 100%
  );
  -webkit-mask-size: 260% 260%;
  mask-size: 260% 260%;
  -webkit-mask-position: 100% 100%;
  mask-position: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: eg-mentor-shine-pass 11s ease-in-out infinite;
}

@keyframes eg-mentor-shine-pass {
  0%,
  35% {
    -webkit-mask-position: 100% 100%;
    mask-position: 100% 100%;
  }
  46% {
    -webkit-mask-position: 0% 0%;
    mask-position: 0% 0%;
  }
  52%,
  100% {
    -webkit-mask-position: 100% 100%;
    mask-position: 100% 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-mentor-bottom__img--shine {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .eg-mentor-bottom {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }
  .eg-mentor-bottom__box--left-main,
  .eg-mentor-bottom__box--left-media,
  .eg-mentor-bottom__box--right-main,
  .eg-mentor-bottom__box--right-secondary,
  .eg-mentor-bottom__cta {
    grid-column: auto;
    grid-row: auto;
  }
  .eg-mentor-bottom__cta {
    position: static;
    order: 3;
    align-items: center;
  }
  .eg-mentor-bottom__cta-stick {
    position: static;
  }
}


/* ============================================================
   REFLEKSJA — dwie kolumny (karty „do środka”), wysokość z treści
   ============================================================ */

.eg-refleksja-section {}

/* Hub Refleksji — wyśrodkowany nagłówek i cytat/tytuł w kartach */
.eg-page-refleksja .eg-page-header--refleksja {
  max-width: 960px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eg-page-refleksja .eg-page-header--refleksja .eg-section-label,
.eg-page-refleksja .eg-page-header--refleksja h1,
.eg-page-refleksja .eg-page-header--refleksja .eg-page-header-lead {
  text-align: center;
}

.eg-page-refleksja .eg-page-header--refleksja .eg-page-header-lead {
  margin-left: auto;
  margin-right: auto;
}

.eg-page-refleksja .eg-page-header__refleksja-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.eg-page-refleksja .eg-page-header__refleksja-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  width: 100%;
}

.eg-page-refleksja .eg-page-header__refleksja-main {
  flex: 1 1 280px;
  max-width: 560px;
  text-align: center;
}

.eg-page-refleksja .eg-page-header__refleksja-media {
  flex: 0 0 360px;
  max-width: 100%;
}

.eg-page-refleksja .eg-page-header__refleksja-image {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.eg-refleksja-section .eg-refleksja-card .eg-refleksja-cytat,
.eg-refleksja-section .eg-refleksja-card .eg-refleksja-title {
  text-align: center;
}

.eg-refleksja-cols {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px 36px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.eg-refleksja-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eg-refleksja-col--left {
  align-items: flex-end;
}

.eg-refleksja-col--right {
  align-items: flex-start;
}

.eg-refleksja-col .eg-refleksja-card {
  width: fit-content;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

@media (max-width: 640px) {
  .eg-refleksja-cols {
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
  }

  .eg-refleksja-col--left,
  .eg-refleksja-col--right {
    align-items: center;
  }

  .eg-refleksja-col .eg-refleksja-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .eg-refleksja-cols.has-motion-js .eg-refleksja-card:not(.is-inview) {
    opacity: 0.92;
    transform: translateY(14px);
    transition:
      opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--eg-ref-enter-delay, 0ms);
  }

  .eg-refleksja-cols.has-motion-js .eg-refleksja-card.is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}

.eg-refleksja-card {
  break-inside: avoid;
  box-sizing: border-box;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 29px 27px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.eg-refleksja-card:hover {
  border-color: var(--border2);
}

.eg-refleksja-cytat {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--banana);
  margin: 0;
  padding: 0;
  border: none;
  line-height: 1.55;
}

.eg-refleksja-cytat::before { content: '\201C'; }
.eg-refleksja-cytat::after  { content: '\201D'; }

.eg-refleksja-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--mint);
  margin: 0;
  line-height: 1.35;
  display: block;
}

#eg-page-wrap .eg-refleksja-card.eg-glow-toned .eg-refleksja-title {
  color: var(--eg-ref-accent);
}

#eg-page-wrap .eg-refleksja-card.eg-glow-toned:hover .eg-refleksja-title {
  color: color-mix(in srgb, var(--eg-ref-accent) 82%, white 18%);
}

.eg-refleksja-card:hover .eg-refleksja-title {
  color: var(--mint2);
}

.eg-refleksja-tekst {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
}

.eg-refleksja-pytanie {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text2);
  background: var(--bg3);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.eg-refleksja-pytanie-icon {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.eg-refleksja-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eg-refleksja-read {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: .04em;
  margin-top: auto;
  transition: color .15s;
}

.eg-refleksja-card:hover .eg-refleksja-read {
  color: var(--blue2);
}


/* ============================================================
   POBIERALNIA
   ============================================================ */

.eg-pobieralnia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .eg-pobieralnia-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .eg-pobieralnia-grid { grid-template-columns: 1fr; }
}

.eg-pobieralnia-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}

.eg-pobieralnia-card:hover {
  border-color: rgba(152, 255, 217, 0.35);
  transform: translateY(-2px);
}

.eg-pobieralnia-card--locked {
  opacity: .8;
}

.eg-pobieralnia-thumb {
  aspect-ratio: 16/9;
  background: var(--bg3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.eg-pobieralnia-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-pobieralnia-type-badge {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 900;
  color: var(--text3);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eg-pobieralnia-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 16px;
  background: rgba(0,0,0,.6);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.4;
}

.eg-pobieralnia-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.eg-pobieralnia-meta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.eg-pobieralnia-filetype {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.eg-pobieralnia-access {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
}

.eg-pobieralnia-access--free {
  color: var(--mint);
}

.eg-pobieralnia-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.eg-pobieralnia-desc {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
  margin: 0;
  flex: 1;
}

.eg-pobieralnia-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.eg-pobieralnia-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}


/* ── Pobieralnia — hub kategorie + marquee + karty v2 ───────────────────── */

.eg-page-pobieralnia .eg-pob-hub .eg-pob-cat-divider {
  display: none;
}

.eg-pob-cat {
  border: 1px solid var(--border);
  border-radius: var(--rl);
  background: var(--eg-glass-bg);
  padding: 4px 18px 14px;
  margin-bottom: 16px;
}

.eg-pob-cat:nth-of-type(6n + 1) { background: color-mix(in srgb, var(--eg-glass-bg) 82%, rgba(152, 255, 217, .55) 18%); }
.eg-pob-cat:nth-of-type(6n + 2) { background: color-mix(in srgb, var(--eg-glass-bg) 82%, rgba(148, 196, 255, .52) 18%); }
.eg-pob-cat:nth-of-type(6n + 3) { background: color-mix(in srgb, var(--eg-glass-bg) 82%, rgba(196, 162, 255, .5) 18%); }
.eg-pob-cat:nth-of-type(6n + 4) { background: color-mix(in srgb, var(--eg-glass-bg) 82%, rgba(255, 187, 148, .5) 18%); }
.eg-pob-cat:nth-of-type(6n + 5) { background: color-mix(in srgb, var(--eg-glass-bg) 82%, rgba(255, 226, 148, .5) 18%); }
.eg-pob-cat:nth-of-type(6n + 6) { background: color-mix(in srgb, var(--eg-glass-bg) 82%, rgba(152, 232, 255, .5) 18%); }

#eg-page-wrap .eg-page-pobieralnia .eg-pob-cat,
#eg-page-wrap .eg-page-pobieralnia .eg-pob-cat:hover,
#eg-page-wrap .eg-page-pobieralnia .eg-pob-cat:focus-within,
#eg-page-wrap .eg-page-pobieralnia .eg-pob-cat:active {
  border-color: var(--border);
  box-shadow: var(--eg-glass-shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

#eg-page-wrap .eg-page-pobieralnia .eg-pob-cat.eg-glow-toned {
  border-color: var(--eg-glow-border);
}

#eg-page-wrap .eg-page-pobieralnia .eg-pob-cat.eg-glow-toned:hover,
#eg-page-wrap .eg-page-pobieralnia .eg-pob-cat.eg-glow-toned:focus-within {
  border-color: var(--eg-glow-border-hover);
}

.eg-pob-cat-divider {
  margin: 28px 0 20px;
}

.eg-pob-cat-head-outer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: stretch;
  column-gap: 18px;
  row-gap: 0;
  width: 100%;
  padding: 14px 0 10px;
  position: relative;
  z-index: 2;
}

.eg-pob-cat-head-col--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 88px;
}

.eg-pob-cat-head-col--stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  min-width: max-content;
}

.eg-pob-cat-head-col--stats .eg-pob-cat-counts {
  align-items: flex-end;
}

.eg-pob-cat-head-col--stats .eg-pob-cat-counts-line {
  text-align: right;
}

.eg-pob-cat-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  position: relative;
  z-index: 2;
}

.eg-pob-cat-head-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.eg-pob-cat-head:hover,
.eg-pob-cat-head:focus,
.eg-pob-cat-head:active,
.eg-pob-cat-head[aria-expanded="true"] {
  background: transparent;
  box-shadow: none;
}

.eg-pob-cat-head:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
  border-radius: 4px;
}

.eg-pob-cat-icon {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 88px;
  height: 88px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(152, 255, 217);
}

.eg-pob-cat-icon svg {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

#eg-page-wrap .eg-page-pobieralnia .eg-pob-cat-icon svg {
  width: 56px;
  height: 56px;
  max-width: none;
  max-height: none;
}

/* Ikona: pełny (nieprzezroczysty) RGB jak tint tła danej kategorii (ta sama paleta co nth-of-type powyżej) */
.eg-pob-cat:nth-of-type(6n + 1) .eg-pob-cat-icon { color: rgb(152, 255, 217); }
.eg-pob-cat:nth-of-type(6n + 2) .eg-pob-cat-icon { color: rgb(148, 196, 255); }
.eg-pob-cat:nth-of-type(6n + 3) .eg-pob-cat-icon { color: rgb(196, 162, 255); }
.eg-pob-cat:nth-of-type(6n + 4) .eg-pob-cat-icon { color: rgb(255, 187, 148); }
.eg-pob-cat:nth-of-type(6n + 5) .eg-pob-cat-icon { color: rgb(255, 226, 148); }
.eg-pob-cat:nth-of-type(6n + 6) .eg-pob-cat-icon { color: rgb(152, 232, 255); }

.eg-pob-cat-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  transition: color .18s ease;
}

.eg-pob-cat-head:hover .eg-pob-cat-title,
.eg-pob-cat-head:focus-visible .eg-pob-cat-title,
.eg-pob-cat-head[aria-expanded="true"] .eg-pob-cat-title {
  color: var(--mint);
}

.eg-pob-cat-counts {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  color: color-mix(in srgb, var(--text) 62%, white 38%);
  text-shadow: 0 1px 1px color-mix(in srgb, var(--bg) 55%, transparent);
}

.eg-pob-cat-counts-line {
  display: block;
  line-height: 1.4;
  text-align: left;
}

.eg-pob-cat-counts .eg-float-tip--pob-cat-footnote {
  display: inline;
  margin: 0;
  padding: 0;
}

.eg-pob-cat-counts .eg-float-tip--pob-cat-footnote .eg-float-tip__anchor {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
  cursor: help;
  border: none;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  text-decoration: none;
}

.eg-pob-cat-counts .eg-float-tip--pob-cat-footnote .eg-float-tip__anchor:hover {
  color: inherit;
}

.eg-pob-cat-counts .eg-float-tip--pob-cat-footnote .eg-float-tip__anchor:focus-visible {
  color: inherit;
  outline: 2px solid color-mix(in srgb, var(--mint) 55%, transparent);
  outline-offset: 2px;
  border-radius: 3px;
}

.eg-pob-cat-chevron {
  flex-shrink: 0;
  margin-left: auto;
  margin-top: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  transition: transform .32s cubic-bezier(0.25, 1, 0.5, 1), color .18s ease;
}

.eg-pob-cat-chevron svg {
  width: 14px;
  height: 14px;
  display: block;
}

.eg-pob-cat[data-eg-pob-cat-open="true"] .eg-pob-cat-chevron {
  transform: rotate(180deg);
  color: var(--mint);
}

.eg-pob-cat-desc {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
  font-weight: 400;
  max-width: 720px;
  margin: 0;
}

.eg-pob-cat-panel-anim {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .38s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 2;
}

.eg-pob-cat[data-eg-pob-cat-open="true"] .eg-pob-cat-panel-anim {
  grid-template-rows: 1fr;
}

.eg-pob-cat-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.eg-pob-cat-panel {
  padding: 16px 0 8px;
}

.eg-pob-cat-empty {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .eg-pob-cat-panel-anim {
    transition: none;
  }

  .eg-pob-cat-chevron {
    transition: none;
  }
}

.eg-pob-strip {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eg-pob-strip-scroller {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.eg-pob-strip-scroller::-webkit-scrollbar {
  display: none;
}

.eg-pob-strip-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.eg-pob-strip-nav-btn {
  box-sizing: border-box;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.eg-pob-strip-nav-btn:hover,
.eg-pob-strip-nav-btn:focus-visible {
  color: var(--mint);
  border-color: rgba(152, 255, 217, 0.45);
  outline: none;
}

.eg-pob-strip-nav-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px var(--mint);
}

@media (prefers-reduced-motion: reduce) {
  .eg-pob-strip-scroller {
    scroll-behavior: auto;
  }
}

.eg-pobieralnia-card-v2 {
  --eg-pob-inner-w: 290px;
  flex: 0 0 auto;
  /* Okno miniatury + 2px z każdej strony; w border-box: +2px na obwódkę */
  box-sizing: border-box;
  width: min(88vw, calc(var(--eg-pob-inner-w) + 4px + 2px));
  max-width: min(88vw, calc(var(--eg-pob-inner-w) + 4px + 2px));
  padding: 0 2px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}

.eg-pobieralnia-card-v2:hover {
  transform: translateY(-2px);
}

.eg-pobieralnia-card-v2--logged {
  border-color: rgba(152, 255, 217, 0.45);
}

.eg-pobieralnia-card-v2--logged:hover {
  border-color: rgba(152, 255, 217, 0.72);
}

.eg-pobieralnia-card-v2--public {
  border-color: rgba(120, 182, 255, 0.5);
}

.eg-pobieralnia-card-v2--public:hover {
  border-color: rgba(120, 182, 255, 0.78);
}

.eg-pobieralnia-card-v2--locked {
  opacity: .92;
}

.eg-pobieralnia-card-v2--pdf-pending {
  opacity: .78;
  filter: saturate(.92);
}

.eg-pobieralnia-card-v2--pdf-pending:hover {
  transform: none;
}

.eg-pobieralnia-pdf-pending-msg {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
  margin: 0;
}

.eg-pobieralnia-actions-v2 .eg-pobieralnia-pdf-pending-msg {
  flex: 1 1 100%;
  width: 100%;
  text-align: center;
  margin-bottom: 2px;
}

.eg-pobieralnia-thumb-v2 {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 160px;
  background: var(--bg3);
  overflow: hidden;
  /* Pasek przewijania viewer'a PDF: iframe szerszy o ~20px, odcinamy w overflow */
}

.eg-pobieralnia-thumb-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.eg-pobieralnia-card-v2--logged .eg-pobieralnia-thumb-v2::after {
  background: rgba(152, 255, 217, 0.1);
}

.eg-pobieralnia-card-v2--public .eg-pobieralnia-thumb-v2::after {
  background: rgba(120, 182, 255, 0.1);
}

.eg-pobieralnia-thumb-v2-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% + 20px);
  max-width: none;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  background: #fff;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.eg-pobieralnia-thumb-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-pobieralnia-thumb-v2--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text3);
}

.eg-pobieralnia-lock-v2 {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .58);
  font-size: 15px;
  line-height: 1;
  z-index: 3;
}

.eg-pobieralnia-lock-v2--open {
  color: var(--mint);
}

.eg-pobieralnia-lock-v2--closed {
  color: var(--mint2);
}

/* Pobieralnia — pogrubienia jak zwykły tekst */
.eg-page-pobieralnia strong,
.eg-page-pobieralnia b {
  color: var(--text);
}

.eg-pobieralnia-body-v2 {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 14px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.eg-pobieralnia-audience-v2 {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mint);
  width: 100%;
  display: block;
}

.eg-pobieralnia-title-v2 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
  width: 100%;
  text-align: center;
}

.eg-pobieralnia-desc-v2 {
  margin: 0;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
  text-align: center;
}

.eg-pobieralnia-tags-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.eg-pobieralnia-actions-v2 {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.eg-pobieralnia-actions-v2 .eg-btn-sm,
.eg-pobieralnia-actions-v2 .eg-pob-download-missing {
  box-sizing: border-box;
  flex: 0 1 auto;
  min-width: 0;
  margin-top: 0;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding: 0 16px;
  line-height: 1;
  align-self: center;
}

.eg-pobieralnia-actions-v2 .eg-btn-sm:hover,
.eg-pobieralnia-actions-v2 .eg-btn-sm:focus-visible,
.eg-pobieralnia-actions-v2 .eg-pob-download-missing:hover,
.eg-pobieralnia-actions-v2 .eg-pob-download-missing:focus-visible {
  height: 34px;
  min-height: 34px;
}

.eg-pob-download-locked-btn {
  width: auto;
  max-width: 100%;
}

.eg-pobieralnia-card-v2--logged .eg-pobieralnia-actions-v2 .eg-btn-primary,
.eg-pobieralnia-card-v2--logged .eg-pobieralnia-actions-v2 .eg-pob-download-locked-btn,
.eg-pobieralnia-card-v2--logged .eg-pobieralnia-actions-v2 .eg-pob-download-missing {
  background-color: color-mix(in srgb, var(--mint) 72%, #0d1211 28%);
  background-image: none;
  color: #0a0f0e;
  box-shadow: 0 0 8px color-mix(in srgb, var(--mint) 18%, transparent);
}

.eg-pobieralnia-card-v2--public .eg-pobieralnia-actions-v2 .eg-btn-primary,
.eg-pobieralnia-card-v2--public .eg-pobieralnia-actions-v2 .eg-pob-download-locked-btn,
.eg-pobieralnia-card-v2--public .eg-pobieralnia-actions-v2 .eg-pob-download-missing {
  background-color: color-mix(in srgb, #78b6ff 72%, #0e1218 28%);
  background-image: none;
  color: #07101b;
  box-shadow: 0 0 8px rgba(120, 182, 255, 0.2);
}

.eg-pobieralnia-card-v2--logged .eg-pobieralnia-actions-v2 .eg-btn-primary:hover,
.eg-pobieralnia-card-v2--logged .eg-pobieralnia-actions-v2 .eg-pob-download-locked-btn:hover,
.eg-pobieralnia-card-v2--logged .eg-pobieralnia-actions-v2 .eg-btn-primary:focus-visible,
.eg-pobieralnia-card-v2--logged .eg-pobieralnia-actions-v2 .eg-pob-download-locked-btn:focus-visible {
  background-color: color-mix(in srgb, var(--mint) 78%, #0d1211 22%);
  color: #060b0a;
  box-shadow: 0 0 10px color-mix(in srgb, var(--mint) 24%, transparent);
}

.eg-pobieralnia-card-v2--public .eg-pobieralnia-actions-v2 .eg-btn-primary:hover,
.eg-pobieralnia-card-v2--public .eg-pobieralnia-actions-v2 .eg-pob-download-locked-btn:hover,
.eg-pobieralnia-card-v2--public .eg-pobieralnia-actions-v2 .eg-btn-primary:focus-visible,
.eg-pobieralnia-card-v2--public .eg-pobieralnia-actions-v2 .eg-pob-download-locked-btn:focus-visible {
  background-color: color-mix(in srgb, #78b6ff 78%, #0e1218 22%);
  color: #040a13;
  box-shadow: 0 0 10px rgba(120, 182, 255, 0.26);
}

.eg-pob-download-missing {
  opacity: .45;
  pointer-events: none;
  text-align: center;
}

.eg-pob-preview-btn--disabled {
  opacity: .45;
  pointer-events: none;
}

.eg-pob-pdf-modal .eg-modal-box.eg-pob-pdf-modal-box {
  width: min(92vw, 900px);
  max-height: min(90vh, 880px);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.eg-pob-pdf-modal-header {
  flex-shrink: 0;
}

.eg-pob-pdf-frame-wrap {
  flex: 1;
  min-height: 0;
  padding: 0 20px 20px;
}

.eg-pob-pdf-frame {
  width: 100%;
  height: min(72vh, 640px);
  max-height: 70vh;
  border: 1px solid var(--border);
  border-radius: var(--rl);
  background: var(--bg3);
}

@media (max-width: 560px) {
  .eg-pob-pdf-frame {
    height: 55vh;
  }
}

/* Modal footer */
.eg-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}


/* ============================================================
   ESTUDIO
   ============================================================ */

/* Nakładka „Moduł w przygotowaniu” (panel EStudio → Overlay aktywny) */
.eg-estudio-module-body--overlay {
  position: relative;
  width: 100%;
}

.eg-estudio-module-body--overlay .eg-estudio-module-body__content {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.eg-estudio-module-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  pointer-events: none;
}

.eg-estudio-module-overlay__text {
  margin: 0;
  max-width: 22rem;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--mint);
  white-space: pre-line;
  text-shadow:
    0 0 10px color-mix(in srgb, var(--mint) 55%, transparent),
    0 0 22px color-mix(in srgb, var(--mint) 32%, transparent),
    0 0 40px color-mix(in srgb, var(--mint) 14%, transparent);
}

/* Featured book — kolumna 1: promo, kolumna 2: treść */
.eg-estudio-featured {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eg-estudio-featured-inner {
  display: grid;
  grid-template-columns: minmax(300px, min(480px, 46vw)) 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: flex-start;
  width: 100%;
}

@media (max-width: 760px) {
  .eg-estudio-featured-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.eg-estudio-promo-col {
  flex-shrink: 0;
}

.eg-estudio-promo-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}

/* Promo EStudio: cykl JS (przerwy + jednorazowy błysk + losowe przejście) */
.eg-estudio-promo-media {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  background: var(--bg3);
}

.eg-estudio-promo-media--square {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.eg-estudio-promo-media--square .eg-estudio-promo__base,
.eg-estudio-promo-media--square .eg-estudio-promo__shine {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.eg-estudio-promo-media--timed .eg-estudio-promo__base {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  opacity: 1;
}

.eg-estudio-promo-media--square.eg-estudio-promo-media--timed .eg-estudio-promo__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.eg-estudio-promo-media--timed .eg-estudio-promo__shine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    135deg,
    transparent 0%,
    transparent 44%,
    #000 50%,
    transparent 56%,
    transparent 100%
  );
  mask-image: linear-gradient(
    135deg,
    transparent 0%,
    transparent 44%,
    #000 50%,
    transparent 56%,
    transparent 100%
  );
  -webkit-mask-size: 260% 260%;
  mask-size: 260% 260%;
  -webkit-mask-position: 100% 100%;
  mask-position: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: none;
}

/* Przyciemnienie pod błysk: narasta ~2 s, schodzi ~2 s przed końcem fazy (zsynchronizowane z 11 s cyklem). */
@keyframes eg-estudio-promo-base-shine-dim {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 0.7;
  }
  54% {
    opacity: 0.7;
  }
  74% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.eg-estudio-promo-media--timed.is-promo-shine .eg-estudio-promo__base {
  animation: eg-estudio-promo-base-shine-dim 11s cubic-bezier(0.42, 0, 0.58, 1) forwards;
}

/* Ten sam czas i krzywa co na Mentorach (11 s, jeden przebieg zamiast infinite). */
.eg-estudio-promo-media--timed.is-promo-shine .eg-estudio-promo__shine {
  opacity: 1;
  animation: eg-mentor-shine-pass 11s ease-in-out 1 forwards;
}

/* Losowe „klasyczne” przejścia (warstwa shine = następny obraz) */
.eg-estudio-promo-media[class*="tr-run-"] .eg-estudio-promo__shine {
  -webkit-mask-image: none;
  mask-image: none;
}

@keyframes eg-es-promo-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes eg-es-promo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.eg-estudio-promo-media.tr-run-fade .eg-estudio-promo__base {
  animation: eg-es-promo-fade-out 0.56s ease forwards;
}

.eg-estudio-promo-media.tr-run-fade .eg-estudio-promo__shine {
  opacity: 1;
  animation: eg-es-promo-fade-in 0.56s ease forwards;
}

@keyframes eg-es-promo-slide-in-left {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes eg-es-promo-slide-in-right {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.eg-estudio-promo-media.tr-run-slide-left .eg-estudio-promo__shine {
  opacity: 1;
  animation: eg-es-promo-slide-in-left 0.56s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.eg-estudio-promo-media.tr-run-slide-right .eg-estudio-promo__shine {
  opacity: 1;
  animation: eg-es-promo-slide-in-right 0.56s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes eg-es-promo-zoom-in {
  from {
    transform: scale(1.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes eg-es-promo-zoom-out {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.eg-estudio-promo-media.tr-run-zoom-in .eg-estudio-promo__shine {
  opacity: 1;
  animation: eg-es-promo-zoom-in 0.62s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.eg-estudio-promo-media.tr-run-zoom-out .eg-estudio-promo__shine {
  opacity: 1;
  animation: eg-es-promo-zoom-out 0.62s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .eg-estudio-promo-media--timed.is-promo-shine .eg-estudio-promo__shine {
    animation: none;
    opacity: 0;
  }
  .eg-estudio-promo-media--timed.is-promo-shine .eg-estudio-promo__base {
    animation: none !important;
    opacity: 1;
  }
  .eg-estudio-promo-media[class*="tr-run-"] .eg-estudio-promo__base,
  .eg-estudio-promo-media[class*="tr-run-"] .eg-estudio-promo__shine {
    animation: none !important;
  }
}

.eg-estudio-promo-img {
  width: 100%;
  display: block;
  vertical-align: middle;
}

.eg-estudio-promo-placeholder {
  min-height: 280px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--bg3) 0%, rgba(152, 255, 217, 0.06) 100%);
  border: 1px dashed var(--border2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--text2);
}

.eg-estudio-promo-placeholder span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
}

.eg-estudio-promo-placeholder small {
  font-size: 13px;
  line-height: 1.5;
  max-width: 220px;
}

.eg-estudio-cover-wrap {
  flex-shrink: 0;
}

.eg-estudio-cover-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  display: block;
}

.eg-estudio-cover-placeholder {
  width: 240px;
  aspect-ratio: 2/3;
  background: var(--bg3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.eg-estudio-featured-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eg-estudio-book-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--mint);
  margin: 0;
  line-height: 1.25;
}

.eg-estudio-book-author {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}

.eg-estudio-book-desc {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
  margin: 0;
  max-width: 520px;
}

.eg-estudio-featured-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .eg-estudio-featured-btns {
    justify-content: center;
    align-items: center;
  }
}

/* Księgarnie — osobny wiersz pod blokiem książki, siatka 10 × równe kolumny */
.eg-bookstores-strip {
  width: 100%;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(22px, 3vw, 32px);
}

.eg-bookstores-strip__divider {
  height: 1px;
  margin: 0 0 clamp(16px, 2.5vw, 22px);
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

.eg-bookstores-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 clamp(14px, 2vw, 20px);
}

.eg-bookstores-row--grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px) clamp(6px, 1.5vw, 16px);
  align-items: center;
  justify-items: center;
  width: 100%;
}

@media (max-width: 640px) {
  .eg-bookstores-row--grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 14px;
  }
}

/* EStudio księgarnie: ten sam glow/odbicie co stopka; siatka i 48px bez zmian */
.eg-bookstores-row--grid a.eg-footer-social-link {
  margin: 0;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.eg-bookstores-row--grid a.eg-footer-social-link::after {
  width: 38px;
  height: 16px;
}

.eg-bookstore-item__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}

.eg-bookstore-item__icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Naprzemienne białe / mint — tło i glow na ::before; kółko 48px bez zmian */
.eg-bookstores-row--grid a.eg-footer-social-link:nth-child(odd) {
  --color: #ffffff;
  --glow-color: #98FFD9;
}

.eg-bookstores-row--grid a.eg-footer-social-link:nth-child(even) {
  --color: #98FFD9;
  --glow-color: #ffffff;
}

.eg-bookstores-row--grid a.eg-footer-social-link:nth-child(odd):hover,
.eg-bookstores-row--grid a.eg-footer-social-link:nth-child(even):hover {
  color: #050801;
}

.eg-bookstores-row--grid a.eg-footer-social-link:nth-child(odd):hover::after {
  background: radial-gradient(
    ellipse 85% 100% at 50% 100%,
    color-mix(in srgb, #98FFD9 45%, transparent),
    transparent 70%
  );
}

.eg-bookstores-row--grid a.eg-footer-social-link:nth-child(even):hover::after {
  background: radial-gradient(
    ellipse 85% 100% at 50% 100%,
    color-mix(in srgb, #ffffff 40%, transparent),
    transparent 70%
  );
}

/* EStudio — komunikat pod modułami, gdy część modułów jest wyłączona */
.eg-estudio-soon-more {
  font-family: var(--serif);
  text-align: center;
  color: var(--text2);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 16px auto 8px;
  padding: 8px 16px 0;
  max-width: 520px;
}

/* Darmowe publikacje (EStudio) */
.eg-estudio-freepub-lead,
.eg-estudio-strefy-lead {
  font-family: var(--serif);
  max-width: 640px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 28px;
}

.eg-estudio-strefy-lead strong {
  color: var(--text);
  font-weight: 600;
}

.eg-freepub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .eg-freepub-grid {
    grid-template-columns: 1fr;
  }
}

.eg-freepub-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.eg-freepub-cover {
  aspect-ratio: 3/4;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.eg-freepub-cover__ph {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
}

.eg-freepub-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.eg-freepub-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mint);
  margin: 0;
}

.eg-freepub-desc {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  margin: 0;
  flex: 1;
}

.eg-freepub-action {
  margin-top: 8px;
}

.eg-freepub-read.eg-btn-secondary {
  display: inline-flex;
}

.eg-freepub-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text3);
  font-size: 18px;
  cursor: default;
}

.eg-freepub-lock:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.eg-freepub-lock[data-eg-tip] {
  position: relative;
}

.eg-freepub-lock[data-eg-tip]:hover::after,
.eg-freepub-lock[data-eg-tip]:focus-visible::after {
  content: attr(data-eg-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  max-width: min(280px, 70vw);
  white-space: normal;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border2);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  z-index: 5;
  pointer-events: none;
}

.eg-estudio-book-desc p {
  margin: 0 0 0.75em;
}

.eg-estudio-book-desc p:last-child {
  margin-bottom: 0;
}

/* Slider książek */
.eg-slider-row--books {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.eg-slider-row--books::-webkit-scrollbar { height: 4px; }
.eg-slider-row--books::-webkit-scrollbar-track { background: transparent; }
.eg-slider-row--books::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.eg-book-slide-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 180px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s;
}

.eg-book-slide-card:hover {
  border-color: var(--border2);
}

.eg-book-slide-cover {
  aspect-ratio: 2/3;
  background: var(--bg3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eg-book-slide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-book-slide-cover--empty {
  font-size: 28px;
}

.eg-book-slide-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.eg-book-slide-body h3 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.eg-book-slide-author {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: .05em;
  margin: 0;
}

.eg-book-slide-desc {
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text2);
  margin: 0;
  flex: 1;
}

/* Usługi */
.eg-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .eg-services-grid { grid-template-columns: 1fr; }
}

.eg-service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s;
}

.eg-service-card:hover {
  border-color: var(--border2);
}

.eg-service-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.eg-service-desc {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  flex: 1;
}

.eg-service-price {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--banana);
}

.eg-service-stock {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: .05em;
  margin: 0;
}

/* Plany subskrypcji */
.eg-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
}

@media (max-width: 600px) {
  .eg-plans-grid { grid-template-columns: 1fr; }
}

.eg-plans-grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1120px;
}

@media (max-width: 960px) {
  .eg-plans-grid--three {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

.eg-plan-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color .2s;
}

.eg-plan-card--featured {
  border-color: rgba(152, 255, 217, 0.4);
  background: linear-gradient(160deg, rgba(152, 255, 217, 0.08) 0%, var(--bg2) 60%);
}

.eg-plan-card--popular {
  border-color: rgba(152, 255, 217, 0.45);
  background: linear-gradient(165deg, rgba(152, 255, 217, 0.1) 0%, var(--bg2) 55%);
}

.eg-plan-card--value {
  border-color: rgba(238, 220, 167, 0.35);
  background: linear-gradient(165deg, rgba(238, 220, 167, 0.08) 0%, var(--bg2) 55%);
}

.eg-plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--banana);
  color: #1a1208;
}

.eg-plan-badge--value {
  background: var(--mint);
  color: #0a1612;
}

.eg-plan-acf-opis {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text2);
  margin: 0 0 4px;
  line-height: 1.55;
}

.eg-plan-zone {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
}

.eg-plan-free-capsule {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--blue) 38%, var(--border));
  display: inline-block;
  align-self: flex-start;
}

.eg-plan-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--mint);
  margin: 0;
}

.eg-plan-price {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--banana);
  line-height: 1.1;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(152, 255, 217, 0.16), rgba(152, 255, 217, 0.05));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mint) 22%, transparent);
}

.eg-plan-price .woocommerce-Price-amount,
.eg-plan-price ins,
.eg-plan-price bdi {
  color: inherit;
}

.eg-plan-price--placeholder {
  font-size: 18px;
  font-weight: 600;
  color: var(--banana);
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(152, 255, 217, 0.12), rgba(152, 255, 217, 0.04));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mint) 18%, transparent);
}

.eg-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.eg-plan-features li {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text2);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.eg-plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
  font-size: 13px;
}

.eg-plans-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: .04em;
  margin-top: 20px;
}

/* EStudio — Ekspertyza + FAQ */
.eg-estudio-ekspertyza-intro {
  font-family: var(--serif);
  max-width: 640px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 32px;
}

.eg-ekspertyza-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .eg-ekspertyza-steps {
    grid-template-columns: 1fr;
  }
}

.eg-ekspertyza-step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px 24px;
  position: relative;
}

.eg-ekspertyza-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(152, 255, 217, 0.12);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.eg-ekspertyza-step__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.35;
}

.eg-ekspertyza-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
}

.eg-ekspertyza-cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 40px;
}

.eg-ekspertyza-price {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--banana);
  margin: 0;
}

.eg-estudio-faq {
  max-width: 760px;
  border: 1px solid var(--eg-glass-border);
  border-radius: 16px;
  background: var(--eg-glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--eg-glass-shadow);
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
}

.eg-estudio-faq__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 6px 8px 14px;
}

.eg-estudio-faq__item {
  border: 1px solid var(--eg-glass-border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--eg-glass-bg) 88%, transparent);
  margin-bottom: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.eg-estudio-faq__item:last-child {
  margin-bottom: 0;
}

.eg-estudio-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
}

.eg-estudio-faq-btn:hover {
  color: var(--mint);
  background: rgba(152, 255, 217, 0.08);
}

.eg-estudio-faq-btn__icon {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--text3);
  transition: transform .2s;
}

.eg-estudio-faq-btn[aria-expanded="true"] .eg-estudio-faq-btn__icon {
  transform: rotate(45deg);
  color: var(--mint);
}

.eg-estudio-faq-panel {
  padding: 0 16px 16px;
}

.eg-estudio-faq-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

/* Podstrona /estudio/ekspertyza/ */
.eg-breadcrumb--subpage {
  margin-top: 8px;
}

.eg-breadcrumb__sep {
  opacity: 0.45;
}

.eg-page-header--ekspertyza {
  margin-bottom: 8px;
}

.eg-ekspertyza-page-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 40px;
  align-items: start;
  padding-bottom: 80px;
}

@media (max-width: 900px) {
  .eg-ekspertyza-page-grid {
    grid-template-columns: 1fr;
  }
}

.eg-ekspertyza-page-h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mint);
  margin: 28px 0 14px;
}

.eg-ekspertyza-page-h2:first-of-type {
  margin-top: 0;
}

.eg-ekspertyza-page-list {
  margin: 0 0 8px;
  padding-left: 1.25rem;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.75;
}

.eg-ekspertyza-page-list li {
  margin-bottom: 12px;
}

.eg-ekspertyza-page-bullets {
  margin: 0 0 28px;
  padding-left: 1.2rem;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.7;
}

.eg-ekspertyza-page-bullets li {
  margin-bottom: 10px;
}

.eg-ekspertyza-page-form-placeholder {
  border: 2px dashed var(--border2);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  background: rgba(0,0,0,.12);
}

.eg-ekspertyza-page-form-placeholder__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text3);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.eg-ekspertyza-aside-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 16px;
}

.eg-ekspertyza-aside-card--warn {
  border-color: rgba(238, 180, 120, 0.35);
  background: linear-gradient(160deg, rgba(238, 180, 120, 0.08) 0%, var(--bg2) 70%);
}

.eg-ekspertyza-aside-card__kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 6px;
}

.eg-ekspertyza-aside-card__price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--banana);
  margin: 0 0 8px;
}

.eg-ekspertyza-aside-card__note {
  margin: 0;
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}

.eg-ekspertyza-aside-card__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.eg-ekspertyza-aside-card--warn p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
}

.eg-ekspertyza-back-link {
  display: inline-flex;
  margin-top: 8px;
}

.eg-modal-box--wide {
  max-width: 760px;
}


/* ============================================================
   O PROJEKCIE — zakładki strony
   ============================================================ */

.eg-tabs--page {
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

/* Tylko O projekcie — aktywna zakładka: mięta (globalnie .eg-tab.active używa --zephyr) */
.eg-tabs--page .eg-tab.active,
.eg-tabs--page .eg-tab[aria-selected="true"] {
  color: var(--mint);
  border-color: rgba(152, 255, 217, 0.22);
}

.eg-tabs--page .eg-tab.active:hover,
.eg-tabs--page .eg-tab[aria-selected="true"]:hover,
.eg-tabs--page .eg-tab.active:focus-visible,
.eg-tabs--page .eg-tab[aria-selected="true"]:focus-visible {
  color: var(--mint2);
  border-color: rgba(152, 255, 217, 0.32);
}

.eg-page-oprojekcie .eg-content blockquote:not(.eg-op-proj-quote) {
  border-left-color: rgba(152, 255, 217, 0.42);
}

.eg-page-oprojekcie .eg-req {
  color: var(--mint);
}

.eg-page-oprojekcie .eg-form-msg--error {
  color: var(--mint2);
}

.eg-oprojekcie-panel {
  min-height: 400px;
}

/* Tekst artykułowy */
.eg-text-block.eg-content {
  max-width: 700px;
}

/* O mnie — animowane tytuły */
.eg-omnie-hero {
  padding: 60px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.eg-omnie-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 8px;
}

.eg-omnie-stack > h2 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--mint);
}

.eg-omnie-stack > h2:first-of-type {
  margin-top: 0;
}

.eg-omnie-now-line {
  margin: 0.7em 0 0.1em;
  padding: 0 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  font-weight: 600;
  line-height: 1.4;
  color: color-mix(in srgb, var(--mint) 46%, #14241f 54%);
}

.eg-omnie-dots {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: min(88%, 22rem);
  margin: 0.55em auto 0.9em;
  align-items: center;
  pointer-events: none;
}

.eg-omnie-dots span {
  display: block;
  width: 5px;
  height: 5px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--mint);
}

.eg-page-oprojekcie .eg-op-qa-card .eg-omnie-kim-line {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--mint);
  margin: 0.35em 0 0.45em;
  line-height: 1.2;
}

.eg-page-oprojekcie .eg-op-qa-card .eg-omnie-kim-line strong {
  font-weight: 700;
}

.eg-omnie-ps-line {
  margin: 0.5em 0 0;
}

.eg-omnie-ps {
  display: inline;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.85vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  color: #e04040;
  text-decoration: none;
}

.eg-omnie-ps em {
  font-style: normal;
  font-weight: 700;
}

.eg-page-oprojekcie .eg-omnie-stack.eg-content > p {
  font-size: clamp(0.92rem, 1.25vw, 1.02rem);
  line-height: 1.48;
  margin: 0 0 0.45em;
}

.eg-page-oprojekcie .eg-omnie-stack.eg-content > h2 {
  margin-top: 1.05em;
  margin-bottom: 0.35em;
}

/* O projekcie / O mnie / FAQ — karty + opisy w miętowym boxie */
.eg-page-oprojekcie .eg-op-qa-list {
  display: grid;
  gap: 28px;
}

.eg-page-oprojekcie .eg-op-qa-card {
  border: none;
  border-radius: 16px;
  padding: 22px 24px;
}

.eg-page-oprojekcie .eg-op-qa-card > h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin: 0 0 0.5em;
  text-align: left;
}

.eg-page-oprojekcie .eg-op-desc-body {
  margin-top: 0.35em;
  padding: clamp(18px, 2.8vw, 28px) clamp(16px, 3.5vw, 32px);
  border-radius: 12px;
  background: rgba(152, 255, 217, 0.08);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(0.92rem, 1.25vw, 1.02rem);
  line-height: 1.68;
  color: var(--text2);
}

.eg-page-oprojekcie .eg-op-desc-body p,
.eg-page-oprojekcie .eg-op-desc-body li,
.eg-page-oprojekcie .eg-op-desc-body blockquote {
  text-align: center;
}

.eg-page-oprojekcie .eg-op-desc-body p {
  margin: 0 0 0.45em;
}

.eg-page-oprojekcie .eg-op-desc-body p:last-child {
  margin-bottom: 0;
}

/* Odstęp między akapitami (tematami); w O mnie wiele krótkich zdań — mniejszy step */
.eg-page-oprojekcie .eg-op-desc-body p + p {
  margin-top: 0.75em;
}

#eg-panel-projekt .eg-op-desc-body p + p {
  margin-top: 1.35em;
}

#eg-panel-omnie .eg-op-desc-body p + p {
  margin-top: 0.7em;
}

.eg-page-oprojekcie .eg-faq-answer .eg-op-desc-body p + p {
  margin-top: 1em;
}

.eg-page-oprojekcie .eg-op-desc-body ul,
.eg-page-oprojekcie .eg-op-desc-body ol {
  margin: 1em auto 0;
  padding: 0;
  list-style-position: inside;
  max-width: 40rem;
}

.eg-page-oprojekcie .eg-op-desc-body li + li {
  margin-top: 0.55em;
}

.eg-page-oprojekcie .eg-op-desc-body .eg-op-proj-quote {
  margin: 1.35em auto 0;
  padding: 1.15em 0 0;
  border-left: none;
  border-top: 1px solid rgba(152, 255, 217, 0.28);
  border-radius: 0;
  background: transparent;
  max-width: 36rem;
}

.eg-page-oprojekcie .eg-op-desc-body .eg-op-proj-quote cite,
.eg-page-oprojekcie .eg-op-desc-body .eg-op-proj-quote__cite {
  text-align: center;
}

.eg-page-oprojekcie .eg-op-desc-body .eg-omnie-kim-line {
  margin-top: 0;
}

.eg-page-oprojekcie .eg-faq-answer {
  padding: 10px 4px 12px;
}

.eg-page-oprojekcie .eg-faq-answer .eg-op-desc-body {
  margin-top: 0;
}

/* Kontakt layout */
.eg-kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .eg-kontakt-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.eg-kontakt-form-wrap h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--mint);
  margin: 0 0 8px;
}

.eg-contact-purposes {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.eg-contact-purposes__legend {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  padding: 0;
}

.eg-contact-purposes__hint {
  margin-top: 0;
  margin-bottom: 14px;
}

.eg-contact-purposes-dropdown {
  position: relative;
  max-width: 520px;
}

.eg-contact-purposes__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: rgba(152, 255, 217, 0.15);
}

.eg-contact-purposes__toggle:hover,
.eg-contact-purposes__toggle:focus-visible {
  color: var(--mint) !important;
  border-color: rgba(152, 255, 217, 0.45) !important;
  background: var(--bg3) !important;
  box-shadow: none !important;
}

.eg-contact-purposes__toggle:focus-visible {
  outline: 2px solid rgba(152, 255, 217, 0.45);
  outline-offset: 2px;
}

.eg-contact-purposes__toggle-label {
  color: inherit;
}

.eg-contact-purposes__toggle-chevron {
  flex-shrink: 0;
  font-size: 10px;
  color: currentColor;
  opacity: 0.8;
}

.eg-contact-purposes__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  max-height: min(320px, 55vh);
  overflow-y: auto;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.eg-contact-purposes__panel[hidden] {
  display: none !important;
}

.eg-contact-purpose-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2);
  cursor: pointer;
  padding: 6px 4px;
}

.eg-contact-purpose-label + .eg-contact-purpose-label {
  margin-top: 2px;
}

.eg-contact-purpose-cb {
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--mint);
}

.eg-kontakt-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.eg-kontakt-social-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.eg-kontakt-social-inner h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  text-align: center;
  width: 100%;
}


/* ============================================================
   KONTO
   ============================================================ */

/* Panel zalogowanego */
.eg-konto-profile {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.eg-konto-avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.eg-konto-profile-info {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-konto-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.eg-konto-email {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text3);
  margin: 0;
}

.eg-konto-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-top: 4px;
  width: fit-content;
}

.eg-konto-role-badge--banana { border-color: rgba(238,220,167,.4); background: rgba(238,220,167,.06); }
.eg-konto-role-badge--blue   { border-color: rgba(178,201,218,.4); background: rgba(178,201,218,.06); }
.eg-konto-role-badge--mint   { border-color: rgba(152, 255, 217, 0.4); background: rgba(152, 255, 217, 0.06); }
.eg-konto-role-badge--zephyr { border-color: rgba(213,206,203,.3); background: rgba(213,206,203,.04); }

.eg-konto-zone {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
}

.eg-konto-role {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.eg-konto-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

@media (max-width: 640px) {
  .eg-konto-actions { align-items: flex-start; }
}

.eg-konto-logout {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .15s;
}

.eg-konto-logout:hover {
  color: var(--accent);
}

/* Strefy */
.eg-konto-zones-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--mint);
  margin: 0 0 20px;
}

.eg-konto-zones {
  margin-bottom: 40px;
}

.eg-konto-zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 860px) {
  .eg-konto-zones-grid { grid-template-columns: 1fr; }
}

.eg-konto-zone-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eg-konto-zone-card--active {
  border-color: rgba(152, 255, 217, 0.3);
}

.eg-konto-zone-card--locked {
  opacity: .65;
}

.eg-konto-zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.eg-konto-zone-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text2);
}

.eg-konto-zone-status {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
}

.eg-konto-zone-card--locked .eg-konto-zone-status {
  color: var(--text3);
}

.eg-konto-zone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.eg-konto-zone-list li {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text2);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}

.eg-konto-zone-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text3);
}

/* Szybki dostęp */
.eg-konto-quick {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.eg-konto-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eg-konto-quick-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid currentColor;
  text-decoration: none;
  transition: opacity .18s;
  letter-spacing: .04em;
}

.eg-konto-quick-link:hover {
  opacity: .75;
}

/* Formularz logowania (WP native + nasze style) */
.eg-konto-login {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .eg-konto-login { grid-template-columns: 1fr; gap: 40px; }
}

.eg-konto-login-wrap {}

#eg-login-form p { margin-bottom: 14px; }

#eg-login-form label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  display: block;
  margin-bottom: 5px;
}

#eg-login-form input[type="text"],
#eg-login-form input[type="password"] {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color .18s;
}

#eg-login-form input[type="text"]:focus,
#eg-login-form input[type="password"]:focus {
  border-color: var(--border2);
}

#eg-login-form input[type="submit"] {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 10px;
  background: var(--banana);
  color: #1a1208;
  border: none;
  cursor: pointer;
  transition: background .18s;
  margin-top: 4px;
}

#eg-login-form input[type="submit"]:hover {
  background: var(--banana2);
}

#eg-login-form .forgetmenot {
  display: flex;
  align-items: center;
  gap: 8px;
}

#eg-login-form .forgetmenot label {
  margin-bottom: 0;
  font-size: 13px;
}

.eg-konto-login-links {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.eg-konto-login-links a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(178,201,218,.4);
}

.eg-konto-login-links a:hover {
  color: var(--blue2);
}

.eg-konto-login-sep {
  color: var(--text3);
}

/* Upsell */
.eg-konto-upsell {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: flex-start;
}

.eg-konto-upsell h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--mint);
  margin: 0;
}

.eg-konto-upsell p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  margin: 0;
}


/* ============================================================
   SINGLE — wspólne
   ============================================================ */

.eg-single-wrap {
  padding-top: 32px;
  padding-bottom: 80px;
}

/* Refleksja single — centralny box i wyśrodkowany layout */
.eg-refleksja-single-wrap {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eg-refleksja-single-box {
  width: 50%;
  margin: 0 auto;
  padding: clamp(20px, 2.6vw, 36px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg2) 78%, transparent);
  text-align: center;
}

.eg-refleksja-single-box .eg-breadcrumb {
  justify-content: center;
}

.eg-refleksja-single-box .eg-single-header,
.eg-refleksja-single-box .eg-single-body,
.eg-refleksja-single-box .eg-refleksja-question-box {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.eg-refleksja-single-box .eg-single-meta-top,
.eg-refleksja-single-box .eg-refleksja-cytat,
.eg-refleksja-single-box .eg-refleksja-content,
.eg-refleksja-single-box .eg-refleksja-question-box,
.eg-refleksja-single-box .eg-refleksja-pytanie {
  text-align: center;
  justify-content: center;
}

.eg-refleksja-single-box .eg-refleksja-content {
  color: var(--text);
}

.eg-refleksja-single-box .eg-refleksja-content p {
  margin: 0;
}

.eg-refleksja-single-box .eg-refleksja-content p + p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--text2) 28%, transparent);
}

.eg-refleksja-single-box .eg-refleksja-extended,
.eg-refleksja-single-box .eg-refleksja-extended .eg-refleksja-content,
.eg-refleksja-single-box .eg-refleksja-extended .eg-refleksja-content p,
.eg-refleksja-single-box .eg-refleksja-extended .eg-refleksja-content li {
  color: var(--text2) !important;
}

.eg-refleksja-single-box .eg-refleksja-question-box {
  margin-top: 28px;
}

.eg-refleksja-single-box .eg-refleksja-divider-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.eg-refleksja-single-box .eg-refleksja-divider {
  display: block;
  height: 1px;
}

.eg-refleksja-single-box .eg-refleksja-divider--full {
  width: 100%;
}

.eg-refleksja-single-box .eg-refleksja-divider--half {
  width: 50%;
}

.eg-refleksja-single-box .eg-refleksja-pytanie {
  color: var(--mint);
  font-size: clamp(18px, 1.2vw, 20px);
  line-height: 1.35;
}

.eg-refleksja-single-box .eg-refleksja-pytanie-part {
  margin: 0;
  border: 0;
  padding: 0;
}

.eg-refleksja-single-box .eg-refleksja-pytanie-part + .eg-refleksja-pytanie-part {
  margin-top: 10px;
}

.eg-refleksja-single-box .eg-refleksja-pytanie-icon {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 10px;
  color: var(--mint);
}

/* Single: ton jak na karcie hubu — obramowanie, tytuł, dividery, pytanie */
.eg-refleksja-single-box.eg-glow-toned {
  border-color: var(--eg-glow-border);
}

.eg-refleksja-single-box.eg-glow-toned .eg-single-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--eg-ref-accent);
}

.eg-refleksja-single-box.eg-glow-toned .eg-refleksja-content p + p {
  border-top-color: var(--eg-glow-border);
}

.eg-refleksja-single-box.eg-glow-toned .eg-refleksja-question-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: color-mix(in srgb, var(--eg-ref-accent) 20%, transparent);
  border-radius: 12px;
  padding: clamp(16px, 2.5vw, 24px);
}

/* Błysk w tonie refleksji — ten sam ruch maski co .eg-mentor-bottom__img--shine */
.eg-refleksja-single-box.eg-glow-toned .eg-refleksja-question-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: color-mix(in srgb, var(--eg-ref-accent) 58%, white 12%);
  -webkit-mask-image: linear-gradient(
    135deg,
    transparent 0%,
    transparent 44%,
    #000 50%,
    transparent 56%,
    transparent 100%
  );
  mask-image: linear-gradient(
    135deg,
    transparent 0%,
    transparent 44%,
    #000 50%,
    transparent 56%,
    transparent 100%
  );
  -webkit-mask-size: 260% 260%;
  mask-size: 260% 260%;
  -webkit-mask-position: 100% 100%;
  mask-position: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: eg-mentor-shine-pass 11s ease-in-out infinite;
}

.eg-refleksja-single-box.eg-glow-toned .eg-refleksja-question-box > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .eg-refleksja-single-box.eg-glow-toned .eg-refleksja-question-box::after {
    animation: none;
    opacity: 0;
  }
}

.eg-refleksja-single-box.eg-glow-toned .eg-refleksja-pytanie {
  color: var(--eg-ref-accent);
}

.eg-refleksja-single-box.eg-glow-toned .eg-refleksja-pytanie-icon {
  color: color-mix(in srgb, var(--eg-ref-accent) 74%, white 26%);
}

@media (max-width: 1024px) {
  .eg-refleksja-single-wrap {
    min-height: auto;
    display: block;
  }
  .eg-refleksja-single-box {
    width: 100%;
  }
}

/* Breadcrumb */
.eg-breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .06em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 28px;
}

.eg-breadcrumb a {
  color: var(--text3);
  text-decoration: none;
  transition: color .15s;
}

.eg-breadcrumb a:hover {
  color: var(--blue);
}

/* Nagłówek artykułu */
.eg-single-header {
  margin-bottom: 36px;
  max-width: 800px;
}

.eg-single-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.eg-single-duration {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
}

.eg-single-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text3);
}

.eg-single-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--mint);
  line-height: 1.2;
  margin: 0 0 20px;
}

.eg-single-cytat {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--banana);
  margin: 0 0 20px;
  padding: 0;
  border: none;
  line-height: 1.55;
}

.eg-single-cytat::before { content: '\201C'; }
.eg-single-cytat::after  { content: '\201D'; }

.eg-single-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Sekcje artykułu */
.eg-single-section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 32px;
  max-width: 800px;
}

.eg-single-section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--mint);
  margin: 0 0 20px;
}

.eg-single-body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text2);
}

/* Player */
.eg-single-player {
  margin-bottom: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.eg-single-spotify {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
}

.eg-external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .18s;
}

.eg-external-link:hover {
  border-color: var(--border2);
}

/* Kluczowe idee */
.eg-idee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eg-idee-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.eg-idee-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  color: var(--mint);
  letter-spacing: .06em;
  flex-shrink: 0;
  width: 28px;
  line-height: 1.7;
}

.eg-idee-text {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

/* Źródła i linki */
.eg-single-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eg-single-links-list li {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text2);
  padding-left: 16px;
  position: relative;
}

.eg-single-links-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text3);
  font-size: 12px;
}

.eg-single-links-list a {
  color: var(--blue);
  text-decoration: none;
  transition: color .15s;
}

.eg-single-links-list a:hover {
  color: var(--blue2);
  text-decoration: underline;
}

/* Transkrypcja toggle */
.eg-single-transkrypcja {
  max-width: 800px;
}

.eg-transkrypcja-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: background .18s, border-color .18s;
}

.eg-transkrypcja-toggle:hover {
  background: var(--bg3);
  border-color: var(--border2);
}

.eg-transkrypcja-icon {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--text3);
  line-height: 1;
}

.eg-transkrypcja-body {
  padding: 24px 0 0;
}

/* Powiązany zasób z pobieralni */
.eg-single-pobieralnia {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 32px;
  max-width: 800px;
  flex-wrap: wrap;
}

.eg-single-pobieralnia-type {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  background: var(--bg3);
  padding: 6px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.eg-single-pobieralnia-info {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eg-single-pobieralnia-info strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.eg-single-pobieralnia-info span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text3);
}

.eg-single-pobieralnia--pdf-pending {
  opacity: .8;
  filter: saturate(.94);
}

.eg-single-pobieralnia-info .eg-pobieralnia-pdf-pending-msg {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

/* Stopka artykułu */
.eg-single-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 800px;
}

.eg-single-footer-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Powiązane materiały */
.eg-single-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.eg-single-related-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
}

/* Tagi: kolory CPT */
.eg-tag-temat {
  background: rgba(178,201,218,.08);
  border-color: rgba(178,201,218,.3);
  color: var(--blue);
}


/* ============================================================
   ENCYKLOPEDIA — single
   ============================================================ */

.eg-enc-single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 60px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .eg-enc-single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.eg-enc-single-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.eg-enc-single-letter {
  font-family: var(--serif);
  font-size: 80px;
  font-weight: 700;
  color: var(--blueberry);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
  user-select: none;
}

.eg-enc-single-header-body {
  flex: 1;
  min-width: 0;
}

.eg-enc-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.eg-enc-single-skrot {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text2);
  margin: 12px 0 0;
  max-width: 680px;
}

/* Cytat encyklopedii */
.eg-enc-single-cytat {
  margin: 0 0 0;
  padding: 24px 28px;
  background: linear-gradient( 135deg, rgba(238,220,167,.06) 0%, rgba(152, 255, 217, 0.04) 100% );
  border-left: 3px solid var(--banana);
  border-radius: 0 12px 12px 0;
}

.eg-enc-single-cytat p {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--banana);
  margin: 0 0 8px;
  line-height: 1.6;
}

.eg-enc-single-cytat footer {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mint);
  font-style: normal;
  letter-spacing: .04em;
}

/* Sekcja błędów */
.eg-enc-bledy {
  background: rgba(200, 61, 61, 0.06);
  border: 1px solid rgba(200, 61, 61, 0.45);
  border-radius: 14px;
  padding: 24px 22px;
  margin-left: -22px;
  margin-right: -22px;
}

.eg-enc-bledy .eg-single-section-title {
  color: #d56a6a;
}

/* Pytania do autorefleksji */
.eg-pytania-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eg-pytania-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg3);
  border-radius: 12px;
  padding: 14px 16px;
}

.eg-pytania-icon {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.4;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.eg-pytania-item span:last-child {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

/* Sidebar */
.eg-enc-single-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eg-enc-single-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eg-enc-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .18s, background .18s;
}

.eg-enc-nav-link:hover {
  border-color: var(--border2);
  background: var(--bg3);
}

.eg-enc-nav-dir {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
}

.eg-enc-nav-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--banana);
  line-height: 1.3;
}

.eg-enc-sidebar-block {}

.eg-enc-sidebar-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 12px;
}

.eg-enc-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-enc-sidebar-list li a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: color .15s;
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.eg-enc-sidebar-list li a:hover {
  color: var(--banana);
}

.eg-enc-sidebar-back {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .15s;
}

.eg-enc-sidebar-back:hover {
  color: var(--blue);
}

@media (max-width: 1024px) {
  .eg-enc-single-sidebar {
    position: static;
    border-top: 1px solid var(--border);
    padding-top: 32px;
  }
}


/* ============================================================
   ELOG — single
   ============================================================ */

.eg-elog-single .eg-single-header {
  margin: 0 auto 28px;
  max-width: min(680px, 92vw);
  text-align: center;
}

.eg-elog-single .eg-single-meta-top,
.eg-elog-single .eg-single-terms {
  justify-content: center;
}

/* Dwie kolumny: puenta (lewo) + węższa treść; bez puenty — jedna węższa kolumna. */
.eg-elog-single-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 28px 32px;
  max-width: min(680px, 94vw);
  margin: 0 auto;
}

.eg-elog-single-columns--content-only {
  flex-direction: column;
  align-items: center;
}

.eg-elog-single-columns--puenta-only {
  justify-content: center;
  max-width: min(320px, 94vw);
}

.eg-elog-single-columns--puenta-only .eg-elog-single-puenta {
  flex: none;
  max-width: none;
}

.eg-elog-single-columns--content-only .eg-elog-single-content-wrap {
  flex: none;
  width: 100%;
  max-width: min(520px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.eg-elog-single-columns--content-only .eg-elog-single-content-wrap .eg-elog-content {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

/* Wyśrodkowanie puenty na osi krzyżowej (względem wysokości kolumny z treścią) */
.eg-elog-single-puenta {
  flex: 0 1 208px;
  align-self: center;
  width: 100%;
  max-width: min(240px, 100%);
  margin: 0;
}

.eg-elog-single-puenta-inner {
  padding: 18px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mint);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif);
  font-size: clamp(13px, 1.35vw, 15px);
  line-height: 1.55;
  color: var(--mint);
  text-align: left;
}

/* Kolumna treści: linie tekstu wyśrodkowane (nie przy lewej krawędzi bloku). */
.eg-elog-single-columns:not(.eg-elog-single-columns--puenta-only):not(.eg-elog-single-columns--content-only) .eg-elog-single-content-wrap {
  flex: 1 1 260px;
  max-width: min(480px, 100%);
  min-width: 0;
  align-self: flex-start;
  text-align: center;
}

.eg-elog-single-columns:not(.eg-elog-single-columns--puenta-only):not(.eg-elog-single-columns--content-only) .eg-elog-single-content-wrap .eg-elog-content {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

.eg-elog-single .eg-elog-content {
  text-align: center;
}

.eg-elog-content p {
  margin: 0 0 1.1em;
}

.eg-elog-single-tags {
  margin-top: 10px;
}

.eg-elog-single-divider {
  border: 0;
  height: 1px;
  margin: 22px auto;
  max-width: min(680px, 92vw);
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

@media (max-width: 640px) {
  .eg-elog-single-columns:not(.eg-elog-single-columns--content-only) {
    flex-direction: column;
    align-items: stretch;
    max-width: min(520px, 94vw);
  }

  .eg-elog-single-columns:not(.eg-elog-single-columns--content-only) .eg-elog-single-puenta {
    flex: none;
    max-width: none;
  }

  .eg-elog-single-columns:not(.eg-elog-single-columns--content-only) .eg-elog-single-content-wrap {
    flex: none;
    max-width: none;
    width: 100%;
  }
}

.eg-elog-single-random {
  margin-top: 8px;
}

.eg-elog-refleksja-box {
  margin-top: 36px;
  padding: 24px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 0 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.eg-elog-refleksja-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

.eg-elog-refleksja-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.eg-elog-refleksja-title a {
  color: inherit;
  text-decoration: none;
}

.eg-elog-refleksja-title a:hover {
  color: var(--mint);
}


/* ============================================================
   ENOTE — single
   ============================================================ */

.eg-enote-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .eg-enote-layout { grid-template-columns: 1fr; }
}

.eg-enote-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 90px;
}

.eg-enote-player {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.eg-enote-direct-video {
  width: 100%;
  aspect-ratio: var(--eg-direct-aspect, 9 / 16);
  max-height: min(92vh, 860px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.eg-enote-direct-video__el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  vertical-align: middle;
}

.eg-enote-thumb {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.eg-enote-platforms {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-enote-teza {
  background: var(--bg3);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eg-enote-teza-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--banana);
}

.eg-enote-teza p {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}

.eg-enote-pytanie {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg3);
  border-radius: 14px;
  padding: 16px 18px;
}

.eg-enote-pytanie p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text2);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .eg-enote-media { position: static; }
}

/* ENote — single (tekst + opcjonalnie TikTok obok) */
.eg-enote-single-head {
  margin-bottom: 28px;
}
.eg-enote-single-date {
  display: block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2, rgba(255, 255, 255, 0.65));
  margin-bottom: 10px;
}
.eg-enote-single-meta {
  margin-bottom: 12px;
}
.eg-enote-single-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1.2;
}
.eg-enote-single-columns {
  display: block;
}
.eg-enote-single--with-video .eg-enote-single-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 36px 40px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .eg-enote-single--with-video .eg-enote-single-columns {
    grid-template-columns: 1fr;
  }
}
.eg-enote-body-text {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.65;
  color: var(--text, #fff);
}
.eg-enote-aty {
  margin-top: 0;
  padding-top: 16px;
  border-top: none;
}

/* ENote single + archiwum v4: marginesy dividera (wygląd linii = hr.eg-header-divider w #eg-main) */
#eg-main .eg-enote-single-main hr.eg-enote-body-aty-divider,
#eg-main .eg-enote-v4-body-wrap hr.eg-enote-body-aty-divider {
  width: 100%;
  max-width: min(100%, 42rem);
  margin: 28px auto 0;
  box-sizing: border-box;
}

#eg-main .eg-enote-v4-body-wrap hr.eg-enote-body-aty-divider + .eg-enote-v4-reflection-lead {
  margin-top: 0.65em;
}
.eg-enote-aty__lead {
  margin: 0 0 8px;
  font-family: var(--sans, system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--banana, #eedfa7);
}
.eg-enote-aty__q {
  margin: 0;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text2, rgba(255, 255, 255, 0.78));
}
.eg-enote-single-aside {
  position: sticky;
  top: 96px;
}
.eg-enote-single-media {
  max-width: 340px;
  margin: 0 auto;
}
.eg-enote-single-media .eg-youtube-lite,
.eg-enote-single-media .eg-enote-direct-video {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}
.eg-enote-tiktok-embed {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  max-width: 340px;
  margin: 0 auto;
}
.eg-enote-tiktok-embed .tiktok-embed {
  margin: 0 auto !important;
  max-width: 100% !important;
}
.eg-enote-tiktok-embed iframe {
  max-width: 100%;
  border: 0;
}
@media (max-width: 900px) {
  .eg-enote-single-aside { position: static; }
}

/* ============================================================
   ESET — single
   ============================================================ */

.eg-eset-hero {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 36px;
}

@media (max-width: 760px) {
  .eg-eset-hero { grid-template-columns: 1fr; }
}

.eg-eset-cover {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}

.eg-eset-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eg-eset-cover-empty {
  font-size: 48px;
}

.eg-eset-hero-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.eg-eset-opis {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
  margin: 0;
  max-width: 520px;
}

.eg-eset-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.eg-eset-embed {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  margin-bottom: 0;
}


/* ============================================================
   WIP placeholder (ERoom / przyszłe formaty)
   ============================================================ */

.eg-wip-placeholder {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 0;
}

.eg-wip-icon {
  font-size: 48px;
  line-height: 1;
}

.eg-wip-desc {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text2);
  margin: 0;
}

.eg-wip-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text3);
  margin: 0;
  padding: 16px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}


/* ============================================================
   ECUT — single
   ============================================================ */

.eg-ecut-parent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 520px;
  flex-wrap: wrap;
}

.eg-ecut-parent-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.eg-ecut-parent-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  flex: 1;
  transition: color .15s;
}

.eg-ecut-parent-link:hover {
  color: var(--blue);
}


/* ============================================================
   FRONT PAGE — Hero
   ============================================================ */

.eg-hero {
  padding: 96px 0 64px;
  text-align: center;
}

.eg-hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 24px;
  opacity: .95;
}

.eg-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--mint);
  margin: 0 auto 24px;
  max-width: 780px;
}

.eg-hero h1 .eg-dim {
  color: var(--text3);
}

.eg-hero-lead {
  font-family: var(--serif);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.75;
  color: var(--banana);
  max-width: 580px;
  margin: 0 auto 36px;
}

.eg-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FRONT PAGE — Intencje
   ============================================================ */

.eg-intention-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}

.eg-intention-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
}

.eg-intention-icon {
  font-size: 28px;
  line-height: 1;
}

.eg-intention-icon .fa-solid {
  font-size: 1.35rem;
  color: var(--mint, #98ffd9);
  line-height: 1;
}

.eg-intention-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--mint);
  margin: 0;
}

.eg-intention-card p {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text2);
  margin: 0;
  flex: 1;
}

.eg-intention-arrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--mint);
  letter-spacing: .04em;
  margin-top: 4px;
}

/* ============================================================
   FRONT PAGE — Tematy / Topic pills
   ============================================================ */

.eg-topics-block {
  max-width: 860px;
  margin: 0 auto;
}

.eg-topics-block h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.eg-topics-block > p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 28px;
}

.eg-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.eg-topic-pill {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 40px;
  background: rgba(178, 201, 218, 0.07);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  letter-spacing: .03em;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  text-align: center;
}

.eg-topic-pill:hover,
.eg-topic-pill.is-active {
  background: rgba(178, 201, 218, 0.15);
  border-color: var(--blue);
  color: var(--blue);
}

.eg-topic-pill.is-hidden {
  display: none;
}

.eg-topic-pills-rail {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.eg-topic-pills-viewport {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}

.eg-topic-pills-track {
  display: block;
  width: max-content;
  max-width: none;
  transition: transform .2s ease;
}

.eg-topic-pills.eg-topic-pills--chunk,
.eg-topic-pills.eg-topic-pills--clone {
  margin-bottom: 0;
}

.eg-topic-pills--chunk,
.eg-topic-pills--clone {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  max-width: none;
  padding: 2px 0;
  box-sizing: border-box;
}

.eg-topic-pills-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  column-gap: 12px;
  min-height: 0;
}

.eg-topic-pills--chunk .eg-topic-pill,
.eg-topic-pills--clone .eg-topic-pill {
  flex: 0 0 auto;
}

.eg-topic-pills-nav {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.eg-topic-pills-nav:disabled {
  opacity: .35;
  cursor: default;
}

.eg-topic-search-empty {
  margin: 0 0 12px;
  padding: 8px 0 0;
  text-align: center;
}

.eg-topics-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.eg-topic-format-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text2);
  text-decoration: none;
  background: rgba(178, 201, 218, 0.06);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.eg-topic-format-link:hover {
  border-color: rgba(152, 255, 217, 0.4);
  color: var(--mint);
}

.eg-topic-format-link.is-active {
  border-color: rgba(152, 255, 217, 0.55);
  color: var(--mint);
  background: rgba(152, 255, 217, 0.1);
}

.eg-slider-wrap--topic {
  margin-top: 8px;
}

.eg-topics-results {
  min-height: 0;
  transition: min-height .3s;
}

#eg-tematy-wyniki.is-visible {
  min-height: 100px;
}

.eg-topics-results-header {
  margin-bottom: 20px;
}

.eg-topics-results-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eg-topics-results-count {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(178, 201, 218, 0.1);
  color: var(--text2);
  letter-spacing: .04em;
}

.eg-loading,
.eg-empty {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text3);
  padding: 24px 0;
  text-align: center;
}

/* ============================================================
   Grid 4-kolumnowy (wyniki tematów)
   ============================================================ */

.eg-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .eg-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .eg-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .eg-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   ARCHIVE TEMPLATES
   ============================================================ */

/* --- Page header shared --- */
.eg-page-header {
  text-align: center;
  margin-bottom: 40px;
}
.eg-page-header-lead {
  color: var(--banana);
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 17px;
}

/* Divider w bloku nagłówka stron (gradient „wygaszający” na bokach). Treść: hr.eg-divider bez zmian. */
#eg-main hr.eg-header-divider,
#eg-main hr.eg-elog-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

#eg-main .eg-page-header hr.eg-header-divider {
  margin: 22px 0 0;
  width: 100%;
}

/* Bez panelu bocznego (Dziś, najnowszy materiał itd.) — cały nagłówek i divider wyśrodkowane */
#eg-main .eg-page-header--solo,
#eg-main .eg-page-header:not(
  .eg-page-header--elog-split,
  .eg-page-header--enote-split,
  .eg-page-header--eset-split,
  .eg-page-header--eshot-split,
  .eg-page-header--enc-split,
  .eg-page-header--refleksja
) {
  max-width: 720px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-sizing: border-box;
}

#eg-main .eg-page-header--solo .eg-section-label,
#eg-main .eg-page-header--solo h1,
#eg-main .eg-page-header:not(
  .eg-page-header--elog-split,
  .eg-page-header--enote-split,
  .eg-page-header--eset-split,
  .eg-page-header--eshot-split,
  .eg-page-header--enc-split,
  .eg-page-header--refleksja
) .eg-section-label,
#eg-main .eg-page-header:not(
  .eg-page-header--elog-split,
  .eg-page-header--enote-split,
  .eg-page-header--eset-split,
  .eg-page-header--eshot-split,
  .eg-page-header--enc-split,
  .eg-page-header--refleksja
) h1 {
  text-align: center;
}

#eg-main .eg-page-header--solo .eg-page-header-lead,
#eg-main .eg-page-header:not(
  .eg-page-header--elog-split,
  .eg-page-header--enote-split,
  .eg-page-header--eset-split,
  .eg-page-header--eshot-split,
  .eg-page-header--enc-split,
  .eg-page-header--refleksja
) .eg-page-header-lead {
  margin-left: auto;
  margin-right: auto;
}

#eg-main .eg-page-header-lead--preline {
  white-space: pre-line;
}

#eg-main .eg-page-header-lead a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(152, 255, 217, 0.45);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

#eg-main .eg-page-header-lead a:hover {
  color: var(--blue);
  text-decoration-color: rgba(178, 201, 218, 0.65);
}

#eg-main hr.eg-elog-divider {
  margin: 30px 0;
}

/* Encyklopedia — nagłówek: dwie równe połowy szerokości, boxy dopasowane do komórek */
#eg-main .eg-page-header--enc-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 44px;
  align-items: start;
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#eg-main .eg-page-header--enc-split .eg-page-header__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#eg-main .eg-page-header--enc-split .eg-section-label,
#eg-main .eg-page-header--enc-split h1,
#eg-main .eg-page-header--enc-split .eg-page-header-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#eg-main .eg-page-header--enc-split .eg-page-header-lead {
  max-width: 640px;
}

#eg-main .eg-page-header--enc-split .eg-page-header__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#eg-main .eg-page-header--enc-split .eg-enc-mission-box {
  width: 100%;
  box-sizing: border-box;
}

#eg-main .eg-page-header--enc-split > hr.eg-header-divider {
  grid-column: 1 / -1;
  margin-top: 8px;
}

@media (max-width: 900px) {
  #eg-main .eg-page-header--enc-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ELog archive — nagłówek: lewa kolumna (etykieta, tytuł, lead, divider), prawa „Dziś” + jeden kafel */
#eg-main .eg-elog-archive-intro {
  margin-bottom: 40px;
}

#eg-main .eg-page-header--elog-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 360px);
  gap: 32px 40px;
  align-items: start;
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: unset;
}

#eg-main .eg-page-header--elog-split .eg-page-header__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#eg-main .eg-page-header--elog-split .eg-section-label,
#eg-main .eg-page-header--elog-split h1,
#eg-main .eg-page-header--elog-split .eg-page-header-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#eg-main .eg-page-header--elog-split .eg-page-header-lead {
  max-width: 640px;
}

#eg-main .eg-page-header--elog-split .eg-page-header__main .eg-header-divider {
  width: 100%;
  max-width: 520px;
  margin-top: 22px;
  margin-bottom: 0;
}

#eg-main .eg-page-header--elog-split .eg-page-header__aside.eg-elog-today-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

#eg-main .eg-elog-today-heading {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}

#eg-main .eg-elog-today-tile-host {
  width: 100%;
  display: flex;
  justify-content: center;
}

#eg-main .eg-elog-today-aside .eg-elog-tile {
  width: 100%;
  margin: 0;
}

#eg-main .eg-elog-today-aside .eg-elog-tile--today-size-1 {
  max-width: 200px;
}

#eg-main .eg-elog-today-aside .eg-elog-tile--today-size-2 {
  max-width: 280px;
}

#eg-main .eg-elog-today-aside .eg-elog-tile--today-size-3 {
  max-width: 360px;
}

#eg-main .eg-elog-tile--today-empty .eg-elog-today-empty-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
}

#eg-main .eg-elog-today-empty-msg {
  margin: 0;
  padding: clamp(12px, 4vw, 20px);
  font-family: var(--sans);
  font-size: clamp(13px, 2.8vw, 15px);
  line-height: 1.45;
  color: var(--text2);
  text-align: center;
}

#eg-main .eg-elog-archive-intro + .eg-elog-random-section {
  margin-top: 36px;
}

@media (max-width: 900px) {
  #eg-main .eg-page-header--elog-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #eg-main .eg-page-header--elog-split .eg-page-header__aside.eg-elog-today-aside {
    padding-top: 8px;
  }
}

/* --------------------------------------------------------
   ENote archive v4 — zgoda, split header, karuzela pionowa
   -------------------------------------------------------- */
#eg-main .eg-enote-archive-v4 {
  padding-bottom: 48px;
  font-family: var(--serif);
}

#eg-main .eg-enote-archive-v4 .eg-breadcrumb {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

#eg-main .eg-enote-archive-v4 .eg-empty {
  font-family: var(--serif);
}

#eg-main .eg-enote-archive-intro {
  margin-bottom: 28px;
}

#eg-main .eg-page-header--enote-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
  gap: 32px 40px;
  align-items: start;
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: unset;
}

#eg-main .eg-page-header--enote-split .eg-page-header__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#eg-main .eg-page-header--enote-split .eg-section-label,
#eg-main .eg-page-header--enote-split h1,
#eg-main .eg-page-header--enote-split .eg-page-header-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--serif);
}

#eg-main .eg-page-header--enote-split .eg-page-header-lead {
  max-width: 640px;
}

#eg-main .eg-page-header--enote-split .eg-page-header__main .eg-header-divider {
  width: 100%;
  max-width: 520px;
  margin-top: 22px;
  margin-bottom: 0;
}

#eg-main .eg-page-header--enote-split .eg-page-header__aside.eg-enote-follow-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

#eg-main .eg-enote-follow-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text2);
}

#eg-main .eg-enote-follow-aside .eg-enote-follow-social.eg-footer-social {
  flex-wrap: nowrap;
  justify-content: center;
  padding: 0;
  row-gap: 0;
  column-gap: 0;
}

#eg-main .eg-enote-latest-tiktok-fallback {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#eg-main .eg-enote-latest-tiktok-fallback__text {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text2);
}

#eg-main .eg-enote-v4-theme-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 20px;
  box-sizing: border-box;
}

#eg-main .eg-enote-v4-theme-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-height: 52px;
  padding: 0;
  background: rgba(0, 0, 0, 0.58);
  box-sizing: border-box;
}

#eg-main .eg-enote-v4-theme-strip__scroll {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  justify-content: safe center;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#eg-main .eg-enote-v4-theme-strip__scroll::-webkit-scrollbar {
  display: none;
}

#eg-main .eg-enote-v4-theme-nav {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 auto;
}

#eg-main .eg-enote-v4-theme-nav .eg-enote-v4-nav-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  --kal-accent: #98ffd9;
  border-color: color-mix(in srgb, var(--kal-accent) 38%, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--kal-accent) 10%, rgba(0, 0, 0, 0.28));
  color: color-mix(in srgb, var(--kal-accent) 70%, var(--text2) 30%);
}

#eg-main .eg-enote-v4-theme-nav .eg-enote-v4-nav-btn:hover {
  border-color: color-mix(in srgb, var(--kal-accent) 48%, rgba(255, 255, 255, 0.28));
  background: color-mix(in srgb, var(--kal-accent) 16%, rgba(0, 0, 0, 0.38));
  color: color-mix(in srgb, var(--kal-accent) 82%, white 18%);
}

#eg-main .eg-enote-v4-theme-nav .eg-enote-v4-nav-btn.is-active {
  border-color: color-mix(in srgb, var(--kal-accent) 52%, rgba(255, 255, 255, 0.24));
  background: color-mix(in srgb, var(--kal-accent) 20%, rgba(0, 0, 0, 0.32));
  color: color-mix(in srgb, var(--kal-accent) 90%, white 10%);
}

#eg-main .eg-enote-v4-theme-strip__arrow {
  flex: 0 0 44px;
  width: 44px;
  align-self: stretch;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(152, 255, 217, 0.95);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

#eg-main .eg-enote-v4-theme-strip__arrow:hover {
  color: #c9fff0;
  background: rgba(0, 0, 0, 0.52);
}

#eg-main .eg-enote-v4-nav-btn {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

#eg-main .eg-enote-v4-nav-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.38);
}

#eg-main .eg-enote-v4-nav-btn.is-active {
  border-color: rgba(152, 255, 217, 0.45);
  background: rgba(152, 255, 217, 0.12);
}

#eg-main .eg-enote-v4-stage {
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#eg-main .eg-enote-v4-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 18px 28px;
  align-items: start;
}

#eg-main .eg-enote-v4-col-titles {
  min-width: 0;
  padding-right: 4px;
  overflow: visible;
}

#eg-main .eg-enote-v4-col-body {
  min-width: 0;
  padding: 8px 6px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

#eg-main .eg-enote-v4-body-wrap {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  flex-shrink: 0;
}

#eg-main .eg-enote-v4-body-wrap .eg-enote-v4-prose {
  max-width: min(100%, 42rem);
  width: 100%;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

#eg-main .eg-enote-v4-reflection-lead {
  margin: 1.75em 0 0.5em;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: inherit;
}

#eg-main .eg-enote-v4-reflection-box {
  width: 100%;
  max-width: min(100%, 42rem);
  margin: 0 auto;
  padding: 14px 16px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(152, 255, 217, 0.28);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  color: var(--text2, rgba(255, 255, 255, 0.88));
  min-height: 3.25rem;
}

/* Tona jak na innych kartach: przycisk tematu + ramka/tekst pytania „A Ty?” — ten sam ton per wpis (JS: eg-glow-tone-N). */
#eg-main .eg-enote-v4-title-btn.eg-glow-toned {
  border-color: var(--eg-glow-border);
  background: color-mix(in srgb, var(--eg-ref-accent) 22%, rgba(0, 0, 0, 0.42));
  color: color-mix(in srgb, var(--eg-ref-accent) 78%, white 22%);
}

#eg-main .eg-enote-v4-title-btn.eg-glow-toned:hover {
  border-color: var(--eg-glow-border-hover);
  background: color-mix(in srgb, var(--eg-ref-accent) 30%, rgba(0, 0, 0, 0.45));
}

#eg-main .eg-enote-v4-title-btn.eg-glow-toned.is-active {
  border-color: var(--eg-glow-border-hover);
  background: color-mix(in srgb, var(--eg-ref-accent) 34%, rgba(0, 0, 0, 0.4));
  color: color-mix(in srgb, var(--eg-ref-accent) 82%, white 18%);
}

#eg-main .eg-enote-v4-reflection-box.eg-glow-toned {
  border-color: var(--eg-glow-border);
  background: color-mix(in srgb, var(--eg-ref-accent) 14%, rgba(0, 0, 0, 0.28));
  color: color-mix(in srgb, var(--eg-ref-accent) 76%, white 24%);
}

#eg-main .eg-enote-v4-title-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#eg-main .eg-enote-v4-title-item {
  margin: 0;
  padding: 0;
}

#eg-main .eg-enote-v4-title-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

#eg-main .eg-enote-v4-title-desc {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text2);
}

/* Ton jak przy przycisku, ale słabiej niż tekst na przycisku — ~jak udział akcentu w tle (22%). */
#eg-main .eg-enote-v4-title-desc.eg-glow-toned {
  color: color-mix(in srgb, var(--eg-ref-accent) 24%, var(--text2, rgba(255, 255, 255, 0.78)) 76%);
}

#eg-main .eg-enote-v4-title-item.is-active .eg-enote-v4-title-desc.eg-glow-toned {
  color: color-mix(in srgb, var(--eg-ref-accent) 32%, var(--text2, rgba(255, 255, 255, 0.82)) 68%);
}

#eg-main .eg-enote-v4-title-row .eg-enote-v4-title-btn {
  flex: 0 1 auto;
  max-width: min(260px, 48%);
  width: auto;
  min-width: 0;
}

#eg-main .eg-enote-v4-title-row--solo .eg-enote-v4-title-btn {
  max-width: none;
  width: 100%;
}

#eg-main .eg-enote-v4-title-btn:focus-visible {
  outline: 2px solid rgba(152, 255, 217, 0.5);
  outline-offset: 2px;
}

#eg-main .eg-enote-v4-title-btn.eg-enote-v4-nav-btn {
  font-size: 14px;
  line-height: 1.38;
}

#eg-main .eg-enote-v4-empty-msg {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  font-family: var(--serif);
  color: var(--text2);
}

#eg-main .eg-enote-v4-carousel {
  position: relative;
}

#eg-main .eg-enote-v4-carousel__edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}

#eg-main .eg-enote-v4-carousel__edge--top {
  top: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.97), rgba(5, 5, 8, 0));
}

#eg-main .eg-enote-v4-carousel__edge--bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.97), rgba(5, 5, 8, 0));
}

#eg-main .eg-enote-v4-carousel__viewport {
  position: relative;
  min-height: 360px;
  height: min(88vh, 880px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow:
    inset 0 36px 52px -28px rgba(0, 0, 0, 0.88),
    inset 0 -36px 52px -28px rgba(0, 0, 0, 0.88);
}

#eg-main .eg-enote-v4-carousel__viewport::-webkit-scrollbar {
  display: none;
}

#eg-main .eg-enote-v4-carousel__track {
  display: flex;
  flex-direction: column;
}

#eg-main .eg-enote-v4-slide {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

#eg-main .eg-enote-v4-slide:has(> .eg-enote-v4-slide__empty:only-child) {
  align-items: center;
  justify-content: center;
}

#eg-main .eg-enote-v4-slide__aspect {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

#eg-main .eg-enote-v4-slide__aspect--tiktok {
  overflow: hidden;
}

#eg-main .eg-enote-v4-slide__aspect .eg-enote-v4-slide__iframe,
#eg-main .eg-enote-v4-slide__aspect .eg-enote-v4-slide__video,
#eg-main .eg-enote-v4-slide__aspect .eg-youtube-lite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  display: block;
  background: transparent;
  aspect-ratio: auto;
}

#eg-main .eg-enote-v4-slide__aspect .eg-enote-v4-slide__video {
  object-fit: contain;
}

#eg-main .eg-enote-v4-slide__aspect--tiktok .tiktok-embed,
#eg-main .eg-enote-v4-slide__aspect--tiktok blockquote {
  max-width: 100% !important;
  margin: 0 auto !important;
}

#eg-main .eg-enote-v4-slide__empty {
  margin: 0;
  padding: 12px 10px;
  text-align: center;
  align-self: center;
  font-family: var(--serif);
  color: var(--text2);
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
}

@media (max-width: 900px) {
  #eg-main .eg-page-header--enote-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #eg-main .eg-enote-v4-stage {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  #eg-main .eg-enote-v4-grid {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
  }

  #eg-main .eg-enote-v4-col-titles {
    order: 1;
  }

  #eg-main .eg-enote-v4-col-body {
    order: 2;
    display: flex;
  }

  #eg-main .eg-enote-v4-title-desc {
    display: none !important;
  }

  #eg-main .eg-enote-v4-title-row--solo .eg-enote-v4-title-btn,
  #eg-main .eg-enote-v4-title-row .eg-enote-v4-title-btn {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 560px) {
  #eg-main .eg-enote-v4-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px 0;
  }

  #eg-main .eg-enote-v4-col-titles,
  #eg-main .eg-enote-v4-col-body {
    order: unset;
  }
}

#eg-main .eg-enote-social-note {
  margin: 1.35rem auto 0.15rem;
  padding: 0 12px;
  max-width: 40rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text2);
  font-weight: 400;
}

#eg-main .eg-enote-social-note .eg-inline-link {
  font-weight: 500;
}

.eg-ksz-header-disclaimer {
  color: #e57373;
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 13px;
  line-height: 1.45;
}

/* --------------------------------------------------------
   Archive ESpace
   -------------------------------------------------------- */
.eg-espace-archive-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1024px) {
  .eg-espace-archive-layout {
    grid-template-columns: 1fr;
  }
  .eg-espace-player-wrap { order: -1; }
}

.eg-espace-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eg-espace-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.eg-espace-item:hover,
.eg-espace-item.is-active {
  border-color: rgba(152, 255, 217, 0.35);
}
.eg-espace-item:focus-visible {
  outline: 2px solid rgba(152, 255, 217, 0.5);
  outline-offset: 2px;
}

.eg-espace-item-thumb {
  position: relative;
  width: 80px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-hover);
}
.eg-espace-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eg-espace-item-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 22px;
}
.eg-espace-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .2s;
}
.eg-espace-item:hover .eg-espace-play-icon,
.eg-espace-item.is-active .eg-espace-play-icon { opacity: 1; }

.eg-espace-item-body { flex: 1; min-width: 0; }
.eg-espace-item-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.eg-espace-item-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eg-espace-item-cytat {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 6px;
  font-style: italic;
}
.eg-espace-item-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Player wrap */
.eg-espace-player-wrap {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.eg-espace-player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  color: var(--text-muted);
  gap: 10px;
  font-size: 14px;
}
.eg-espace-player-placeholder span { font-size: 36px; }
.eg-espace-player-info {
  margin-top: 14px;
}
.eg-espace-player-info h3 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  margin: 0 0 8px;
}

/* --------------------------------------------------------
   Archive ELog
   -------------------------------------------------------- */

.eg-elog-section-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text3);
}

.eg-elog-random-grid,
.eg-elog-month-grid {
  gap: 20px;
}

.eg-elog-random-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ELog archive — kwadratowe kafelki: obraz + ~10 % overlay + puenta */
.eg-elog-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.eg-elog-tile-date-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.eg-elog-tile-date {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}

.eg-elog-tile-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--eg-glass-border);
  box-shadow: var(--eg-glass-shadow);
  background: var(--bg2);
}

.eg-elog-tile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.eg-elog-tile-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--eg-elog-overlay, hsl(210, 58%, 45%)) 30%, var(--bg2)),
    var(--bg3)
  );
}

.eg-elog-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--eg-elog-overlay, hsl(210, 58%, 45%));
  opacity: 0.3;
  pointer-events: none;
}

.eg-elog-tile-photo-credit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}

.eg-elog-tile-photo-credit:hover,
.eg-elog-tile-photo-credit:focus-visible {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  transform: scale(1.05);
}

.eg-elog-tile-photo-credit__icon {
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.eg-elog-tile--highlight {
  outline: 2px solid var(--accent, hsl(210, 58%, 45%));
  outline-offset: 4px;
}

.eg-elog-tile-quote {
  --eg-elog-quote-pad: clamp(12px, 3vw, 22px);
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  padding: var(--eg-elog-quote-pad);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(clamp(12px, 1.95vw, 17px) + 2pt);
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.eg-elog-tile-quote p {
  margin: 0 0 0.5em;
  width: 100%;
  max-width: 100%;
}

.eg-elog-tile-quote p:last-child {
  margin-bottom: 0;
}

/* Puenta: kolor tekstu; text-shadow dziedziczony (ciasny + poświata). */
#eg-main .eg-elog-tile-visual blockquote.eg-elog-tile-quote,
#eg-main .eg-elog-tile-visual .eg-elog-tile-quote p,
#eg-main .eg-elog-tile-visual .eg-elog-tile-quote__row {
  color: #fff;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
}

#eg-main .eg-elog-tile-visual blockquote.eg-elog-tile-quote {
  border-left: 0;
  margin: 0;
  font-style: normal;
  overflow: visible;
  /* Ciasna warstwa daje realny kontrast; duże rozmycia są mocno przycinane przez overflow:hidden na .eg-elog-tile-visual. */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 1),
    0 0 24px rgba(0, 0, 0, 1),
    0 0 48px rgba(0, 0, 0, 1),
    0 0 90px rgba(0, 0, 0, 1);
}

#eg-main .eg-elog-tile-visual .eg-elog-tile-quote__row {
  display: block;
  text-align: center;
}

#eg-main .eg-elog-tile-visual .eg-elog-tile-quote__gap {
  display: block;
  width: 100%;
  height: calc(1em * 1.35);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  color: transparent;
  user-select: none;
}

.eg-elog-tile-grid {
  display: grid;
  gap: 20px;
}

.eg-elog-tile-grid.eg-elog-tile-grid--random {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  /* Ta sama szerokość jednego kafelka co w .eg-elog-month-tile-grid (3 kolumny, column-gap 20px). */
  --eg-elog-tile-w: calc((100% - 40px) / 3);
}

.eg-elog-tile-grid--random .eg-elog-tile {
  flex: 0 0 var(--eg-elog-tile-w);
  width: var(--eg-elog-tile-w);
  max-width: 100%;
  min-width: 0;
}

.eg-elog-month-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.eg-elog-month-tile-grid .eg-elog-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  min-width: 0;
}

@media (max-width: 1024px) {
  .eg-elog-month-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eg-elog-tile-grid.eg-elog-tile-grid--random {
    --eg-elog-tile-w: calc((100% - 20px) / 2);
  }
}

.eg-elog-month-grid {
  column-count: 3;
  column-gap: 20px;
}

.eg-elog-square-card {
  min-width: 0;
}

.eg-elog-month-grid .eg-elog-square-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.eg-elog-square-link {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  height: auto;
  text-align: center;
  text-decoration: none;
  color: var(--text2);
  background: var(--eg-glass-bg);
  border: 1px solid var(--eg-glass-border);
  border-radius: 20px;
  padding: 18px 16px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  overflow: visible;
  box-shadow: var(--eg-glass-shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.eg-elog-random-grid .eg-elog-square-link {
  min-height: 360px;
}
.eg-elog-square-link:hover {
  border-color: var(--eg-glass-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--eg-glass-shadow);
}

.eg-elog-square-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  text-decoration: none !important;
}

.eg-elog-square-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}

.eg-elog-square-title {
  margin: 0 auto;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.02vw, 20px);
  font-weight: 700;
  line-height: 1.24;
  color: #000;
  width: fit-content;
  max-width: 100%;
  text-decoration: none !important;
}

/* Tła boxu tytułu: 31 tonów, 70% krycie; przypisanie w PHP (eg_elog_assign_title_tones_for_posts). */
.eg-elog-square-title--tone-0 {
  background: color-mix(in srgb, var(--mint) 70%, transparent);
  border-color: rgba(152, 255, 217, 0.36);
}

.eg-elog-square-title--tone-1 {
  background: color-mix(in srgb, #a5f3fc 70%, transparent);
  border-color: rgba(56, 189, 248, 0.34);
}

.eg-elog-square-title--tone-2 {
  background: color-mix(in srgb, #fde68a 70%, transparent);
  border-color: rgba(245, 158, 11, 0.32);
}

.eg-elog-square-title--tone-3 {
  background: color-mix(in srgb, #fbcfe8 70%, transparent);
  border-color: rgba(236, 72, 153, 0.3);
}

.eg-elog-square-title--tone-4 {
  background: color-mix(in srgb, #bbf7d0 70%, transparent);
  border-color: rgba(34, 197, 94, 0.32);
}

.eg-elog-square-title--tone-5 {
  background: color-mix(in srgb, #ddd6fe 70%, transparent);
  border-color: rgba(139, 92, 246, 0.32);
}

.eg-elog-square-title--tone-6 {
  background: color-mix(in srgb, #fed7aa 70%, transparent);
  border-color: rgba(249, 115, 22, 0.32);
}

.eg-elog-square-title--tone-7 {
  background: color-mix(in srgb, #bae6fd 70%, transparent);
  border-color: rgba(14, 165, 233, 0.34);
}

.eg-elog-square-title--tone-8 {
  background: color-mix(in srgb, #ffe4e6 70%, transparent);
  border-color: rgba(244, 63, 94, 0.3);
}

.eg-elog-square-title--tone-9 {
  background: color-mix(in srgb, #ccfbf1 70%, transparent);
  border-color: rgba(13, 148, 136, 0.32);
}

.eg-elog-square-title--tone-10 {
  background: color-mix(in srgb, #e0e7ff 70%, transparent);
  border-color: rgba(79, 70, 229, 0.3);
}

.eg-elog-square-title--tone-11 {
  background: color-mix(in srgb, #fef9c3 70%, transparent);
  border-color: rgba(202, 138, 4, 0.32);
}

.eg-elog-square-title--tone-12 {
  background: color-mix(in srgb, #ecfccb 70%, transparent);
  border-color: rgba(101, 163, 13, 0.32);
}

.eg-elog-square-title--tone-13 {
  background: color-mix(in srgb, #ffedd5 70%, transparent);
  border-color: rgba(234, 88, 12, 0.32);
}

.eg-elog-square-title--tone-14 {
  background: color-mix(in srgb, #f3e8ff 70%, transparent);
  border-color: rgba(147, 51, 234, 0.3);
}

.eg-elog-square-title--tone-15 {
  background: color-mix(in srgb, #cffafe 70%, transparent);
  border-color: rgba(8, 145, 178, 0.32);
}

.eg-elog-square-title--tone-16 {
  background: color-mix(in srgb, #fee2e2 70%, transparent);
  border-color: rgba(220, 38, 38, 0.3);
}

.eg-elog-square-title--tone-17 {
  background: color-mix(in srgb, #d1fae5 70%, transparent);
  border-color: rgba(5, 150, 105, 0.32);
}

.eg-elog-square-title--tone-18 {
  background: color-mix(in srgb, #fef3c7 70%, transparent);
  border-color: rgba(217, 119, 6, 0.32);
}

.eg-elog-square-title--tone-19 {
  background: color-mix(in srgb, #e0f2fe 70%, transparent);
  border-color: rgba(2, 132, 199, 0.32);
}

.eg-elog-square-title--tone-20 {
  background: color-mix(in srgb, #ede9fe 70%, transparent);
  border-color: rgba(124, 58, 237, 0.3);
}

.eg-elog-square-title--tone-21 {
  background: color-mix(in srgb, #fae8ff 70%, transparent);
  border-color: rgba(192, 38, 211, 0.3);
}

.eg-elog-square-title--tone-22 {
  background: color-mix(in srgb, #fce7f3 70%, transparent);
  border-color: rgba(219, 39, 119, 0.3);
}

.eg-elog-square-title--tone-23 {
  background: color-mix(in srgb, #dcfce7 70%, transparent);
  border-color: rgba(22, 163, 74, 0.32);
}

.eg-elog-square-title--tone-24 {
  background: color-mix(in srgb, #dbeafe 70%, transparent);
  border-color: rgba(37, 99, 235, 0.32);
}

.eg-elog-square-title--tone-25 {
  background: color-mix(in srgb, #fecdd3 70%, transparent);
  border-color: rgba(225, 29, 72, 0.3);
}

.eg-elog-square-title--tone-26 {
  background: color-mix(in srgb, #99f6e4 70%, transparent);
  border-color: rgba(13, 148, 136, 0.34);
}

.eg-elog-square-title--tone-27 {
  background: color-mix(in srgb, #c7d2fe 70%, transparent);
  border-color: rgba(67, 56, 202, 0.32);
}

.eg-elog-square-title--tone-28 {
  background: color-mix(in srgb, #fef08a 70%, transparent);
  border-color: rgba(202, 138, 4, 0.34);
}

.eg-elog-square-title--tone-29 {
  background: color-mix(in srgb, #d9f99d 70%, transparent);
  border-color: rgba(101, 163, 13, 0.34);
}

.eg-elog-square-title--tone-30 {
  background: color-mix(in srgb, #fdba74 70%, transparent);
  border-color: rgba(234, 88, 12, 0.34);
}

.eg-elog-square-puenta {
  margin: 0 auto;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid rgba(152, 255, 217, 0.28);
  background: #000;
  font-family: var(--serif);
  font-size: clamp(12px, 0.86vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--mint);
  margin-top: 4px;
  margin-bottom: 0;
  width: fit-content;
  max-width: 100%;
  text-decoration: none !important;
}

.eg-elog-square-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg3);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--accent);
  margin-top: 8px;
  text-decoration: none;
}

.eg-elog-square-link,
.eg-elog-square-link:hover,
.eg-elog-square-link:focus-visible,
.eg-elog-square-link *,
.eg-elog-square-link *:hover,
.eg-elog-square-link *:focus-visible {
  text-decoration: none !important;
}

.eg-elog-jump-nav {
  position: sticky;
  top: 88px;
  z-index: 8;
  margin-bottom: 24px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.eg-elog-jump-years,
.eg-elog-jump-months {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.eg-elog-jump-months {
  margin-top: 12px;
}

.eg-elog-jump-pill,
.eg-elog-jump-month-pill {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.28;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text2);
  background: var(--bg2);
  transition: border-color .2s, color .2s, background .2s;
  cursor: pointer;
}

.eg-elog-jump-pill {
  padding: 10px 18px;
}

.eg-elog-jump-month-pill {
  padding: 10px 20px;
}

.eg-elog-jump-pill:hover,
.eg-elog-jump-month-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.eg-elog-jump-pill.is-active,
.eg-elog-jump-month-pill.is-active {
  border-color: var(--mint);
  color: var(--mint);
  background: color-mix(in srgb, var(--mint) 12%, var(--bg2));
}

.eg-elog-jump-pill:focus-visible,
.eg-elog-jump-month-pill:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

/* Nadpisanie globalnego #eg-main button { sans } — kapsułki ELog w Georgia (systemowej). */
#eg-page-wrap #eg-main .eg-elog-jump-pill,
#eg-page-wrap #eg-main .eg-elog-jump-month-pill {
  font-family: Georgia, "Times New Roman", serif !important;
}

.eg-elog-archive-panels {
  margin-top: 6px;
}

.eg-elog-month-panel {
  margin-top: 0;
}

.eg-elog-month-panel-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--banana);
}

@media (max-width: 1280px) {
  .eg-elog-random-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .eg-elog-month-grid {
    column-count: 2;
  }

  .eg-elog-tile-quote {
    font-size: calc(clamp(12px, 1.95vw, 17px) - 1pt);
  }

  .eg-elog-square-title {
    font-size: calc(clamp(15px, 1.02vw, 20px) - 3pt);
  }

  #eg-main .eg-page-header-lead,
  #eg-main .eg-hero-lead {
    font-size: 16px;
  }

  .eg-topic-pills-rail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .eg-topic-pills-nav {
    display: none;
  }

  .eg-topic-pills-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .eg-topic-pills-viewport::-webkit-scrollbar {
    display: none;
  }

  .eg-topic-pills--chunk .eg-topic-pill,
  .eg-topic-pills--clone .eg-topic-pill {
    font-size: 11px;
    padding: 6px 12px;
  }
}

@media (max-width: 900px) {
  .eg-elog-random-grid {
    grid-template-columns: 1fr;
  }
  .eg-elog-month-grid {
    column-count: 2;
  }
}

@media (max-width: 620px) {
  .eg-elog-month-grid {
    column-count: 1;
  }
}

/* --------------------------------------------------------
   Archive EShot
   -------------------------------------------------------- */

/* Siatka archiwum: 3 kolumny (dotykające się kafle) → wąski ekran jedna kolumna; ramka z cieniem. */
#eg-main .eg-eshot-archive-intro {
  margin-bottom: 40px;
}

#eg-main .eg-page-header--eshot-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 360px);
  gap: 32px 40px;
  align-items: start;
  max-width: none;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: unset;
}

#eg-main .eg-page-header--eshot-split .eg-page-header__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#eg-main .eg-page-header--eshot-split .eg-section-label,
#eg-main .eg-page-header--eshot-split h1,
#eg-main .eg-page-header--eshot-split .eg-page-header-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#eg-main .eg-page-header--eshot-split .eg-page-header-lead {
  max-width: 640px;
}

#eg-main .eg-page-header--eshot-split .eg-page-header__main .eg-header-divider {
  width: 100%;
  max-width: 520px;
  margin-top: 22px;
  margin-bottom: 0;
}

#eg-main .eg-page-header--eshot-split .eg-page-header__aside.eg-eshot-latest-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

#eg-main .eg-eshot-latest-heading {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}

#eg-main .eg-eshot-latest-tile-host {
  width: 100%;
  display: flex;
  justify-content: center;
}

#eg-main .eg-eshot-latest-aside .eg-eshot-grid-frame--glow .eg-eshot-tile--latest-aside {
  width: 100%;
  margin: 0;
}

#eg-main .eg-eshot-latest-empty {
  margin: 0;
  padding: clamp(12px, 4vw, 20px);
  font-family: var(--sans);
  font-size: clamp(13px, 2.8vw, 15px);
  line-height: 1.45;
  color: var(--text2);
  text-align: center;
}

@media (max-width: 900px) {
  #eg-main .eg-page-header--eshot-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  #eg-main .eg-page-header--eshot-split .eg-page-header__aside.eg-eshot-latest-aside {
    padding-top: 8px;
  }
}

.eg-eshot-main {
  padding: 24px 0 44px;
}

.eg-eshot-grid-frame {
  box-sizing: border-box;
  max-width: 100%;
  margin: 20px auto 0;
}

/* Rozświetlenie (bez ciemnego cienia „w dół”) — siatka: stały czerwony akcent. */
.eg-eshot-grid-frame--accent-red {
  border: 2px solid #d93a3a;
  box-shadow:
    0 0 10px rgba(217, 58, 58, 0.55),
    0 0 26px rgba(217, 58, 58, 0.42),
    0 0 48px rgba(217, 58, 58, 0.28),
    inset 0 0 18px rgba(217, 58, 58, 0.08);
}

/* Najnowszy: ta sama ramka, kolor z palety eg-glow-tone-N (losowany w PHP). */
#eg-main .eg-eshot-grid-frame--glow.eg-glow-toned {
  border: 2px solid var(--eg-glow-border);
  box-shadow:
    0 0 10px var(--eg-glow-border),
    0 0 28px color-mix(in srgb, var(--eg-ref-accent, var(--eg-glow-border)) 55%, transparent),
    0 0 52px color-mix(in srgb, var(--eg-glow-border) 35%, transparent),
    inset 0 0 20px color-mix(in srgb, var(--eg-glow-border) 12%, transparent);
}

#eg-main .eg-eshot-latest-tile-host .eg-eshot-grid-frame--glow {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.eg-eshot-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

/* Siatka: 3 kolumny ≥901px; wąski ekran — 1 kolumna + odstęp od brzegów (cień/ramka nie obcinane). */
@media (max-width: 900px) {
  #eg-main .eg-eshot-tile-grid {
    grid-template-columns: 1fr;
  }

  #eg-main .eg-eshot-grid-frame {
    --eg-eshot-frame-gutter: clamp(16px, 5vw, 28px);
    box-sizing: border-box;
    width: auto;
    max-width: none;
    margin-top: 20px;
    margin-bottom: 0;
    margin-left: var(--eg-eshot-frame-gutter);
    margin-right: var(--eg-eshot-frame-gutter);
  }

  #eg-main .eg-eshot-latest-tile-host .eg-eshot-grid-frame--glow {
    width: 100%;
    max-width: min(320px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  #eg-main .eg-eshot-grid-frame {
    margin-left: max(20px, env(safe-area-inset-left, 0px));
    margin-right: max(20px, env(safe-area-inset-right, 0px));
  }
}

.eg-eshot-tile-grid .eg-eshot-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.eg-eshot-tile:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
  z-index: 4;
}

.eg-eshot-tile-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.eg-eshot-frame {
  position: absolute;
  inset: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

.eg-eshot-frame-text-fit {
  position: absolute;
  top: var(--eg-eshot-inset-t, 6%);
  right: var(--eg-eshot-inset-r, 6%);
  bottom: var(--eg-eshot-inset-b, 6%);
  left: var(--eg-eshot-inset-l, 6%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}

.eg-eshot-frame.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.eg-eshot-frame-text {
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.45;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
}

.eg-eshot-tile-nav {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

#eg-main .eg-eshot-tile-arrow,
#eg-main .eg-eshot-tile-arrow:hover,
#eg-main .eg-eshot-tile-arrow:focus,
#eg-main .eg-eshot-tile-arrow:active {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: #d93a3a;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.eg-eshot-tile-arrow__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform 0.22s ease;
}

.eg-eshot-tile-arrow__svg {
  display: block;
}

.eg-eshot-tile-arrow:hover .eg-eshot-tile-arrow__visual,
.eg-eshot-tile-arrow:focus-visible .eg-eshot-tile-arrow__visual {
  transform: scale(1.14);
}

.eg-eshot-tile-arrow:focus-visible {
  outline: none;
}

.eg-eshot-tile-arrow:focus-visible .eg-eshot-tile-arrow__visual {
  outline: 2px solid rgba(217, 58, 58, 0.65);
  outline-offset: 4px;
  border-radius: 4px;
}

.eg-eshot-tile-arrow.is-prev {
  left: 4px;
}

.eg-eshot-tile-arrow.is-next {
  right: 4px;
}

.eg-eshot-empty {
  text-align: center;
  padding: 26px;
  color: var(--text2);
}

.eg-eshot-modal:not([open]) {
  display: none;
}
.eg-eshot-modal[open] {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: min(20px, 4vw);
  box-sizing: border-box;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.eg-eshot-modal::backdrop {
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: grayscale(0.45) blur(4px);
}
.eg-eshot-modal__title {
  margin: 0;
  padding: 0 52px 0 8px;
  max-width: min(86vw, 640px);
  align-self: center;
  color: #fff;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.3;
  text-align: center;
}
.eg-eshot-modal__close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 4;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 16, 20, 0.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.eg-eshot-modal__close:focus-visible {
  outline: 2px solid var(--mint, #98ffd9);
  outline-offset: 2px;
}
.eg-eshot-modal__stage {
  position: relative;
  width: min(86vw, 640px);
  max-width: 100%;
  border-radius: 14px;
  --eg-eshot-modal-accent: var(--mint, rgb(152, 255, 217));
  box-shadow:
    0 0 64px 10px color-mix(in srgb, var(--eg-eshot-modal-accent) 48%, transparent),
    0 20px 56px rgba(0, 0, 0, 0.58);
}
.eg-eshot-modal .eg-eshot-tile--modal,
.eg-eshot-modal .eg-eshot-tile-media {
  width: 100%;
}
.eg-eshot-modal .eg-eshot-tile-media {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .eg-eshot-modal__stage {
    width: min(92vw, 640px);
  }
}

.eg-soon-dialog:not([open]) {
  display: none;
}
.eg-soon-dialog[open] {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: min(20px, 4vw);
  box-sizing: border-box;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eg-soon-dialog::backdrop {
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: grayscale(0.45) blur(4px);
}
.eg-soon-dialog__box {
  position: relative;
  width: min(420px, 92vw);
  padding: 36px 40px 32px;
  border-radius: 16px;
  background: #0c0e12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  --eg-soon-accent: var(--mint, rgb(152, 255, 217));
  box-shadow:
    0 0 48px 8px color-mix(in srgb, var(--eg-soon-accent) 36%, transparent),
    0 20px 56px rgba(0, 0, 0, 0.58);
  text-align: center;
}
.eg-soon-dialog__text {
  margin: 0;
  color: var(--text, #dfcfba);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.45;
}
.eg-soon-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 16, 20, 0.72);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.eg-soon-hub-message {
  margin: 24px 0 48px;
  text-align: center;
  color: var(--text, #dfcfba);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.5;
}

/* --------------------------------------------------------
   Archive ENote
   -------------------------------------------------------- */
.eg-enote-archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1024px) {
  .eg-enote-archive-layout {
    grid-template-columns: 1fr;
  }
  .eg-enote-archive-player { order: -1; }
}

.eg-enote-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) {
  .eg-enote-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .eg-enote-archive-grid { grid-template-columns: 1fr; }
}

.eg-enote-archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.eg-enote-archive-card:hover,
.eg-enote-archive-card.is-active {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.eg-enote-archive-thumb {
  position: relative;
  aspect-ratio: 9/16;
  max-height: 280px;
  overflow: hidden;
  background: var(--surface-hover);
}
.eg-enote-archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eg-enote-archive-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 36px;
}
.eg-enote-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 28px;
  opacity: 0;
  transition: opacity .2s;
}
.eg-enote-archive-card:hover .eg-enote-play-overlay { opacity: 1; }

.eg-enote-archive-body { padding: 12px 14px 16px; }
.eg-enote-archive-body h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 4px;
  color: var(--mint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eg-enote-archive-body p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eg-enote-archive-player {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.eg-enote-player-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9/16;
  color: var(--text-muted);
  gap: 10px;
  font-size: 13px;
}
.eg-enote-player-placeholder span { font-size: 36px; }


/* Domyślne zaokrąglenia pól formularza (przyciski mają klasy .eg-btn-* / .eg-tab / .eg-faq-btn) */
#eg-page-wrap input[type="submit"]:not(.search-submit):not([class*="eg-"]),
#eg-page-wrap input[type="search"],
#eg-page-wrap input[type="text"],
#eg-page-wrap input[type="email"],
#eg-page-wrap input[type="password"],
#eg-page-wrap input[type="url"],
#eg-page-wrap input[type="tel"],
#eg-page-wrap input[type="number"],
#eg-page-wrap textarea,
#eg-page-wrap select {
  border-radius: max(12px, var(--r));
}

/* ============================================================
   Paleta tonów świecącej obwódki (eg-glow.js: eg-glow-tone-0 … 30)
   ============================================================ */

.eg-glow-tone-0 { --eg-ref-accent: rgb(152, 255, 217); --eg-glow-border: rgba(152, 255, 217, 0.42); --eg-glow-border-hover: rgba(152, 255, 217, 0.68); }
.eg-glow-tone-1 { --eg-ref-accent: rgb(56, 189, 248); --eg-glow-border: rgba(56, 189, 248, 0.4); --eg-glow-border-hover: rgba(56, 189, 248, 0.66); }
.eg-glow-tone-2 { --eg-ref-accent: rgb(245, 158, 11); --eg-glow-border: rgba(245, 158, 11, 0.38); --eg-glow-border-hover: rgba(245, 158, 11, 0.64); }
.eg-glow-tone-3 { --eg-ref-accent: rgb(236, 72, 153); --eg-glow-border: rgba(236, 72, 153, 0.36); --eg-glow-border-hover: rgba(236, 72, 153, 0.62); }
.eg-glow-tone-4 { --eg-ref-accent: rgb(34, 197, 94); --eg-glow-border: rgba(34, 197, 94, 0.38); --eg-glow-border-hover: rgba(34, 197, 94, 0.64); }
.eg-glow-tone-5 { --eg-ref-accent: rgb(139, 92, 246); --eg-glow-border: rgba(139, 92, 246, 0.38); --eg-glow-border-hover: rgba(139, 92, 246, 0.64); }
.eg-glow-tone-6 { --eg-ref-accent: rgb(249, 115, 22); --eg-glow-border: rgba(249, 115, 22, 0.38); --eg-glow-border-hover: rgba(249, 115, 22, 0.64); }
.eg-glow-tone-7 { --eg-ref-accent: rgb(14, 165, 233); --eg-glow-border: rgba(14, 165, 233, 0.4); --eg-glow-border-hover: rgba(14, 165, 233, 0.66); }
.eg-glow-tone-8 { --eg-ref-accent: rgb(244, 63, 94); --eg-glow-border: rgba(244, 63, 94, 0.36); --eg-glow-border-hover: rgba(244, 63, 94, 0.62); }
.eg-glow-tone-9 { --eg-ref-accent: rgb(13, 148, 136); --eg-glow-border: rgba(13, 148, 136, 0.38); --eg-glow-border-hover: rgba(13, 148, 136, 0.64); }
.eg-glow-tone-10 { --eg-ref-accent: rgb(79, 70, 229); --eg-glow-border: rgba(79, 70, 229, 0.36); --eg-glow-border-hover: rgba(79, 70, 229, 0.62); }
.eg-glow-tone-11 { --eg-ref-accent: rgb(202, 138, 4); --eg-glow-border: rgba(202, 138, 4, 0.38); --eg-glow-border-hover: rgba(202, 138, 4, 0.64); }
.eg-glow-tone-12 { --eg-ref-accent: rgb(101, 163, 13); --eg-glow-border: rgba(101, 163, 13, 0.38); --eg-glow-border-hover: rgba(101, 163, 13, 0.64); }
.eg-glow-tone-13 { --eg-ref-accent: rgb(234, 88, 12); --eg-glow-border: rgba(234, 88, 12, 0.38); --eg-glow-border-hover: rgba(234, 88, 12, 0.64); }
.eg-glow-tone-14 { --eg-ref-accent: rgb(147, 51, 234); --eg-glow-border: rgba(147, 51, 234, 0.36); --eg-glow-border-hover: rgba(147, 51, 234, 0.62); }
.eg-glow-tone-15 { --eg-ref-accent: rgb(8, 145, 178); --eg-glow-border: rgba(8, 145, 178, 0.4); --eg-glow-border-hover: rgba(8, 145, 178, 0.66); }
.eg-glow-tone-16 { --eg-ref-accent: rgb(220, 38, 38); --eg-glow-border: rgba(220, 38, 38, 0.36); --eg-glow-border-hover: rgba(220, 38, 38, 0.62); }
.eg-glow-tone-17 { --eg-ref-accent: rgb(5, 150, 105); --eg-glow-border: rgba(5, 150, 105, 0.38); --eg-glow-border-hover: rgba(5, 150, 105, 0.64); }
.eg-glow-tone-18 { --eg-ref-accent: rgb(217, 119, 6); --eg-glow-border: rgba(217, 119, 6, 0.38); --eg-glow-border-hover: rgba(217, 119, 6, 0.64); }
.eg-glow-tone-19 { --eg-ref-accent: rgb(2, 132, 199); --eg-glow-border: rgba(2, 132, 199, 0.4); --eg-glow-border-hover: rgba(2, 132, 199, 0.66); }
.eg-glow-tone-20 { --eg-ref-accent: rgb(124, 58, 237); --eg-glow-border: rgba(124, 58, 237, 0.37); --eg-glow-border-hover: rgba(124, 58, 237, 0.63); }
.eg-glow-tone-21 { --eg-ref-accent: rgb(192, 38, 211); --eg-glow-border: rgba(192, 38, 211, 0.35); --eg-glow-border-hover: rgba(192, 38, 211, 0.61); }
.eg-glow-tone-22 { --eg-ref-accent: rgb(219, 39, 119); --eg-glow-border: rgba(219, 39, 119, 0.35); --eg-glow-border-hover: rgba(219, 39, 119, 0.61); }
.eg-glow-tone-23 { --eg-ref-accent: rgb(22, 163, 74); --eg-glow-border: rgba(22, 163, 74, 0.38); --eg-glow-border-hover: rgba(22, 163, 74, 0.64); }
.eg-glow-tone-24 { --eg-ref-accent: rgb(37, 99, 235); --eg-glow-border: rgba(37, 99, 235, 0.38); --eg-glow-border-hover: rgba(37, 99, 235, 0.64); }
.eg-glow-tone-25 { --eg-ref-accent: rgb(225, 29, 72); --eg-glow-border: rgba(225, 29, 72, 0.37); --eg-glow-border-hover: rgba(225, 29, 72, 0.63); }
.eg-glow-tone-26 { --eg-ref-accent: rgb(13, 148, 136); --eg-glow-border: rgba(13, 148, 136, 0.42); --eg-glow-border-hover: rgba(13, 148, 136, 0.68); }
.eg-glow-tone-27 { --eg-ref-accent: rgb(67, 56, 202); --eg-glow-border: rgba(67, 56, 202, 0.38); --eg-glow-border-hover: rgba(67, 56, 202, 0.64); }
.eg-glow-tone-28 { --eg-ref-accent: rgb(202, 138, 4); --eg-glow-border: rgba(202, 138, 4, 0.42); --eg-glow-border-hover: rgba(202, 138, 4, 0.68); }
.eg-glow-tone-29 { --eg-ref-accent: rgb(101, 163, 13); --eg-glow-border: rgba(101, 163, 13, 0.42); --eg-glow-border-hover: rgba(101, 163, 13, 0.68); }
.eg-glow-tone-30 { --eg-ref-accent: rgb(234, 88, 12); --eg-glow-border: rgba(234, 88, 12, 0.42); --eg-glow-border-hover: rgba(234, 88, 12, 0.68); }/* ============================================================
   Świecące obramowania kart (follow pointer)
   ============================================================ */

.eg-card,
.eg-format-card,
.eg-wiedza-card,
.eg-intention-card,
.eg-enc-item-link,
.eg-mentor-card,
.eg-book-card,
.eg-slide-card,
.eg-enc-chip,
.eg-refleksja-card,
.eg-konto-zone-card,
.eg-search,
.eg-espace-v2-item,
.eg-elog-archive-item,
.eg-elog-square-link,
.eg-eset-archive-card,
.eg-enc-card,
.eg-mentor-bottom__box,
.eg-eset-slide,
.eg-eset-audio,
.eg-enote-bubble,
.eg-espace-v2-player-col,
.eg-pob-item,
.eg-pob-preview,
.eg-pobieralnia-card,
.eg-pobieralnia-card-v2,
.eg-freepub-card,
.eg-plan-card,
.eg-service-card,
.eg-enc-row,
.eg-puzzle-card,
.eg-question-card,
.eg-enc-search,
.eg-modal-box,
.eg-ekspertyza-step,
.eg-ekspertyza-aside-card,
.eg-ekspertyza-page-form-placeholder,
.eg-app-hero-mockup,
.eg-app-area-card,
.eg-app-tool-card,
.eg-op-qa-card,
.eg-pob-cat,
.eg-eset-hub-card{
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-active: 0;
    position: relative;
}.eg-card::before,
.eg-format-card::before,
.eg-wiedza-card::before,
.eg-intention-card::before,
.eg-enc-item-link::before,
.eg-mentor-card::before,
.eg-book-card::before,
.eg-slide-card::before,
.eg-enc-chip::before,
.eg-refleksja-card::before,
.eg-konto-zone-card::before,
.eg-search::before,
.eg-espace-v2-item::before,
.eg-elog-archive-item::before,
.eg-elog-square-link::before,
.eg-eset-archive-card::before,
.eg-enc-card::before,
.eg-mentor-bottom__box::before,
.eg-eset-slide::before,
.eg-eset-audio::before,
.eg-enote-bubble::before,
.eg-espace-v2-player-col::before,
.eg-pob-item::before,
.eg-pob-preview::before,
.eg-pobieralnia-card::before,
.eg-pobieralnia-card-v2::before,
.eg-freepub-card::before,
.eg-plan-card::before,
.eg-service-card::before,
.eg-enc-row::before,
.eg-puzzle-card::before,
.eg-question-card::before,
.eg-enc-search::before,
.eg-modal-box::before,
.eg-ekspertyza-step::before,
.eg-ekspertyza-aside-card::before,
.eg-ekspertyza-page-form-placeholder::before,
.eg-app-hero-mockup::before,
.eg-app-area-card::before,
.eg-app-tool-card::before,
.eg-op-qa-card::before,
.eg-pob-cat::before,
.eg-eset-hub-card::before{
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
        from calc(var(--glow-angle, 0deg) - 45deg) at var(--glow-x) var(--glow-y),
        color-mix(in srgb, var(--eg-ref-accent, #98ffd9) 88%, white),
        color-mix(in srgb, var(--eg-ref-accent, var(--mint)) 66%, white 34%),
        color-mix(in srgb, var(--eg-ref-accent, var(--mint)) 40%, black 60%),
        color-mix(in srgb, var(--eg-ref-accent, #447261) 78%, black 22%),
        color-mix(in srgb, var(--eg-ref-accent, #98ffd9) 88%, white)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: calc(var(--glow-active) * 0.8);
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.eg-topics-block .eg-search {
    position: relative;
    z-index: 1;
}

.eg-topics-block .eg-search::before {
    z-index: 0;
}

/* ============================================================
   Formularz kontaktowy (O projekcie) + modal regulaminu
   ============================================================ */

.eg-form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .eg-form-row--2col {
    grid-template-columns: 1fr;
  }
}

.eg-req {
  color: var(--accent);
  font-weight: 600;
}

.eg-field-hint {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text2);
}

.eg-form-row__label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}

.eg-select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.18s;
  outline: none;
}

.eg-select:focus {
  border-color: rgba(21, 176, 166, 0.45);
  box-shadow: 0 0 0 1px rgba(21, 176, 166, 0.25);
}

.eg-contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.eg-contact-add-link {
  align-self: flex-start;
}

.eg-form-checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.eg-form-checkbox-row input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--mint);
  cursor: pointer;
}

.eg-form-checkbox-label {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}

.eg-inline-link {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--mint) 42%, transparent);
}

.eg-inline-link:hover {
  color: var(--mint2);
  text-decoration-color: color-mix(in srgb, var(--mint2) 50%, transparent);
}

.eg-contact-footnote {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
}

.eg-contact-footnote a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--mint) 40%, transparent);
}

.eg-contact-footnote a:hover {
  color: var(--mint2);
}

.eg-contact-form-msg {
  display: block;
  margin-top: 12px;
  width: 100%;
}

.eg-contact-submit-row {
  margin-top: 8px;
}

/* Modal regulaminu kontaktu — WYŁĄCZNIE #eg-contact-rules-modal (nie #eg-modal z Pobieralni/PDF) */
body.eg-modal-open {
  overflow: hidden;
}

#eg-contact-rules-modal.eg-contact-rules-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

#eg-contact-rules-modal[hidden] {
  display: none !important;
}

#eg-contact-rules-modal .eg-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(85vh, 640px);
  overflow: auto;
  padding: 28px 28px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

#eg-contact-rules-modal .eg-modal__title {
  margin: 0 0 16px;
  padding-right: 36px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--mint);
}

#eg-contact-rules-modal .eg-modal__body p {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

#eg-contact-rules-modal .eg-modal__body p:last-child {
  margin-bottom: 0;
}

#eg-contact-rules-modal .eg-contact-rules-list {
  margin: 12px 0 0;
  padding-left: 1.15em;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

#eg-contact-rules-modal .eg-contact-rules-list li {
  margin-bottom: 12px;
}

#eg-contact-rules-modal .eg-contact-rules-list li:last-child {
  margin-bottom: 0;
}

#eg-contact-rules-modal .eg-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent !important;
  color: color-mix(in srgb, var(--text2) 88%, transparent);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  outline: none;
  transition: color 0.18s ease;
}

#eg-contact-rules-modal .eg-modal__close:hover,
#eg-contact-rules-modal .eg-modal__close:focus-visible,
#eg-contact-rules-modal .eg-modal__close:active {
  background: transparent !important;
  border: none;
  box-shadow: none;
  color: var(--mint);
}

/* Modal — faza produkcji aplikacji (strona Aplikacja) */
#eg-app-prod-modal.eg-app-prod-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

#eg-app-prod-modal[hidden] {
  display: none !important;
}

#eg-app-prod-modal .eg-app-prod-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--mint) 15%, transparent), transparent 36%),
    var(--bg2);
  border: 1px solid color-mix(in srgb, var(--mint) 42%, var(--border));
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

#eg-app-prod-modal .eg-app-prod-modal__title,
#eg-app-prod-modal .eg-app-prod-modal__intro,
#eg-app-prod-modal .eg-app-prod-modal__intro p {
  text-align: center;
}

#eg-app-prod-modal .eg-app-prod-modal__title {
  margin: 0 0 16px;
  padding: 0 44px;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 700;
  color: var(--mint);
}

#eg-app-prod-modal .eg-app-prod-modal__intro p {
  max-width: 42em;
  margin: 0 auto 28px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
}

#eg-app-prod-modal .eg-app-prod-modal__field {
  margin-bottom: 18px;
}

#eg-app-prod-modal .eg-app-prod-modal__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}

#eg-app-prod-modal .eg-app-prod-modal__input {
  width: 100%;
}

#eg-app-prod-modal .eg-app-prod-modal__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#eg-app-prod-modal .eg-app-prod-modal__consents {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--mint) 18%, var(--eg-glass-border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

#eg-app-prod-modal .eg-app-prod-modal__legend {
  padding: 0;
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text2);
}

#eg-app-prod-modal .eg-app-prod-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

#eg-app-prod-modal .eg-app-prod-modal__check:last-of-type {
  margin-bottom: 0;
}

#eg-app-prod-modal .eg-app-prod-modal__check input {
  margin-top: 3px;
  flex-shrink: 0;
}

#eg-app-prod-modal .eg-app-prod-modal__legal-link {
  color: var(--mint2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#eg-app-prod-modal .eg-app-prod-modal__legal-link:hover,
#eg-app-prod-modal .eg-app-prod-modal__legal-link:focus-visible {
  color: var(--mint);
  outline: none;
}

#eg-app-prod-modal .eg-app-prod-modal__msg {
  text-align: center;
  min-height: 1.5em;
  margin: 12px 0;
  font-size: 13px;
}

#eg-app-prod-modal .eg-app-prod-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

#eg-app-prod-modal .eg-app-prod-modal__done {
  text-align: center;
}

#eg-app-prod-modal .eg-app-prod-modal__done-text {
  white-space: pre-line;
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--mint);
}

#eg-app-prod-modal .eg-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--zephyr);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#eg-app-prod-modal .eg-modal__close:hover,
#eg-app-prod-modal .eg-modal__close:focus-visible {
  background: var(--bg3);
  color: var(--vanilla);
  outline: none;
}

/* Modal — uwaga o automatycznym tłumaczeniu (język UI ≠ PL) */
#eg-translation-notice-modal.eg-translation-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

#eg-translation-notice-modal[hidden] {
  display: none !important;
}

#eg-translation-notice-modal .eg-translation-notice-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--mint) 15%, transparent), transparent 36%),
    var(--bg2);
  border: 1px solid color-mix(in srgb, var(--mint) 42%, var(--border));
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

#eg-translation-notice-modal .eg-translation-notice-modal__title,
#eg-translation-notice-modal .eg-translation-notice-modal__intro,
#eg-translation-notice-modal .eg-translation-notice-modal__intro p {
  text-align: center;
}

#eg-translation-notice-modal .eg-translation-notice-modal__title {
  margin: 0 0 16px;
  padding: 0 44px;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 31px);
  font-weight: 700;
  color: var(--mint);
}

#eg-translation-notice-modal .eg-translation-notice-modal__intro p {
  max-width: 42em;
  margin: 0 auto 28px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
}

#eg-translation-notice-modal .eg-translation-notice-modal__link {
  color: var(--mint2);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

#eg-translation-notice-modal .eg-translation-notice-modal__link:hover,
#eg-translation-notice-modal .eg-translation-notice-modal__link:focus-visible {
  color: var(--mint);
  outline: none;
}

#eg-translation-notice-modal .eg-translation-notice-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

#eg-translation-notice-modal .eg-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--zephyr);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

#eg-translation-notice-modal .eg-modal__close:hover,
#eg-translation-notice-modal .eg-modal__close:focus-visible {
  background: var(--bg3);
  color: var(--vanilla);
  outline: none;
}

/* Admin — pływający podgląd roli / języka */
.eg-admin-preview {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100070;
  font-family: var(--sans);
}


body.admin-bar .eg-admin-preview {
  /* FAB na dole — nie koliduje z wp-admin-bar u góry */
}

.eg-admin-preview__fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--mint) 45%, var(--border));
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 55%),
    var(--bg2);
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.eg-admin-preview__fab:hover,
.eg-admin-preview__fab:focus-visible {
  border-color: var(--mint);
  transform: translateY(-1px);
  outline: none;
}

.eg-admin-preview__fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mint) 16%, transparent);
  color: var(--mint);
  font-size: 14px;
}

.eg-admin-preview__fab-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eg-admin-preview__fab-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 2px var(--bg2);
}

.eg-admin-preview__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 40px));
  max-height: min(78vh, 640px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--mint) 38%, var(--border));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--mint) 12%, transparent), transparent 40%),
    var(--bg2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.eg-admin-preview__panel[hidden] {
  display: none !important;
}

.eg-admin-preview__panel-inner {
  padding: 18px 18px 16px;
}

.eg-admin-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.eg-admin-preview__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--mint);
  line-height: 1.25;
}

.eg-admin-preview__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--zephyr);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.eg-admin-preview__close:hover,
.eg-admin-preview__close:focus-visible {
  background: var(--bg3);
  color: var(--vanilla);
  outline: none;
}

.eg-admin-preview__status {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
}

.eg-admin-preview__status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.eg-admin-preview__status-row + .eg-admin-preview__status-row {
  margin-top: 6px;
}

.eg-admin-preview__status-row dt {
  margin: 0;
  color: var(--text3);
}

.eg-admin-preview__status-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.eg-admin-preview__section + .eg-admin-preview__section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.eg-admin-preview__section-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.eg-admin-preview__hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text3);
}

.eg-admin-preview__form {
  display: grid;
  gap: 8px;
}

.eg-admin-preview__form--inline {
  margin-top: 8px;
}

.eg-admin-preview__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.eg-admin-preview__select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

.eg-admin-preview__submit {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .eg-admin-preview {
    right: 12px;
    bottom: 12px;
  }


  .eg-admin-preview__fab-label {
    display: none;
  }

  .eg-admin-preview__fab {
    padding: 12px;
    border-radius: 50%;
  }
}

/* ============================================================
   Unified glass backgrounds for content boxes
   ============================================================ */

#eg-page-wrap {
  /* Jak pasek menu (.eg-nav): półprzezroczyste + blur */
  --eg-glass-bg: rgba(0, 0, 0, 0.58);
  --eg-glass-border: rgba(178, 201, 218, 0.24);
  --eg-glass-border-hover: rgba(152, 255, 217, 0.32);
  --eg-glass-shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
}

#eg-page-wrap .eg-intention-card,
#eg-page-wrap .eg-slide-card {
  overflow: visible;
}#eg-page-wrap .eg-intention-card,
#eg-page-wrap .eg-slide-card,
#eg-page-wrap .eg-topics-block,
#eg-page-wrap .eg-app-hero-mockup,
#eg-page-wrap .eg-app-area-card,
#eg-page-wrap .eg-app-tool-card,
#eg-page-wrap .eg-op-qa-card,
#eg-page-wrap .eg-wiedza-card,
#eg-page-wrap .eg-eset-hub-card,
#eg-page-wrap .eg-enc-chip,
#eg-page-wrap .eg-enc-item-link,
#eg-page-wrap .eg-enc-card,
#eg-page-wrap .eg-book-card,
#eg-page-wrap .eg-mentor-card,
#eg-page-wrap .eg-mentor-bottom__box,
#eg-page-wrap .eg-format-card,
#eg-page-wrap .eg-refleksja-card,
#eg-page-wrap .eg-konto-zone-card,
#eg-page-wrap .eg-elog-square-link,
#eg-page-wrap .eg-elog-archive-item,
#eg-page-wrap .eg-eset-archive-card,
#eg-page-wrap .eg-eset-slide,
#eg-page-wrap .eg-eset-audio,
#eg-page-wrap .eg-espace-v2-item,
#eg-page-wrap .eg-espace-v2-player-col,
#eg-page-wrap .eg-pob-item,
#eg-page-wrap .eg-pob-preview,
#eg-page-wrap .eg-pobieralnia-card,
#eg-page-wrap .eg-pobieralnia-card-v2,
#eg-page-wrap .eg-freepub-card,
#eg-page-wrap .eg-plan-card,
#eg-page-wrap .eg-service-card,
#eg-page-wrap .eg-tabs,
#eg-page-wrap .eg-faq-q,
#eg-page-wrap .eg-faq-btn,
#eg-page-wrap .eg-enc-row,
#eg-page-wrap .eg-puzzle-card,
#eg-page-wrap .eg-question-card,
#eg-page-wrap .eg-search,
#eg-page-wrap .eg-enc-search,
#eg-page-wrap .eg-modal-box,
#eg-page-wrap .eg-ekspertyza-step,
#eg-page-wrap .eg-ekspertyza-aside-card,
#eg-page-wrap .eg-ekspertyza-page-form-placeholder{
  background: var(--eg-glass-bg);
  border-color: var(--eg-glass-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--eg-glass-shadow);
}

#eg-page-wrap #eg-contact-rules-modal .eg-modal__dialog {
  background: var(--eg-glass-bg);
  border-color: var(--eg-glass-border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--eg-glass-shadow), 0 24px 80px rgba(0, 0, 0, 0.55);
}

/* Karty slidera „Najnowsze”: pełna ramka + lekki inset — jak pozostałe szklane karty */
#eg-page-wrap .eg-slider-wrap .eg-slide-card {
  border: 1px solid var(--eg-glass-border);
  box-shadow: var(--eg-glass-shadow), inset 0 0 0 1px var(--eg-glass-border);
}

#eg-page-wrap .eg-slider-wrap .eg-slide-card:hover {
  border-color: var(--eg-glass-border-hover);
  box-shadow: var(--eg-glass-shadow), inset 0 0 0 1px var(--eg-glass-border-hover);
}#eg-page-wrap .eg-intention-card:hover,
#eg-page-wrap .eg-slide-card:hover,
#eg-page-wrap .eg-wiedza-card:hover,
#eg-page-wrap .eg-eset-hub-card:hover,
#eg-page-wrap .eg-enc-chip:hover,
#eg-page-wrap .eg-enc-item-link:hover,
#eg-page-wrap .eg-book-card:hover,
#eg-page-wrap .eg-mentor-card:hover,
#eg-page-wrap .eg-format-card:hover,
#eg-page-wrap .eg-refleksja-card:hover,
#eg-page-wrap .eg-elog-square-link:hover,
#eg-page-wrap .eg-elog-archive-item:hover,
#eg-page-wrap .eg-eset-archive-card:hover,
#eg-page-wrap .eg-eset-slide:hover,
#eg-page-wrap .eg-espace-v2-item:hover,
#eg-page-wrap .eg-pob-item:hover,
#eg-page-wrap .eg-pobieralnia-card:hover,
#eg-page-wrap .eg-pobieralnia-card-v2:hover,
#eg-page-wrap .eg-freepub-card:hover,
#eg-page-wrap .eg-plan-card:hover,
#eg-page-wrap .eg-service-card:hover,
#eg-page-wrap .eg-faq-q:hover,
#eg-page-wrap .eg-faq-btn:hover,
#eg-page-wrap .eg-enc-row:hover,
#eg-page-wrap .eg-puzzle-card:hover,
#eg-page-wrap .eg-question-card:hover,
#eg-page-wrap .eg-ekspertyza-step:hover,
#eg-page-wrap .eg-ekspertyza-aside-card:not(.eg-ekspertyza-aside-card--warn):hover{
  border-color: var(--eg-glass-border-hover);
}

#eg-page-wrap .eg-ekspertyza-aside-card--warn:hover {
  border-color: rgba(238, 180, 120, 0.5);
}/* Obramowanie szkła / kart w tonie — eg-glow.js dodaje .eg-glow-toned + .eg-glow-tone-N (losowo lub zsynchronizowane z PHP na ELog / Refleksjach). */
#eg-page-wrap :is(
  .eg-intention-card,
.eg-slide-card,
.eg-wiedza-card,
.eg-eset-hub-card,
.eg-enc-chip,
.eg-enc-item-link,
.eg-enc-card,
.eg-book-card,
.eg-mentor-card,
.eg-mentor-bottom__box,
.eg-format-card,
.eg-refleksja-card,
.eg-konto-zone-card,
.eg-elog-square-link,
.eg-elog-archive-item,
.eg-eset-archive-card,
.eg-eset-slide,
.eg-eset-audio,
.eg-espace-v2-item,
.eg-espace-v2-player-col,
.eg-pob-item,
.eg-pob-preview,
.eg-pobieralnia-card,
.eg-pobieralnia-card-v2,
.eg-freepub-card,
.eg-plan-card,
.eg-service-card,
.eg-enc-row,
.eg-puzzle-card,
.eg-question-card,
.eg-search,
.eg-enc-search,
.eg-modal-box,
.eg-ekspertyza-step,
.eg-ekspertyza-aside-card,
.eg-ekspertyza-page-form-placeholder,
.eg-app-hero-mockup,
.eg-app-area-card,
.eg-app-tool-card,
.eg-op-qa-card,
.eg-pob-cat
).eg-glow-toned{
  border-color: var(--eg-glow-border);
}#eg-page-wrap :is(
  .eg-intention-card,
.eg-slide-card,
.eg-wiedza-card,
.eg-eset-hub-card,
.eg-enc-chip,
.eg-enc-item-link,
.eg-enc-card,
.eg-book-card,
.eg-mentor-card,
.eg-mentor-bottom__box,
.eg-format-card,
.eg-refleksja-card,
.eg-konto-zone-card,
.eg-elog-square-link,
.eg-elog-archive-item,
.eg-eset-archive-card,
.eg-eset-slide,
.eg-eset-audio,
.eg-espace-v2-item,
.eg-espace-v2-player-col,
.eg-pob-item,
.eg-pob-preview,
.eg-pobieralnia-card,
.eg-pobieralnia-card-v2,
.eg-freepub-card,
.eg-plan-card,
.eg-service-card,
.eg-enc-row,
.eg-puzzle-card,
.eg-question-card,
.eg-search,
.eg-enc-search,
.eg-modal-box,
.eg-ekspertyza-step,
.eg-ekspertyza-aside-card,
.eg-ekspertyza-page-form-placeholder,
.eg-app-hero-mockup,
.eg-app-area-card,
.eg-app-tool-card,
.eg-op-qa-card,
.eg-pob-cat
).eg-glow-toned:hover{
  border-color: var(--eg-glow-border-hover);
}

#eg-page-wrap .eg-enote-bubble.eg-glow-toned:not(:hover) {
  border-color: var(--eg-glow-border);
}

#eg-page-wrap .eg-enote-bubble.eg-glow-toned:hover {
  border-color: transparent;
  background: var(--enote-bubble-hover, rgba(140, 160, 210, 0.5));
  box-shadow: none;
}

#eg-page-wrap .eg-enote-bubble::before {
  inset: -3px;
  padding: 3px;
}

#eg-page-wrap .eg-slider-wrap .eg-slide-card.eg-glow-toned {
  border-color: var(--eg-glow-border);
  box-shadow: var(--eg-glass-shadow), inset 0 0 0 1px var(--eg-glow-border);
}

#eg-page-wrap .eg-slider-wrap .eg-slide-card.eg-glow-toned:hover {
  border-color: var(--eg-glow-border-hover);
  box-shadow: var(--eg-glass-shadow), inset 0 0 0 1px var(--eg-glow-border-hover);
}

#eg-page-wrap .eg-ekspertyza-aside-card--warn.eg-glow-toned:hover {
  border-color: rgba(238, 180, 120, 0.5);
}

#eg-page-wrap .eg-refleksja-card.eg-glow-toned .eg-refleksja-pytanie-icon {
  color: color-mix(in srgb, var(--eg-ref-accent) 74%, white 26%);
}

#eg-page-wrap .eg-card.eg-glow-toned {
  border-color: var(--eg-glow-border);
}

#eg-page-wrap .eg-card.eg-glow-toned:hover {
  border-color: var(--eg-glow-border-hover);
}

/* Cennik: gradienty na kartach (nadpisują tylko tło; blur zostaje z reguły szkła) */
#eg-page-wrap .eg-plan-card--featured {
  background: linear-gradient(160deg, rgba(152, 255, 217, 0.08) 0%, var(--bg2) 60%);
}
#eg-page-wrap .eg-plan-card--popular {
  background: linear-gradient(165deg, rgba(152, 255, 217, 0.1) 0%, var(--bg2) 55%);
}
#eg-page-wrap .eg-plan-card--value {
  background: linear-gradient(165deg, rgba(238, 220, 167, 0.08) 0%, var(--bg2) 55%);
}

#eg-page-wrap .eg-ekspertyza-aside-card--warn {
  background: linear-gradient(160deg, rgba(238, 180, 120, 0.08) 0%, var(--bg2) 70%);
  border-color: rgba(238, 180, 120, 0.35);
}

/* Blok „Miesięczny motyw” — własny gradient + ten sam blur co menu */
#eg-page-wrap .eg-monthly-theme {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

#eg-page-wrap .eg-wiedza-grid > *,
#eg-page-wrap .eg-enc-chips > *,
#eg-page-wrap .eg-formats-grid > *,
#eg-page-wrap .eg-books-grid > *,
#eg-page-wrap .eg-mentors-grid > *,
#eg-page-wrap .eg-pobieralnia-grid > *,
#eg-page-wrap .eg-enote-bubbles-canvas > *,
#eg-page-wrap .eg-eset-archive-grid > * {
  min-width: 0;
}

#eg-page-wrap .eg-pobieralnia-card,
#eg-page-wrap .eg-pob-item,
#eg-page-wrap .eg-pob-preview,
#eg-page-wrap .eg-espace-v2-item,
#eg-page-wrap .eg-espace-v2-player-col {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#eg-page-wrap .eg-book-cover img,
#eg-page-wrap .eg-pobieralnia-thumb-v2 img,
#eg-page-wrap .eg-pobieralnia-thumb img,
#eg-page-wrap .eg-eset-slide img,
#eg-page-wrap .eg-pob-cover,
#eg-page-wrap #eg-pob-pdf-canvas {
  max-width: 100%;
  height: auto;
}/* ============================================================
   OPISY TREŚCI — Georgia (!important vs body/GP sans)
   Etykiety UI (sans) — osobny blok poniżej.
   ============================================================ */

#eg-main .eg-lead,
body.error404 #eg-main .eg-lead,
#eg-main .eg-hero-lead,
#eg-main .eg-page-header-lead,
#eg-main .eg-format-desc,
#eg-main .eg-format-recent-list li,
#eg-main .eg-format-wip-note,
#eg-main .eg-wiedza-desc,
#eg-main .eg-book-desc,
#eg-main .eg-suggest-box > p,
#eg-main .eg-mentor-opis,
#eg-main .eg-refleksja-tekst,
#eg-main .eg-refleksja-pytanie,
#eg-main .eg-pobieralnia-desc,
#eg-main .eg-pob-cat-desc,
#eg-main .eg-estudio-book-desc,
#eg-main .eg-book-slide-desc,
#eg-main .eg-service-desc,
#eg-main .eg-plan-features li,
#eg-main .eg-plan-acf-opis,
#eg-main .eg-freepub-desc,
#eg-main .eg-estudio-freepub-lead,
#eg-main .eg-estudio-strefy-lead,
#eg-main .eg-estudio-ekspertyza-intro,
#eg-main .eg-single-body,
#eg-main .eg-idee-text,
#eg-main .eg-enote-pytanie p,
#eg-main .eg-eset-opis,
#eg-main .eg-eset-archive-opis,
#eg-main .eg-enc-card-def,
#eg-main .eg-wip-desc,
#eg-main .eg-wip-note,
#eg-main .eg-topics-block > p,
#eg-main .eg-konto-upsell p,
#eg-main .eg-konto-zone-list li,
#eg-main .eg-empty,
#eg-main .eg-loading,
#eg-main .eg-pytania-item span:last-child,
#eg-main .eg-field-hint,
#eg-main .eg-contact-footnote,
#eg-main .eg-intention-card h3,
#eg-main .eg-intention-card p,
#eg-main .eg-monthly-theme p,
#eg-main .eg-enote-archive-body p,
#eg-main .eg-enote-v4-prose p,
#eg-main .eg-faq-a,
#eg-main .eg-faq-answer,
#eg-main .eg-faq-answer p,
#eg-main .eg-content,
#eg-main .eg-content p,
#eg-main .eg-content li,
#eg-main .eg-prose,
#eg-main .eg-prose p,
#eg-main .eg-prose ul li,
#eg-main .eg-prose blockquote,
#eg-main .entry-content p,
#eg-main .entry-content li,
#eg-tooltip p,
#eg-tooltip .eg-tooltip-def,
#eg-contact-rules-modal .eg-modal__body p,
#eg-footer .eg-footer-bottom p,
#eg-footer .eg-footer-linki-domain,
#eg-footer .eg-footer-linki-copy,
#eg-footer .eg-footer-linki-impressum{
  font-family: var(--serif) !important;
}#eg-main .eg-cal-motyw{
  font-family: var(--sans) !important;
}

/* ============================================================
   APLIKACJA PAGE
   ============================================================ */

.eg-app-zone-bridge {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--text2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.eg-app-hero {
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}

.eg-app-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 34px;
}

.eg-app-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  justify-content: center;
  align-items: center;
}

.eg-app-hero-mockup {
  min-height: 420px;
  border-radius: 20px;
  border: 1px solid var(--eg-glass-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.eg-app-hero-mockup img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.eg-app-hero-mockup-ph {
  text-align: center;
  padding: 24px;
  color: var(--text2);
  display: grid;
  gap: 8px;
}

.eg-app-hero-mockup-ph span {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
}

.eg-app-hero-mockup-ph small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.eg-app-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.eg-app-area-card {
  border: 1px solid var(--eg-glass-border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color .2s;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.eg-app-area-card:hover {
  border-color: var(--eg-glass-border-hover);
}

.eg-app-area-card h3 {
  margin-bottom: 8px;
}

.eg-app-area-card p + p {
  margin-top: 10px;
}

.eg-app-zones {
  position: relative;
}

.eg-app-zone-stack {
  display: block;
  position: relative;
}

.eg-app-zone-block {
  margin-bottom: 56px;
}

/* Kolumna treści + slajder (DOM: najpierw treść, potem slajder — kolumny ustawia CSS) */
.eg-app-zone-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
}

.eg-app-zone-col-main {
  min-width: 0;
  flex: 1 1 auto;
}

@media (min-width: 981px) {
  .eg-app-zone-layout {
    display: grid;
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
  }

  /* Wiersz 1: nagłówek strefy na pełną szerokość; wiersz 2: siatka narzędzi + podgląd — ta sama linia startu. */
  .eg-app-zone-head--band {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .eg-app-zone-layout--slider-end {
    grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
  }

  .eg-app-zone-layout--slider-end .eg-app-zone-col-main {
    grid-column: 1;
    grid-row: 2;
  }

  .eg-app-zone-layout--slider-end .eg-app-zone-slider-col {
    grid-column: 2;
    grid-row: 2;
  }

  .eg-app-zone-layout--slider-start {
    grid-template-columns: minmax(220px, 3fr) minmax(0, 7fr);
  }

  .eg-app-zone-layout--slider-start .eg-app-zone-slider-col {
    grid-column: 1;
    grid-row: 2;
  }

  .eg-app-zone-layout--slider-start .eg-app-zone-col-main {
    grid-column: 2;
    grid-row: 2;
  }

  .eg-app-zone-slider {
    position: sticky;
    top: 1.25rem;
  }
}

.eg-app-zone-slider {
  min-width: 0;
}

.eg-app-slider-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(70vh, 520px);
  margin-inline: auto;
  border-radius: 16px;
  border: 1px solid var(--eg-glass-border);
  overflow: hidden;
  background: #000;
  box-sizing: border-box;
}

.eg-app-newsletter-banner {
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.eg-app-newsletter-banner--success {
  color: var(--mint);
  border: 1px solid color-mix(in srgb, var(--mint) 38%, transparent);
  background: color-mix(in srgb, var(--mint) 10%, transparent);
}

.eg-app-newsletter-banner--error {
  color: var(--accent, #e85d5d);
  border: 1px solid color-mix(in srgb, var(--accent, #e85d5d) 35%, transparent);
  background: color-mix(in srgb, var(--accent, #e85d5d) 8%, transparent);
}

.eg-page-aplikacja .eg-app-slider-stage {
  height: var(--eg-app-slide-h);
  min-height: var(--eg-app-slide-h);
  max-height: var(--eg-app-slide-h);
  aspect-ratio: unset;
}

.eg-page-aplikacja .eg-app-zone-slider {
  position: sticky;
  top: calc(var(--eg-app-sticky-top) + 12px);
}

@media (min-width: 981px) {
  .eg-page-aplikacja .eg-app-zone-slider-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .eg-page-aplikacja .eg-app-zone-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: min(100%, var(--eg-app-slide-max-w));
    margin: 0 auto;
    flex: 0 0 auto;
  }

  .eg-page-aplikacja .eg-app-slider-stage {
    width: min(100%, var(--eg-app-slide-max-w));
    margin-inline: auto;
  }
}

.eg-app-slider-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.eg-app-slider-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.eg-app-slider-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.eg-app-slider-ph {
  height: 100%;
  min-height: 200px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 20px 16px;
  text-align: center;
  box-sizing: border-box;
}

.eg-app-slider-ph span {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.eg-app-slider-ph small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text2);
  line-height: 1.45;
  max-width: 18em;
  margin-inline: auto;
}

.eg-app-zones-cta {
  margin: 8px 0 0;
  text-align: center;
}

.eg-app-zones-cta .eg-btn-primary {
  display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
  .eg-app-slider-slide {
    transition: none;
  }
}

.eg-app-zone-card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.eg-app-zone-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eg-app-zone-main {
  flex: 1 1 auto;
  min-width: 0;
}

.eg-app-zone-divider {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 12px;
}

.eg-app-zone-title {
  margin-bottom: 6px;
}

.eg-app-zone-goal {
  color: var(--text2);
  max-width: 880px;
  margin-bottom: 0;
}

.eg-app-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.eg-app-tool-card {
  border: 1px solid var(--eg-glass-border);
  border-radius: 14px;
  padding: 22px 22px 18px;
  transition: border-color .2s;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eg-app-tool-card:hover {
  border-color: var(--eg-glass-border-hover);
}

.eg-app-tool-card:focus-within {
  border-color: var(--eg-glass-border-hover);
}

.eg-app-tool-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 0;
}

.eg-app-tool-scan {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eg-app-tool-lead {
  margin: 0;
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
  color: var(--text2);
  font-size: 0.96rem;
  line-height: 1.5;
}

.eg-app-tool-details {
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--eg-glass-border) 70%, transparent);
}

.eg-app-tool-summary {
  list-style: none;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--eg-btn-font-size);
  font-weight: 600;
  padding: 12px 4px 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.eg-app-tool-summary::-webkit-details-marker {
  display: none;
}

.eg-app-tool-summary::after {
  content: "▾";
  font-size: 0.75rem;
  opacity: 0.75;
  transition: transform .2s ease;
}

.eg-app-tool-details[open] .eg-app-tool-summary::after {
  transform: rotate(180deg);
}

.eg-app-tool-summary:hover,
.eg-app-tool-summary:focus-visible {
  color: var(--mint2);
  outline: none;
}

.eg-app-tool-details-body {
  padding: 4px 0 6px;
}

.eg-app-tool-icon {
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  line-height: 1;
  color: color-mix(in srgb, var(--blue) 72%, var(--text2));
}

.eg-app-tools-grid--anonim .eg-app-tool-icon {
  color: color-mix(in srgb, var(--blue) 78%, var(--text2));
}

.eg-app-tools-grid--adept .eg-app-tool-icon {
  color: color-mix(in srgb, var(--blue) 78%, var(--text2));
}

.eg-app-tools-grid--kadet .eg-app-tool-icon {
  color: color-mix(in srgb, var(--banana) 72%, var(--text2));
}

.eg-app-tools-grid--filar .eg-app-tool-icon {
  color: color-mix(in srgb, var(--mint) 72%, var(--text2));
}

.eg-app-tool-card h4 {
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

.eg-app-tool-card ul,
.eg-app-tool-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.eg-app-tool-card li,
.eg-app-tool-detail-list li {
  color: var(--text2);
  font-size: 0.96rem;
  line-height: 1.5;
  max-width: 62ch;
}

.eg-app-tool-card strong,
.eg-app-tool-detail-list strong {
  color: var(--text);
  font-weight: 600;
}

@media (min-width: 981px) {
  .eg-app-tool-card--lead {
    grid-column: span 2;
  }
}

.eg-app-area-card,
.eg-app-zone-card,
.eg-app-tool-card,
.eg-plans-scroll-row .eg-plan-card,
.eg-freepub-card,
.eg-service-card,
.eg-ekspertyza-step,
.eg-plans-compare-table-wrap {
  box-sizing: border-box;
  overflow: hidden;
}

#eg-page-wrap .eg-app-zone-card--anonim,
#eg-page-wrap .eg-app-tools-grid--anonim .eg-app-tool-card {
  --eg-zone-rgb: 178, 201, 218;
}

#eg-page-wrap .eg-app-zone-card--adept,
#eg-page-wrap .eg-app-tools-grid--adept .eg-app-tool-card {
  --eg-zone-rgb: 178, 201, 218;
}

#eg-page-wrap .eg-app-zone-card--kadet,
#eg-page-wrap .eg-app-tools-grid--kadet .eg-app-tool-card {
  --eg-zone-rgb: 238, 220, 167;
}

#eg-page-wrap .eg-app-zone-card--filar,
#eg-page-wrap .eg-app-tools-grid--filar .eg-app-tool-card {
  --eg-zone-rgb: 152, 255, 217;
}

#eg-page-wrap .eg-app-tool-card:hover {
  border-color: var(--eg-glass-border-hover) !important;
}

#eg-page-wrap .eg-app-tools-grid--anonim .eg-app-tool-card {
  border: 1px solid color-mix(in srgb, var(--blue) 42%, var(--eg-glass-border)) !important;
}

#eg-page-wrap .eg-app-tools-grid--adept .eg-app-tool-card {
  border: 1px solid color-mix(in srgb, var(--blue) 46%, var(--eg-glass-border)) !important;
}

#eg-page-wrap .eg-app-tools-grid--kadet .eg-app-tool-card {
  border: 1px solid color-mix(in srgb, var(--banana) 46%, var(--eg-glass-border)) !important;
}

#eg-page-wrap .eg-app-tools-grid--filar .eg-app-tool-card {
  border: 1px solid color-mix(in srgb, var(--mint) 46%, var(--eg-glass-border)) !important;
}

.eg-app-zone-cta-btn {
  --eg-zone-btn: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
  margin-right: 50px;
  align-self: center;
  white-space: nowrap;
  background-color: var(--eg-zone-btn);
  background-image: radial-gradient(
    circle at 2px 2px,
    color-mix(in srgb, var(--eg-zone-btn) 90%, black 10%) calc(2px / 4),
    transparent 0
  );
  background-size: 4px 4px;
  background-repeat: repeat;
  box-shadow:
    0 0 10px color-mix(in srgb, var(--eg-zone-btn) 42%, transparent),
    0 0 24px color-mix(in srgb, var(--eg-zone-btn) 20%, transparent);
  transition: color .2s, background-color .2s, background-image .2s, box-shadow .2s, transform .2s;
}

.eg-app-zone-cta-btn:hover,
.eg-app-zone-cta-btn:focus-visible {
  color: var(--mint);
  background-color: #000000;
  background-image: radial-gradient(
    circle at 2px 2px,
    color-mix(in srgb, #000000 90%, white 10%) calc(2px / 4),
    transparent 0
  );
  box-shadow:
    0 0 16px color-mix(in srgb, var(--eg-zone-btn) 55%, transparent),
    0 0 36px color-mix(in srgb, var(--eg-zone-btn) 28%, transparent);
  transform: translateY(-1px);
}

.eg-app-zone-cta-btn--adept {
  --eg-zone-btn: var(--blue);
}

.eg-app-zone-cta-btn--kadet {
  --eg-zone-btn: var(--banana);
}

.eg-app-zone-cta-btn--filar {
  --eg-zone-btn: var(--mint);
}

@media (max-width: 1024px) {
  .eg-app-zone-cta-btn {
    margin-right: 0;
  }
}

#eg-page-wrap .eg-app-tools-grid--anonim .eg-app-tool-card:hover {
  border-color: color-mix(in srgb, var(--blue2) 52%, var(--eg-glass-border-hover)) !important;
}

#eg-page-wrap .eg-app-tools-grid--adept .eg-app-tool-card:hover {
  border-color: color-mix(in srgb, var(--blue2) 56%, var(--eg-glass-border-hover)) !important;
}

#eg-page-wrap .eg-app-tools-grid--kadet .eg-app-tool-card:hover {
  border-color: color-mix(in srgb, var(--banana2) 56%, var(--eg-glass-border-hover)) !important;
}

#eg-page-wrap .eg-app-tools-grid--filar .eg-app-tool-card:hover {
  border-color: color-mix(in srgb, var(--mint2) 56%, var(--eg-glass-border-hover)) !important;
}

/* Aplikacja — landing rebuild / WOW layer */
.eg-page-aplikacja {
  --eg-app-sticky-top: 82px;
  --eg-app-anchor-offset: 154px;
  --eg-app-slide-h: 520px;
  --eg-app-slide-max-w: min(300px, 100%);
}

.eg-page-aplikacja #eg-app-areas,
.eg-page-aplikacja #eg-app-benefits,
.eg-page-aplikacja #eg-app-steps,
.eg-page-aplikacja #eg-app-zones,
.eg-page-aplikacja #eg-app-zone-anonim,
.eg-page-aplikacja #eg-app-zone-adept,
.eg-page-aplikacja #eg-app-zone-kadet,
.eg-page-aplikacja #eg-app-zone-filar,
.eg-page-aplikacja #eg-app-faq,
.eg-page-aplikacja #eg-app-download {
  scroll-margin-top: var(--eg-app-anchor-offset);
}

body.admin-bar .eg-page-aplikacja {
  --eg-app-sticky-top: 114px;
  --eg-app-anchor-offset: 186px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .eg-page-aplikacja {
    --eg-app-sticky-top: 124px;
    --eg-app-anchor-offset: 196px;
  }
}

.eg-page-aplikacja .eg-section {
  position: relative;
}

.eg-app-hero {
  border-bottom: none;
  margin-bottom: 28px;
  overflow: visible;
}

.eg-app-hero-shell {
  position: relative;
  min-height: min(76vh, 720px);
  padding: clamp(28px, 5vw, 72px);
  border: none;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--mint) 12%, transparent), transparent 32%),
    radial-gradient(circle at 82% 28%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 72%, transparent), color-mix(in srgb, var(--bg2) 82%, transparent));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.eg-app-hero-shell::before {
  content: "";
  position: absolute;
  inset: auto -14% -28% 34%;
  height: 260px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mint) 18%, transparent), transparent);
  transform: rotate(-9deg);
  opacity: .75;
  pointer-events: none;
}

.eg-app-hero-main {
  position: relative;
  z-index: 2;
}

.eg-app-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.eg-app-hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--mint) 28%, var(--eg-glass-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.eg-app-hero-stats strong {
  color: var(--mint);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1;
}

.eg-app-hero-mockup {
  position: relative;
  z-index: 2;
  border-color: color-mix(in srgb, var(--mint) 36%, var(--eg-glass-border));
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 24px 70px rgba(0,0,0,.28);
}

.eg-app-toc {
  position: sticky;
  z-index: 20;
  width: min(100%, 960px);
  margin: -8px auto 52px;
  padding: 14px 18px;
  top: var(--eg-app-sticky-top);
  border: none;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 52%, transparent);
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
}

.eg-app-toc-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: none;
  padding: 0;
  gap: 0;
}

.eg-app-toc-scroll {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.6vw, 14px);
  width: 100%;
  padding-bottom: 0;
}

@media (max-width: 640px) {
  .eg-page-aplikacja .eg-app-toc-scroll {
    row-gap: 10px;
    column-gap: clamp(8px, 2.2vw, 12px);
  }
}

.eg-app-toc-link {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  border-color: color-mix(in srgb, var(--mint) 24%, var(--eg-glass-border));
  background: color-mix(in srgb, var(--bg2) 72%, transparent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.eg-app-toc-link:hover,
.eg-app-toc-link:focus-visible {
  transform: translateY(-1px) rotate(-1deg);
  border-color: color-mix(in srgb, var(--mint) 64%, var(--eg-glass-border-hover));
  color: var(--mint);
  background: color-mix(in srgb, var(--mint) 10%, var(--bg2));
  box-shadow: 0 0 18px color-mix(in srgb, var(--mint) 14%, transparent);
}

.eg-app-toc-link[aria-current="true"] {
  border-color: var(--mint);
  color: var(--mint);
  background: color-mix(in srgb, var(--mint) 13%, var(--bg2));
}

#eg-app-toc .eg-app-toc-link.eg-btn-outline {
  flex: 0 0 auto;
  min-height: 0;
  background: none;
  box-shadow: none;
  border-radius: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(213, 206, 203, 0.25);
  color: var(--zephyr);
  transform: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

#eg-app-toc .eg-app-toc-link.eg-btn-outline:hover,
#eg-app-toc .eg-app-toc-link.eg-btn-outline:focus-visible {
  transform: none;
  color: var(--zephyr2);
  border-color: rgba(213, 206, 203, 0.45);
  background: rgba(213, 206, 203, 0.05);
  box-shadow: none;
}

#eg-app-toc .eg-app-toc-link.eg-btn-outline[aria-current="true"] {
  border-color: color-mix(in srgb, var(--mint) 55%, rgba(213, 206, 203, 0.25));
  color: var(--mint);
  background: color-mix(in srgb, var(--mint) 10%, transparent);
}

.eg-app-module-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
}

.eg-app-module-rail span {
  min-width: 82px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--mint) 26%, var(--eg-glass-border));
  border-radius: 999px;
  text-align: center;
  color: var(--text2);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  animation: egAppDrift 8s ease-in-out infinite;
}

.eg-app-module-rail span:nth-child(2n) {
  animation-delay: -2s;
}

.eg-app-module-rail span:nth-child(3n) {
  animation-delay: -4s;
}

.eg-app-areas-grid,
.eg-app-benefit-grid,
.eg-app-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.eg-app-benefit-grid {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(12px, 2.2vw, 28px);
}

.eg-app-areas-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eg-app-area-card,
.eg-app-benefit-card,
.eg-app-step-card,
.eg-app-faq-item {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--mint) 24%, var(--eg-glass-border));
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 0%), color-mix(in srgb, var(--mint) 10%, transparent), transparent 34%),
    color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
}

.eg-app-benefit-card,
.eg-app-step-card {
  border-radius: 18px;
  padding: 28px 24px;
  overflow: hidden;
}

.eg-app-benefit-card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--mint);
  background: color-mix(in srgb, var(--mint) 12%, transparent);
}

.eg-app-benefit-card h3,
.eg-app-step-card h3 {
  margin-bottom: 8px;
}

.eg-app-benefit-card p,
.eg-app-step-card p {
  color: var(--text2);
  line-height: 1.58;
  margin: 0;
}

.eg-app-step-card {
  min-height: 190px;
}

.eg-app-step-no {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mint);
}

.eg-app-zone-stack {
  display: grid;
  gap: clamp(36px, 6vw, 72px);
}

.eg-app-zone-block {
  margin-bottom: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid color-mix(in srgb, var(--mint) 18%, var(--eg-glass-border));
  border-radius: 24px;
  overflow: visible;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 80%, transparent), color-mix(in srgb, var(--bg2) 95%, transparent));
  box-shadow: 0 22px 80px rgba(0,0,0,.20);
}

.eg-app-zone-bridge {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
  font-size: 1rem;
}

.eg-app-zone-head {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0 0 22px;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.eg-app-zone-head--band {
  margin-bottom: 0;
}

.eg-page-aplikacja .eg-app-zone-main {
  flex: 0 1 auto;
  width: 100%;
  text-align: center;
}

.eg-page-aplikacja .eg-app-zone-divider {
  display: block;
  width: 100%;
  max-width: 140px;
  height: 2px;
  margin: 14px auto 16px;
  border-radius: 999px;
}

.eg-app-zone-cta-btn--dock {
  margin-top: 0;
  margin-right: 0;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  align-self: center;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}

.eg-app-tools-grid--anonim .eg-app-tool-card--lead,
.eg-app-tools-grid--adept .eg-app-tool-card--lead {
  grid-column: auto;
}

.eg-app-tool-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, transparent), color-mix(in srgb, var(--bg2) 92%, transparent));
  transition: transform .25s ease, border-color .2s ease, box-shadow .2s ease;
}

.eg-app-tool-card:hover,
.eg-app-tool-card:focus-within {
  transform: translateY(-4px) rotate(.45deg);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.eg-app-tool-card:nth-child(3n):hover,
.eg-app-tool-card:nth-child(3n):focus-within {
  transform: translateY(-4px) rotate(-.65deg);
}

.eg-app-tool-card--lead {
  min-height: 220px;
  justify-content: center;
}

.eg-app-faq {
  margin-top: clamp(46px, 7vw, 84px);
}

.eg-app-faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.eg-app-faq-item {
  border-radius: 14px;
  overflow: hidden;
}

.eg-app-faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--text);
}

.eg-app-faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--text2);
  line-height: 1.6;
}

.eg-app-reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

.eg-app-reveal.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.eg-app-tilt {
  transition: transform .24s ease, border-color .2s ease, box-shadow .2s ease;
}

.eg-app-tilt:hover,
.eg-app-tilt:focus-within {
  transform: translateY(-5px) rotate(-.8deg);
  border-color: color-mix(in srgb, var(--mint) 58%, var(--eg-glass-border-hover));
}

.eg-app-tilt:nth-child(2n):hover,
.eg-app-tilt:nth-child(2n):focus-within {
  transform: translateY(-5px) rotate(.8deg);
}

.eg-app-floaty {
  animation: egAppFloat 7s ease-in-out infinite;
}

.eg-app-glitch-soft {
  animation: egAppGlitch 9s steps(1, end) infinite;
}

/* Aplikacja — Korzyści: trzy ekrany (nakładka, wyśrodkowane w „polu” pod kartami, dyskretna skala) */
.eg-app-benefit-showcase {
  margin-top: clamp(32px, 5vw, 56px);
  padding: clamp(12px, 2vw, 24px) 0 clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 0;
}

.eg-app-benefit-showcase__scene {
  --eg-benefit-w: clamp(248px, 31vw, 336px);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: min(960px, 100%);
  min-height: clamp(300px, 50vw, 420px);
  margin-inline: auto;
}

.eg-app-benefit-showcase__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--eg-benefit-w);
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--eg-glass-border) 70%, transparent);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: #000;
  cursor: pointer;
  transform-origin: 50% 50%;
  transition:
    left 0.45s cubic-bezier(0.2, 0.85, 0.25, 1),
    transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1),
    filter 0.35s ease;
}

.eg-app-benefit-showcase__item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--mint) 55%, transparent);
  outline-offset: 4px;
}

.eg-app-benefit-showcase__item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.eg-app-benefit-showcase__item--front::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 60% at 50% -6%, rgba(255, 248, 220, 0.32), transparent 55%);
  mix-blend-mode: screen;
}

/* Ta sama szerokość — lekka skala; boczne zawsze za środkową (niższy z-index). */
.eg-app-benefit-showcase__scene[data-benefit-active="0"] [data-slot="0"],
.eg-app-benefit-showcase__scene[data-benefit-active="1"] [data-slot="1"],
.eg-app-benefit-showcase__scene[data-benefit-active="2"] [data-slot="2"] {
  z-index: 10;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.055);
  filter: none;
}

/* Boczne: środek przesunięty o połowę szerokości → nakładka ~50% karty pod środkiem */
.eg-app-benefit-showcase__scene[data-benefit-active="0"] [data-slot="1"],
.eg-app-benefit-showcase__scene[data-benefit-active="1"] [data-slot="2"],
.eg-app-benefit-showcase__scene[data-benefit-active="2"] [data-slot="0"] {
  z-index: 1;
  left: calc(50% + var(--eg-benefit-w) / 2);
  transform: translate(-50%, -50%) scale(0.96);
  filter: brightness(0.9) saturate(0.96);
}

.eg-app-benefit-showcase__scene[data-benefit-active="0"] [data-slot="2"],
.eg-app-benefit-showcase__scene[data-benefit-active="1"] [data-slot="0"],
.eg-app-benefit-showcase__scene[data-benefit-active="2"] [data-slot="1"] {
  z-index: 1;
  left: calc(50% - var(--eg-benefit-w) / 2);
  transform: translate(-50%, -50%) scale(0.96);
  filter: brightness(0.9) saturate(0.96);
}

.eg-app-benefit-showcase__ph {
  height: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  box-sizing: border-box;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 82%, transparent), var(--bg2));
}

.eg-app-benefit-showcase__ph span {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.eg-app-benefit-showcase__ph small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
  line-height: 1.4;
}

.eg-app-benefit-showcase__floor {
  width: min(90%, 720px);
  height: 40px;
  margin-top: clamp(8px, 2vw, 20px);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.07), transparent 62%);
  opacity: 0.5;
  filter: blur(1px);
  transform: scaleY(0.3);
}

/* Aplikacja — Jak działa: 2 grafiki | 3 boxy | 1 grafika (tylko ≥981px) */
.eg-app-steps-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(24px, 3vw, 36px);
  max-width: 1280px;
  margin-inline: auto;
}

.eg-app-steps-visual--left {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  min-height: 0;
}

.eg-app-steps-visual--right {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.eg-app-steps-visual__frame {
  margin: 0;
  flex: 1 1 0;
  min-height: 140px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--mint) 22%, var(--eg-glass-border));
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.eg-app-steps-visual__frame--tall {
  flex: 1 1 auto;
  min-height: 200px;
}

.eg-app-steps-visual__frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.eg-app-steps-visual__ph {
  height: 100%;
  min-height: 120px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.eg-app-steps-visual__ph span {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.eg-app-steps-visual__ph small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text2);
}

.eg-app-steps-layout .eg-app-steps-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
  min-width: 0;
}

@media (min-width: 981px) {
  .eg-app-steps-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(16px, 2vw, 24px);
  }

  .eg-app-steps-layout .eg-app-steps-grid {
    grid-column: 2;
    grid-row: 1;
    min-height: 100%;
  }

  .eg-app-steps-visual--left {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
  }

  .eg-app-steps-visual--right {
    grid-column: 3;
    grid-row: 1;
    height: 100%;
  }

  .eg-app-steps-visual__frame--tall {
    min-height: 0;
    height: 100%;
  }
}

/* Aplikacja — sekcja Pobierz */
.eg-app-download {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: clamp(24px, 4vw, 48px);
}

.eg-app-download__lead {
  margin: 0 auto 22px;
  max-width: 58ch;
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.65;
}

.eg-app-download__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-bottom: 18px;
}

.eg-app-download__cta-row .eg-btn-primary,
.eg-app-download__cta-row .eg-btn-secondary {
  margin: 0;
}

.eg-app-download__hook {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
}

.eg-app-download__fineprint {
  margin: 0 auto;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text2);
}

@media (max-width: 520px) {
  .eg-app-benefit-showcase__scene {
    --eg-benefit-w: clamp(216px, 56vw, 296px);
    min-height: clamp(260px, 58vw, 360px);
  }

  .eg-app-benefit-showcase__scene[data-benefit-active="0"] [data-slot="0"],
  .eg-app-benefit-showcase__scene[data-benefit-active="1"] [data-slot="1"],
  .eg-app-benefit-showcase__scene[data-benefit-active="2"] [data-slot="2"] {
    transform: translate(-50%, -50%) scale(1.04);
  }

  .eg-app-benefit-showcase__scene[data-benefit-active="0"] [data-slot="1"],
  .eg-app-benefit-showcase__scene[data-benefit-active="0"] [data-slot="2"],
  .eg-app-benefit-showcase__scene[data-benefit-active="1"] [data-slot="0"],
  .eg-app-benefit-showcase__scene[data-benefit-active="1"] [data-slot="2"],
  .eg-app-benefit-showcase__scene[data-benefit-active="2"] [data-slot="0"],
  .eg-app-benefit-showcase__scene[data-benefit-active="2"] [data-slot="1"] {
    transform: translate(-50%, -50%) scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-app-benefit-showcase__item {
    transition: none !important;
  }
}

@keyframes egAppFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(.6deg); }
}

@keyframes egAppDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes egAppGlitch {
  0%, 92%, 100% { transform: translate(0, 0); filter: none; }
  93% { transform: translate(1px, -1px) skewX(-2deg); filter: hue-rotate(18deg); }
  94% { transform: translate(-1px, 1px) skewX(2deg); }
  95% { transform: translate(0, 0); filter: none; }
}

@media (min-width: 1025px) {
  .eg-app-zone-layout {
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
  }

  .eg-app-zone-layout--slider-end {
    grid-template-columns: minmax(0, 6.6fr) minmax(260px, 3.4fr);
  }

  .eg-app-zone-layout--slider-start {
    grid-template-columns: minmax(260px, 3.4fr) minmax(0, 6.6fr);
  }
}

@media (max-width: 1024px) {
  .eg-app-hero-shell,
  .eg-app-areas-grid,
  .eg-app-benefit-grid,
  .eg-app-steps-grid {
    grid-template-columns: 1fr;
  }

  .eg-app-toc {
    width: 100%;
    margin-right: 0;
    background: color-mix(in srgb, var(--surface) 78%, #000);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  }

  .eg-app-toc-scroll {
    gap: clamp(8px, 1.6vw, 14px);
  }

  #eg-app-toc .eg-app-toc-link.eg-btn-outline {
    padding: 6px 12px;
  }
}

@media (max-width: 640px) {
  .eg-page-aplikacja {
    --eg-app-anchor-offset: 142px;
  }

  .eg-app-hero-shell {
    padding: 22px;
    border-radius: 20px;
  }

  .eg-app-header-actions {
    flex-wrap: wrap;
  }

  .eg-app-tools-grid {
    grid-template-columns: 1fr;
  }

  .eg-app-tools-grid--anonim,
  .eg-app-tools-grid--adept {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #eg-app-prod-modal.eg-app-prod-modal {
    padding: 12px;
  }

  #eg-app-prod-modal .eg-app-prod-modal__dialog {
    padding: 26px 18px 20px;
  }

  #eg-translation-notice-modal.eg-translation-notice-modal {
    padding: 12px;
  }

  #eg-translation-notice-modal .eg-translation-notice-modal__dialog {
    padding: 26px 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-app-reveal,
  .eg-app-floaty,
  .eg-app-glitch-soft,
  .eg-app-module-rail span,
  .eg-app-tilt,
  .eg-app-tool-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .eg-page-aplikacja .eg-app-tool-summary::after {
    transition: none !important;
  }

  .eg-page-aplikacja .eg-app-toc {
    position: sticky;
    top: var(--eg-app-sticky-top);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ============================================================
   ESTUDIO — plans carousel + compare table
   ============================================================ */

.eg-plans-scroll-shell {
  position: relative;
  padding-left: 48px;
}

.eg-plans-scroll-viewport {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}

.eg-plans-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.eg-plans-scroll-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: stretch;
  padding: 4px;
}

.eg-plans-scroll-row .eg-plan-card {
  flex: 0 0 calc((100% - 40px) / 3);
  padding: 32px 28px;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  word-break: break-word;
}

.eg-plan-card {
  overflow: hidden;
}

.eg-plan-card > * {
  position: relative;
  z-index: 1;
}

.eg-plan-card--adept,
.eg-plan-card--kadet,
.eg-plan-card--filar {
  position: relative;
}

.eg-plan-card--adept::before,
.eg-plan-card--kadet::before,
.eg-plan-card--filar::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: conic-gradient(
    from var(--gradient-angle),
    color-mix(in srgb, var(--eg-plan-border) 8%, transparent) 0deg,
    color-mix(in srgb, var(--eg-plan-border) 90%, white 10%) 70deg,
    color-mix(in srgb, var(--eg-plan-border) 8%, transparent) 150deg,
    color-mix(in srgb, var(--eg-plan-border) 8%, transparent) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.eg-plan-card--anonim {
  background: var(--eg-glass-bg) !important;
  border-color: var(--eg-glass-border);
}

#eg-page-wrap .eg-plans-scroll-row .eg-plan-card--adept {
  --eg-plan-rgb: 178, 201, 218;
  --eg-plan-border: var(--blue);
  --eg-plan-speed: 9.4s;
  border: 1px solid var(--eg-glass-border);
  background: var(--eg-glass-bg) !important;
  animation: none;
}

#eg-page-wrap .eg-plans-scroll-row .eg-plan-card--kadet {
  --eg-plan-rgb: 238, 220, 167;
  --eg-plan-border: var(--banana);
  --eg-plan-speed: 7.8s;
  border: 1px solid var(--eg-glass-border);
  background: var(--eg-glass-bg) !important;
  animation: none;
}

#eg-page-wrap .eg-plans-scroll-row .eg-plan-card--filar {
  --eg-plan-rgb: 152, 255, 217;
  --eg-plan-border: var(--mint);
  --eg-plan-speed: 11.1s;
  border: 1px solid var(--eg-glass-border);
  background: var(--eg-glass-bg) !important;
  animation: none;
}

#eg-page-wrap .eg-plans-scroll-row .eg-plan-card--adept::before {
  animation: gradient-angle 9.4s linear infinite;
}

#eg-page-wrap .eg-plans-scroll-row .eg-plan-card--kadet::before {
  animation: gradient-angle 7.8s linear infinite reverse;
}

#eg-page-wrap .eg-plans-scroll-row .eg-plan-card--filar::before {
  animation: gradient-angle 11.1s linear infinite;
}

.eg-plans-scroll-row .eg-plan-card {
  align-items: center;
  text-align: center;
}

.eg-plans-scroll-row .eg-plan-zone,
.eg-plans-scroll-row .eg-plan-title,
.eg-plans-scroll-row .eg-plan-acf-opis,
.eg-plans-scroll-row .eg-plan-feature-group {
  align-self: center;
  text-align: center;
}

.eg-plans-scroll-row .eg-plan-features li {
  padding-left: 0;
  text-align: center;
}

.eg-plans-scroll-row .eg-plan-features li::before {
  position: static;
  margin-right: 6px;
}

.eg-plans-scroll-row .eg-plan-badge {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  display: inline-flex;
  width: auto;
  max-width: max-content;
  white-space: nowrap;
  border-radius: 999px;
  align-self: center;
  margin: 0 0 6px;
}

.eg-plans-scroll-row .eg-plan-free-capsule {
  width: auto !important;
  max-width: max-content;
  white-space: nowrap;
  border-radius: 999px;
  align-self: center;
}

.eg-plans-scroll-row .eg-plan-price,
.eg-plans-scroll-row .eg-plan-price--placeholder {
  width: auto;
  max-width: max-content;
  align-self: center;
}

.eg-plans-scroll-row .eg-plan-card > .eg-plan-join-btn {
  width: auto;
  max-width: max-content;
  align-self: center;
}

#eg-main .eg-plans-scroll-row .eg-plan-card > .eg-plan-join-btn.eg-btn-secondary {
  color: var(--eg-join-tone);
  border-color: color-mix(in srgb, var(--eg-join-tone) 82%, transparent);
  background: transparent;
  font-weight: 500;
  line-height: 1.25;
  padding: 6.5px 28px;
}

#eg-main .eg-plans-scroll-row .eg-plan-card > .eg-plan-join-btn.eg-btn-secondary:hover,
#eg-main .eg-plans-scroll-row .eg-plan-card > .eg-plan-join-btn.eg-btn-secondary:focus-visible {
  color: var(--eg-join-tone);
  border-color: color-mix(in srgb, var(--eg-join-tone) 100%, white 0%);
  background: color-mix(in srgb, var(--eg-join-tone) 12%, transparent);
  text-decoration: none;
}

.eg-plan-join-btn {
  --eg-join-tone: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--sans);
  font-size: var(--eg-btn-font-size);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  padding: 1.25rem 2.5rem;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--eg-join-tone) 82%, transparent);
  color: var(--eg-join-tone);
  background: transparent;
  transition: border-color .2s, color .2s, background-color .2s;
}

.eg-plan-join-btn:hover,
.eg-plan-join-btn:focus-visible {
  color: var(--eg-join-tone);
  border-color: color-mix(in srgb, var(--eg-join-tone) 100%, white 0%);
  background: color-mix(in srgb, var(--eg-join-tone) 12%, transparent);
  text-decoration: none;
}

.eg-plan-join-btn--sm {
  padding: 7px 14px;
  font-size: var(--eg-btn-font-size);
  margin-top: 8px;
}

.eg-plan-join-btn--anonim,
.eg-plan-join-btn--adept {
  --eg-join-tone: var(--blue);
}

.eg-plan-join-btn--kadet {
  --eg-join-tone: var(--banana);
}

.eg-plan-join-btn--filar {
  --eg-join-tone: var(--mint);
}

.eg-plan-join-btn[aria-disabled="true"],
.eg-plan-join-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.eg-plans-nav {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 40px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--blue2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.eg-plans-nav:hover,
.eg-plans-nav:focus-visible,
.eg-plans-nav:active {
  border: none !important;
  background: transparent !important;
  color: var(--mint) !important;
  box-shadow: none !important;
  outline: none;
}

.eg-plans-nav i {
  font-size: 18px;
}

.eg-plans-nav.is-open i {
  transform: scaleX(-1);
}

.eg-plan-feature-group + .eg-plan-feature-group {
  margin-top: 6px;
}

.eg-plan-feature-heading {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 88%, white 12%);
  margin: 2px 0 8px;
}

.eg-plans-compare-wrap {
  margin-top: 14px;
}

.eg-plans-compare-toggle {
  min-width: 260px;
}

.eg-plans-compare-table-wrap {
  margin-top: 14px;
  border: 1px solid var(--eg-glass-border);
  border-radius: 16px;
  background: var(--eg-glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--eg-glass-shadow);
  padding: 12px;
}

.eg-plans-compare-table-scroller {
  overflow-x: auto;
}

.eg-plans-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.eg-plans-compare-table th,
.eg-plans-compare-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.eg-plans-compare-table th:not(:first-child),
.eg-plans-compare-table td:not(:first-child) {
  text-align: center;
}

.eg-plans-compare-table th {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text);
}

.eg-plans-compare-table td:first-child {
  color: var(--text2);
}

.eg-plans-compare-row-category td {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(152, 255, 217, 0.08);
  border-top: 1px solid color-mix(in srgb, var(--mint) 24%, transparent);
  text-align: left !important;
}

.eg-plan-ico {
  font-size: 15px;
  line-height: 1;
}

.eg-plan-ico--yes {
  color: var(--mint);
}

.eg-plan-ico--no {
  color: #ff6262;
}

@media (max-width: 1024px) {
  .eg-app-hero-shell {
    grid-template-columns: 1fr;
  }

  .eg-app-hero-mockup {
    min-height: 280px;
  }

  .eg-app-header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .eg-app-areas-grid,
  .eg-app-tools-grid {
    grid-template-columns: 1fr;
  }

  .eg-plans-scroll-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  .eg-plans-scroll-row .eg-plan-card {
    flex: 1 1 auto;
  }

  .eg-plans-nav {
    display: none;
  }
}

/* ── Podziękowania (autorzy grafik) ─────────────────────────────────────── */
.eg-thanks-author-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.eg-page-header-lead--sub {
  margin-top: 0.65em;
  font-size: 0.875em;
  line-height: 1.55;
  color: var(--text2);
  max-width: 52em;
}

.eg-thanks-author-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 48px 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--eg-thanks-accent, var(--eg-glass-border, var(--border)));
  background: color-mix(in srgb, var(--eg-thanks-accent, hsl(210, 58%, 45%)) 50%, transparent);
  box-shadow: var(--eg-glass-shadow);
}

.eg-thanks-author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--eg-thanks-accent, var(--border));
  background: color-mix(in srgb, var(--eg-thanks-accent, hsl(210, 58%, 45%)) 50%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eg-thanks-author-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eg-thanks-author-card__icon {
  display: block;
  width: 28px;
  height: 28px;
  background-color: var(--eg-thanks-accent, var(--text3));
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.eg-thanks-author-card__name {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.eg-thanks-author-card__profile {
  display: inline-block;
  font-size: 0.85rem;
}

.eg-thanks-usage-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--eg-thanks-accent, var(--border));
  background: color-mix(in srgb, var(--eg-thanks-accent, hsl(210, 58%, 45%)) 50%, transparent);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.eg-thanks-usage-badge:hover,
.eg-thanks-usage-badge:focus-visible {
  background: color-mix(in srgb, var(--eg-thanks-accent, hsl(210, 58%, 45%)) 50%, transparent);
  transform: scale(1.06);
}

.eg-thanks-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.eg-thanks-usage-thumb {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--eg-thanks-accent, var(--border));
  background: color-mix(in srgb, var(--eg-thanks-accent, hsl(210, 58%, 45%)) 22%, transparent);
}

.eg-thanks-usage-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .eg-thanks-usage-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

.eg-thanks-usage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.eg-thanks-usage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.eg-thanks-usage-item:last-child {
  border-bottom: none;
}

.eg-thanks-usage-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  text-decoration: none;
}

.eg-thanks-usage-link__icon {
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.eg-thanks-usage-file {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text2);
  word-break: break-all;
}

.eg-thanks-usage-day {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text3);
  white-space: nowrap;
}

.eg-thanks-modal-box.eg-modal-box {
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 48px));
  max-width: none;
  max-height: min(92vh, 920px);
  overflow: hidden;
  border-color: color-mix(in srgb, var(--eg-thanks-accent, var(--border2)) 72%, var(--border2));
  box-shadow:
    var(--eg-glass-shadow),
    0 0 0 1px color-mix(in srgb, var(--eg-thanks-accent, transparent) 55%, transparent),
    0 0 28px color-mix(in srgb, var(--eg-thanks-accent, transparent) 38%, transparent),
    0 0 56px color-mix(in srgb, var(--eg-thanks-accent, transparent) 16%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.eg-thanks-modal .eg-modal-header {
  border-bottom-color: color-mix(in srgb, var(--eg-thanks-accent, var(--border)) 35%, var(--border));
}

.eg-thanks-modal .eg-modal-close {
  transition: color 0.18s ease, transform 0.18s ease;
}

.eg-thanks-modal .eg-modal-close:hover,
.eg-thanks-modal .eg-modal-close:focus-visible {
  background: none;
  color: var(--eg-thanks-accent, var(--text));
  transform: scale(1.12);
}

.eg-thanks-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  cursor: grab;
}

.eg-thanks-modal-body::-webkit-scrollbar {
  display: none;
}

.eg-thanks-modal-body.is-grabbing {
  cursor: grabbing;
  user-select: none;
}

.eg-thanks-modal-body.is-grabbing a {
  pointer-events: none;
}

#eg-page-wrap .eg-mentor-card[class*="eg-mentor-card--lang-"],
#eg-page-wrap .eg-mentor-hub-card[class*="eg-mentor-hub-card--lang-"],
#eg-page-wrap .eg-single-wrap[class*="eg-mentor-single--lang-"] {
  /* Stage 6E-2 parity: dark glass base; keep spoken-lang accent as border/glow only */
  background-color: rgba(0, 0, 0, 0.58);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--eg-lang-c1, #98ffd9) 10%, transparent), color-mix(in srgb, var(--eg-lang-c2, #7db5ff) 10%, transparent));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#eg-page-wrap .eg-mentor-spoken-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 4px 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--eg-lang-c2, #7db5ff) 60%, #ffffff 40%);
  color: color-mix(in srgb, var(--eg-lang-c2, #7db5ff) 75%, #f5f7fa 25%);
  background: color-mix(in srgb, var(--eg-lang-c1, #98ffd9) 24%, transparent);
}

/* ESpace archive v2 + single */
.eg-espace-archive .eg-espace-v2-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 24px;
  align-items: start;
}
.eg-espace-v2-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 76vh;
  overflow: auto;
  padding-right: 4px;
}
.eg-espace-v2-item {
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.eg-espace-v2-item:hover { background: rgba(255,255,255,.03); }
.eg-espace-v2-item.is-active { border-left-color: #AAC6AD; background: rgba(152,255,217,.04); }
.eg-espace-v2-row-head { display: flex; align-items: baseline; gap: 10px; }
.eg-espace-v2-order { flex: 0 0 auto; color: var(--eg-text-muted, rgba(255,255,255,.65)); font-size: .86rem; }
.eg-espace-v2-title { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 600; }
.eg-espace-v2-player-col {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px;
  min-height: 360px;
  position: sticky;
  top: 90px;
}
.eg-espace-v2-player-col { text-align: center; }
.eg-espace-v2-player-title { margin: 0 0 16px; font-family: var(--serif); text-align: center; }
.eg-espace-panel-body {
  display: flex; flex-direction: column; align-items: center;
}
.eg-espace-panel-desc,
.eg-espace-panel-actions,
.eg-espace-panel-media {
  width: 100%; max-width: 36rem;
}
.eg-espace-panel-desc { text-align: center; }
.eg-espace-opis { font-size: .95rem; line-height: 1.65; color: var(--text2, rgba(255,255,255,.78)); text-align: center; }
.eg-espace-panel-actions { display: flex; justify-content: center; margin-top: 8px; }
.eg-espace-panel-actions[hidden],
.eg-espace-panel-actions.eg-is-hidden,
.eg-espace-panel-media[hidden],
.eg-espace-panel-media.eg-is-hidden {
  display: none !important;
}
.eg-espace-v2-player-col--media .eg-espace-panel-desc,
.eg-espace-v2-player-col--media .eg-espace-panel-actions {
  display: none !important;
}
.eg-espace-panel-actions .eg-btn-primary { min-width: 12rem; }
.eg-espace-player-host {
  width: 100%; max-width: 640px; margin: 0 auto;
}
.eg-espace-archive-player.eg-youtube-lite { border-radius: 12px; overflow: hidden; }
.eg-espace-panel-media-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; justify-content: center; }
.eg-espace-panel-media-actions .eg-btn-primary { margin-left: 0; }
.eg-espace-v2-empty { color: var(--eg-text-muted); text-align: center; padding: 20px; }
.eg-espace-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 24px; }
.eg-espace-modal[hidden] { display: none !important; }
body.eg-espace-modal-open { overflow: hidden; }
.eg-espace-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.eg-espace-modal-dialog {
  position: relative; width: min(720px,100%); max-height: min(80vh,720px);
  background: var(--surface,#141414); border: 1px solid var(--border,rgba(255,255,255,.1));
  border-radius: 16px; display: flex; flex-direction: column; overflow: hidden;
}
.eg-espace-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border,rgba(255,255,255,.08)); }
.eg-espace-modal-header h2 { margin: 0; font-size: 1.1rem; }
.eg-espace-modal-close { border: 0; background: transparent; font-size: 28px; cursor: pointer; color: inherit; }
.eg-espace-modal-body { padding: 20px; overflow: auto; line-height: 1.65; font-size: .92rem; }
/* ESpace — single odcinek (artykuł) */
body.single-eg_espace #eg-page-wrap.eg-page-stack {
  position: relative;
  z-index: 10;
  isolation: isolate;
}
.eg-espace-single {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.eg-espace-single .eg-espace-single-article {
  max-width: 760px;
  margin: 0 auto;
}
.eg-espace-single-header { margin-bottom: 8px; }
.eg-espace-single-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  font-family: var(--sans); font-size: .82rem; color: var(--text-muted);
  margin-bottom: 14px;
}
.eg-espace-single-num { font-family: var(--mono); font-weight: 700; color: var(--mint); }
.eg-espace-single-duration::before { content: '·'; margin-right: 10px; opacity: .5; }
.eg-espace-single-date { margin: 0; }
.eg-espace-single-date::before { content: '·'; margin-right: 10px; opacity: .5; }
.eg-espace-single-title { margin: 0 0 16px; line-height: 1.2; }
.eg-espace-single-terms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.eg-espace-single-listen {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.eg-espace-listen-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: .88rem; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--border,rgba(255,255,255,.14));
  color: inherit; transition: border-color .18s, background .18s;
}
.eg-espace-listen-btn:hover { border-color: rgba(152,255,217,.45); background: rgba(152,255,217,.06); }
.eg-espace-listen-btn--yt { color: var(--mint); }
.eg-espace-single-cytat {
  margin: 0 0 24px; padding: 18px 22px; border-left: 3px solid rgba(152,255,217,.55);
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; font-style: italic;
  background: rgba(152,255,217,.05); border-radius: 0 12px 12px 0;
}
.eg-espace-single-lead {
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; color: var(--text2);
}
.eg-espace-single-lead p:last-child { margin-bottom: 0; }
.eg-espace-single-meta-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 28px 40px; margin: 36px 0 0; }
.eg-espace-single-divider--after-meta { margin: 36px 0 40px; }
.eg-espace-single-listen--center { justify-content: center; margin: 8px 0 32px; }
.eg-espace-single-article-body {
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.78; color: var(--text2);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 24px 26px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.eg-espace-single-article-body p,
.eg-espace-single-article-body li,
.eg-espace-single-prose {
  text-align: center;
}
.eg-espace-single-article-body ul,
.eg-espace-single-article-body ol {
  list-style-position: inside;
  padding-left: 0;
}
.eg-espace-single-article-body h2,
.eg-espace-single-article-body h3 {
  font-family: var(--serif);
  margin: 1.6em 0 0.6em;
  scroll-margin-top: 88px;
  text-align: center;
}
/* W artykule: h2 wizualnie jak h3, h3 jak h4 (o jeden poziom mniej) */
.eg-espace-single-article-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.eg-espace-single-article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.eg-espace-single-article-body h2:not([class*="eg-espace-heading-tone-"]),
.eg-espace-single-article-body h3:not([class*="eg-espace-heading-tone-"]) {
  color: var(--mint);
}
.eg-espace-single-article-body h2:first-child,
.eg-espace-single-article-body h3:first-child { margin-top: 0; }
.eg-espace-single-article-body p { margin: 0 0 1em; }
.eg-espace-single .eg-single-section-title,
.eg-espace-single .eg-single-related-title {
  scroll-margin-top: 88px;
}
/* Sekcje strony: .eg-single-section-title to wizualnie h2 (22px) → jak h3 (18px) */
.eg-espace-single .eg-single-section-title {
  font-size: 1.125rem;
  margin-bottom: 16px;
}
.eg-espace-single .eg-single-related-title {
  font-size: 1.125rem;
}
.eg-espace-single .eg-single-section-title:not([class*="eg-espace-heading-tone-"]),
.eg-espace-single .eg-single-related-title:not([class*="eg-espace-heading-tone-"]) {
  color: var(--mint);
}
.eg-espace-single-subtitle {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  margin: 0 0 14px; scroll-margin-top: 88px;
  font-weight: 600;
}
.eg-espace-single-subtitle:not([class*="eg-espace-heading-tone-"]) {
  color: var(--text-muted);
}
.eg-espace-single { scroll-behavior: smooth; }
.eg-espace-single .eg-espace-heading-tone-0 { color: rgb(152, 255, 217); }
.eg-espace-single .eg-espace-heading-tone-1 { color: rgb(56, 189, 248); }
.eg-espace-single .eg-espace-heading-tone-2 { color: rgb(245, 158, 11); }
.eg-espace-single .eg-espace-heading-tone-3 { color: rgb(236, 72, 153); }
.eg-espace-single .eg-espace-heading-tone-4 { color: rgb(34, 197, 94); }
.eg-espace-single .eg-espace-heading-tone-5 { color: rgb(139, 92, 246); }
.eg-espace-single .eg-espace-heading-tone-6 { color: rgb(249, 115, 22); }
.eg-espace-single .eg-espace-heading-tone-7 { color: rgb(14, 165, 233); }
.eg-espace-single .eg-espace-heading-tone-8 { color: rgb(244, 63, 94); }
.eg-espace-single .eg-espace-heading-tone-9 { color: rgb(13, 148, 136); }
.eg-espace-single .eg-espace-heading-tone-10 { color: rgb(79, 70, 229); }
.eg-espace-single .eg-espace-heading-tone-11 { color: rgb(202, 138, 4); }
.eg-espace-single .eg-espace-heading-tone-12 { color: rgb(101, 163, 13); }
.eg-espace-single .eg-espace-heading-tone-13 { color: rgb(234, 88, 12); }
.eg-espace-single .eg-espace-heading-tone-14 { color: rgb(147, 51, 234); }
.eg-espace-single .eg-espace-heading-tone-15 { color: rgb(8, 145, 178); }
.eg-espace-single .eg-espace-heading-tone-16 { color: rgb(220, 38, 38); }
.eg-espace-single .eg-espace-heading-tone-17 { color: rgb(5, 150, 105); }
.eg-espace-single .eg-espace-heading-tone-18 { color: rgb(217, 119, 6); }
.eg-espace-single .eg-espace-heading-tone-19 { color: rgb(2, 132, 199); }
.eg-espace-single .eg-espace-heading-tone-20 { color: rgb(124, 58, 237); }
.eg-espace-single .eg-espace-heading-tone-21 { color: rgb(192, 38, 211); }
.eg-espace-single .eg-espace-heading-tone-22 { color: rgb(219, 39, 119); }
.eg-espace-single .eg-espace-heading-tone-23 { color: rgb(22, 163, 74); }
.eg-espace-single .eg-espace-heading-tone-24 { color: rgb(37, 99, 235); }
.eg-espace-single .eg-espace-heading-tone-25 { color: rgb(225, 29, 72); }
.eg-espace-single .eg-espace-heading-tone-26 { color: rgb(13, 148, 136); }
.eg-espace-single .eg-espace-heading-tone-27 { color: rgb(67, 56, 202); }
.eg-espace-single .eg-espace-heading-tone-28 { color: rgb(202, 138, 4); }
.eg-espace-single .eg-espace-heading-tone-29 { color: rgb(101, 163, 13); }
.eg-espace-single .eg-espace-heading-tone-30 { color: rgb(234, 88, 12); }
.eg-espace-single-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-espace-single-divider { margin: 40px 0; }
.eg-espace-single-body { max-width: 720px; }
.eg-espace-single-block {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border,rgba(255,255,255,.06));
}
.eg-espace-single-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.eg-espace-single-streszczenie { font-family: var(--serif); line-height: 1.75; color: var(--text2); }
.eg-espace-single-prose {
  font-family: var(--serif); font-size: 1rem; line-height: 1.75; color: var(--text2); margin: 0;
}
.eg-espace-single-spis {
  font-family: var(--mono); font-size: .88rem; line-height: 1.85; color: var(--text2);
}
.eg-espace-single-spis ul { margin: 0; padding-left: 1.1em; }
.eg-espace-materialy-list { margin: 0; padding-left: 1.2em; line-height: 1.8; }
.eg-espace-single .eg-transkrypcja-toggle {
  width: 100%; text-align: left; font-family: var(--sans);
  font-size: .95rem; font-weight: 600; padding: 14px 18px;
  border: 1px solid var(--border,rgba(255,255,255,.12)); border-radius: 12px;
  background: transparent; color: inherit; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.eg-espace-single .eg-transkrypcja-body {
  margin-top: 16px; padding: 20px; border-radius: 12px;
  background: rgba(0,0,0,.2); font-size: .9rem; line-height: 1.65; max-height: 60vh; overflow: auto;
}
.eg-espace-single-related {
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--border,rgba(255,255,255,.1));
  position: relative;
  z-index: 1;
}
.eg-espace-single-date { display: inline; font-size: inherit; color: inherit; margin: 0; }
.eg-espace-spis-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin: 0 0 12px; }
.eg-espace-spis-list { margin: 0; padding-left: 1.2em; line-height: 1.7; color: var(--text2); }
.eg-espace-spis-list a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid rgba(152, 255, 217, .22);
  transition: color .18s, border-color .18s;
}
.eg-espace-spis-list a:hover { color: var(--mint); border-bottom-color: rgba(152, 255, 217, .55); }
@media (max-width: 980px) {
  .eg-espace-archive .eg-espace-v2-layout { grid-template-columns: 1fr; }
  .eg-espace-v2-list { max-height: none; }
  .eg-espace-v2-player-col { position: static; }
  .eg-espace-panel-media-actions .eg-btn-primary { margin-left: 0; width: 100%; }
}
@media (max-width: 768px) {
  .eg-espace-single-meta-grid { grid-template-columns: 1fr; }
}

