:root {
  --ely-bg: #a8c5b0;
  --ely-text: #123f67;
  --ely-accent: #c6f000;
  --ely-blue: #19a8d7;
  --ely-card: #0b4967;
  --ely-white: #ffffff;
  --ely-border: rgba(18, 63, 103, 0.7);
  --ely-max: 1180px;
  --ely-radius: 22px;
}

body.home {
  background: var(--ely-bg);
  color: var(--ely-text);
  font-family: "Century Gothic", "Tw Cen MT", Futura, Arial, sans-serif;
}

/* ukrycie domyślnego header/footer WP tylko na homepage */
body.home header.wp-block-template-part,
body.home footer.wp-block-template-part {
  display: none !important;
}

/* usuń typowe wrappery/marginesy FSE */
body.home .wp-site-blocks,
body.home .wp-site-blocks > main,
body.home .wp-block-group {
  margin: 0;
  padding: 0;
}

.container-ely {
  width: min(calc(100% - 70px), var(--ely-max));
  margin-inline: auto;
}

.ely-home {
  padding: 28px 0 80px;
}

.ely-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ely-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.ely-logo {
  width: 98px;
  height: auto;
}

.ely-logo-link {
  display: inline-block;
}

.ely-nav {
  padding-top: 8px;
}

.ely-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ely-menu li {
  display: flex;
  align-items: center;
}

.ely-menu li:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ely-text);
}

.ely-menu a {
  color: var(--ely-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ely-menu a:hover {
  text-decoration: underline;
}

.ely-hero-grid,
.ely-intro,
.ely-news-layout,
.ely-cta {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.ely-hero h1,
.ely-intro h2,
.ely-section-head h2,
.ely-cta h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-weight: 700;
  color: var(--ely-text);
}

.ely-hero h1 {
  font-size: clamp(60px, 7vw, 92px);
  max-width: 520px;
  margin-bottom: 28px;
}

.ely-hero-copy p {
  max-width: 470px;
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 28px;
  color: rgba(18, 63, 103, 0.88);
}

.ely-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--ely-accent);
  color: var(--ely-text);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.ely-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.ely-btn-small {
  min-height: 34px;
  padding: 8px 16px;
  font-size: 11px;
}

.ely-hero-visual,
.ely-cta-visual {
  position: relative;
}

.ely-hero-visual {
  min-height: 620px;
}

.ely-hero-shape-blue,
.ely-hero-shape-green,
.ely-hero-people,
.ely-footer-shape-green,
.ely-footer-shape-blue,
.ely-footer-person {
  position: absolute;
}

.ely-hero-shape-blue {
  width: 170px;
  top: 34px;
  left: 12px;
  z-index: 1;
}

.ely-hero-shape-green {
  width: 455px;
  top: 0;
  right: 10px;
  z-index: 1;
}

.ely-hero-people {
  width: 430px;
  right: 18px;
  top: 28px;
  z-index: 2;
}
.ely-intro,
.ely-news,
.ely-resources,
.ely-pillars,
.ely-cta {
  margin-top: 104px;
}

.ely-intro h2 {
  font-size: clamp(62px, 6.3vw, 88px);
  margin-bottom: 34px;
}

.ely-intro-right {
  display: grid;
  gap: 30px;
  padding-top: 30px;
}

.ely-icon-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}

.ely-pillar-card .ely-icon-badge {
  margin-bottom: 14px !important;
}

.ely-icon-badge {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  background: var(--ely-text) !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ely-icon-badge::before,
.ely-icon-badge::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  box-shadow: none !important;
}

.ely-icon-badge::before {
  width: 11px !important;
  height: 2px !important;
  background: var(--ely-accent) !important;
  top: 14px !important;
  left: 8px !important;
  transform: rotate(-45deg) !important;
  transform-origin: center !important;
}

.ely-icon-badge::after {
  width: 6px !important;
  height: 6px !important;
  top: 7px !important;
  left: 14px !important;
  border-top: 2px solid var(--ely-accent) !important;
  border-right: 2px solid var(--ely-accent) !important;
  background: transparent !important;
  transform: none !important;
}

.ely-icon-card .ely-icon-badge *,
.ely-pillar-card .ely-icon-badge *,
.ely-icon-badge svg,
.ely-icon-badge i,
.ely-icon-badge span {
  display: none !important;
}

.ely-icon-card-content h3 {
  margin: 0 0 8px;
  color: var(--ely-accent);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.ely-icon-card-content p,
.ely-pillar-card p,
.ely-cta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(18, 63, 103, 0.92);
}

.ely-icon-card-content p + p,
.ely-pillar-card p + p {
  margin-top: 12px;
}

.ely-section-head h2 {
  font-size: clamp(44px, 5vw, 70px);
  margin-bottom: 34px;
  text-transform: uppercase;
}

.ely-news-layout {
  align-items: end;
}

.ely-cards-grid,
.ely-resource-grid,
.ely-pillars-grid {
  display: grid;
  gap: 28px;
}

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

.ely-post-card a,
.ely-resource-card > a:first-child {
  text-decoration: none;
  color: var(--ely-text);
  display: block;
}

.ely-post-thumb {
  width: 100%;
  aspect-ratio: 1.52 / 1;
  background: var(--ely-card);
  border-radius: 10px;
  margin-bottom: 10px;
}

.ely-post-type {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(18, 63, 103, 0.9);
}

.ely-post-card h3 {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
}

.ely-side-figure {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.ely-side-figure img {
  width: 290px;
}

.ely-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ely-resource-thumb {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  background: #efefef;
  border-radius: 10px;
  margin-bottom: 14px;
}

.ely-resource-card h3 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 700;
}

.ely-pillars-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.ely-pillar-card {
  position: relative;
  border: 2px solid var(--ely-border);
  border-radius: 16px;
  padding: 22px 22px 24px;
  min-height: 100%;
}

.ely-pillar-card .ely-icon-badge {
  margin-bottom: 10px;
}

.ely-pillar-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
}

.ely-cta {
  align-items: center;
}

.ely-cta-visual {
  min-height: 470px;
}

.ely-footer-shape-green {
  width: 225px;
  top: 0;
  left: 0;
  z-index: 1;
}

.ely-footer-shape-blue {
  width: 210px;
  top: 46px;
  left: 0;
  z-index: 1;
}

.ely-footer-person {
  width: 260px;
  left: 18px;
  bottom: 0;
  z-index: 2;
}

.ely-cta h2 {
  font-size: clamp(54px, 5vw, 78px);
  margin-bottom: 26px;
}

.ely-cta p {
  font-size: 20px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.ely-cta-mail {
  min-width: 320px;
}

.ely-eu-placeholder {
  margin-top: 40px;
  width: 320px;
  min-height: 72px;
  border: 2px dashed rgba(18, 63, 103, 0.45);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-size: 14px;
  text-align: center;
  color: rgba(18, 63, 103, 0.8);
}

.site-footer {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .ely-hero-grid,
  .ely-intro,
  .ely-news-layout,
  .ely-cta {
    gap: 40px;
  }

  .ely-hero-visual {
    min-height: 500px;
  }

  .ely-hero-shape-green {
    width: 360px;
  }

  .ely-hero-people {
    width: 350px;
  }
}

@media (max-width: 1024px) {
  .ely-hero-grid,
  .ely-intro,
  .ely-news-layout,
  .ely-cta,
  .ely-pillars-grid,
  .ely-resource-grid {
    grid-template-columns: 1fr;
  }

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

  .ely-hero-visual,
  .ely-cta-visual {
    min-height: auto;
  }

  .ely-hero-shape-blue,
  .ely-hero-shape-green,
  .ely-hero-people,
  .ely-footer-shape-green,
  .ely-footer-shape-blue,
  .ely-footer-person {
    position: relative;
  }

  .ely-hero-shape-blue,
  .ely-hero-shape-green,
  .ely-footer-shape-green,
  .ely-footer-shape-blue {
    display: none;
  }

  .ely-hero-people,
  .ely-footer-person {
    width: min(100%, 420px);
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
  }

  .ely-side-figure {
    justify-content: flex-start;
  }

  .ely-side-figure img {
    width: min(100%, 320px);
  }

  .ely-cta-copy {
    margin-top: 10px;
  }
}

@media (max-width: 820px) {
  .container-ely {
    width: min(calc(100% - 32px), var(--ely-max));
  }

  .ely-home {
    padding: 16px 0 56px;
  }

  .ely-topbar {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  .ely-nav {
    padding-top: 0;
  }

  .ely-menu a,
  .ely-menu li:not(:last-child)::after {
    font-size: 12px;
  }

  .ely-hero h1 {
    font-size: clamp(46px, 14vw, 68px);
    margin-bottom: 20px;
  }

  .ely-hero-copy p {
    font-size: 18px;
    margin-bottom: 22px;
  }

  .ely-intro h2,
  .ely-section-head h2,
  .ely-cta h2 {
    line-height: 0.98;
  }

  .ely-intro,
  .ely-news,
  .ely-resources,
  .ely-pillars,
  .ely-cta {
    margin-top: 72px;
  }

  .ely-cards-grid {
    grid-template-columns: 1fr;
  }

  .ely-post-card h3 {
    font-size: 23px;
  }

  .ely-resource-card h3 {
    font-size: 20px;
  }

  .ely-cta p {
    font-size: 16px;
  }

  .ely-cta-mail {
    min-width: 0;
    width: 100%;
    max-width: 340px;
  }

  .ely-eu-placeholder {
    width: 100%;
    max-width: 340px;
  }
}
/* FORCE HIDE TT5/FSE HEADER + FOOTER ON FRONT PAGE */
body.home .wp-site-blocks > header,
body.home .wp-site-blocks > footer,
body.home .wp-site-blocks header,
body.home .wp-site-blocks footer,
body.home .wp-block-template-part,
body.home .wp-block-template-part header,
body.home .wp-block-template-part footer,
body.home .site-header,
body.home .site-footer,
body.home header.is-layout-constrained,
body.home footer.is-layout-constrained {
  display: none !important;
}

/* usuń ewentualne wrappery od template parts */
body.home .wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}