/* PROFESSIONAL THEME */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@700;800&display=swap');

:root {
  /* Kolory */
  --bg-body: #ffffff;
  --bg-surface: #f4f6fa;
  --text-main: #111322;
  --text-muted: #5d6480;
  --accent: #0039c1;
  --accent-hover: #0029a0;
  --border-radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --font-header: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Global resets */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; }
body   {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}
img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }

/* Typography */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-header); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

/* Layout helpers */
.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background .2s;
}
.btn:hover { background: var(--accent-hover); }

/* 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: 16px 0;
}
.logo { font-family: var(--font-header); font-weight: 800; font-size: 1.5rem; color: var(--accent); }

/* Desktop nav */
.main-nav ul {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.main-nav a:hover { color: var(--accent); }

/* Mobile menu (checkbox hack) */
#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: .2s;
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    transform: translateY(-120%);
    transition: transform .3s;
    padding: 24px;
    box-shadow: var(--shadow);
  }
  .main-nav ul { flex-direction: column; gap: 16px; }
  #menu-toggle:checked ~ .main-nav { transform: translateY(0); }
  #menu-toggle:checked ~ .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  #menu-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  #menu-toggle:checked ~ .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

/* Hero ribbon search */
.hero-ribbon {
  background: var(--accent);
  color: #fff;
  padding: 48px 0;
}
.hero-ribbon h1 { margin-bottom: 12px; }
.search-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}
.search-bar .btn { background: #fff; color: var(--accent); }
.search-bar .btn:hover { background: #eef1f9; }

/* Job cards grid */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 40px;
}
.job-card {
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-card h3 { font-size: 1.125rem; }
.job-card .meta {
  font-size: .875rem;
  color: var(--text-muted);
}
.job-card .btn { align-self: start; margin-top: auto; }

@media (max-width: 992px) {
  .offers-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .offers-grid { grid-template-columns: 1fr; }
}

/* Advice timeline cards */
.advice-timeline {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.advice-card {
  flex: 0 0 280px;
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.advice-card h4 { margin-bottom: 8px; }

/* Partners grid */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.partner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--text-muted);
  transition: color .2s, box-shadow .2s;
}
.partner-link:hover { color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.08); }

@media (max-width: 992px) {
  .partners-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .partners-grid { grid-template-columns: 1fr; }
}

/* Show-more partners (checkbox 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; }
.show-more-container {
  text-align: center;
  margin-top: 24px;
}
.show-more-label {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
}

/* Accordion FAQ */
details {
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
}
details[open] summary::after { content: "−"; }
details p {
  margin-top: 12px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--text-main);
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.footer-section h5 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer-section a {
  color: #adb5bd;
  font-size: .875rem;
  transition: color .2s;
}
.footer-section a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: .875rem;
  color: #adb5bd;
}