:root {
  --bg: #f4f7f5;
  --bg-alt: #e8efeb;
  --surface: #ffffff;
  --ink: #15241f;
  --muted: #4a5c55;
  --line: #cfdad4;
  --brand: #1a3c34;
  --accent: #0e7c7b;
  --accent-soft: #d7efed;
  --focus: #0b5f5e;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(21, 36, 31, 0.08);
  --max: 1120px;
  --font: "Sora", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9ece8 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e7f0ea 0%, transparent 50%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--focus);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(244, 247, 245, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand span {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: #134034;
  color: #fff;
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--brand);
}

.btn-secondary:hover {
  background: #c7e6e3;
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-bleed {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  color: #f4fffb;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 24, 0.35) 0%, rgba(10, 28, 24, 0.78) 70%, rgba(10, 28, 24, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 28, 24, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 3.25rem;
  animation: rise 0.7s ease both;
}

.hero-bleed .eyebrow {
  color: #9ef0e8;
}

.hero-bleed .lead {
  color: rgba(244, 255, 251, 0.86);
}

.hero-bleed .btn-secondary {
  background: rgba(244, 255, 251, 0.14);
  color: #f4fffb;
  border: 1px solid rgba(244, 255, 251, 0.28);
}

.hero-bleed .btn-secondary:hover {
  background: rgba(244, 255, 251, 0.22);
  color: #fff;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-grid > div:first-child {
  animation: rise 0.7s ease both;
}

.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #1a3c34 0%, #0e7c7b 100%);
  color: #f3fffb;
  border-radius: 18px;
  padding: 1.5rem;
  min-height: 220px;
  display: grid;
  align-content: space-between;
  box-shadow: var(--shadow);
  animation: rise 0.85s ease 0.1s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.hero-panel p {
  margin: 0.6rem 0 0;
  opacity: 0.9;
}

.section {
  padding: 3.25rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-head h2,
.page-hero h2,
.content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head p,
.muted {
  color: var(--muted);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.visual-card picture,
.visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.visual-card-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.visual-card-body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.visual-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.topics-compact {
  grid-template-columns: repeat(2, 1fr);
}

.topic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.topic h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.topic p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-list {
  display: grid;
  gap: 0.75rem;
}

.news-item {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.news-item:hover,
.news-item[aria-expanded="true"] {
  border-color: var(--accent);
  background: #f8fcfb;
}

.news-item .meta {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.news-item .title {
  font-weight: 600;
}

.news-item .extra {
  display: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.news-item[aria-expanded="true"] .extra {
  display: block;
}

.accordion {
  display: grid;
  gap: 0.65rem;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 1rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
}

.accordion-trigger::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
}

.accordion-item.open .accordion-trigger::after {
  content: "–";
}

.accordion-panel {
  display: none;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.accordion-item.open .accordion-panel {
  display: block;
}

.contact-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-block,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.info-block h3,
.contact-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.info-block p,
.contact-card p,
.contact-card li {
  margin: 0.25rem 0;
  color: var(--muted);
}

.contact-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 3rem;
}

.content h2 {
  margin: 1.75rem 0 0.75rem;
}

.content h2:first-child,
.content .page-figure + h2 {
  margin-top: 0;
}

.page-figure {
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content p,
.content li {
  color: var(--muted);
}

.content ul {
  padding-left: 1.2rem;
}

.form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.jobs {
  display: grid;
  gap: 0.75rem;
}

.job {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.1rem;
}

.job summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.job summary::-webkit-details-marker {
  display: none;
}

.job summary::after {
  content: "Rozwiń";
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.job[open] summary::after {
  content: "Zwiń";
}

.job-body {
  margin-top: 0.85rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #edf3f0;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 24, 0.55);
}

.modal-dialog {
  position: relative;
  width: min(100%, 480px);
  background: var(--surface);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.modal-dialog h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: var(--bg-alt);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 720px;
  margin-inline: auto;
  background: var(--brand);
  color: #f4fffb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: none;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.cookie-bar.show {
  display: flex;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-bar a {
  color: #9ef0e8;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 0.65rem 1rem;
}

.success {
  display: none;
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 600;
}

.success.show {
  display: block;
}

@media (max-width: 1000px) {
  .topics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .visual-grid,
  .topics-compact,
  .contact-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #f7faf8;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .hero-actions,
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .topics {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero-bleed {
    min-height: 78vh;
  }

  .hero-content {
    padding: 4.5rem 0 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .hero-grid > div:first-child,
  .hero-panel,
  .hero-content { animation: none; }
}
