/* ═══════════════════════════════════════════════════════
   GLOBAL.CSS — Medycyna Pracy Wrocław
   Cały design system jako statyczny plik CSS —
   brak Astro scoping, działa na WSZYSTKICH stronach
═══════════════════════════════════════════════════════ */

/* ── Zmienne ── */
:root {
  --navy:        #0A1628;
  --navy-mid:    #152340;
  --teal:        #0D9488;
  --teal-dark:   #0A7A6F;
  --teal-light:  #E6FAF8;
  --bg:          #F0F4F8;
  --surface:     #FFFFFF;
  --text:        #0A1628;
  --muted:       #546E8A;
  --border:      #DDE5EF;
  --border-dark: #B8C8D8;
  --font-head:   'Outfit', 'DM Sans', sans-serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --hdr-h:       68px;
  --max-w:       1180px;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 4px rgba(10,22,40,.07);
  --shadow:      0 4px 16px rgba(10,22,40,.1);
  --shadow-lg:   0 8px 32px rgba(10,22,40,.14);
  /* Compat — stare zmienne CSS */
  --green:       #0D9488;
  --blue:        #0D9488;
  --gray-50:     #F0F4F8;
  --gray-100:    #DDE5EF;
  --gray-200:    #C8D6E2;
  --gray-400:    #8EA8BC;
  --gray-500:    #546E8A;
  --gray-600:    #546E8A;
  --gray-700:    #3D5266;
  --gray-800:    #152340;
  --gray-900:    #0A1628;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
main { padding-top: var(--hdr-h); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--surface); }
.section--navy { background: var(--navy); }
.section--teal-light { background: var(--teal-light); }

/* ── Typografia ── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

/* ── Przyciski ── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.5rem; font-family: var(--font-head); font-size: .875rem; font-weight: 600; border-radius: var(--radius); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .18s, color .18s, box-shadow .18s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 2px 8px rgba(13,148,136,.25); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal-light); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-mid); }
.btn--sm { padding: .45rem .9rem; font-size: .8rem; }
.btn--lg { padding: .9rem 2rem; font-size: 1rem; }
.btn--outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Labels ── */
.label { display: inline-block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); background: var(--teal-light); padding: .25rem .75rem; border-radius: 999px; margin-bottom: .85rem; }
.label--white { color: rgba(255,255,255,.9); background: rgba(255,255,255,.12); }

/* ── Section header ── */
.sec-hd { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.sec-hd h2 { margin-bottom: .6rem; }
.sec-hd p { color: var(--muted); font-size: 1rem; }

/* ── Karty ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--teal); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; background: var(--teal-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; flex-shrink: 0; }
.card-icon svg { color: var(--teal); width: 22px; height: 22px; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; color: var(--navy); }
.card p { font-size: .875rem; color: var(--muted); line-height: 1.65; }
.card-link { font-size: .8rem; font-weight: 600; color: var(--teal); text-decoration: none; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .78rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--border-dark); font-size: .65rem; }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq-q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--navy); gap: 1rem; transition: background .15s; }
.faq-q:hover { background: var(--bg); }
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { flex-shrink: 0; color: var(--teal); transition: transform .2s; }
details[open] .faq-icon { transform: rotate(180deg); }
.faq-a { padding: .1rem 1.25rem 1.1rem; font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ── Formularze ── */
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field label { font-size: .8rem; font-weight: 600; color: var(--navy); font-family: var(--font-head); }
.form-field input:not([type="checkbox"]), .form-field textarea, .form-field select { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: .9rem; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
.form-field .inp-err { border-color: #DC2626; }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-rodo { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.form-rodo input[type="checkbox"] { margin-top: .15rem; accent-color: var(--teal); flex-shrink: 0; }
.form-rodo span { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.form-rodo a { color: var(--teal); }
.field-err { font-size: .75rem; color: #DC2626; min-height: 1rem; }
.req { color: var(--teal); }

/* ── Prose ── */
.prose h2 { margin-top: 2.25rem; margin-bottom: .75rem; font-size: 1.4rem; color: var(--navy); }
.prose h3 { margin-top: 1.75rem; margin-bottom: .5rem; font-size: 1.1rem; }
.prose p { margin-bottom: 1rem; color: var(--muted); font-size: .96rem; line-height: 1.75; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.prose li { font-size: .93rem; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.prose .info-box { background: var(--teal-light); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin-block: 1.5rem; }
.prose .info-box p { color: var(--navy); margin: 0; }

/* ── COMPAT: stare klasy z projektu Łódź ── */
.badge { display: inline-block; font-family: var(--font-head); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .22rem .7rem; border-radius: 999px; margin-bottom: .6rem; }
.badge--navy, .badge--teal-light { background: var(--teal-light); color: var(--teal); }
.badge--teal { background: var(--teal); color: #fff; }
.badge--white { background: rgba(255,255,255,.15); color: #fff; }
.divider { width: 48px; height: 3px; background: var(--teal); border-radius: 2px; margin-block: 1rem; }
.section-title { margin-bottom: 2rem; }
.section-title h2 { margin-top: .5rem; color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.icon-circle { width: 44px !important; height: 44px !important; min-width: 44px !important; background: var(--teal-light); border-radius: var(--radius); display: flex !important; align-items: center !important; justify-content: center !important; margin-bottom: .85rem; flex-shrink: 0; overflow: hidden; }
.icon-circle svg, .icon-circle img { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; min-width: unset !important; color: var(--teal); stroke: var(--teal); }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.checklist li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.checklist li::before { content: ''; display: block; flex-shrink: 0; width: 18px; height: 18px; margin-top: .05rem; background-color: var(--teal); border-radius: 50%; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); mask-size: 70%; -webkit-mask-size: 70%; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-position: center; -webkit-mask-position: center; }
.warning-box { background: #FFF8E8 !important; border: 1px solid #F59E0B !important; }
.warning-box h3 { color: #B45309; }
.highlight-box { background: var(--teal-light); border: 1px solid rgba(13,148,136,.25); border-radius: var(--radius-lg); padding: 1.5rem; }
.freq-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: .75rem; }
.freq-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: .45rem .25rem; border-bottom: 2px solid var(--border); font-family: var(--font-head); }
.freq-table td { padding: .55rem .25rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.freq-table td:last-child { text-align: right; white-space: nowrap; }
.freq-table tr:last-child td { border-bottom: none; }
.table-note { font-size: .78rem; color: var(--muted); margin-top: .6rem; }
.table-note a { color: var(--teal); font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 1.25rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { width: 32px; height: 32px; background: var(--teal); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.step-body h4 { font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.step-body p { font-size: .87rem; color: var(--muted); }

/* ── Hide ── */
.hide-mobile { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── ServicePage layout ── */
.pg-hero { background: var(--navy); padding-block: clamp(3rem, 6vw, 5rem); }
.pg-h1 { font-family: var(--font-head); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; color: #fff; margin-block: .5rem 1rem; }
.pg-intro { font-size: 1rem; color: rgba(255,255,255,.65); max-width: 640px; line-height: 1.7; margin-bottom: 1.75rem; }
.pg-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3.5rem; padding-block: 3rem; align-items: start; }
.pg-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--hdr-h) + 1.5rem); }
.sdb-cta { background: var(--navy); border-radius: var(--radius-lg); padding: 1.5rem; }
.sdb-cta h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.sdb-cta p { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.55; margin-bottom: 1.1rem; }
.sdb-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.sdb-box h3 { font-family: var(--font-head); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .75rem; }
.sdb-box ul { list-style: none; display: flex; flex-direction: column; }
.sdb-box a { display: block; padding: .45rem 0; font-size: .85rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); transition: color .15s; }
.sdb-box a:last-child { border-bottom: none; }
.sdb-box a:hover { color: var(--teal); }
.pg-cta-bar { background: var(--teal); padding-block: 2.5rem; }
.pg-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.pg-cta-inner p { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: #fff; margin: 0; }
.pg-cta-inner .btn--primary { background: #fff; color: var(--teal); }
.pg-cta-inner .btn--primary:hover { background: rgba(255,255,255,.9); }

/* ── Responsywność ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .pg-layout { grid-template-columns: 1fr; }
  .pg-sidebar { position: static; }
  .pg-cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --hdr-h: 60px; }
  .hide-mobile { display: none !important; }
}

/* ═══════════════════════════════════════════════════
   DARK SECTION — tekst biały na granatowym tle
   !important potrzebne bo Astro scoped CSS ma wyższy specificity
═══════════════════════════════════════════════════ */
.section--navy { color: rgba(255,255,255,.75); }

/* !important — override Astro scoped styles z podstron */
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #fff !important; }
.section--navy p   { color: rgba(255,255,255,.65) !important; }

.section--navy .label {
  background: rgba(13,148,136,.25) !important;
  color: #5EEAD4 !important;
}
.section--navy .divider { background: var(--teal) !important; }
.section--navy .section-title h2 { color: #fff !important; }
.section--navy .section-title p  { color: rgba(255,255,255,.65) !important; }

/* Karty w dark section — ciemny wariant */
.section--navy .card {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
}
.section--navy .card:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(13,148,136,.6) !important;
}
.section--navy .card h3 { color: #fff !important; }
.section--navy .card p  { color: rgba(255,255,255,.6) !important; }
.section--navy .card-icon { background: rgba(13,148,136,.2) !important; }
.section--navy .card-icon svg { color: var(--teal) !important; }

/* BREAKOUT — section--navy w article column zajmuje całą szerokość layoutu
   Rozciągamy sekcję o szerokość sidebar (280px) + gap (3.5rem) */
.prose > section.section--navy,
.prose > .section.section--navy {
  width: calc(100% + 280px + 3.5rem);
  margin-right: calc(-280px - 3.5rem);
  border-radius: 12px;
}
@media (max-width: 900px) {
  .prose > section.section--navy,
  .prose > .section.section--navy {
    width: 100%;
    margin-right: 0;
    border-radius: 8px;
  }
}

/* Badge warianty w dark section */
.section--navy .badge--green,
.section--navy .badge--blue,
.section--navy .badge--teal { background: rgba(13,148,136,.2); color: #5EEAD4; }
.section--navy .badge--white { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }

/* section-title h2 w dark */
.section--navy .section-title h2 { color: #fff; }
.section--navy .section-title p { color: rgba(255,255,255,.65); }

/* Alink w dark section */
.section--navy a:not(.btn) { color: var(--teal); }

