/* Hover rules — derived from style-hover attributes in design files */

/* Nav links */
.eac-navlinks a:hover { color: var(--ink-900) !important; }
.eac-nav-cta:hover { background: var(--ink-700) !important; }

/* Footer links */
footer a:hover { color: var(--paper) !important; }

/* Inline underline links (light bg) */
.eac-link:hover { border-color: var(--ink-900) !important; }

/* Inline underline links (dark bg) */
.eac-link-dark:hover { color: var(--paper) !important; border-color: var(--paper) !important; }

/* Primary CTA button */
.eac-btn-primary:hover { background: var(--ink-700) !important; }

/* Outline button */
.eac-btn-outline:hover { border-color: var(--ink-900) !important; }

/* Card CTA on dark bg */
.eac-btn-paper:hover { background: var(--paper-2) !important; }

/* Image placeholder */
.eac-img-placeholder {
  background: var(--ink-300);
  display: block;
  width: 100%;
}

/* Form fields */
.eac-field {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  background: var(--card);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-900);
  padding: 13px 16px;
  transition: border-color .24s;
}
.eac-field:focus { border-color: var(--ink-900); }
.eac-field:focus:not(:focus-visible) { outline: none; }
.eac-field:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.eac-field::placeholder { color: var(--ink-500); }

/* Cennik spec table */
.eac-spec-wrap { overflow-x: auto; }
.eac-spec-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.eac-spec-table th,
.eac-spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--ink-300); vertical-align: top; line-height: 1.45; }
.eac-spec-table th { font-size: 13px; font-weight: 600; }
.eac-spec-table thead th { color: var(--ink-900); border-bottom: 1px solid var(--ink-900); }
.eac-spec-table tbody th { font-weight: 500; color: var(--ink-900); }
.eac-spec-table td { color: var(--ink-700); }
.eac-spec-table .eac-col-hl { background: var(--paper-2); }

/* Metoda comparison table */
.eac-wtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.eac-wtable th,
.eac-wtable td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--ink-300); vertical-align: top; line-height: 1.5; }
.eac-wtable thead th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-500); font-weight: 500; border-bottom: 1px solid var(--ink-900); }
.eac-wtable tbody th { font-weight: 600; color: var(--ink-900); width: 160px; }
.eac-wtable td { color: var(--ink-700); }

/* Ranking table */
.eac-rank-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.eac-rank-table th,
.eac-rank-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--ink-300); vertical-align: middle; line-height: 1.4; }
.eac-rank-table thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); font-weight: 500; }
.eac-rank-table tbody tr:hover td { background: var(--paper-2); }

.eac-rank-up   { color: var(--rank-up); }
.eac-rank-down { color: var(--rank-down); }
.eac-rank-flat { color: var(--rank-flat); }
.eac-rank-gold   { color: var(--rank-gold); }
.eac-rank-silver { color: var(--rank-silver); }
.eac-rank-bronze { color: var(--rank-bronze); }

/* Grid utility classes */
.eac-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.eac-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.eac-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }


/* ==========================================================================
   Komponenty wspólne
   Jeden przycisk, jeden wiersz ceny, jedna karta i jeden akordeon w całym
   serwisie. Rytm sekcji: ciemna / jasna / jasna zapadnięta, nigdy dwie
   sąsiednie w tym samym tonie. Ceny czyta się na jasnym tle, końcowe CTA
   zawsze stoi na ciemnym.

   Padding poziomy sekcji nadpisują reguły w base.html: 22px poniżej 900px
   i wyśrodkowanie kolumny powyżej 1280px. Tutaj ustawiamy tylko rytm pionowy.
   ========================================================================== */

.eac-sec { padding: clamp(56px, 7vw, 80px) 56px; }
.eac-sec--tight { padding-top: clamp(40px, 5vw, 56px); padding-bottom: clamp(40px, 5vw, 56px); }
.eac-sec--light { background: var(--paper); color: var(--ink-900); }
.eac-sec--sunken { background: var(--paper-2); color: var(--ink-900); }
.eac-sec--dark { background: var(--ink-900); color: var(--paper); }

.eac-eyebrow { margin: 0 0 14px; font-size: 11px; line-height: 1.4; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 700; color: var(--ink-500); }
.eac-sec--dark .eac-eyebrow { color: var(--text-on-dark-muted); }

.eac-h2 { margin: 0 0 18px; max-width: 760px; font-size: var(--fs-display-md); line-height: var(--lh-display-md); letter-spacing: var(--ls-display-md); font-weight: 500; }
.eac-lead { margin: 0 0 32px; max-width: 700px; font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--ink-700); }
.eac-sec--dark .eac-lead { color: var(--text-on-dark-muted); }
.eac-muted { color: var(--ink-500); }
.eac-sec--dark .eac-muted { color: var(--text-on-dark-muted); }

/* Przycisk główny. Na jasnej sekcji ciemne wypełnienie, na ciemnej odwrotnie.
   Fokus zawsze obwódką, nigdy samą zmianą tła. */
.eac-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border: 1px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.eac-btn--on-light { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }
.eac-btn--on-light:hover { background: var(--ink-700); border-color: var(--ink-700); }
.eac-btn.eac-btn--on-light:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; box-shadow: 0 0 0 5px var(--paper); }
.eac-btn--on-dark { background: var(--paper); color: var(--ink-900); border-color: var(--paper); }
.eac-btn--on-dark:hover { background: var(--paper-2); border-color: var(--paper-2); }
.eac-btn.eac-btn--on-dark:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; box-shadow: 0 0 0 5px var(--ink-900); }
/* Projekt daje temu przyciskowi obrys `--ink-300`. Na tle `--paper-2` to
   1,38:1, a granica kontrolki potrzebuje 3:1 (WCAG 1.4.11): przycisk, którego
   jedynym sygnałem jest ramka, przestawał być widoczny. `--ink-500` daje 5,46:1
   i nie zmienia charakteru komponentu. */
.eac-btn--outline { background: transparent; color: var(--ink-900); border-color: var(--ink-500); }
.eac-btn--outline:hover { border-color: var(--ink-900); }
.eac-btn.eac-btn--outline:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 3px; box-shadow: 0 0 0 5px var(--paper); }
.eac-btn__arrow { font-size: 0.95em; line-height: 1; }
.eac-btn-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-500); }
.eac-sec--dark .eac-btn-note { color: var(--text-on-dark-muted); }

/* Nadtytuł ze znakiem „/" z design systemu. Ukośnik jest ozdobą, więc siedzi
   w CSS, a nie w treści: nie ma go w kopiowanym tekście ani w drzewie DOM. */
.eac-eyebrow-slash { display: inline-flex; align-items: baseline; gap: 12px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-500); }
.eac-eyebrow-slash::before { content: "/"; color: var(--ink-900); font-weight: 600; }
.eac-sec--dark .eac-eyebrow-slash { color: var(--text-on-dark-muted); }
.eac-sec--dark .eac-eyebrow-slash::before { color: var(--paper); }

/* Znaki marki z design systemu: nakładające się koła w trybie multiply
   i schodkowy motyw dziedziczący currentColor. Oba są dekoracją. */
.eac-circles { display: inline-flex; align-items: center; }
.eac-circles span { width: var(--circle-size, 64px); height: var(--circle-size, 64px); border-radius: 50%; mix-blend-mode: multiply; }
.eac-circles span + span { margin-left: calc(var(--circle-size, 64px) * -0.6); }
.eac-circles span:nth-child(1) { background: var(--pastel-pink); }
.eac-circles span:nth-child(2) { background: var(--pastel-green); }
.eac-circles span:nth-child(3) { background: var(--pastel-blue); }
.eac-circles span:nth-child(4) { background: var(--pastel-yellow); }

/* Wiersz ceny. Kropkowany łącznik jest dekoracją w osobnym elemencie,
   dzięki czemu czytnik ekranu dostaje etykietę i cenę bez szumu. */
.eac-price-list { margin: 0; padding: 0; list-style: none; }
.eac-price-row { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; font-size: 16px; line-height: 1.45; color: var(--ink-900); }
.eac-price-row__dots { flex: 1 1 auto; min-width: 20px; align-self: center; border-bottom: 1px dotted var(--ink-400); }
.eac-price-row__value { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* Karta produktu. Uniesienie na hover nie jest jedynym sygnałem klikalności:
   link strzałkowy jest widoczny zawsze, a fokus w środku obrysowuje kartę. */
.eac-cards { display: grid; gap: 18px; align-items: stretch; }
.eac-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eac-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eac-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Cztery karty w jednym rzędzie robią się za wąskie poniżej mniej więcej
   1200 px: wtedy schodzą do dwóch na rząd, zanim na telefonie staną w słupku. */
@media (max-width: 1200px) {
  .eac-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.eac-card { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; padding: 32px; background: var(--card); border: 1px solid var(--ink-200); border-radius: 8px; box-shadow: var(--shadow-card); transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.eac-card:hover { box-shadow: var(--shadow-raised); transform: translateY(-3px); }
.eac-card:focus-within { outline: 2px solid var(--ink-900); outline-offset: 3px; }
.eac-card__title { margin: 0 0 8px; font-size: 21px; line-height: 1.25; font-weight: 600; }
.eac-card__price { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.eac-card__body { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--ink-700); }
.eac-card__note { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-500); }
.eac-card__link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding-bottom: 2px; border-bottom: 1px solid var(--ink-300); color: var(--ink-900); font-size: 15px; font-weight: 600; text-decoration: none; }
.eac-card__link:hover { border-color: var(--ink-900); }

/* Pasek etapów. Numery są tekstem w kolejności DOM, linia łącząca to dekoracja. */
.eac-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.eac-steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.eac-step { position: relative; padding: 0 28px 0 0; }
/* Kółko numeru zasłania linię łączącą, więc jego tło musi zgadzać się z tonem sekcji. */
.eac-step__num { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 16px; border: 1px solid var(--ink-500); border-radius: 50%; background: var(--paper); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.eac-sec--sunken .eac-step__num { background: var(--paper-2); }
.eac-sec--dark .eac-step__num { background: var(--ink-900); border-color: var(--text-on-dark-muted); color: var(--paper); }
.eac-sec--dark .eac-step__price,
.eac-sec--dark .eac-step__body { color: var(--text-on-dark-muted); }
.eac-step::after { content: ""; position: absolute; top: 19px; left: 46px; right: 8px; height: 1px; background: var(--ink-300); }
.eac-step:last-child::after { content: none; }
.eac-step__title { margin: 0 0 4px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.eac-step__price { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-700); font-variant-numeric: tabular-nums; }
.eac-step__body { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-700); }

/* Notatka o stanie prawnym: wąska kolumna, bez ilustracji i bez przycisku
   w środku. Ma czytać się jak rzeczowa notatka, nie jak baner. */
.eac-legalnote { max-width: 62ch; }
.eac-legalnote p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink-700); }
.eac-sec--dark .eac-legalnote p { color: var(--text-on-dark-muted); }

/* Akordeon. Panel zostaje w drzewie dokumentu (wyszukiwanie w przeglądarce
   i dane strukturalne widzą odpowiedzi także po zwinięciu), sterowanie jest
   przyciskiem ze stanem w aria-expanded. Skrypt: static/js/accordion.js */
.eac-acc { display: grid; gap: 10px; }
.eac-acc__item { background: var(--card); border: 1px solid var(--ink-200); border-radius: var(--radius-md); overflow: hidden; }
.eac-acc__item:has(.eac-acc__toggle[aria-expanded="true"]) { border-color: var(--ink-400); }
.eac-acc__heading { margin: 0; font-size: 16.5px; line-height: 1.35; font-weight: 700; }
.eac-acc__toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 20px 24px; background: none; border: none; font: inherit; font-size: 16.5px; font-weight: 700; line-height: 1.4; color: var(--ink-900); text-align: left; cursor: pointer; }
.eac-acc__toggle:hover { background: var(--paper-2); }
.eac-acc__toggle svg { flex-shrink: 0; color: var(--ink-500); transition: transform 260ms ease; }
.eac-acc__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.eac-acc__panel { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 260ms ease, opacity 200ms ease, visibility 0s 260ms; }
.eac-acc__panel > div { overflow: hidden; min-height: 0; }
.eac-acc__panel.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows 260ms ease, opacity 200ms ease, visibility 0s; }
.eac-acc__answer { margin: 0; padding: 0 24px 22px; max-width: 70ch; font-size: 14.5px; line-height: 1.7; color: var(--ink-700); }

/* Pas informacyjny o cookies. Nie jest banerem zgody: serwis nie ustawia
   cookies, na które zgoda byłaby potrzebna. Chowa go atrybut na <html>,
   ustawiany przed pierwszym malowaniem, więc u wracających nie mruga. */
.eac-cookie-note { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; padding: 14px 22px; background: var(--ink-900); color: var(--paper); border-top: 1px solid var(--border-on-dark); }
.eac-cookie-note__text { margin: 0; max-width: 78ch; font-size: 14px; line-height: 1.55; color: var(--text-on-dark); }
.eac-cookie-note__text a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 0.45); }
.eac-cookie-note__text a:hover { border-bottom-color: var(--paper); }
.eac-cookie-note__close { flex: 0 0 auto; padding: 9px 20px; border: 1px solid var(--paper); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink-900); font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer; }
.eac-cookie-note__close:hover { background: var(--paper-2); border-color: var(--paper-2); }
.eac-cookie-note__close:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; box-shadow: 0 0 0 5px var(--ink-900); }
:root[data-cookie-note="dismissed"] .eac-cookie-note { display: none; }
/* Pas jest przyklejony do dołu, więc bez tego zasłaniałby koniec strony, w tym
   linki w kartach i stopkę. Zmierzone wysokości: 72 px od 1024 px wzwyż,
   124 px na tablecie, 168 px przy 320 px. Po zamknięciu miejsce wraca. */
body { padding-bottom: 80px; }
:root[data-cookie-note="dismissed"] body { padding-bottom: 0; }

@media (max-width: 900px) {
  body { padding-bottom: 176px; }
  :root[data-cookie-note="dismissed"] body { padding-bottom: 0; }
  .eac-cookie-note { justify-content: flex-start; padding: 14px 22px 16px; }
  .eac-cards--2,
  .eac-cards--3,
  .eac-cards--4 { grid-template-columns: 1fr; }
  .eac-steps { grid-template-columns: 1fr; gap: 26px; }
  .eac-step { padding: 0 0 0 56px; }
  .eac-step__num { position: absolute; left: 0; top: 0; margin-bottom: 0; }
  .eac-step::after { top: 42px; bottom: -26px; left: 19px; right: auto; width: 1px; height: auto; }
  .eac-card { padding: 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .eac-btn,
  .eac-card,
  .eac-acc__toggle svg,
  .eac-acc__panel { transition: none; }
  .eac-card:hover { transform: none; }
}
