/* Homepage visual balance: one calm hierarchy for EN, PL and ES. */

/* Keep the hero readable while the image remains present, even when a
   localized line is longer than the English source. */
body main > .hero:first-child:has(.hero-copy) .hero-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: clamp(590px, 58vw, 680px);
  height: auto;
  align-items: center;
}

body main > .hero:first-child:has(.hero-copy) .hero-copy {
  grid-column: 1 / span 7;
  min-width: 0;
  max-width: 760px;
  padding: clamp(48px, 6vw, 76px) 0 clamp(48px, 6vw, 72px);
}

body main > .hero:first-child:has(.hero-copy) .hero h1,
body main > .hero:first-child:has(.hero-copy) h1 {
  width: min(100%, 760px);
  max-width: 760px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

body main > .hero:first-child:has(.hero-copy) .hero-title-line {
  white-space: normal;
}

body main > .hero:first-child:has(.hero-copy) .hero-visual {
  grid-column: 6 / -1;
  min-width: 0;
  min-height: clamp(500px, 49vw, 620px);
  margin-left: clamp(-56px, -4vw, -28px);
}

body main > .hero:first-child:has(.hero-copy) .hero-visual img {
  object-position: 68% center;
}

/* The source monogram is a square raster; keep its black field from becoming
   a visible tile around the circular mark at any responsive size. */
body > header.site .home-unified-brand > .mono,
body > header.site .home-unified-brand > .mono > img {
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  clip-path: circle(48% at 50% 50%);
  overflow: hidden;
  mix-blend-mode: screen;
}

body > header.site .home-unified-brand > .mono {
  isolation: isolate;
}

body > header.site .home-unified-brand > .mono > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Action hub: five equal decisions, with a clear reading order and enough
   flexible height for translated headings and action labels. */
.home-action-hub {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(223, 126, 158, .27);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(223, 126, 158, .11), rgba(13, 15, 19, .97) 46%, rgba(176, 135, 92, .08));
  box-shadow: 0 24px 72px rgba(0, 0, 0, .24);
}

.home-action-hub::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -160px;
  top: -220px;
  border: 1px solid rgba(223, 126, 158, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(223, 126, 158, .035), 0 0 0 64px rgba(176, 135, 92, .025);
  pointer-events: none;
}

.home-action-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, .65fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 34px);
}

.home-action-head > div,
.home-action-head h2,
.home-action-intro {
  min-width: 0;
}

.home-action-head h2 {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(36px, 4.25vw, 60px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.home-action-head h2 img {
  display: inline-block;
  width: clamp(27px, 3.4vw, 42px);
  height: auto;
  margin-left: .1em;
  vertical-align: -.1em;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(223, 126, 158, .3));
}

.home-action-intro {
  max-width: 430px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.6;
}

.home-action-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-action-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 258px;
  padding: 22px 20px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 8, 10, .68);
  color: var(--cream);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.home-action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(223, 126, 158, .64);
  background: linear-gradient(145deg, rgba(223, 126, 158, .13), rgba(8, 9, 11, .86));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .2);
}

.home-action-card:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.home-action-card__number {
  color: var(--pink);
  font: 600 15px/1 var(--ui);
  letter-spacing: .13em;
}

.home-action-card__label {
  display: block;
  margin-top: 20px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-action-card h3 {
  margin: 8px 0 9px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.home-action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.home-action-card__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-action-card__go::after {
  content: "";
  width: 28px;
  height: 1px;
  flex: 0 0 28px;
  background: currentColor;
  opacity: .55;
}

.home-action-guides {
  position: relative;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.home-action-guides a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(223, 126, 158, .7);
  text-underline-offset: 3px;
}

.home-action-note {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 20px;
  padding: 16px 17px 0;
  border-top: 1px solid rgba(239, 231, 220, .11);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.home-action-note strong {
  color: var(--cream);
  font-weight: 700;
}

@media (max-width: 1080px) {
  body main > .hero:first-child:has(.hero-copy) .hero-copy {
    grid-column: 1;
    max-width: 820px;
    padding: 44px 0 28px;
  }

  body main > .hero:first-child:has(.hero-copy) .hero-visual {
    grid-column: 1;
    min-height: 390px;
    margin: 0 16px 18px;
  }

  .home-action-head {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .65fr);
  }

  .home-action-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-action-card {
    grid-column: span 2;
    min-height: 238px;
  }

  .home-action-card:nth-child(4),
  .home-action-card:nth-child(5) {
    grid-column: span 3;
  }
}

@media (max-width: 700px) {
  body main > .hero:first-child:has(.hero-copy) .hero-copy {
    padding: 34px 0 24px;
  }

  body main > .hero:first-child:has(.hero-copy) .hero h1,
  body main > .hero:first-child:has(.hero-copy) h1 {
    font-size: clamp(39px, 11.4vw, 54px);
    line-height: .99;
  }

  body main > .hero:first-child:has(.hero-copy) .hero-visual {
    min-height: 330px;
    margin-inline: 0;
  }

  .home-action-hub {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .home-action-head {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 22px;
  }

  .home-action-head h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .home-action-intro {
    max-width: 640px;
  }

  .home-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-action-card,
  .home-action-card:nth-child(4),
  .home-action-card:nth-child(5) {
    grid-column: auto;
    min-height: 246px;
    padding: 20px;
  }

  .home-action-card h3 {
    font-size: 25px;
  }

  .home-action-card p {
    font-size: 14px;
  }

  .home-action-note {
    display: block;
    padding: 15px 0 0;
    font-size: 14px;
  }

  .home-action-note strong {
    display: block;
    margin-bottom: 3px;
  }
}

@media (max-width: 480px) {
  .home-action-grid {
    grid-template-columns: 1fr;
  }

  .home-action-card,
  .home-action-card:nth-child(4),
  .home-action-card:nth-child(5) {
    min-height: 0;
  }

  .home-action-card p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-action-card {
    transition: none;
  }

  .home-action-card:hover {
    transform: none;
  }
}
