/* Kancelaria — main stylesheet
   Design tokens from Website Specs/Kancelaria/02 - Standards/Design System.md
   Component rules from each approved Template in 03 - Templates/
*/

:root {
  /* Colors — Design System §Color */
  --color-bg-header: #8FA3AC;
  --color-accent: #F0602E;
  --color-accent-hover: #D8531F;
  --color-accent-active: #B8451A;
  --color-hero-a: #6B5B95;
  --color-hero-b: #F0602E;
  --color-contact-a: #241B2F;
  --color-contact-b: #4A2B57;
  --color-bg-page: #FFFFFF;
  --color-bg-card: #F5F6F8;
  --color-text-body: #1E2226;
  --color-text-muted: #5B6570;
  --color-text-link: #2B5C8A;
  --color-border-divider: #DADFE3;
  --color-logo-text: #2B2E33;
  --color-success-bg: #EAF6EE;
  --color-success-border: #2F9E52;
  --color-success-ink: #1E7A3C;
  --color-error-bg: #FDEDEC;
  --color-error-border: #D64545;
  --color-error-ink: #B23434;

  /* Typography */
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* Spacing scale (8px grid) */
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;

  /* Layout */
  --content-max: 1200px;
  --reading-max: 680px; /* AB-05 / SA-01 / SDP-07 — capped reading width, reused everywhere */
  --header-offset: 112px; /* sticky header's rendered height + a little breathing room, used by scroll-padding-top below */
}

/* Reset & base — STD-DESIGN-01/03: only tokens above, no one-off colors/spacing */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; /* anchor links (#rezerwacja, #o-mnie, #kontakt...) ease in, not hard-jump */
  scroll-padding-top: var(--header-offset); /* sticky header would otherwise cover the top of the target section */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } /* STD-A11Y-09 */
  .site-header, .site-header__bar, .site-logo { transition: none; } /* compact header switches without animation */
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-bg-page);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* Skip link — STD-A11Y-08 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  font-family: var(--font-head);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* Visually-hidden but accessible — used for form labels that are visually redundant */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Focus ring — STD-DESIGN-07 / STD-A11Y-02: never removed without an equally visible replacement */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(240, 96, 46, 0.5);
  outline-offset: 2px;
}

/* ==========================================================================
   HEADER — Template: Header.md
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50; /* fix: without this, Hero (later in DOM, position:relative) painted over the dropdown/mobile menu on overlap */
  background: var(--color-bg-header);
  font-family: var(--font-body);
  transition: background-color 0.25s ease;
}

.site-header__bar {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px var(--space-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  transition: padding 0.25s ease, min-height 0.25s ease;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  max-width: 260px;
  transition: max-width 0.25s ease;
}

/* Compact header after scrolling past the top (Barbara, 2026-11-22). Class toggled
   in main.js. Mobile: ~half size. Desktop: ~2/3 size (more room on wide screens).
   Translucent "frosted glass" background so it feels lighter over the content;
   without backdrop-filter support it falls back to an almost solid background. */
.site-header.is-compact { background-color: rgba(143, 163, 172, 0.92); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-compact {
    background-color: rgba(143, 163, 172, 0.72);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
  }
}
.site-header.is-compact .site-header__bar { padding-top: 8px; padding-bottom: 8px; min-height: 56px; }
.site-header.is-compact .site-logo { max-width: 140px; }
@media (min-width: 1024px) {
  .site-header.is-compact .site-header__bar { padding-top: 10px; padding-bottom: 10px; min-height: 70px; }
  .site-header.is-compact .site-logo { max-width: 175px; }
}
.site-logo__img {
  display: block;
  width: 100%;
  height: auto;
}
.site-logo__text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-logo-text);
}
.site-logo__rule {
  width: 36px;
  height: 2px;
  background: var(--color-logo-text);
  display: block;
}

/* Desktop nav — shown ≥1024px */
.site-nav {
  display: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.site-nav__link {
  font-size: 15px;
  color: var(--color-text-body);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
}
.site-nav__link:hover { color: var(--color-accent); }
.site-nav__link[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
}

.site-nav__dropdown-toggle {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-body);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.site-nav__dropdown-toggle:hover { color: var(--color-accent); }

.site-nav__dropdown {
  position: relative;
}
.site-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--color-border-divider);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
  list-style: none;
  margin: 8px 0 0;
  z-index: 20;
}
.site-nav__dropdown[data-open="true"] .site-nav__dropdown-menu {
  display: block;
}
.site-nav__dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--color-text-body);
  text-decoration: none;
}
.site-nav__dropdown-menu a:hover {
  background: var(--color-bg-card);
  color: var(--color-accent);
}

/* Mobile hamburger — shown <1024px */
.site-header__toggle {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.site-header__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text-body);
  display: block;
}

/* Mobile menu panel */
.site-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.site-menu-panel[data-open="true"] { display: block; }

.site-menu-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 15, 0.25);
}

.site-menu-panel__sheet {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(390px, 100%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.site-menu-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 76px;
  border-bottom: 1px solid var(--color-border-divider);
  flex-shrink: 0;
}
.site-menu-panel__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
}
.site-menu-panel__close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--color-text-body);
}

.site-menu-panel__nav {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.site-menu-panel__nav a,
.site-menu-panel__dropdown-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-border-divider);
  font-size: 16px;
  color: var(--color-text-body);
  text-decoration: none;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.site-menu-panel__nav a[aria-current="page"] {
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
}
.site-menu-panel__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.site-menu-panel__sublist[data-open="true"] { display: block; }
.site-menu-panel__sublist a {
  padding-left: 40px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.site-menu-panel__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  border-top: 1px solid var(--color-border-divider);
}
.site-menu-panel__footer .site-logo__text { text-align: center; font-size: 10px; }

@media (min-width: 1024px) {
  .site-nav { display: flex; align-items: center; gap: var(--space-32); }
  .site-header__toggle { display: none; }
  .site-logo__text { font-size: 14px; }
  .site-header__bar { padding-left: var(--space-64); padding-right: var(--space-64); } /* fix: was stuck at 24px horizontal at every width, so the logo sat much closer to the edge than the 64px content margin used everywhere else on desktop */
}

/* ==========================================================================
   FOOTER — Template: Footer.md
   ========================================================================== */

.site-footer {
  background: var(--color-bg-card);
}
.site-footer__contact {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-32) var(--space-24) var(--space-32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.site-footer__contact h2 {
  font-size: 20px;
}
.site-footer__note {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 420px;
}
.site-footer__link {
  font-size: 15px;
  color: var(--color-text-link);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-footer__bottom {
  border-top: 1px solid var(--color-border-divider);
  padding: var(--space-24) var(--space-24) 96px; /* bottom room so the Cal.com floating button never covers the footer links */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.site-footer__bottom p { margin: 0; font-size: 12px; color: var(--color-text-muted); }
/* Footer links: text stays small, but the tap area is ~44px tall (padding offset by
   negative margin, so the layout doesn't move) – Barbara, 2026-11-22. */
.site-footer__credit { display: inline-block; color: var(--color-text-link); text-decoration: none; padding: 14px 4px; margin: -14px -4px; }

@media (min-width: 1024px) {
  .site-footer__bottom {
    align-items: flex-start;
    gap: 6px;
    padding: var(--space-24) var(--space-64) 96px;
    text-align: left;
  }
  .site-footer__contact { padding: var(--space-48) var(--space-64) var(--space-32); }
}

/* ==========================================================================
   Shared components — buttons, cards, form fields, section-fade divider
   STD-DESIGN-04: one definition, reused across every section that needs it
   ========================================================================== */

.btn-primary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:active { background: var(--color-accent-active); }

.btn-secondary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-body);
  background: transparent;
  border: 2px solid var(--color-text-body);
  border-radius: 999px;
  padding: 12px 24px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}
.btn-secondary:hover { background: var(--color-bg-card); }
.btn-secondary:active { background: var(--color-border-divider); }

.link-underline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-decoration: underline;
}

.section-fade {
  position: absolute;
  z-index: 0; /* SD-06: purely a background transition — content of the section it's in must always render above it */
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-page));
  pointer-events: none;
}
@media (min-width: 1024px) {
  .section-fade { height: 140px; }
}

.card {
  position: relative; /* containing block for .card__link's stretched hit-area below */
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-divider);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Stretched link: whole card clickable, still exactly one real <a> per
   card (no nested links, no duplicated link text) — SEO/a11y-safe.
   .card__link itself must stay position:static for this to size against
   .card rather than its own small box. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--color-accent);
}
.card__title { font-size: 18px; font-weight: 600; }
.card__text { font-size: 14px; line-height: 1.5; color: var(--color-text-muted); margin: 0; }
.card__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-link);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: auto;
}

.field { display: flex; flex-direction: column; gap: 4px; }
/* Two fields side by side (Kontakt form: name + phone/e-mail). Stacked only on very narrow phones. */
.field-row { display: flex; flex-direction: column; gap: 16px; }
.field-row > .field { flex: 1 1 0; min-width: 0; }
@media (min-width: 480px) { .field-row { flex-direction: row; gap: 12px; } }
.field label { font-size: 12px; color: var(--color-text-muted); font-family: var(--font-body); }
.field input,
.field textarea,
.field select {
  border: 1px solid var(--color-border-divider);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-body);
  height: 44px;
  box-sizing: border-box;
  width: 100%;
  background: #fff;
  color: var(--color-text-body);
}
.field textarea { padding: 10px 12px; height: auto; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { border-color: var(--color-accent); }

.consent {
  display: flex;
  align-items: flex-start; /* line-height = checkbox height, so box sits on the first text line even if it wraps */
  gap: 8px;
  cursor: pointer;
}
.consent input { margin: 0; width: 16px; height: 16px; flex-shrink: 0; }
.consent span { font-size: 13px; line-height: 16px; color: var(--color-text-muted); } /* text height = 16px checkbox (Barbara, 2026-11-22) */

.btn-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  height: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  width: 100%;
}
.btn-submit:hover { background: var(--color-accent-hover); }

/* Turnstile's flexible size fills whatever width its container gives it —
   capped here at its natural ~300px so it doesn't stretch across the whole
   card. Only below ~480px (where the card's own padding leaves less than
   300px to work with) do we back out of most of that padding to avoid
   overflow — reclaiming 16px of the card's 24px padding, not all of it, so
   the widget still sits with a small 8px gap instead of touching the card's
   edge. The widget itself is never shrunk, just given more room when needed. */
.cf-turnstile { max-width: 300px; }
@media (max-width: 480px) {
  .cf-turnstile { max-width: none; margin: 0 -16px; }
}

.form-notice {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.form-notice--success {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
  color: var(--color-success-ink);
}
.form-notice--error {
  background: var(--color-error-bg);
  border-color: var(--color-error-border);
  color: var(--color-error-ink);
}

.contact-form__optional-group {
  background: var(--color-bg-card);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form__optional-heading {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-form__optional-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  background: var(--color-bg-page);
  border: 1px solid var(--color-border-divider);
  padding: 2px 8px;
  border-radius: 999px;
}

.reading-width { max-width: var(--reading-max); margin: 0 auto; }

.section { padding: var(--space-32) var(--space-24); }
.section__heading {
  font-size: 26px;
  margin-bottom: var(--space-24);
}
@media (min-width: 1024px) {
  .section { padding: var(--space-64) var(--space-64); max-width: 1600px; margin: 0 auto; box-sizing: border-box; }
  .section__heading { font-size: 32px; }
}

/* ==========================================================================
   HERO — Template: Hero.md
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-hero-a), var(--color-hero-b));
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 15, 0.28);
}
.hero__inner {
  position: relative;
  z-index: 1; /* fix: content must sit above .section-fade (SD-06) — was painting below it since it's later in the DOM */
  padding: 56px var(--space-24) 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}
.hero__text-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-16); /* fix: was unset on mobile, only defined inside the desktop media query — title/text/CTAs ran together */
}
.hero__title {
  color: #fff;
  font-size: 32px;
  line-height: 1.15;
}
.hero__text {
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  line-height: 1.5;
  max-width: 480px;
  margin: 0;
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero__ctas .link-underline { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.hero__form {
  background: #fff;
  border-radius: 16px;
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.hero__form-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.hero__radio-group { display: flex; flex-direction: column; gap: 8px; border: none; margin: 0; padding: 0; }
.hero__radio-group legend { font-size: 13px; color: var(--color-text-muted); font-family: var(--font-body); padding: 0; margin-bottom: 4px; }
.hero__radio-options { display: flex; gap: 20px; }
.hero__radio-options label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.hero__radio-options input { width: 18px; height: 18px; }

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center; /* fix: was space-between on a 1600px bar — with only 2 children (~980px combined width) that put one huge gap in the middle instead of a normal gap */
    gap: var(--space-64);
    padding: 90px var(--space-64);
    max-width: var(--content-max);
    margin: 0 auto;
    box-sizing: border-box;
  }
  .hero__title { font-size: 52px; max-width: 620px; }
  .hero__text-col { display: flex; flex-direction: column; gap: var(--space-24); max-width: 620px; }
  .hero__ctas { flex-direction: row; align-items: center; }
  .hero__form { width: 360px; flex-shrink: 0; }
}

/* ==========================================================================
   SERVICE CARDS GRID — Template: Service Cards Grid.md
   ========================================================================== */

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
@media (min-width: 768px) {
  .cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); }
}

/* ==========================================================================
   ABOUT/BIO — Template: About Bio.md
   ========================================================================== */

.about-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}
.about-intro__photo {
  width: 260px;
  height: auto;
  aspect-ratio: 768 / 987; /* photo's own ratio – nothing cropped (Barbara, 2026-11-22) */
  border-radius: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-divider);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  flex-shrink: 0;
}
.about-intro__photo-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-intro__body { display: flex; flex-direction: column; gap: 14px; width: 100%; text-align: center; }
.about-intro__title { font-size: 24px; }
.about-intro__hook { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--color-text-muted); }
.mission-box {
  background: var(--color-bg-card);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.mission-box__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--color-accent); }
.mission-box__tagline { margin: 0; font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--color-text-body); }
.mission-box__text { margin: 0; font-size: 14px; line-height: 1.55; }

.bio-sections { display: flex; flex-direction: column; gap: var(--space-32); margin-bottom: var(--space-32); }
.bio-sections h3 { font-size: 18px; margin-bottom: 10px; }
.bio-sections p { font-size: 14px; line-height: 1.7; color: var(--color-text-muted); margin: 0 0 12px; }
.bio-sections p:last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
  .about-intro { flex-direction: row; align-items: center; text-align: left; gap: var(--space-64); margin-bottom: var(--space-64); }
  .about-intro__photo { width: 380px; height: auto; flex-shrink: 0; }
  .about-intro__body { text-align: left; max-width: 720px; }
  .about-intro__title { font-size: 30px; }
  .about-intro__hook { font-size: 17px; text-align: left; }
  .bio-sections h3 { font-size: 22px; }
  .bio-sections p { font-size: 16px; line-height: 1.75; }
}

/* ==========================================================================
   CONTACT & CONSULTATION FORM — Template: Contact Consultation Form.md
   ========================================================================== */

.contact-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-contact-a), var(--color-contact-b));
  padding: var(--space-48) var(--space-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
}
.contact-section__heading {
  width: 100%;
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: 28px;
}
.contact-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  box-sizing: border-box;
}
.contact-card h2 { font-size: 18px; }
.booking-widget {
  width: 100%;
  min-width: 0;
  height: auto;
  border: 0;
  border-radius: 10px;
}

@media (min-width: 1024px) {
  /* Desktop: form left, calendar right (Barbara, 2026-11-22). Mobile keeps the
     DOM order: calendar first, form below. */
  .contact-section {
    padding: var(--space-64);
    display: grid;
    grid-template-columns: minmax(0, 600px) minmax(0, 600px);
    justify-content: center;
    align-items: start;
    gap: var(--space-48);
  }
  .contact-section__heading { grid-column: 1 / -1; max-width: none; font-size: 36px; }
  .contact-section #zapytaj { order: 1; }
  .contact-section #rezerwacja { order: 2; }
  .contact-card { max-width: none; padding: 28px; }
  .contact-card h2 { font-size: 20px; }
}

/* ==========================================================================
   ARTICLE TEASER — Template: Article Teaser.md
   ========================================================================== */

.article-teaser__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}
.article-card { overflow: hidden; padding: 0; }
.article-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-hero-b), var(--color-hero-a));
}
.article-card__category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--color-text-body);
  font-weight: 600;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
}
.article-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.article-card__date { font-size: 12px; color: var(--color-text-muted); }
.article-card__title { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0; }

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
@media (min-width: 768px) {
  .articles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-24); }
}
@media (min-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   BLOG LISTING & SINGLE ARTICLE — shared sidebar/layout
   Blog Listing.md, Single Article.md
   ========================================================================== */

.blog-layout__grid,
.article-layout__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}
.articles-grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.blog-sidebar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-divider);
  border-radius: 12px;
  padding: var(--space-20, 20px);
  display: flex;
  flex-direction: column;
  gap: var(--space-20, 20px);
}
.blog-sidebar__search { display: flex; gap: 8px; }
.blog-sidebar__search input {
  flex: 1;
  border: 1px solid var(--color-border-divider);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  font-family: var(--font-body);
  height: 44px;
  background: #fff;
}
.blog-sidebar__block { display: flex; flex-direction: column; gap: 8px; }
.blog-sidebar__block h2 { font-size: 15px; }
.blog-sidebar__block a {
  font-size: 14px;
  color: var(--color-text-link);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.blog-pagination { margin-top: var(--space-24); display: flex; gap: 12px; justify-content: center; }
.blog-pagination .page-numbers { padding: 8px 14px; border-radius: 6px; text-decoration: none; color: var(--color-text-link); min-height: 44px; display: inline-flex; align-items: center; }
.blog-pagination .page-numbers.current { background: var(--color-accent); color: #fff; }

.article-layout__main-col { display: flex; flex-direction: column; gap: var(--space-24); }
.card__category-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-layout__main-col h1 { font-size: 24px; line-height: 1.25; margin: 8px 0; }
.article-meta { font-size: 12.5px; color: var(--color-text-muted); margin: 0 0 16px; }
.article-featured-image { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.article-body { font-size: 14px; line-height: 1.7; color: var(--color-text-muted); }
.article-body h2 { font-size: 18px; color: var(--color-text-body); margin: 24px 0 10px; }
.article-body p { margin: 0 0 14px; }
.article-body ul { margin: 0 0 14px; padding-left: 18px; }
.article-body li { margin-bottom: 4px; }

.article-layout__cta { text-align: center; }
.article-layout__cta h2 { font-size: 19px; margin-bottom: 16px; }
.article-layout__cta-buttons { display: flex; flex-direction: column; gap: 12px; }
.article-layout__cta-buttons a { width: 100%; }

@media (min-width: 768px) {
  .blog-layout__grid,
  .article-layout__grid { flex-direction: row; align-items: flex-start; gap: var(--space-24); }
  .blog-layout__main,
  .article-layout__main-col { flex: 1; min-width: 0; }
  .blog-sidebar { width: 320px; flex-shrink: 0; }
}
@media (min-width: 1024px) {
  .articles-grid--2col { display: grid; }
  .article-layout__main-col h1 { font-size: 36px; }
  .article-meta { font-size: 13.5px; }
  .article-body { font-size: 16px; line-height: 1.75; }
  .article-body h2 { font-size: 22px; }
  .article-layout__cta { padding: 32px 40px; }
  .article-layout__cta h2 { font-size: 22px; }
  .article-layout__cta-buttons { flex-direction: row; justify-content: center; }
  .article-layout__cta-buttons a { width: auto; }
}

/* ==========================================================================
   SERVICE DETAIL PAGE — Template: Service Detail Page.md
   Order: intro -> process steps -> body text -> stat tiles -> FAQ -> CTA
   ========================================================================== */

.service-detail__intro { margin: 0 auto var(--space-24); display: flex; flex-direction: column; gap: 10px; }
.service-detail__intro h1 { font-size: 28px; line-height: 1.2; }
.service-detail__intro p { margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.55; }

.process-steps {
  list-style: none;
  margin: 0 0 var(--space-32);
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--color-border-divider);
}
.process-steps__item { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 16px; padding-bottom: 20px; }
.process-steps__item:last-child { padding-bottom: 0; }
.process-steps__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
}
.process-steps__item:first-child .process-steps__number { background: var(--color-accent); color: #fff; border: none; }
.process-steps__label { padding-top: 8px; font-weight: 600; font-size: 15px; }

.stat-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: var(--space-32) 0;
}
.stat-tile { background: var(--color-bg-card); border: 1px solid var(--color-border-divider); border-radius: 10px; padding: 21px 16px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.stat-tile__value { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--color-accent); }
.stat-tile__label { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

@media (min-width: 480px) {
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.faq { margin: 0 auto var(--space-32); display: flex; flex-direction: column; gap: 16px; }
.faq h2 { margin-bottom: 4px; font-size: 22px; }
.faq details { border-bottom: 1px solid var(--color-border-divider); padding-bottom: 14px; }
.faq summary { font-family: var(--font-head); font-weight: 600; font-size: 15px; cursor: pointer; padding: 6px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

.service-detail__ctas { display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin: 0 auto; }

/* Breathing room between the main blocks of every service page (Barbara,
   2026-11-22): intro → steps → body → tiles → FAQ. ~2× on mobile, 3× on desktop. */
.service-detail .service-detail__intro { margin-bottom: var(--space-48); }
.service-detail .process-steps { margin-bottom: var(--space-64); }
.service-detail .bio-sections { margin-bottom: var(--space-64); }
.service-detail .stat-tiles { margin-top: var(--space-64); margin-bottom: var(--space-64); }
.service-detail__ctas a { width: 100%; }

@media (min-width: 1024px) {
  .service-detail__intro h1 { font-size: 40px; }
  .service-detail__intro p { font-size: 16px; line-height: 1.6; }

  .process-steps {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .process-steps::before { left: 60px; right: 60px; top: 24px; bottom: auto; height: 2px; width: auto; }
  .process-steps__item { flex-direction: column; align-items: center; text-align: center; width: 180px; padding-bottom: 0; gap: 10px; }
  .process-steps__number { width: 48px; height: 48px; }
  .process-steps__label { padding-top: 0; font-size: 13px; }

  .stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; }
  .stat-tile { padding: 25px 20px; }
  .stat-tile__value { font-size: 20px; }
  .stat-tile__label { font-size: 13px; }

  .service-detail__ctas { flex-direction: row; justify-content: center; max-width: none; gap: 16px; }
  .service-detail__ctas a { width: auto; }

  .service-detail .service-detail__intro { margin-bottom: 72px; }
  .service-detail .process-steps { margin-bottom: 96px; }
  .service-detail .bio-sections { margin-bottom: 96px; }
  .service-detail .stat-tiles { margin-top: 96px; margin-bottom: 96px; }
}
