:root {
  --navy: #0b1f4d;
  --navy-2: #0f3478;
  --blue: #1167d8;
  --blue-soft: #e9f2ff;
  --orange: #f08a24;
  --orange-soft: #fff3e7;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #10213f;
  --muted: #5d6b82;
  --line: #dce5f1;
  --shadow: 0 22px 60px rgba(11, 31, 77, 0.12);
  --shadow-hover: 0 30px 80px rgba(11, 31, 77, 0.18);
  --radius: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(17, 103, 216, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(240, 138, 36, 0.13), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid rgba(240, 138, 36, 0.42);
  outline-offset: 5px;
  border-radius: 14px;
}

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

h1,
h2 {
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  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-width), 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 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  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);
}

.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,
.header-nav a.active,
.mobile-nav a.active {
  color: var(--blue);
  background: rgba(17, 103, 216, 0.09);
}

.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(--blue-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: #003399;
}

.hero {
  padding: clamp(3rem, 6vw, 5.2rem) 0 1.7rem;
}

.hero-inner {
  max-width: 930px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 1.15rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(240, 138, 36, 0.28);
  border-radius: 999px;
  color: #9a4d05;
  background: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 920px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  font-weight: 800;
}

.hero-lead {
  max-width: 830px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hub-section {
  padding: 1.7rem 0 clamp(5rem, 8vw, 7rem);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.hub-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 241, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.hub-card::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0.85;
}

.hub-card:hover {
  transform: translateY(-7px);
  border-color: rgba(17, 103, 216, 0.3);
  box-shadow: var(--shadow-hover);
}

.hub-media-link {
  display: block;
  overflow: hidden;
  background: var(--blue-soft);
  text-decoration: none;
}

.hub-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition: transform 260ms ease;
}

.hub-card:hover .hub-image {
  transform: scale(1.035);
}

.contact-section {
  padding: 1.7rem 0 clamp(5rem, 8vw, 7rem);
}

.news-section {
  padding: 1.7rem 0 clamp(5rem, 8vw, 7rem);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.25rem, 2.4vw, 2rem);
  align-items: stretch;
}

.news-status-card,
.social-card {
  border: 1px solid rgba(220, 229, 241, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.news-status-card {
  padding: clamp(1.45rem, 3vw, 2.2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(233, 242, 255, 0.96) 100%);
}

.news-status-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(240, 138, 36, 0.28);
  border-radius: 999px;
  color: #9a4d05;
  background: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-status-card h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.news-status-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.social-grid {
  display: grid;
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 132px;
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  color: inherit;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 103, 216, 0.28);
  box-shadow: var(--shadow-hover);
}

.social-mark {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0;
}

.social-card strong,
.social-card small {
  display: block;
}

.social-card strong {
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.social-card small {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.contact-card {
  border: 1px solid rgba(220, 229, 241, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.contact-card.primary {
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
}

.contact-wide {
  grid-column: span 2;
}

.contact-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
  font-size: 1.25rem;
  font-weight: 800;
}

.contact-label {
  margin-bottom: 0.45rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.contact-card p {
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.contact-links a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
}

.hub-content {
  min-height: 310px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hub-eyebrow {
  margin-bottom: 0.75rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-content h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
}

.hub-content p:not(.hub-eyebrow) {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  margin-top: auto;
  padding: 0.76rem 1.1rem;
  border: 1px solid rgba(17, 103, 216, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
  box-shadow: 0 12px 28px rgba(17, 103, 216, 0.22);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(17, 103, 216, 0.3);
}

.button span {
  color: #ffd8aa;
  font-size: 1.05rem;
}

.site-footer {
  padding: 2.8rem 0;
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy);
}

.footer-inner {
  display: grid;
  gap: 1.35rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logos > img,
.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: #ffffff;
}

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

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

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

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

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

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

.site-footer p {
  max-width: 920px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .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 > img,
  .footer-logos > a {
    min-height: 64px;
    padding: 0.5rem 0.62rem;
  }

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

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

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

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

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

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

  .hero {
    padding-top: 3.3rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .contact-wide {
    grid-column: auto;
  }

  .hub-content {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .header-inner {
    width: min(var(--max-width), 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;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.15rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hub-content {
    padding: 1.15rem;
  }

  .social-card {
    align-items: flex-start;
    min-height: auto;
  }

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

  .footer-logos > img,
  .footer-logos > a {
    min-height: 56px;
    padding: 0.35rem;
    border-radius: 10px;
  }

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

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

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

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

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

  .footer-logos .wroclaw-logo {
    max-width: 68px;
    max-height: 38px;
  }

  .site-footer p {
    text-align: center;
  }
}
