/* Fonik — nagłówek, logo, menu i baner cookies. Wspólne dla wszystkich podstron. */

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: #1e8adc;
  color: #fff;
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 0.18s ease;
}

body.hm-page a.skip-link,
body.hm-page a.skip-link:hover,
body.hm-page a.skip-link:focus {
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── Buttons ─────────────────────────────────────────── */

.hm-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-align: center;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.hm-btn--primary {
  background: #1e8adc;
  color: #fff;
  box-shadow: 0 8px 24px rgba(26, 117, 241, 0.28);
}

.hm-btn--primary:hover {
  background: #1877c0;
  color: #fff;
}

.hm-btn--outline {
  background: #fff;
  border: 1.5px solid #cbd5ec;
  color: #002454;
}

.hm-btn--outline:hover {
  border-color: #1e8adc;
  color: #1e8adc;
}

.hm-btn--ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hm-btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Warianty same ustawiają kolor — nie dziedziczą z `.hm-page a`. */

.hm-btn--sm {
  padding: 11px 20px;
  font-size: 14.5px;
  border-radius: 10px;
}

/* ── Header ──────────────────────────────────────────── */

.hm-promo {
  background: #1a3570;
  color: #c8d6f5;
  font-size: 13.5px;
  padding: 9px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}

.hm-promo strong {
  color: #fff;
}

.hm-promo a {
  color: #8fb4ff;
  font-weight: 700;
  border-bottom: 1px solid rgba(143, 180, 255, 0.5);
}

.hm-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f5;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}

.hm-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.hm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.hm-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #1e8adc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0;
  position: relative;
  flex-shrink: 0;
}

.hm-logo-mark::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 18px;
  background: #fff;
  border-radius: 4px;
}

.hm-logo-mark::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 8px;
  background: #fff;
  border-radius: 4px;
}

.hm-logo-text {
  font-weight: 800;
  font-size: 20px;
  color: #002454;
  letter-spacing: -0.02em;
}

.hm-primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.hm-nav-trigger,
.hm-nav-link {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #3a4462;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  font-family: inherit;
}

.hm-nav-trigger .hm-caret {
  font-size: 10px;
  color: #8a93ac;
}

.hm-nav-trigger[aria-expanded="true"],
.hm-nav-trigger.is-open,
.hm-nav-link.is-current {
  color: #1e8adc;
  background: #eaf1fe;
}

.hm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.hm-login-link {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: #3a4462;
}

.hm-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #cbd5ec;
  background: #fff;
  cursor: pointer;
  padding: 0 11px;
}

.hm-mobile-toggle span {
  height: 2.5px;
  background: #002454;
  border-radius: 2px;
}

/* Mega menus */
.hm-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid #e2e8f5;
  box-shadow: 0 24px 48px rgba(10, 23, 51, 0.12);
}

.hm-mega[hidden] {
  display: none;
}

.hm-mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  gap: 36px;
}

.hm-mega-inner--product {
  grid-template-columns: 1fr 1fr 340px;
}

.hm-mega-inner--audience {
  grid-template-columns: 1fr 340px;
}

.hm-mega-col-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8a93ac;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hm-mega-link {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  color: inherit;
}

.hm-mega-link:hover {
  background: #f4f7fd;
}

.hm-mega-link-index {
  font-size: 12px;
  font-weight: 800;
  color: #1e8adc;
  margin-top: 2px;
  flex: none;
}

.hm-mega-link-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #101a38;
  font-size: 14.5px;
}

.hm-mega-link-desc {
  display: block;
  font-size: 13px;
  color: #5b6478;
  margin-top: 2px;
}

.hm-mega-ai-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 100px;
  background: #eaf1fe;
  color: #1e8adc;
}

.hm-mega-promo {
  background: linear-gradient(160deg, #1a3570, #2a519f);
  border-radius: 14px;
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hm-mega-promo-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #8fb4ff;
  text-transform: uppercase;
}

.hm-mega-promo-stats {
  display: flex;
  gap: 10px;
}

.hm-mega-promo-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
}

.hm-mega-promo-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.hm-mega-promo-stat span {
  font-size: 11.5px;
  color: #aebde3;
}

.hm-mega-promo p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #c8d6f5;
}

.hm-mega-promo a {
  color: #8fb4ff;
  font-weight: 700;
  font-size: 13.5px;
}

.hm-audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.hm-audience-pick {
  padding: 11px 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: #101a38;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.hm-audience-pick:hover {
  background: #f4f7fd;
}

.hm-audience-pick .hm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e8adc;
  flex: none;
}

.hm-mega-note {
  background: #f4f7fd;
  border: 1px solid #e2e8f5;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hm-mega-note-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1e8adc;
  text-transform: uppercase;
}

.hm-mega-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #3a4462;
}

/* Mobile nav panel */
.hm-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid #e2e8f5;
  box-shadow: 0 24px 48px rgba(10, 23, 51, 0.12);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hm-mobile-panel[hidden] {
  display: none;
}

.hm-mobile-panel a {
  padding: 13px 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 15px;
}

.hm-mobile-panel a:not(.hm-btn) {
  color: #101a38;
}

.hm-mobile-panel a:hover {
  background: #f4f7fd;
}

.hm-mobile-panel a.hm-btn--primary {
  color: #fff;
}

/* ── Cookie banner ───────────────────────────────────── */

.hm-cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e2e8f5;
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(10, 23, 51, 0.22);
  padding: 22px;
}

.hm-cookie-banner[hidden] {
  display: none;
}

.hm-cookie-title {
  font-weight: 800;
  font-size: 15px;
  color: #002454;
  margin-bottom: 8px;
}

.hm-cookie-banner p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #5b6478;
}

.hm-cookie-actions {
  display: flex;
  gap: 10px;
}

.hm-cookie-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
}

.hm-cookie-accept {
  border: none;
  background: #1e8adc;
  color: #fff;
}

.hm-cookie-accept:hover {
  background: #1877c0;
}

.hm-cookie-necessary {
  border: 1px solid #cbd5ec;
  background: #fff;
  color: #002454;
}

.hm-cookie-necessary:hover {
  border-color: #1e8adc;
}

.hm-cookie-banner a {
  color: #1e8adc;
  font-weight: 700;
}

.hm-cookie-actions .hm-cookie-accept,
.hm-cookie-actions .hm-cookie-necessary {
  flex: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  body:has(.mobile-sticky-cta) .hm-cookie-banner {
    bottom: 78px;
    left: 12px;
    right: 12px;
    max-width: none;
    z-index: 130;
  }
}

/* Wyrównanie do panelu: jasne karty, Inter, bez granatowych bloków. */

.hm-promo {
  background: #e8f1fe;
  color: #002454;
  border-bottom: 1px solid #e2eaf4;
}

.hm-promo strong {
  color: #002454;
}

.hm-promo a {
  color: #1e8adc;
}

.hm-logo-text,
.hm-heading,
.hm-page h1,
.hm-page h2,
.hm-page h3 {
  color: #002454;
}

.hm-btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
}

.hm-btn--primary {
  box-shadow: none;
}

.hm-btn--outline {
  border: 1px solid #e2eaf4;
  color: #002454;
}

.hm-mega-promo {
  background: #fff;
  color: #002454;
  box-shadow: none;
  border: 1px solid #e2eaf4;
}

.hm-mega-promo-stat {
  background: #f0f4f9;
  border: 1px solid #e2eaf4;
  box-shadow: none;
}

.hm-mega-promo-stat strong {
  color: #002454;
}

.hm-mega-promo-label,
.hm-mega-promo-stat span,
.hm-mega-promo p {
  color: #6b7f99;
}

.hm-nav-trigger[aria-expanded="true"],
.hm-nav-trigger.is-open,
.hm-nav-link.active,
.hm-nav-link[aria-current="page"] {
  background: #e7f4fb;
  color: #1e8adc;
}

.hm-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}

.hm-logo-word {
  display: flex;
  align-items: flex-start;
  gap: 1px;
}

.hm-footer-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hm-logo-text,
.hm-footer-brand span.hm-logo-text {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.045em;
  color: #002454;
  line-height: 0.9;
}

.hm-logo-signal {
  width: 18px;
  height: 16px;
  margin-top: 0;
  flex: none;
}

.hm-logo-by {
  display: block;
  margin-top: 3px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #002454;
}

.hm-header-inner {
  height: 80px;
}

@media (max-width: 920px) {
  .hm-primary-nav,
  .hm-mega {
    display: none !important;
  }

  .hm-mobile-toggle {
    display: flex !important;
  }

  .hm-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 92px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hm-mega-inner--product,
  .hm-mega-inner--audience {
    grid-template-columns: 1fr !important;
  }
}
