/* Teqway v2 — approved visual reference layout */
:root {
  --header-h: 76px;
  --container: 1240px;
}

/* Narrative copy remains justified in EN and PL. */
main p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

main .kicker,
main .hero-meta,
main .market-status,
main .contact-direct,
main .route-step,
main .route-title,
main .capability-card p {
  -webkit-hyphens: none;
  hyphens: none;
}

/* Compact white navigation from the approved visual reference. */
.site-header {
  background: rgba(255,255,255,.985);
  box-shadow: 0 1px 0 rgba(1,25,42,.05);
}

.header-inner {
  max-width: 1320px;
  height: var(--header-h);
  gap: 28px;
}

.logo-link img {
  width: 154px;
}

.site-nav ul {
  gap: 27px;
}

.site-nav a {
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 590;
  color: #16283a;
}

.header-actions {
  gap: 12px;
}

.lang-switch {
  font-size: .78rem;
}

.lang-switch a,
.lang-switch span {
  padding: 4px 5px;
}

.lang-switch span[aria-current] {
  background: transparent;
  border-color: transparent;
}

.btn-header {
  padding: 11px 17px;
  font-size: .81rem;
  border-radius: 4px;
}

/* Homepage hero — left statement, light network visual to the right. */
.hero-reference {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(108deg, #ffffff 0%, #fbfdff 45%, #f1f8ff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-reference .container {
  max-width: 1240px;
  position: relative;
}

.hero-reference .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  gap: 0;
  min-height: 470px;
  align-items: stretch;
}

.hero-reference .hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 560px;
  padding: 70px 0 68px;
}

.hero-reference h1 {
  max-width: 10.8em;
  margin: 0 0 28px;
  font-size: clamp(2.75rem, 4.2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.hero-reference h1 span {
  display: block;
  color: #136bc5;
}

.hero-reference .lead {
  max-width: 41em;
  margin: 0 0 34px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #243b50;
}

.hero-reference .btn-row {
  gap: 14px;
}

.hero-reference .btn {
  min-width: 132px;
  padding: 13px 19px;
  font-size: .88rem;
  border-radius: 4px;
}

.hero-reference .btn-outline {
  background: rgba(255,255,255,.82);
  border-color: #216fc3;
  color: #075aa9;
}

.hero-reference .hero-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: -32px;
  bottom: 0;
  width: 67%;
  max-width: none;
  display: block;
  background-image: url('/assets/visual/hero-network.svg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: min(720px, 100%) auto;
  opacity: .94;
  pointer-events: none;
}

.hero-reference .hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.93) 17%, rgba(255,255,255,.22) 52%, rgba(255,255,255,0) 100%);
}

/* main.js adds the same asset for no-layout-fallback purposes; CSS owns the final presentation. */
.hero-reference .hero-art img {
  display: none;
}

/* Four-column capability band directly beneath the hero. */
.capability-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.capability-strip .container {
  max-width: 1240px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.capability-card {
  position: relative;
  min-width: 0;
  padding: 34px 26px 31px;
  text-align: center;
}

.capability-card + .capability-card {
  border-left: 1px solid var(--line);
}

.capability-card svg {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  fill: none;
  stroke: #0967c3;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-card h2 {
  margin: 0 0 12px;
  font-size: .99rem;
  line-height: 1.25;
  letter-spacing: -.012em;
}

.capability-card p {
  max-width: 18em;
  margin: 0 auto;
  font-size: .79rem;
  line-height: 1.55;
  color: #2d4154;
  text-align: center;
  text-align-last: auto;
}

/* Inner-page hero treatment keeps the same left-copy/right-visual language. */
.page-hero.visual-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 410px;
  background-color: #f8fbfd;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.page-hero.visual-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.995) 0%, rgba(255,255,255,.99) 41%, rgba(255,255,255,.9) 55%, rgba(255,255,255,.18) 83%, rgba(255,255,255,.03) 100%);
}

.page-hero.visual-hero-healthcare { background-image: url('/assets/visual/healthcare-environment.svg'); }
.page-hero.visual-hero-civil-protection { background-image: url('/assets/visual/civil-protection-environment.svg'); }
.page-hero.visual-hero-public-sector { background-image: url('/assets/visual/public-sector-environment.svg'); }

.page-hero.visual-hero .container {
  position: relative;
  z-index: 2;
}

@media (min-width: 1025px) {
  .page-hero.visual-hero .container {
    min-height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: min(47%, 570px);
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .header-inner { gap: 20px; }
  .logo-link img { width: 142px; }
  .site-nav ul { gap: 17px; }
  .site-nav a { font-size: .78rem; }
  .header-actions { gap: 8px; }
  .btn-header { padding-left: 13px; padding-right: 13px; }

  .hero-reference .hero-grid {
    grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  }

  .hero-reference .hero-art {
    width: 64%;
  }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }

  .logo-link img { width: 158px; }

  .hero-reference .hero-grid {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .hero-reference .hero-copy {
    max-width: 620px;
    padding: 70px 0 66px;
  }

  .hero-reference .hero-art {
    display: block;
    width: 75%;
    right: -18%;
    opacity: .78;
    background-position: right center;
  }

  .hero-reference .hero-art::before {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 24%, rgba(255,255,255,.45) 55%, rgba(255,255,255,.05) 100%);
  }

  .capability-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-hero.visual-hero {
    background-position: 72% bottom;
    background-size: auto 100%;
  }

  .page-hero.visual-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,.995) 0%, rgba(255,255,255,.97) 60%, rgba(255,255,255,.86) 100%);
  }
}

@media (max-width: 700px) {
  .header-inner {
    padding-left: 22px;
    padding-right: 18px;
  }

  .logo-link img { width: 148px; }

  .hero-reference .hero-grid {
    min-height: 0;
  }

  .hero-reference .hero-copy {
    max-width: none;
    padding: 46px 0 42px;
  }

  .hero-reference h1 {
    max-width: 8.5em;
    margin-bottom: 24px;
    font-size: clamp(2.4rem, 11.5vw, 3rem);
    line-height: 1.08;
  }

  .hero-reference .lead {
    position: relative;
    z-index: 2;
    max-width: 22em;
    margin-bottom: 28px;
    font-size: .98rem;
    line-height: 1.68;
  }

  .hero-reference .btn-row {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero-reference .btn {
    width: 100%;
    min-height: 46px;
  }

  .hero-reference .hero-art {
    width: 128%;
    right: -71%;
    top: 30px;
    bottom: 0;
    opacity: .54;
    background-size: auto 75%;
    background-position: right center;
  }

  .hero-reference .hero-art::before {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 35%, rgba(255,255,255,.3) 68%, rgba(255,255,255,0) 100%);
  }

  .capability-grid {
    grid-template-columns: 1fr;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .capability-card {
    padding: 31px 10px 30px;
  }

  .capability-card + .capability-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .capability-card p {
    max-width: 25em;
  }

  .page-hero.visual-hero {
    min-height: 0;
    background-position: 78% bottom;
    background-size: auto 80%;
  }

  .page-hero.visual-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.985) 66%, rgba(255,255,255,.91) 100%);
  }
}

@media (max-width: 420px) {
  .logo-link img { width: 142px; }

  .hero-reference h1 {
    font-size: 2.42rem;
  }
}