/* PROFESSIONAL THEME */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  /* Kolory */
  --bg-body: #f5f7fa;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent: #1e3a8a;
  --accent-hover: #ffcd00;
  --border-light: #e2e8f0;

  /* Czcionki */
  --font-header: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & radius */
  --radius: 6px;
  --shadow: 0 2px 6px rgba(15,23,42,.08);

  /* Responsywna typografia */
  --step-0: clamp(1rem, .95rem + .25vw, 1.125rem);   /* 16-18px */
  --step-1: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);  /* 20-24px */
  --step-2: clamp(1.5rem, 1.35rem + .75vw, 1.875rem);/* 24-30px */
  --step-3: clamp(2rem, 1.8rem + 1vw, 2.5rem);       /* 32-40px */
  --step-4: clamp(2.5rem, 2.2rem + 1.5vw, 3.125rem); /* 40-50px */
}

/* GLOBAL */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  margin: 0 0 .5em;
  color: var(--accent);
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* LAYOUT */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
  padding-block: 2rem;
}

/* HEADER */
.site-header {
  background: var(--bg-surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--accent);
}

/* NAV – desktop */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: .2s;
}
.main-nav a:hover { border-color: var(--accent-hover); }

/* NAV – mobile (checkbox hack) */
#menu-toggle { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: .3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    transition: transform .3s ease;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 1.5rem 5%;
  }
  #menu-toggle:checked ~ .main-nav { transform: translateY(0); }
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  transition: background .2s;
}
.btn:hover { background: var(--accent-hover); color: var(--text-main); }

/* GRIDS */
.offers-grid,
.partners-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .offers-grid,
  .partners-grid { grid-template-columns: 1fr; }
}

/* CARDS */
.job-card,
.partner-link {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.job-card:hover,
.partner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,23,42,.1);
}

.job-card h3 { margin-top: 0; }

/* PARTNERS – show-more hack */
.partners-wrapper .partners-hidden { display: none; }
.partners-wrapper .show-more-checkbox:checked ~ .partners-hidden { display: grid; }
.partners-wrapper .show-more-checkbox:checked ~ .show-more-container { display: none; }

/* ACCORDION (FAQ) */
details {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
summary {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  transition: .2s;
}
details[open] summary::after { content: "–"; }

/* FOOTER */
.site-footer {
  background: var(--accent);
  color: #fff;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-size: var(--step-1);
  margin-bottom: .75rem;
  color: var(--accent-hover);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-section a { color: #cbd5e1; }
.footer-section a:hover { color: var(--accent-hover); }

/* SUBTLE BACKGROUND PATTERN */
.section-pattern {
  background-image: repeating-linear-gradient(45deg, var(--border-light) 0 1px, transparent 1px 24px);
  background-size: 34px 34px;
}

/* UTILS */
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }