.landing-body {
  min-height: 100vh;
}

.language-gateway {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}

.gateway-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: stretch;
}

.gateway-copy {
  position: relative;
  min-height: 520px;
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 10%, rgba(0,120,212,0.18), transparent 24rem),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    rgba(7, 13, 21, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}


.gateway-copy h1 {
  max-width: 760px;
}

.gateway-role {
  margin-top: 1.15rem;
  color: var(--blue-3);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 850;
}

.gateway-lede {
  max-width: 660px;
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.gateway-languages {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.gateway-languages-single {
  grid-template-rows: 1fr;
}

.language-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 245px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    rgba(11, 22, 34, 0.9);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.language-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(74,163,255,0.10), rgba(255,255,255,0.012)),
    rgba(12, 27, 42, 0.95);
}

.language-code {
  color: var(--blue-3);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.language-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
}

.language-action {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.gateway-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.gateway-links a:hover {
  color: var(--blue-3);
}

@media (max-width: 900px) {
  .gateway-shell {
    grid-template-columns: 1fr;
  }

  .gateway-copy {
    min-height: 410px;
  }

  .gateway-languages {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .language-card {
    min-height: 190px;
    grid-template-columns: 1fr;
    align-content: center;
  }
}

@media (max-width: 620px) {
  .language-gateway {
    padding: 1rem 0;
  }

  .gateway-languages {
    grid-template-columns: 1fr;
  }

  .gateway-copy {
    min-height: 360px;
    padding: 1.5rem;
  }

  .language-card {
    min-height: 160px;
  }

  .gateway-links {
    justify-content: flex-start;
  }
}

/* =========================================================
   v21 landing: stable XP background + compact mobile gateway
   ========================================================= */
.landing-body {
  position: relative;
  min-height: 100svh;
  background: #05070b;
  overflow-x: hidden;
}

.landing-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.38), rgba(2, 8, 15, 0.62)),
    url("../images/bg-1.webp") center center / cover no-repeat;
}

.gateway-copy {
  background:
    radial-gradient(circle at 20% 10%, rgba(0,120,212,0.15), transparent 24rem),
    linear-gradient(180deg, rgba(5,13,22,0.78), rgba(5,13,22,0.88));
  backdrop-filter: blur(2px);
}

.language-card {
  background:
    linear-gradient(180deg, rgba(8,18,30,0.82), rgba(6,14,24,0.9));
  backdrop-filter: blur(2px);
}

@media (max-width: 620px) {
  .landing-body {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .landing-body::before {
    position: absolute;
    height: 100svh;
  }

  .language-gateway {
    height: 100svh;
    min-height: 100svh;
    padding: 0.7rem 0;
    overflow: hidden;
  }

  .gateway-shell {
    width: min(100% - 1.4rem, var(--max-width));
    height: calc(100svh - 1.4rem);
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 0.65rem;
  }

  .gateway-copy {
    min-height: 0;
    padding: clamp(1rem, 4.5vw, 1.35rem);
    justify-content: center;
  }

  .gateway-copy .eyebrow {
    margin-bottom: 0.55rem;
  }

  .gateway-copy h1 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .gateway-role {
    margin-top: 0.65rem;
    font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    line-height: 1.35;
  }

  .gateway-lede {
    margin-top: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .gateway-languages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 0.65rem;
  }

  .language-card {
    min-height: 92px;
    padding: 0.8rem 0.9rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 0.15rem;
  }

  .language-card strong {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .language-code {
    font-size: 0.62rem;
  }

  .language-action {
    display: none;
  }

  .gateway-links {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-inline: 0.1rem;
    font-size: 0.82rem;
  }
}

/* =========================================================
   v23 language gateway alignment + stable background
   ========================================================= */
.landing-body::before {
  z-index: 0;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.34), rgba(2, 8, 15, 0.56)),
    url("../images/bg-1.webp") center center / cover no-repeat;
}

.language-gateway {
  position: relative;
  z-index: 1;
}

.gateway-copy {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-content: stretch;
}

.gateway-copy .eyebrow {
  align-self: start;
  margin: 0;
}

.gateway-copy h1 {
  align-self: center;
  margin: 0;
}

.gateway-bottom {
  align-self: end;
}

.gateway-bottom .gateway-role {
  margin-top: 0;
}

@media (max-width: 620px) {
  .landing-body::before {
    position: absolute;
    inset: 0;
    height: 100svh;
  }

  .gateway-copy {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .gateway-copy h1 {
    align-self: center;
  }

  .gateway-bottom {
    align-self: end;
  }
}


/* =========================================================
   v24 language tiles use flag backgrounds
   ========================================================= */
.gateway-languages .language-card {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.gateway-languages .language-card strong,
.gateway-languages .language-card .language-code,
.gateway-languages .language-card .language-action {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 0 10px rgba(0,0,0,0.35);
}

.gateway-languages .language-card:first-child {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.30), rgba(2, 8, 15, 0.30)),
    url("../images/flag-uk.webp") center center / cover no-repeat;
}

.gateway-languages .language-card:last-child {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.28), rgba(2, 8, 15, 0.28)),
    url("../images/flag-pl.webp") center center / cover no-repeat;
}

.gateway-languages .language-card:hover:first-child {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.18), rgba(2, 8, 15, 0.18)),
    url("../images/flag-uk.webp") center center / cover no-repeat;
}

.gateway-languages .language-card:hover:last-child {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.18), rgba(2, 8, 15, 0.18)),
    url("../images/flag-pl.webp") center center / cover no-repeat;
}


/* =========================================================
   v25 reliable landing background + darker flag tiles
   ========================================================= */
.landing-body {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.34), rgba(2, 8, 15, 0.56)),
    url("../images/bg-1.webp") center center / cover no-repeat fixed;
}

.landing-body::before {
  display: none;
}

.gateway-languages .language-card:first-child {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.64), rgba(2, 8, 15, 0.64)),
    url("../images/flag-uk.webp") center center / cover no-repeat;
}

.gateway-languages .language-card:last-child {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.64), rgba(2, 8, 15, 0.64)),
    url("../images/flag-pl.webp") center center / cover no-repeat;
}

.gateway-languages .language-card:hover:first-child {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.52), rgba(2, 8, 15, 0.52)),
    url("../images/flag-uk.webp") center center / cover no-repeat;
}

.gateway-languages .language-card:hover:last-child {
  background:
    linear-gradient(180deg, rgba(2, 8, 15, 0.52), rgba(2, 8, 15, 0.52)),
    url("../images/flag-pl.webp") center center / cover no-repeat;
}

@media (max-width: 620px) {
  .landing-body {
    background-attachment: scroll;
  }
}
