/* PROFESSIONAL THEME */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Kolory */
  --bg-body: #0d1117;
  --bg-surface: #161b22;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;

  /* Typografia */
  --font-header: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* UI */
  --radius: 10px;
  --shadow: 0 4px 12px rgba(0,0,0,.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.site-header {
  background: var(--bg-surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  color: var(--accent);
  text-decoration: none;
}

/* Nawigacja desktop */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent-hover);
}

/* Hamburger (mobile) */
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: background .2s;
}

/* Mobile menu logic (no-js) */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  #menu-toggle:checked ~ .main-nav {
    max-height: 400px;
  }
}

/* Główna zawartość */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-header);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.375vw, 1.375rem);
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

/* Przyciski */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background .2s, box-shadow .2s;
}

.btn:hover,
.btn:focus {
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

/* Karty ofert */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.job-card {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.job-card h3 {
  color: var(--accent);
}

.job-card .meta {
  font-size: .875rem;
  color: var(--text-muted);
}

/* Partnerzy */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.partner-link {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.partner-link:hover,
.partner-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

/* Ukrywanie / pokazywanie partnerów (no-js) */
.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;
}

/* Akordeon FAQ */
details {
  background: var(--bg-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

details[open] summary {
  margin-bottom: .75rem;
}

details p {
  color: var(--text-muted);
}

/* Stopka */
.site-footer {
  background: var(--bg-surface);
  margin-top: 3rem;
  padding: 2rem 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-family: var(--font-header);
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: .5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--accent-hover);
}

/* Responsywność */
@media (max-width: 768px) {
  .offers-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }
}