/* Rebooks hero — żółty nagłówek strony głównej. */
.rb-hero {
  --rbh-zolty: #f2d06b;
  --rbh-tekst: #1f1f1f;
  --rbh-akcent: #b8431c;
  --rbh-akcent-hover: #8e3214;
  background: var(--rbh-zolty);
  color: var(--rbh-tekst);
  font-family: var(--beo-font-sans-serif, 'Raleway', system-ui, sans-serif);
}

.rb-hero__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 4.5rem 1.5rem 5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem;
}

.rb-hero__tekst {
  flex: 999 1 34rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.rb-hero__h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw + 0.5rem, 3.75rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: inherit;
}

.rb-hero__h1-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.35rem, 2vw + 0.6rem, 2.25rem);
  font-weight: 500;
  letter-spacing: 0;
}

.rb-hero__lead {
  margin: 0;
  font-weight: 400;
  max-width: 35rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Blok ISBN z modułu dostaje białą kartę — moduł ma własne style pola,
   tu ustawiamy tylko oprawę, żeby nie walczyć z jego CSS. */
.rb-hero__szukaj {
  max-width: 39rem;
}

.rb-hero__szukaj .addbooks-anonim-siatka,
.rb-hero__szukaj > .block {
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 10px 30px rgba(31, 31, 31, 0.12);
}

.rb-hero__cta {
  display: inline-block;
  background: var(--rbh-akcent);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border-radius: 10px;
}

.rb-hero__cta:hover,
.rb-hero__cta:focus-visible {
  background: var(--rbh-akcent-hover);
  color: #fff;
}

.rb-hero__ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.rb-hero__ticks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rb-hero__ilustracja {
  flex: 1 1 18rem;
  display: flex;
  justify-content: center;
}

.rb-hero__ilustracja img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

@media (max-width: 767.98px) {
  /* Telefon: nagłówek na całą szerokość, pod nim akapit z ilustracją
     po prawej (na wysokość tekstu), potem przycisk i argumenty.
     .rb-hero__tekst znika z układu (display: contents), więc jego dzieci
     i ilustracja stają się elementami jednej siatki. */
  .rb-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    grid-template-areas:
      'h1    h1'
      'lead  ilu'
      'cta   cta'
      'ticks ticks';
    align-items: center;
    gap: 1.1rem 0.9rem;
    padding: 2rem 1rem 2.5rem;
  }

  .rb-hero__tekst {
    display: contents;
  }

  .rb-hero__h1 { grid-area: h1; }
  .rb-hero__lead { grid-area: lead; font-size: 1rem; }
  .rb-hero__szukaj { grid-area: cta; max-width: none; }
  .rb-hero__ticks { grid-area: ticks; flex-direction: column; }

  .rb-hero__ilustracja {
    grid-area: ilu;
    flex: none;
    margin: 0;
    align-self: center;
  }

  .rb-hero__ilustracja img {
    width: 100%;
    max-width: 104px;
  }

  .rb-hero__cta {
    display: block;
    text-align: center;
  }
}

/* --- Poprawka starego układu strony głównej ---------------------------------
   css/pages/frontpage.css (z czasów pokazu slajdów) ustawia nagłówek i region
   z komunikatem jako position: absolute, 110 px od góry. Przy wyższym górnym
   pasku komunikat wjeżdżał na logo. Wracamy do zwykłego przepływu strony. */
.region-header,
.region-highlighted {
  position: static !important;
  margin-top: 0 !important;
  z-index: auto;
}

.region-header {
  color: inherit;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 1rem;
}

/* Żółty nagłówek nie może przykryć logo, nawet jeśli region nad nim
   ma sztywną wysokość. */
.rb-hero {
  position: relative;
  z-index: 0;
  clear: both;
}

/* Komunikat o przerwie pokazuje się na górze (page--front, .pasek-komunikat).
   Jego kopia w starym regionie na stronie głównej znika. */
.region-highlighted #block-rebooks-przerwarebooks {
  display: none !important;
}
