/* Ścieżka Spokoju – arkusz strony.
   Kolory i odstępy są w :root – zmiana tu zmienia cały serwis. */

@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/fonts/CrimsonPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/fonts/CrimsonPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/fonts/CrimsonPro-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/fonts/CrimsonPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --tint: #eef3ef;
  --text: #2d3a33;
  --muted: #5f6b64;
  --accent: #4f7463;
  --accent-hover: #3d5c4e;
  --accent-soft: #dfe9e2;
  --line: #e2dfd5;
  --footer-bg: #2d3a33;
  --footer-text: #e8efe9;
  --radius: 14px;
  --maxw: 1120px;
  --gutter: 20px;
  --header-h: 84px;
  --font: "Crimson Pro", Georgia, "Times New Roman", serif;
  --shadow: 0 6px 24px rgba(45, 58, 51, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 780px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* ---------- nagłówek i nawigacja ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand img { height: 62px; width: auto; }
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle .bars { top: 23px; }
.nav-toggle .bars::before { content: ""; top: -7px; left: 0; right: 0; position: absolute; }
.nav-toggle .bars::after { content: ""; top: 7px; left: 0; right: 0; position: absolute; }

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent-hover); }
.site-nav a[aria-current="page"],
.site-nav .has-sub.is-current > a { color: var(--accent-hover); background: var(--accent-soft); }

.has-sub { position: relative; }
.submenu {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  margin: 6px 0 0 !important;
  padding: 8px !important;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.submenu a { padding: 9px 12px; white-space: normal; border-radius: 10px; }
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu { display: block; }

/* ---------- przyciski ---------- */
.btn,
.btn-ghost {
  display: inline-block;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  transition: background .2s, color .2s, transform .2s;
  margin: 4px 6px 4px 0;
  line-height: 1.2;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.text-link { font-weight: 600; }
.cta-row { margin-top: 1.2em; }

/* ---------- strona główna ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8em;
}
.lead { font-size: 1.3rem; color: var(--muted); }
.hero-figure img {
  border-radius: 28px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--tint); }
.section-title { margin-top: 0; }
.section-lead { color: var(--muted); margin-top: -0.3em; }
.subhead { margin-top: 2.2em; font-size: 1.3rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; }
.card-body p:last-child { margin-bottom: 0; }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 20px;
}
.service-list a {
  display: block;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.service-list a:hover { border-color: var(--accent); color: var(--accent-hover); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split-media img {
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}

.certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
  margin-top: 1.4em;
}
.cert { margin: 0; text-align: center; }
.cert-media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-media img { max-height: 260px; width: auto; object-fit: contain; margin: 0 auto; }
.cert figcaption { margin-top: 10px; font-size: 1rem; color: var(--muted); line-height: 1.35; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.contact-grid > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}

/* ---------- podstrony ---------- */
.page-head {
  padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}
.page-head-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.page-head-text h1 { margin: 0; }
.page-banner {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.page-head:not(:has(.page-head-media)) .page-head-inner { grid-template-columns: 1fr; }

.prose { padding: clamp(32px, 5vw, 56px) 0; }
.prose > * { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }

.pricing { margin: 2.2em 0 0; max-width: 560px; }
.pricing-img { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.pricing figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 8px; }

.cta-box {
  margin-top: 2.6em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 760px;
}
.cta-box h2 { margin-top: 0; font-size: 1.5rem; }

/* obrazy, których brakuje w repo – pokazują się jako ramka z opisem */
img.is-missing {
  min-height: 160px;
  background: repeating-linear-gradient(45deg, var(--tint), var(--tint) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 12px;
  text-align: center;
}

/* ---------- stopka ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 52px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px;
}
.site-footer h2 {
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.6em;
  font-family: var(--font);
  font-weight: 600;
}
.site-footer a { color: #cfe2d5; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 0.3em; }
.site-footer p { margin-bottom: 0.8em; }
.plain { list-style: none; padding: 0; margin: 0 0 1em; }
.plain li { margin-bottom: 0.4em; }
.copy {
  margin-top: 40px;
  padding: 18px var(--gutter) 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  color: #b9c9be;
}

/* ---------- odtworzenie oryginalnego układu ---------- */
.service-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-tile { display: block; border-radius: var(--radius); overflow: hidden; }
.service-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.service-tile:hover img { transform: scale(1.02); }
.num {
  display: inline-block;
  font-size: 0.7em;
  color: var(--accent);
  margin-right: 0.6em;
  font-weight: 600;
  vertical-align: middle;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.contact-grid > div { background: none; border: 0; padding: 0; box-shadow: none; }
.contact-map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- responsywność ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px var(--gutter) 18px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-header.nav-open .site-nav { display: block; }
  .site-header.nav-open .nav-toggle .bars { background: transparent; }
  .site-header.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
  .site-header.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 8px; border-radius: 10px; white-space: normal; }
  .submenu {
    position: static;
    display: block;
    min-width: 0;
    margin: 0 0 6px 14px !important;
    padding: 0 !important;
    border: none;
    box-shadow: none;
    background: transparent;
    border-left: 2px solid var(--accent-soft);
    border-radius: 0;
  }
  .submenu a { padding: 8px 10px; font-size: 1rem; }
  .has-sub:hover > .submenu { display: block; }
}

@media (max-width: 800px) {
  body { font-size: 1.08rem; }
  .brand img { height: 52px; }
  :root { --header-h: 72px; }
  .hero-grid,
  .split,
  .page-head-inner { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 4 / 3; }
  .page-banner { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; }
}
