:root {
  --max-w: 1180px;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f4f8;
  --line: #dce4ee;
  --ink: #132238;
  --muted: #5b6878;
  --eu-blue: #003399;
  --eu-yellow: #ffcc00;
  --radius: 18px;
  --shadow-card: 0 12px 32px rgba(13, 27, 62, 0.08);
  --shadow-hover: 0 18px 44px rgba(13, 27, 62, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--max-w), calc(100% - 32px));
  min-height: 92px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0.85rem 0 0.7rem;
}

.logo-strip,
.footer-logos {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-strip {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.logo-strip img {
  display: block;
  max-width: 148px;
  max-height: 54px;
  object-fit: contain;
}

#eu-logo-header {
  max-width: 190px;
}

.logo-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.back-bar,
.footer-download {
  display: none !important;
}

.header-nav {
  order: 3;
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  padding-top: 0.1rem;
}

.header-nav a,
.mobile-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
}

.header-nav a:hover,
.mobile-nav a:hover,
.header-nav a:focus-visible,
.mobile-nav a:focus-visible {
  color: var(--eu-blue);
  background: rgba(0, 51, 153, 0.08);
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav.open {
  display: flex;
}

.lang-switch {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  background: var(--eu-blue);
}

.hero-tag,
.section-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  color: var(--eu-blue);
  background: rgba(0, 51, 153, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-highlight {
  margin-top: 1.25rem;
}

.about-highlight a {
  display: inline-flex;
  align-items: center;
  color: var(--eu-blue);
  background: rgba(0, 51, 153, 0.08);
  border: 1px solid rgba(0, 51, 153, 0.14);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.about-highlight a:hover {
  background: rgba(0, 51, 153, 0.13);
}

.site-footer {
  padding: 3rem 0 1.25rem;
  color: #dfe7f2;
  background: #0d1b3e;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.footer-logos > a {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.62rem 0.78rem;
  border-radius: 12px;
  background: #fff;
}

.footer-logos > a:nth-child(1) {
  width: 96px;
}

.footer-logos > a:nth-child(2) {
  width: 188px;
}

.footer-logos > a:nth-child(3) {
  width: 286px;
}

.footer-logos > a:nth-child(4) {
  width: 134px;
}

.footer-logos img {
  width: auto;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.footer-logos a:first-child img {
  max-width: 64px;
}

.footer-logos a:nth-child(2) img {
  max-width: 164px;
}

.footer-logos .wroclaw-logo {
  max-width: 116px;
  max-height: 52px;
}

.footer-funded {
  max-width: 920px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding: 0.75rem 0;
    align-items: center;
    gap: 0.75rem;
  }

  .logo-strip {
    order: 1;
    flex: 1 0 100%;
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .logo-strip img {
    max-width: 92px;
    max-height: 40px;
  }

  #eu-logo-header {
    max-width: 130px;
  }

  .logo-divider {
    height: 28px;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
  }

  .hamburger {
    order: 2;
    display: inline-flex;
  }

  .header-nav {
    display: none;
  }

  .footer-logos {
    gap: 0.55rem;
  }

  .footer-logos > a {
    min-height: 64px;
    padding: 0.5rem 0.62rem;
  }

  .footer-logos > a:nth-child(1) {
    width: 78px;
  }

  .footer-logos > a:nth-child(2) {
    width: 146px;
  }

  .footer-logos > a:nth-child(3) {
    width: 224px;
  }

  .footer-logos > a:nth-child(4) {
    width: 100px;
  }

  .footer-logos img {
    max-height: 48px;
  }

  .footer-logos a:first-child img {
    max-width: 50px;
  }

  .footer-logos a:nth-child(2) img {
    max-width: 126px;
  }

  .footer-logos .wroclaw-logo {
    max-width: 86px;
    max-height: 42px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: min(var(--max-w), calc(100% - 20px));
  }

  .logo-strip {
    gap: 0.35rem;
  }

  .logo-strip img {
    max-width: 76px;
    max-height: 34px;
  }

  #eu-logo-header {
    max-width: 118px;
  }

  .lang-btn {
    padding: 0.36rem 0.56rem;
  }

  .footer-logos {
    gap: 0.25rem;
    justify-content: center;
  }

  .footer-logos > a {
    min-height: 54px;
    padding: 0.32rem;
    border-radius: 10px;
  }

  .footer-logos > a:nth-child(1) {
    width: 44px;
  }

  .footer-logos > a:nth-child(2) {
    width: 74px;
  }

  .footer-logos > a:nth-child(3) {
    width: 106px;
  }

  .footer-logos > a:nth-child(4) {
    width: 64px;
  }

  .footer-logos img {
    max-height: 43px;
  }

  .footer-logos a:first-child img {
    max-width: 36px;
  }

  .footer-logos a:nth-child(2) img {
    max-width: 66px;
  }

  .footer-logos .wroclaw-logo {
    max-width: 58px;
    max-height: 36px;
  }

  .footer-funded {
    text-align: center;
  }

  .site-footer {
    padding-top: 2.4rem;
  }
}
