/* =========================================================
   e-BOK
   Spójny z Awarie / Internet-TV / Druki
   ========================================================= */

.ebok-page {
  --eb-navy: #0d3566;
  --eb-blue: #2f79c8;
  --eb-blue-soft: #eef5fc;
  --eb-line: #ccd9ea;
  --eb-line-soft: #e7eef6;
  --eb-orange: #e99912;
  --eb-orange-soft: #fff8eb;
  --eb-text: #102f58;
  --eb-muted: #66798e;
  --eb-radius: 12px;

  max-width: 1200px;
  margin-inline: auto;
  padding: 34px 28px 48px;
  color: var(--eb-text);
}

.ebok-page,
.ebok-page *,
.ebok-page *::before,
.ebok-page *::after {
  box-sizing: border-box;
}

.ebok-page a:focus-visible {
  outline: 3px solid rgba(233, 153, 18, .42);
  outline-offset: 2px;
}

/* HERO */
.ebok-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.ebok-title {
  margin: 0 !important;
  color: var(--eb-navy) !important;
  text-align: left !important;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.ebok-title-accent {
  display: block;
  width: 66px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--eb-orange);
}

.ebok-lead {
  max-width: 650px;
  margin: 25px 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.ebok-hero-art {
  justify-self: end;
  width: min(100%, 360px);
}

.ebok-hero-art-img {
  display: block;
  width: 100%;
  height: auto;
}

/* SEKCJE */
.ebok-section-head {
  padding-bottom: 9px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--eb-line-soft);
}

.ebok-section-head h2 {
  margin: 0;
  color: var(--eb-navy);
  font-size: 1.35rem;
  line-height: 1.25;
}

/* KROKI */
.ebok-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ebok-step-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 320px;
  padding: 16px;
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius);
  background: #fff;
}

.ebok-step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.ebok-step-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--eb-orange);
  border-radius: 50%;
  color: #b26f00;
  font-size: .9rem;
  font-weight: 800;
}

.ebok-step-icon-img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

/* Ikony kroków są plikami PNG. */
.ebok-step-card h3 {
  margin: 12px 0 10px;
  color: var(--eb-navy);
  font-size: 1rem;
  line-height: 1.3;
}

.ebok-step-card p {
  margin: 0 0 12px;
  color: var(--eb-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.ebok-step-card strong {
  color: var(--eb-text);
}

.ebok-step-list {
  margin: -2px 0 14px 18px;
  padding: 0;
  color: var(--eb-muted);
  font-size: .8rem;
  line-height: 1.4;
}

.ebok-step-list li {
  margin-bottom: 5px;
}

.ebok-step-list li::marker {
  color: var(--eb-orange);
}

.ebok-step-list a {
  color: var(--eb-navy);
  font-weight: 700;
}

.ebok-step-actions {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.ebok-step-card > .ebok-btn {
  margin-top: auto;
}

/* BUTTONS */
.ebok-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.ebok-btn-primary {
  border: 1px solid var(--eb-navy);
  background: var(--eb-navy);
  color: #fff;
}

.ebok-btn-primary:hover {
  background: #17467d;
}

.ebok-btn-outline {
  border: 1px solid var(--eb-navy);
  background: #fff;
  color: var(--eb-navy);
}

.ebok-btn-outline:hover {
  background: var(--eb-blue-soft);
}

/* NOTE */
.ebok-note {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 18px 0 28px;
  padding: 15px 18px;
  border: 1px solid #f0c66d;
  border-radius: var(--eb-radius);
  background: var(--eb-orange-soft);
}

.ebok-note-icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.ebok-note p {
  margin: 0;
  color: var(--eb-text);
  font-size: .88rem;
  line-height: 1.45;
}

/* DOWNLOADS */
.ebok-download-list {
  overflow: hidden;
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius);
  background: #fff;
}

.ebok-download-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 10px 16px;
  color: var(--eb-text);
  text-decoration: none;
}

.ebok-download-row + .ebok-download-row {
  border-top: 1px solid var(--eb-line-soft);
}

.ebok-download-row:hover {
  background: #fbfdff;
}

.ebok-pdf-icon-img {
  display: block;
  width: 44px;
  height: 50px;
  object-fit: contain;
}

.ebok-download-name {
  color: var(--eb-navy);
  font-size: .92rem;
  font-weight: 700;
}

.ebok-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--eb-navy);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
}

/* VIDEO */
.ebok-video {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius);
  background: #fff;
}

.ebok-video-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--eb-navy);
  border-radius: 50%;
  color: var(--eb-navy);
  font-size: .8rem;
}

.ebok-video h2 {
  margin: 0 0 3px;
  color: var(--eb-navy);
  font-size: .95rem;
}

.ebok-video p {
  margin: 0;
  color: var(--eb-muted);
  font-size: .82rem;
}

/* TABLET */
@media (max-width: 1024px) {
  .ebok-page {
    padding-inline: 20px;
  }

  .ebok-hero {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .ebok-hero-art {
    width: min(100%, 310px);
  }

  .ebok-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ebok-step-card {
    min-height: 300px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .ebok-page {
    padding: 22px 14px 34px;
  }

  .ebok-hero {
    display: block;
    margin-bottom: 24px;
  }

  .ebok-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .ebok-title-accent {
    width: 44px;
    margin-top: 11px;
  }

  .ebok-lead {
    margin-top: 18px;
    font-size: .95rem;
  }

  .ebok-hero-art {
    width: min(76vw, 270px);
    margin: 12px auto 0;
  }

  .ebok-section-head h2 {
    font-size: 1.12rem;
  }

  .ebok-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ebok-step-card {
    min-height: 0;
    padding: 14px;
  }

  .ebok-step-top {
    min-height: 48px;
  }

  .ebok-step-icon-img {
    width: 50px;
    height: 50px;
  }

  .ebok-step-card h3 {
    margin-top: 8px;
  }

  .ebok-note {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 13px 12px;
  }

  .ebok-note-icon {
    width: 38px;
    height: 38px;
  }

  .ebok-download-row {
    grid-template-columns: 46px minmax(0, 1fr) 42px;
    min-height: 66px;
    gap: 10px;
    padding: 8px 10px;
  }

  .ebok-pdf-icon-img {
    width: 38px;
    height: 44px;
  }

  .ebok-download-name {
    font-size: .82rem;
  }

  .ebok-download-btn {
    min-width: 38px;
    width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0;
  }

  .ebok-download-btn span {
    font-size: 1rem;
  }

  .ebok-video {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ebok-video .ebok-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* A4 */

/* E-mail: aktywny tylko na telefonach */
.ebok-page a.responsive-contact.is-static {
  color: var(--eb-text);
  font-weight: inherit;
  text-decoration: none;
  cursor: text;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 9mm 10mm;
  }

  .header,
  .main-nav,
  .menu,
  .menu-toggle,
  .footer,
  .wcag-trigger,
  .wcag-panel,
  .manage-cookies,
  .ebok-hero-art {
    display: none !important;
  }

  .ebok-page {
    max-width: none !important;
    padding: 0 !important;
  }

  .ebok-title {
    font-size: 16pt !important;
  }

  .ebok-title-accent {
    display: none !important;
  }

  .ebok-lead {
    margin: 2mm 0 4mm !important;
    font-size: 8.5pt !important;
  }

  .ebok-steps {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3mm !important;
  }

  .ebok-step-card {
    min-height: 0 !important;
    padding: 3mm !important;
    break-inside: avoid !important;
  }

  .ebok-step-card .ebok-btn,
  .ebok-download-btn,
  .ebok-video .ebok-btn {
    color: #000 !important;
    background: #fff !important;
    border: 1px solid #888 !important;
  }

  .ebok-note,
  .ebok-download-row,
  .ebok-video {
    break-inside: avoid !important;
  }

  .ebok-note-icon {
    width: 8mm !important;
    height: 8mm !important;
  }

  .ebok-pdf-icon-img {
    width: 8mm !important;
    height: 9mm !important;
  }

  .ebok-page a[href]::after {
    content: none !important;
  }
}
