/* ==========================================================
   eDatek – style wspólne dla stron Ufficio, Candelabrio
   oraz sekcji „Rodzina produktów” na stronie głównej.
   ========================================================== */

.ed-hero {
  background-image: linear-gradient(to right, #808080, #adcce9);
  text-align: center;
  padding: 48px 20px 40px;
}
.ed-hero h1 {
  font-family: Aleo, serif;
  font-weight: 900;
  margin: 0 0 10px;
}
.ed-hero h1 .ed-brand { font-style: italic; }
.ed-hero .ed-lead {
  font-family: Aleo, serif;
  font-size: 1.375rem;
  margin: 0 auto;
  max-width: 820px;
  color: #222;
}

.ed-sec { padding: 56px 20px; }
.ed-sec.ed-a { background-image: linear-gradient(to right, #adcce9, #8a8a8a); }
.ed-sec.ed-b { background-image: linear-gradient(to right, #8a8a8a, #adcce9); }
.ed-sec.ed-c { background: #f3f5f8; }

.ed-wrap { max-width: 1140px; margin: 0 auto; }

.ed-sec h2 {
  font-family: Aleo, serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 18px;
}
.ed-sec h3 {
  font-family: Aleo, serif;
  font-weight: 700;
  font-size: 1.375rem;
  margin: 0 0 10px;
}
.ed-sec p, .ed-sec li {
  font-family: Aleo, serif;
  font-size: 1.15rem;
  line-height: 1.6;
}
.ed-sec p { margin: 0 0 14px; }
.ed-sec ul { margin: 0 0 14px; padding-left: 1.3em; }
.ed-sec a.ed-link { color: #1d4f86; text-decoration: underline; }

/* układ: tekst + ilustracja */
.ed-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.ed-split.ed-rev { grid-template-columns: 1fr 1.25fr; }
.ed-split.ed-rev .ed-media { order: -1; }
.ed-media { text-align: center; }
.ed-media svg { width: 100%; max-width: 380px; height: auto; }

/* karty */
.ed-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.ed-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 26px 26px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.ed-card .ed-tag {
  display: inline-block;
  font-family: Aleo, serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #478ac9;
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
}
.ed-card .ed-tag.ed-gold { background: #a8833a; }
.ed-card .ed-tag.ed-dark { background: #3b4048; }

/* kroki */
.ed-steps {
  counter-reset: edstep;
  list-style: none;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ed-steps li {
  counter-increment: edstep;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 58px 22px 20px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}
.ed-steps li::before {
  content: counter(edstep);
  position: absolute;
  top: 16px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #478ac9;
  color: #fff;
  font-weight: 700;
  font-family: Aleo, serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* wyróżnienie */
.ed-note {
  border-left: 5px solid #478ac9;
  background: rgba(255, 255, 255, 0.75);
  padding: 16px 22px;
  border-radius: 0 8px 8px 0;
  margin-top: 22px;
}

/* wezwanie do działania */
.ed-cta {
  text-align: center;
  padding: 44px 20px 54px;
  background: #f3f5f8;
}
.ed-cta p {
  font-family: Aleo, serif;
  font-size: 1.25rem;
  margin: 0 0 18px;
}
.ed-btn {
  display: inline-block;
  font-family: Aleo, serif;
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  color: #fff !important;
  background: #478ac9;
  border-radius: 4px;
  padding: 12px 48px;
  text-decoration: none !important;
  transition: background 0.2s;
}
.ed-btn:hover { background: #2f6fae; }
.ed-btn.ed-ghost {
  background: transparent;
  color: #1d4f86 !important;
  border: 2px solid #478ac9;
  padding: 10px 28px;
  font-size: 1rem;
}
.ed-btn.ed-ghost:hover { background: #478ac9; color: #fff !important; }

/* rodzina produktów (strona główna) */
.ed-family .ed-card { display: flex; flex-direction: column; }
.ed-family .ed-card p { flex: 1 1 auto; }
.ed-family .ed-card .ed-btn { align-self: flex-start; margin: 6px 0 8px; }
.ed-new {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b3261e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 8px;
  vertical-align: middle;
}

@media (max-width: 991px) {
  .ed-split, .ed-split.ed-rev { grid-template-columns: 1fr; gap: 28px; }
  .ed-split.ed-rev .ed-media { order: 0; }
  .ed-media svg { max-width: 300px; }
  .ed-sec { padding: 40px 18px; }
  .ed-sec h2 { font-size: 1.6rem; }
}

/* zdjęcia i galerie */
.ed-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}
.ed-media .ed-photo { max-width: 460px; margin: 0 auto; }
.ed-media .ed-photo.ed-narrow { max-width: 230px; box-shadow: none; }
.ed-media .ed-photo.ed-plain { box-shadow: none; border-radius: 0; }
.ed-wide { margin: 26px 0 8px; }
.ed-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 24px 0 8px;
}
.ed-gallery figure, .ed-fig { margin: 0; }
.ed-gallery figcaption, .ed-fig figcaption {
  font-family: Aleo, serif;
  font-size: 1rem;
  text-align: center;
  margin-top: 8px;
  color: #222;
}
.ed-gallery.ed-two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ed-motto {
  font-family: Aleo, serif;
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  margin-top: 18px;
}
.ed-gallery .ed-photo { aspect-ratio: 1 / 1; object-fit: cover; }
.ed-gallery.ed-two .ed-photo { aspect-ratio: 4 / 5; }

/* strony z ciemnym tłem body (np. Kontakt: u-grey-60) – tekst w sekcjach eDatek zawsze ciemny */
.ed-hero, .ed-sec, .ed-cta { color: #111111; }

.ed-card, .ed-card p, .ed-card li, .ed-card h3 { color: #111111; }

/* ===== Pytania i odpowiedzi ===== */
.ed-faq-tools {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.ed-faq-search {
  width: 100%;
  max-width: 560px;
  font-family: Aleo, serif;
  font-size: 1.1rem;
  padding: 12px 18px;
  border: 2px solid #c9d6e6;
  border-radius: 30px;
  background: #fff;
  outline: none;
}
.ed-faq-search:focus { border-color: #478ac9; }
.ed-faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ed-faq-chips a {
  font-family: Aleo, serif;
  font-size: 0.95rem;
  color: #1d4f86;
  background: #fff;
  border: 1px solid #c9d6e6;
  border-radius: 20px;
  padding: 6px 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ed-faq-chips a:hover { background: #478ac9; color: #fff; border-color: #478ac9; }
.ed-faq-group { margin: 0 0 34px; scroll-margin-top: 130px; }
.ed-faq-group h2 { font-size: 1.6rem; margin-bottom: 12px; }
.ed-faq-group h2 a { font-size: 0.95rem; font-weight: 400; margin-left: 10px; }
.ed-faq-item {
  background: #fff;
  border-radius: 8px;
  margin: 0 0 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  scroll-margin-top: 130px;
}
.ed-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: Aleo, serif;
  font-weight: 700;
  font-size: 1.12rem;
  padding: 16px 52px 16px 22px;
  position: relative;
  color: #1a1a1a;
}
.ed-faq-item summary::-webkit-details-marker { display: none; }
.ed-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: #478ac9;
}
.ed-faq-item[open] summary::after { content: "−"; }
.ed-faq-item summary:hover { color: #1d4f86; }
.ed-faq-item .ed-faq-a { padding: 0 22px 14px; border-top: 1px solid #edf0f4; }
.ed-faq-item .ed-faq-a > :first-child { margin-top: 14px; }
.ed-faq-a p, .ed-faq-a li { font-size: 1.05rem; }
.ed-faq-a a { color: #1d4f86; text-decoration: underline; }
.ed-faq-a .ed-faq-link {
  font-size: 0.9rem;
  color: #6b7480;
  text-decoration: none;
  float: right;
  margin-top: -4px;
}
.ed-faq-img { max-width: 100%; height: auto; display: block; margin: 8px auto; }
.ed-faq-item:target, .ed-faq-item.ed-flash { box-shadow: 0 0 0 3px #478ac9; }
.ed-faq-empty { text-align: center; font-family: Aleo, serif; font-size: 1.15rem; display: none; }
mark.ed-todo {
  background: #fff3a8;
  color: #6b4b00;
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
}
.ed-sec table.ed-table { border-collapse: collapse; width: 100%; margin: 6px 0 16px; background: #fff; }
.ed-sec table.ed-table th, .ed-sec table.ed-table td {
  border: 1px solid #d6dde6;
  padding: 8px 12px;
  text-align: left;
  font-family: Aleo, serif;
  font-size: 1.02rem;
}
.ed-sec table.ed-table th { background: #e9eef5; }
