/* ==========================================================================
   Master Consulting — arkusz stylów
   Kolory i typografia wg dokumentacji wdrożeniowej.
   Kolor etykiet/linków podniesiony z #c2560d do #9a430a (kontrast WCAG AA).
   ========================================================================== */

/* --- Czcionki hostowane lokalnie (RODO: brak zapytań do Google) ---------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibmplexsans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibmplexsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Zmienne ------------------------------------------------------------ */
:root {
  --navy: #14202e;
  --bg: #f5f3ee;
  --sand: #eae7df;
  --card: #fffdf9;
  --line: #dcd8cf;
  --accent: #e0791f;
  --accent-dark: #9a430a;
  --accent-darker: #7d3608;
  --muted: #3d4855;
  --muted-2: #5b6b7c;
  --on-dark: #c9cfd6;

  --font-head: 'Sora', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;

  --gutter: clamp(20px, 7vw, 120px);
  --sec-y: clamp(56px, 8vw, 104px);
  --radius: 14px;
  --radius-lg: 20px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-darker); }

/* Widoczny focus klawiatury (dostępność) */
:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Pominięcie nawigacji */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; color: var(--bg); }

/* --- Układ -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
main > .section:first-child { padding-top: calc(var(--sec-y) / 2); }
.section--tight { padding-top: 0; }
.section--flush { padding-bottom: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
section.section[id]:not(.section--tight) { scroll-margin-top: calc(var(--header-h) - var(--sec-y) + 24px); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 24px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.measure { max-width: 60ch; }

/* --- Typografia --------------------------------------------------------- */
.eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.h1, .h2, .h3, .h4 { font-family: var(--font-head); font-weight: 600; }

.h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.12; }
.h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; }
.h3 { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.25; }
.h4 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; }

.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.lead--strong { color: var(--navy); font-weight: 500; }
.body-lg { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); }
.small { font-size: 15px; color: var(--muted); }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted-2); }

.accent { color: var(--accent); }
.on-navy .accent { color: var(--accent); }

/* --- Przyciski ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--navy); }
.btn--primary:hover { background: #c96a16; color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--bg); }
.btn--dark:hover { background: #0c1621; color: var(--bg); }
.btn--ghost { border-color: var(--navy); color: var(--navy); font-weight: 500; }
.btn--ghost:hover { background: var(--navy); color: var(--bg); }
.btn--sm { min-height: 46px; padding: 8px 22px; font-size: 16px; }
.btn--block { width: 100%; }

/* --- Nagłówek / nawigacja ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__mark {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 8px;
  background: var(--navy);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.brand__name { display: flex; flex-direction: column; gap: 2px; }
.brand__name b { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.brand__name span { font-size: 13px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 36px); }
.nav a { text-decoration: none; font-size: 16px; }
.nav a:not(.btn) { color: var(--navy); }
.nav a:not(.btn):hover { color: var(--accent-dark); text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars i { display: block; width: 18px; height: 2px; background: currentColor; }

/* --- Hero --------------------------------------------------------------- */
.hero { display: flex; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 26px; max-width: 760px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }

.hero__card {
  width: 400px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
}
.hero__card img { width: 100%; height: 400px; object-fit: cover; object-position: 50% 12%; }
.hero__card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.hero__card-body p:first-child { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--bg); }
.hero__card-body .role { font-size: 15px; color: var(--on-dark); }

.phone-link {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.phone-link:hover { color: var(--accent); text-decoration: underline; }
.phone-link--lg { font-size: clamp(24px, 3vw, 30px); }

/* --- Pasek zaufania ----------------------------------------------------- */
.trust {
  padding: 32px 40px;
  background: var(--sand);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
}
.trust div { display: flex; flex-direction: column; gap: 6px; }
.trust b { font-family: var(--font-head); font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; }
.trust span { font-size: 15px; color: var(--muted); }

/* --- Kafle -------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card--plain { border-color: transparent; }
.card--dark { background: var(--navy); border-color: var(--navy); color: var(--bg); }
.card--dark .h3, .card--dark .h4, .card--dark p:not(.card__desc) { color: var(--bg); }
.card--dark .card__desc { color: var(--on-dark); }
.card__title { font-family: var(--font-head); font-size: clamp(20px, 2vw, 22px); line-height: 1.3; font-weight: 600; }
.card__desc { font-size: 17px; line-height: 1.55; color: var(--muted); }
.card__num { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--accent); }

.panel {
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 72px);
  background: var(--sand);
  border-radius: var(--radius-lg);
}
.panel--navy { background: var(--navy); color: var(--bg); }
.panel--card { background: var(--card); border: 1px solid var(--line); }

.tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.pill { padding: 10px 16px; border-radius: 999px; background: var(--navy); color: var(--bg); font-size: 15px; font-weight: 500; }
.pill--light { background: var(--sand); color: var(--navy); font-weight: 400; }

/* --- Kroki -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step__num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--bg);
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.step:first-child .step__num { background: var(--accent); color: var(--navy); }
.step__title { font-family: var(--font-head); font-size: 21px; font-weight: 600; }

/* --- Dwie kolumny z obrazem --------------------------------------------- */
.split { display: flex; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__media { width: clamp(280px, 32vw, 460px); flex: 0 0 auto; }
.split__media img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); object-fit: cover; object-position: 50% 15%; }
.split__text { display: flex; flex-direction: column; gap: 22px; }
.split__text--lead { flex: 1 1 520px; justify-content: center; gap: 26px; max-width: 720px; }

/* --- Regiony ------------------------------------------------------------ */
.regions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.region {
  background: var(--sand);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.region--primary { background: var(--navy); color: var(--bg); }
.region b { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.region span { font-size: 16px; color: var(--muted); }
.region--primary span { color: var(--on-dark); }

/* --- Lista danych / kwalifikacji ---------------------------------------- */
.datalist { display: flex; flex-direction: column; }
.datalist > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.datalist dt, .datalist .label { font-size: 15px; font-weight: 600; color: var(--muted-2); }
.datalist dd, .datalist .value { margin: 0; font-size: 19px; line-height: 1.5; }
.datalist a { color: var(--navy); text-decoration: none; }
.datalist a:hover { color: var(--accent-dark); text-decoration: underline; }

.creds { display: flex; flex-direction: column; font-size: 18px; line-height: 1.4; }
.creds li { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.creds li:first-child { font-weight: 600; }
.creds li:last-child { border-bottom: 0; }

/* --- Formularz ---------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.field__label { display: block; }
.field input, .field textarea {
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #6b7683;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
}
.field input { height: 48px; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--accent-dark); outline-offset: 1px; border-color: var(--navy); }
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--muted); }
.field--check input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.req { color: var(--accent-dark); }

/* pole-pułapka na boty — ukryte przed ludźmi i czytnikami ekranu */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Kontakt ------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.contact__box {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 12px;
  padding: 32px;
  background: var(--navy);
  border-radius: 16px;
}
.contact__box a:not(.phone-link) { font-size: clamp(16px, 4.4vw, 20px); color: var(--bg); overflow-wrap: anywhere; }
.contact__box p { font-size: 17px; color: var(--on-dark); }

/* --- Stopka ------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--sand);
  border-top: 1px solid var(--line);
}
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer p:first-child { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.site-footer nav a { color: var(--navy); font-size: 15px; }
.site-footer nav a:hover { color: var(--accent-dark); }
.site-footer .fine { margin-top: 24px; }

/* --- Strony tekstowe (polityki) ----------------------------------------- */
.prose { max-width: 75ch; display: flex; flex-direction: column; gap: 20px; }
.prose h2 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 30px); line-height: 1.25; font-weight: 600; margin-top: 20px; }
.prose h3 { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-top: 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.65; color: var(--muted); }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { color: var(--navy); }

.backlink { font-size: 16px; font-weight: 600; text-decoration: none; }
.backlink:hover { text-decoration: underline; }

/* --- Cytat -------------------------------------------------------------- */
.quote {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.3;
  font-weight: 600;
  color: var(--bg);
  max-width: 980px;
}

/* --- Zamknięcie / CTA --------------------------------------------------- */
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: clamp(24px, 5vw, 72px); flex-wrap: wrap; }
.cta-row p { font-family: var(--font-head); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; font-weight: 600; max-width: 820px; }

/* ==========================================================================
   Responsywność
   ========================================================================== */

@media (max-width: 1100px) {
  .grid--4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__card { width: 340px; }
  .hero__card img { height: 340px; }
}

@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* W kolumnie flex-basis sterowałby wysokością, nie szerokością — zerujemy go,
     żeby pod obrazem i tekstem nie powstawała pusta przestrzeń. */
  .hero { flex-direction: column; align-items: stretch; }
  .hero__text, .split__text--lead { flex: 0 0 auto; max-width: none; }
  .hero__card { width: 100%; max-width: 460px; }
  .hero__card img { height: clamp(300px, 55vw, 400px); }
  .split { flex-direction: column; align-items: stretch; }
  .split--reverse { flex-direction: column-reverse; }
  .split__media { width: 100%; max-width: 460px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  /* Przycisk menu pokazujemy tylko, gdy JavaScript jest dostępny.
     Bez JS nawigacja zostaje rozwinięta w kolumnie i jest w pełni używalna. */
  .js .nav-toggle { display: inline-flex; }

  .site-header__inner { flex-wrap: wrap; }
  .nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 16px;
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; }

  .brand__name span { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: minmax(0, 1fr); }
  .trust { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .hero__actions .btn { width: 100%; }
  .cta-row .btn { width: 100%; }
  .site-footer__inner { flex-direction: column; }
  .contact__box { padding: 24px; }
}

/* --- Druk --------------------------------------------------------------- */
@media print {
  .site-header, .nav-toggle, .skip-link, .hero__actions, .form { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 11px; }
}

