/* Hyphen/dash glyphs from the sans stack — Cormorant's are slanted by design */
@font-face {
  font-family: "StraightHyphen";
  src: local("Source Sans 3"), local("Source Sans Pro"), local("Segoe UI"), local("Arial");
  unicode-range: U+002D, U+2010, U+2011, U+2012, U+2013, U+2014, U+2212;
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

/* ==========================================================================
   fizjoterapia-uro.pl - Katarzyna Bartnik
   Luxury calm urogynecology clinic stylesheet.

   Contents
   01. Tokens
   02. Reset & base
   03. Typography
   04. Atmosphere (gradients, paper grain)
   05. Layout primitives
   06. Buttons & links
   07. Skip link
   08. Header, logo, nav, language flags, hamburger
   09. Navigation drawer
   10. Hero (full-bleed stage)
   11. Section headings
   12. #o-kasi
   13. #specjalizacje (editorial rows)
   14. #metody
   15. #oferta
   16. #dla-kogo (accordion)
   17. #opinie
   18. #kontakt (deep sage band)
   19. Footer
   20. Blog index
   21. Breadcrumbs
   22. Article / long-form
   23. Related, CTA band
   24. Utilities
   25. Motion (reveal, hero entrance)
   26. Responsive
   27. Reduced motion
   ========================================================================== */


/* ==========================================================================
   01. TOKENS
   ========================================================================== */
:root {
  /* Palette */
  --ivory: #F8F7F3;
  --cream: #F1EEE7;
  --sage: #345F57;
  --sage-soft: #AFC4B7;
  --ink: #203331;
  --gold: #B6A07A;
  --white: #fff;
  --muted: #5c6b68;

  /* Derived tones (same family, never a new hue) */
  --sage-deep: #2a4d46;
  --sage-night: #223f39;
  --gold-ink: #7b6a47;
  --gold-light: #d3c3a2;
  --paper: #fbfaf7;

  /* Hairlines */
  --line: rgba(32, 51, 49, 0.14);
  --line-soft: rgba(32, 51, 49, 0.08);
  --line-gold: rgba(182, 160, 122, 0.6);
  --line-light: rgba(248, 247, 243, 0.2);

  /* Type */
  /* StraightHyphen first: Cormorant draws - / – / — as a slanted calligraphic stroke */
  --font-display: "StraightHyphen", "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --edge: clamp(1.25rem, 5vw, 6rem);
  --container: 80rem;
  --pad-x: max(var(--edge), calc((100% - var(--container)) / 2));
  --section-y: clamp(5rem, 9vw, 8rem);
  --header-h: 4.75rem;
  --reading: 46rem;

  /* Shape & motion */
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;
  --t-slow: 0.9s;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1.15em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--sage);
  text-decoration: none;
  text-underline-offset: 0.25em;
  transition: color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--sage-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: 0.85em;
}

.keep-phrase {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
}

/* Display titles: never hyphenate; never leave a separator dash at line end */
.offer-item strong,
.accordion-title,
.method-title,
.specialty-title,
.blog-title,
.hero-title,
.section-heading {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
}

.pwz {
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}


/* ==========================================================================
   04. ATMOSPHERE
   Layered, quiet gradients over ivory/cream + extremely light paper grain.
   ========================================================================== */
body {
  background-image:
    radial-gradient(70rem 46rem at 100% 0%, rgba(175, 196, 183, 0.2), transparent 62%),
    radial-gradient(56rem 40rem at 0% 38%, rgba(182, 160, 122, 0.1), transparent 66%),
    radial-gradient(64rem 44rem at 100% 78%, rgba(175, 196, 183, 0.16), transparent 64%),
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 46%, var(--ivory) 100%);
  background-attachment: scroll;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .13  0 0 0 0 .2  0 0 0 0 .19  0 0 0 .7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}


/* ==========================================================================
   05. LAYOUT PRIMITIVES
   ========================================================================== */
.page {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page > section {
  position: relative;
  scroll-margin-top: 4.5rem;
}

/* Home sections: generous editorial padding, content on a centred 80rem axis */
.page > section[id] {
  padding: var(--section-y) var(--pad-x);
}

.page > section.section-nobg,
.section-nobg,
#start {
  padding: 0;
  background: none;
}

[id] {
  scroll-margin-top: 4.5rem;
}

main#main {
  min-height: 60vh;
}

/* Alternating washes - never flat, never a different hue family */
#o-kasi {
  background:
    radial-gradient(48rem 30rem at 0% 0%, rgba(175, 196, 183, 0.16), transparent 70%),
    linear-gradient(180deg, var(--ivory), rgba(248, 247, 243, 0));
}

#specjalizacje {
  background:
    radial-gradient(52rem 34rem at 100% 100%, rgba(182, 160, 122, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(241, 238, 231, 0.92), rgba(241, 238, 231, 0.55));
}

#metody {
  background:
    radial-gradient(60rem 36rem at 0% 0%, rgba(175, 196, 183, 0.34), transparent 68%),
    radial-gradient(48rem 30rem at 100% 100%, rgba(175, 196, 183, 0.2), transparent 72%),
    linear-gradient(180deg, rgba(175, 196, 183, 0.2), rgba(175, 196, 183, 0.1));
}

#oferta {
  background:
    radial-gradient(50rem 30rem at 100% 0%, rgba(182, 160, 122, 0.1), transparent 70%),
    linear-gradient(180deg, var(--ivory), var(--paper));
}

#dla-kogo {
  background:
    radial-gradient(54rem 34rem at 0% 100%, rgba(175, 196, 183, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(241, 238, 231, 0.7), rgba(241, 238, 231, 0.95));
}

#opinie {
  background:
    radial-gradient(56rem 32rem at 50% 0%, rgba(182, 160, 122, 0.1), transparent 72%),
    linear-gradient(180deg, var(--paper), var(--ivory));
}

/* Split editorial layout: heading + lede left, content right */
#specjalizacje,
#dla-kogo {
  display: block;
}

.columns-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

.card {
  /* No cards by default: a card is only a quiet separated block. */
  margin: 0;
  padding: 1.5rem 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.card > :last-child {
  margin-bottom: 0;
}

/* Sections in the blog / long-form pages (no id) */
.page > section:not([id]) {
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad-x) var(--section-y);
}


/* ==========================================================================
   06. BUTTONS & LINKS
   ========================================================================== */
.btn-primary,
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 3.25rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    color var(--t-med) var(--ease),
    background-color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}

.btn-primary {
  color: var(--ivory);
  background-color: var(--sage);
  border-color: var(--sage);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--ivory);
  background-color: var(--ink);
  border-color: var(--ink);
}

/* Secondary: a quiet text link with a drawn arrow, not a second button */
.btn-secondary {
  min-height: 3.25rem;
  padding-left: 0;
  padding-right: 0;
  color: var(--sage);
  background: none;
  border-color: transparent;
  border-radius: 0;
}

.btn-secondary::after {
  content: "";
  flex: none;
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform var(--t-med) var(--ease);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.65rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-med) var(--ease);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--ink);
}

.btn-secondary:hover::after {
  transform: scaleX(1.35);
}

.btn-secondary:hover::before,
.btn-secondary:focus-visible::before {
  transform: scaleX(1);
}

.hero-cta-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2.25rem;
  margin-top: 2.25rem;
}

/* Hard rule: at most two calls to action in the hero (primary #kontakt + secondary #specjalizacje) */

/* Inline text links inside body copy */
.specialty-text a,
.method-card p a,
.offer-item span a,
.accordion-content a,
.u-text-body a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: var(--line-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.specialty-text a:hover,
.method-card p a:hover,
.offer-item span a:hover,
.accordion-content a:hover,
.u-text-body a:hover {
  color: var(--ink);
  text-decoration-color: var(--sage);
}


/* ==========================================================================
   07. SKIP LINK
   ========================================================================== */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.8rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ivory);
  background: var(--sage);
  border-radius: var(--radius);
  transform: translateY(-250%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  color: var(--ivory);
  outline-color: var(--gold);
  transform: translateY(0);
}


/* ==========================================================================
   08. HEADER
   Sticky, minimal, shrinks on scroll. Hamburger below 1200px.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(248, 247, 243, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(248, 247, 243, 0.95);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem var(--edge);
  transition: padding var(--t-med) var(--ease);
}

.site-header.is-scrolled .header-inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/* ---- Logo: wraps, never truncates ---- */
.logo-wrap {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  gap: 0.2rem;
  min-width: 0;
  max-width: min(21rem, 64vw);
  color: var(--ink);
  text-decoration: none;
}

.logo-wrap:hover {
  color: var(--ink);
}

.logo-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
  transition: font-size var(--t-med) var(--ease);
}

.logo-sub {
  display: block;
  max-height: 3.5rem;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: break-word;
  opacity: 1;
  transition:
    max-height var(--t-med) var(--ease),
    opacity var(--t-med) var(--ease);
}

.site-header.is-scrolled .logo-main {
  font-size: 1.15rem;
}

.site-header.is-scrolled .logo-sub {
  max-height: 0;
  opacity: 0;
}

/* ---- Main nav (desktop >= 1200) ---- */
.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.25rem 1.35rem;
  list-style: none;
}

.main-nav li {
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.25rem;
  height: 1px;
  background: var(--gold);
  transition: right var(--t-med) var(--ease);
}

.main-nav a:hover,
.main-nav a.is-active,
.main-nav a[aria-current="true"] {
  color: var(--sage);
}

.main-nav a:hover::after,
.main-nav a.is-active::after,
.main-nav a[aria-current="true"]::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.main-nav a:focus-visible {
  color: var(--sage);
  outline: 1px solid var(--gold);
  outline-offset: 0.3rem;
}

/* ---- Language flags: quiet ---- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0 0 0 auto;
}

.lang-switch a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.4rem;
  opacity: 0.55;
  transition: opacity var(--t-fast) var(--ease);
}

.lang-switch a::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.15rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-med) var(--ease);
}

.lang-switch a:hover,
.lang-switch a:focus-visible,
.lang-switch a[aria-current] {
  opacity: 1;
}

.lang-switch a[aria-current]::after,
.lang-switch a:hover::after {
  transform: scaleX(1);
}

.lang-flag {
  display: block;
  width: 1.2rem;
  height: auto;
  border-radius: 1px;
  filter: saturate(0.8);
}

/* ---- Hamburger ---- */
.hamburger-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  border-radius: var(--radius);
}

.hamburger-line {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform var(--t-med) var(--ease),
    opacity var(--t-fast) var(--ease),
    width var(--t-med) var(--ease);
}

.hamburger-line:nth-child(2) {
  width: 0.95rem;
  align-self: center;
  margin-right: 0;
}

.hamburger-btn:hover .hamburger-line:nth-child(2) {
  width: 1.35rem;
  margin-right: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1),
body.nav-open .hamburger-btn .hamburger-line:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2),
body.nav-open .hamburger-btn .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3),
body.nav-open .hamburger-btn .hamburger-line:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}


/* ==========================================================================
   09. NAVIGATION DRAWER
   ========================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(32, 51, 49, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t-med) var(--ease),
    visibility 0s linear var(--t-med);
}

.nav-overlay.is-open,
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(24rem, 90vw);
  padding: 1.25rem 2rem 2.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(24rem 20rem at 100% 0%, rgba(175, 196, 183, 0.28), transparent 70%),
    linear-gradient(180deg, var(--ivory), var(--cream));
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px -28px rgba(32, 51, 49, 0.5);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform 0.55s var(--ease),
    visibility 0s linear 0.55s;
}

.nav-drawer.is-open,
body.nav-open .nav-drawer {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.nav-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.75rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  transition:
    color var(--t-fast) var(--ease),
    transform var(--t-med) var(--ease);
}

.nav-drawer-close:hover {
  color: var(--sage);
  transform: rotate(90deg);
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}

.sidebar-nav a {
  display: block;
  padding: 0.95rem 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  transition:
    color var(--t-fast) var(--ease),
    padding-left var(--t-med) var(--ease);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible,
.sidebar-nav a.is-active,
.sidebar-nav a[aria-current="true"],
.nav-drawer li a.is-active,
.nav-drawer li a[aria-current="true"] {
  color: var(--sage);
  padding-left: 0.5rem;
}

.sidebar-nav a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 0.2rem;
}

.nav-drawer .card {
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.nav-drawer .contact-label {
  margin-bottom: 0.5rem;
}

.nav-drawer .lang-switch {
  margin: 0 0 0 -0.4rem;
}

.nav-drawer .lang-switch a {
  opacity: 0.85;
}

.nav-drawer .lang-flag {
  width: 1.5rem;
}


/* ==========================================================================
   10. HERO - layered composition
   Layer 1: full-bleed studio video. Layer 2: frosted glass panel
   (circular portrait + brand + CTA) floating over the video.
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--sage-night);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: clamp(34rem, 88svh, 52rem);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--sage-night);
}

/* ---- Fully transparent overlay (portrait + copy + CTA over video) ---- */
.hero > div:first-child,
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: min(34rem, calc(100% - (2 * var(--edge))));
  max-width: 34rem;
  min-width: 0;
  margin: clamp(1.5rem, 4vh, 2.75rem) var(--edge);
  padding: clamp(1.1rem, 2.5vw, 1.75rem) 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Circular KB portrait */
.hero-portrait {
  position: relative;
  flex: none;
  width: clamp(6.75rem, 18vw, 9.75rem);
  aspect-ratio: 1;
  margin: 0 0 1.35rem;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(182, 160, 122, 0.65);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.28),
    0 16px 36px -20px rgba(32, 51, 49, 0.5);
  background: var(--sage-soft);
}

/* Readable type over video (transparent overlay, all breakpoints) */
.hero-copy .brand-kicker,
.hero-copy .hero-title,
.hero-copy .hero-subtitle {
  text-shadow: 0 1px 16px rgba(32, 51, 49, 0.45);
}

/* Brand name: dark sage — must stay legible on the video */
.hero-copy .brand-name,
.hero-copy .brand-name em {
  color: var(--sage);
  text-shadow:
    0 0 18px rgba(248, 247, 243, 0.75),
    0 1px 2px rgba(248, 247, 243, 0.55);
}

.hero-copy .brand-kicker,
.hero-copy .hero-title,
.hero-copy .hero-title .keep-phrase {
  color: rgba(248, 247, 243, 0.94);
}

.hero-copy .hero-subtitle {
  color: rgba(248, 247, 243, 0.9);
  opacity: 1;
}

.hero-copy .btn-secondary {
  color: var(--ivory);
}

.hero-copy .btn-secondary:hover,
.hero-copy .btn-secondary:focus-visible {
  color: var(--gold-light, #d4c4a0);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: contrast(1.05) saturate(1.03);
}

.brand-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.brand-kicker::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.brand-name {
  display: block;
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.brand-name em,
.brand-name .brand-surname {
  font-style: italic;
  font-weight: 500;
  color: var(--sage);
}

/* Headline under brand — quieter than brand-name, still editorial */
.hero-title {
  margin: 0 0 1.15rem;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--sage);
}

.hero-title .keep-phrase {
  display: block;
  margin-top: 0.55em;
  font-style: italic;
  color: var(--sage);
}

/* When the brand name carries the hero, the h1 steps back */
.brand-name ~ .hero-title,
.hero-copy .brand-name + .hero-title {
  font-size: clamp(1.2rem, 1.75vw, 1.7rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 30rem;
}

.brand-name ~ .hero-title .keep-phrase {
  display: block;
  margin-top: 0.65em;
  font-style: italic;
  color: var(--sage);
}

.hero-subtitle {
  max-width: 31rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.82;
}

.hero-subtitle .keep-phrase {
  display: inline;
}

.hero-highlight {
  font-family: var(--font-display);
  font-size: 1.12em;
  font-weight: 600;
  font-style: italic;
  color: var(--sage);
  background: none;
  padding: 0;
}

/* The address block is deliberately gone from the first viewport */
.hero-meta {
  display: none;
}

/* No chips in the hero. Ever. */
.hero-tag {
  display: none !important;
}

/* ---- Layer 1: video fills the hero ---- */
.hero > .hero-photo,
.hero-stage > .hero-photo,
.hero-visual,
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: auto;
  background: var(--sage-night);
}

/* Soft left veil — only for type contrast; panel itself stays fully clear */
.hero-visual::after,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(32, 51, 49, 0.42) 0%, rgba(32, 51, 49, 0.16) 38%, transparent 62%),
    linear-gradient(180deg, rgba(32, 51, 49, 0.14) 0%, transparent 30%, rgba(32, 51, 49, 0.22) 100%);
}

.hero-visual > .hero-photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: none;
  overflow: hidden;
}

/* Photo "card": the card look is removed - it is just the plane */
.hero-photo-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-photo-card::before,
.hero-photo-card::after,
.hero > .hero-photo::before,
.hero > .hero-photo::after,
.hero-visual::before {
  content: none;
}

.hero .hero-photo img,
.hero-stage .hero-photo img,
.hero-visual img,
.hero-photo-card img,
.hero-visual .hero-video,
.hero-media .hero-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  transform-origin: 50% 40%;
  filter: contrast(1.04) saturate(1.02);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-visual .hero-video,
.hero-media .hero-video {
  display: block;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .hero-visual img.is-depth,
  .hero .hero-photo img.is-depth,
  .hero-visual .hero-video.is-depth {
    will-change: transform;
    animation: none;
  }
}

.hero .hero-photo picture,
.hero-visual picture,
.hero-photo-card picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Captions, if present, sit BELOW the image. Never an overlay. */
.hero-photo-name,
.hero-photo-specialty,
.hero-photo-label,
.hero-visual figcaption,
.hero-photo figcaption {
  position: static;
  z-index: 3;
  margin: 0;
  background: var(--cream);
}

.hero-photo-name {
  padding: 0.9rem var(--edge) 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  border-top: 1px solid var(--line-soft);
}

.hero-photo-specialty {
  padding: 0.15rem var(--edge) 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-photo-label,
.hero-visual figcaption,
.hero-photo figcaption {
  padding: 0.8rem var(--edge);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.hero-photo-name .pwz {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Photo reused as a plain image wrapper in articles (not the hero) */
.page > section:not([id]) .hero-photo {
  margin: 0 auto 2.5rem;
  background: none;
}

.page > section:not([id]) .hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: none;
}

/* Duplicate photo in "O Kasi" - the hero photo carries the page */
.o-kasi-photo-mobile {
  display: none !important;
}

picture:has(> .o-kasi-photo-mobile) {
  display: none;
}


/* ==========================================================================
   11. SECTION HEADINGS
   ========================================================================== */
.section-heading {
  position: relative;
  margin: 0 0 1.25rem;
  padding-top: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 1px;
  background: var(--gold);
}

.section-subtitle {
  max-width: 38rem;
  margin: 0 0 3.25rem;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.78;
}

h3.section-heading,
.u-h3-sm {
  margin: 0 0 0.85rem;
  padding-top: 0;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1.15;
}

h3.section-heading::before,
.u-h3-sm::before {
  display: none;
}


/* ==========================================================================
   12. #o-kasi - editorial two-column
   ========================================================================== */
#o-kasi .section-subtitle {
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--sage);
}

#o-kasi .columns-two > div:first-child {
  max-width: 40rem;
}

#o-kasi .columns-two > div > p {
  margin-bottom: 1.2em;
  color: var(--ink);
}

#o-kasi .columns-two > div:first-child > p:first-child::first-line {
  font-weight: 500;
  letter-spacing: 0.01em;
}

#o-kasi .columns-two > div:last-child {
  position: relative;
  padding: 0 0 0 1.75rem;
  border-left: 1px solid var(--line-gold);
}

#o-kasi .u-text-sm,
#o-kasi .u-text-sm-gap,
#o-kasi .u-note-sm {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* List of trainings: a refined index, never a pill cluster */
.pill-list {
  list-style: none;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.pill-list li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0 0.7rem 1.5rem;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
}

.pill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 0.7rem;
  height: 1px;
  background: var(--gold);
}


/* ==========================================================================
   13. #specjalizacje - centered heading + photo flip | text rows
   ========================================================================== */
#specjalizacje > .section-heading,
#specjalizacje > .section-subtitle {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#specjalizacje > .section-heading::before {
  left: 50%;
  transform: translateX(-50%);
}

#specjalizacje > .section-subtitle {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.specialty-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.25rem);
  counter-reset: specialty;
  margin: 0 auto;
  padding: 0;
  max-width: 72rem;
  list-style: none;
}

.specialty-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  counter-increment: specialty;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* ---- Left: flip photo ---- */
.specialty-flip {
  position: relative;
  min-height: 0;
  aspect-ratio: 5 / 4;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  perspective: 1200px;
  outline: none;
  cursor: pointer;
}

.specialty-flip:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 0.3rem;
}

.specialty-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  transform-style: preserve-3d;
  transition:
    transform 0.85s var(--ease),
    box-shadow 0.5s var(--ease);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px -22px rgba(32, 51, 49, 0.4);
}

.specialty-flip:hover .specialty-flip-inner,
.specialty-flip:focus-visible .specialty-flip-inner,
.specialty-flip.is-flipped .specialty-flip-inner {
  box-shadow: 0 20px 44px -18px rgba(32, 51, 49, 0.5);
}

.specialty-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.specialty-flip-front {
  background: var(--sage-night);
  transform: rotateY(0deg);
}

.specialty-flip-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.96) contrast(1.04);
  transform: scale(1.03) translate3d(0, 0, 0);
  transition: transform 0.85s var(--ease);
  will-change: transform;
}

.specialty-flip:hover .specialty-flip-front img,
.specialty-flip.is-flipped .specialty-flip-front img {
  transform: scale(1.07) translate3d(var(--fx, 0), var(--fy, 0), 0);
}

.specialty-flip-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(182, 160, 122, 0.1), transparent 55%);
}

.specialty-flip-num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.specialty-flip-back {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 1.35rem 1.25rem 1.4rem;
  color: var(--ivory);
  background:
    radial-gradient(22rem 16rem at 100% 0%, rgba(175, 196, 183, 0.22), transparent 70%),
    linear-gradient(165deg, var(--sage-deep), var(--sage-night));
  border: 1px solid rgba(182, 160, 122, 0.28);
  transform: rotateY(180deg);
}

.specialty-flip-back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4rem;
  height: 2px;
  background: var(--gold);
}

.specialty-flip-text {
  margin: 0;
  max-width: 34ch;
  font-size: 0.98rem;
  line-height: 1.62;
  color: rgba(248, 247, 243, 0.86);
}

.specialty-flip-cta {
  align-self: flex-start;
  margin-top: 0.15rem;
  min-height: 2.55rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.7rem;
  color: var(--ivory);
  background: transparent;
  border-color: rgba(248, 247, 243, 0.55);
}

.specialty-flip-cta:hover,
.specialty-flip-cta:focus-visible {
  color: var(--sage-night);
  background: var(--ivory);
  border-color: var(--ivory);
}

.specialty-flip[data-flip-axis="y"]:hover .specialty-flip-inner,
.specialty-flip[data-flip-axis="y"]:focus-visible .specialty-flip-inner,
.specialty-flip[data-flip-axis="y"].is-flipped .specialty-flip-inner {
  transform: rotateY(180deg);
}

.specialty-flip[data-flip-axis="y-neg"] .specialty-flip-back {
  transform: rotateY(-180deg);
}

.specialty-flip[data-flip-axis="y-neg"]:hover .specialty-flip-inner,
.specialty-flip[data-flip-axis="y-neg"]:focus-visible .specialty-flip-inner,
.specialty-flip[data-flip-axis="y-neg"].is-flipped .specialty-flip-inner {
  transform: rotateY(-180deg);
}

.specialty-flip[data-flip-axis="x"] .specialty-flip-back {
  transform: rotateX(180deg);
}

.specialty-flip[data-flip-axis="x"]:hover .specialty-flip-inner,
.specialty-flip[data-flip-axis="x"]:focus-visible .specialty-flip-inner,
.specialty-flip[data-flip-axis="x"].is-flipped .specialty-flip-inner {
  transform: rotateX(180deg);
}

@media (hover: none), (pointer: coarse) {
  .specialty-flip:hover .specialty-flip-inner {
    transform: none;
    box-shadow: 0 14px 36px -22px rgba(32, 51, 49, 0.4);
  }

  .specialty-flip:hover .specialty-flip-front img {
    transform: scale(1.03);
  }

  .specialty-flip[data-flip-axis="y"].is-flipped:hover .specialty-flip-inner {
    transform: rotateY(180deg);
  }

  .specialty-flip[data-flip-axis="y-neg"].is-flipped:hover .specialty-flip-inner {
    transform: rotateY(-180deg);
  }

  .specialty-flip[data-flip-axis="x"].is-flipped:hover .specialty-flip-inner {
    transform: rotateX(180deg);
  }
}

/* ---- Right: original numbered text ---- */
.specialty-body {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.65rem;
  align-content: center;
  padding: 0.2rem 0 0;
}

.specialty-body::before {
  content: counter(specialty, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sage);
  transition:
    color var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}

.specialty-body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-slow) var(--ease);
}

.specialty-card:hover .specialty-body::after,
.specialty-card:focus-within .specialty-body::after {
  width: 5rem;
}

.specialty-card:hover .specialty-body::before,
.specialty-card:focus-within .specialty-body::before {
  color: var(--gold-ink);
  transform: translateY(-0.12rem);
}

.specialty-title {
  grid-column: 2;
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.specialty-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--t-med) var(--ease), color var(--t-fast) var(--ease);
}

.specialty-title a:hover {
  color: var(--sage);
  background-size: 100% 1px;
}

.specialty-text {
  grid-column: 2;
  max-width: 36rem;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--ink);
  opacity: 0.88;
}

.specialty-card:hover .specialty-title,
.specialty-card:focus-within .specialty-title {
  color: var(--sage);
  transform: translateX(0.12rem);
}

.specialty-card a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 0.25rem;
}

@media (min-width: 900px) {
  .specialty-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    column-gap: clamp(1.75rem, 4vw, 3.25rem);
    align-items: center;
  }

  .specialty-body {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    padding-top: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .specialty-flip-inner,
  .specialty-flip-front img {
    transition: opacity 0.2s ease !important;
  }

  .specialty-flip:hover .specialty-flip-inner,
  .specialty-flip:focus-visible .specialty-flip-inner,
  .specialty-flip.is-flipped .specialty-flip-inner {
    transform: none !important;
  }

  .specialty-flip-face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }

  .specialty-flip-back {
    transform: none !important;
    opacity: 0;
    pointer-events: none;
  }

  .specialty-flip.is-flipped .specialty-flip-front {
    opacity: 0;
    pointer-events: none;
  }

  .specialty-flip.is-flipped .specialty-flip-back {
    opacity: 1;
    pointer-events: auto;
  }
}


/* ==========================================================================
   14. #metody - quiet two-column index
   ========================================================================== */
.methods-portrait {
  margin: 1.75rem 0 0;
  padding: 0;
  overflow: hidden;
  background: var(--cream);
}

.methods-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  filter: contrast(1.04) saturate(1.02);
}

@media (min-width: 900px) {
  .methods-portrait {
    margin: 0;
    height: 100%;
    min-height: 100%;
  }

  .methods-portrait img {
    height: 100%;
    min-height: 36rem;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 50% 16%;
  }
}

.methods-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}

.method-card {
  position: relative;
  margin: 0;
  padding: 1.9rem 0 2.1rem;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.method-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.25rem;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-slow) var(--ease);
}

.method-card:hover::before,
.method-card:focus-within::before {
  width: 5.5rem;
}

.method-card:focus-within {
  outline: none;
}

.method-card a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 0.25rem;
}

.method-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.9vw, 1.65rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition:
    color var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}

.method-card:hover .method-title,
.method-card:focus-within .method-title {
  color: var(--sage);
  transform: translateX(0.18rem);
}

.method-card p {
  max-width: 34rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink);
  opacity: 0.86;
  transition:
    transform var(--t-med) var(--ease),
    opacity var(--t-med) var(--ease);
}

.method-card:hover p,
.method-card:focus-within p {
  transform: translateX(0.1rem);
  opacity: 1;
}

#metody .section-subtitle,
#oferta .section-subtitle,
#opinie .section-subtitle {
  max-width: 40rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--sage);
  opacity: 1;
}


/* ==========================================================================
   15. #oferta - numbered editorial rows
   ========================================================================== */
.offer-portrait {
  margin: 2.5rem 0 0;
  padding: 0;
  overflow: hidden;
  background: none;
}

.offer-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.03) saturate(1.02);
}

@media (min-width: 900px) {
  /* Full width of left text column; top edge ~ level with offer 03 */
  .offer-portrait {
    margin-top: clamp(8rem, 15vh, 11.5rem);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
  }

  .offer-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

.offer-list {
  list-style: none;
  counter-reset: offer;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.offer-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.55rem;
  margin: 0;
  padding: 2rem 0;
  counter-increment: offer;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.offer-item::before {
  content: counter(offer, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sage);
}

.offer-item::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-slow) var(--ease);
}

.offer-item:hover::after,
.offer-item:focus-within::after {
  width: 5rem;
}

.offer-item strong {
  display: block;
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.offer-item span {
  display: block;
  grid-column: 2;
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink);
  opacity: 0.86;
}

.offer-item:hover strong {
  color: var(--sage);
}

#oferta .u-note-sm-mt {
  max-width: 40rem;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--sage);
}


/* ==========================================================================
   16. #dla-kogo - elegant accordion (details/summary)
   ========================================================================== */
.accordion-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.accordion-item {
  margin: 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.accordion-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  padding: 1.25rem 0;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header::marker {
  content: "";
}

/* Hairline plus / minus */
.accordion-header::before,
.accordion-header::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.95rem;
  height: 1px;
  background: var(--sage);
  transition:
    transform var(--t-med) var(--ease),
    opacity var(--t-med) var(--ease);
}

.accordion-header::after {
  transform: rotate(90deg);
}

.accordion-item[open] > .accordion-header::after {
  transform: rotate(0deg);
  opacity: 0;
}

.accordion-title {
  display: block;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.accordion-header:hover .accordion-title,
.accordion-item[open] .accordion-title {
  color: var(--sage);
}

.accordion-header:focus-visible {
  outline-offset: 2px;
}

.accordion-content {
  max-width: 38rem;
  padding: 0 2.5rem 1.75rem 0;
}

.accordion-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.88;
}

.accordion-item[open] > .accordion-content {
  animation: accordionIn 0.45s var(--ease) both;
}

@keyframes accordionIn {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#dla-kogo .u-text-body {
  max-width: 38rem;
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--sage);
}


/* ==========================================================================
   17. #opinie - quiet quotations
   ========================================================================== */
.reviews-portrait {
  margin: 2.5rem 0 0;
  padding: 0;
  overflow: hidden;
  background: none;
}

.reviews-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  filter: contrast(1.03) saturate(1.02);
}

@media (min-width: 900px) {
  /* Full left-column width; top ~ second review */
  .reviews-portrait {
    margin-top: clamp(6.5rem, 12vh, 9.5rem);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
  }

  .reviews-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}

.review-card {
  position: relative;
  margin: 0;
  padding: 2.5rem 0 2.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.48;
  color: var(--ink);
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.review-card::before {
  content: "“";
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}

.review-author {
  margin-top: 1.65rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}


/* ==========================================================================
   18. #kontakt - deep sage band, light type
   ========================================================================== */
#kontakt {
  position: relative;
  color: rgba(248, 247, 243, 0.86);
  background:
    radial-gradient(52rem 30rem at 92% 0%, rgba(175, 196, 183, 0.14), transparent 70%),
    radial-gradient(40rem 26rem at 0% 100%, rgba(182, 160, 122, 0.1), transparent 72%),
    linear-gradient(160deg, var(--sage) 0%, var(--sage-deep) 62%, var(--sage-night) 100%);
}

#kontakt .section-heading {
  color: var(--ivory);
}

#kontakt .section-heading::before {
  background: var(--gold-light);
}

#kontakt .section-subtitle {
  color: rgba(248, 247, 243, 0.74);
}

#kontakt a {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: rgba(211, 195, 162, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition:
    color var(--t-fast) var(--ease),
    text-decoration-color var(--t-fast) var(--ease);
}

#kontakt a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

#kontakt :focus-visible {
  outline-color: var(--gold-light);
}

#kontakt strong {
  color: var(--ivory);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  margin: 0;
}

.contact-details p {
  margin: 0 0 1.75rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact-details p strong,
.map-box > strong,
.contact-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Outside the sage band the label sits on ivory */
.contact-label {
  color: var(--gold-ink);
}

#kontakt .contact-label {
  color: var(--gold-light);
}

.contact-details a[href^="tel:"] {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.contact-details a[href^="mailto:"] {
  font-size: 1.1rem;
}

.contact-highlight {
  display: block;
  max-width: 28rem;
  margin: 2.25rem 0 1.25rem;
  padding: 0.15rem 0 0.15rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ivory);
  background: none;
  border: 0;
  border-left: 1px solid var(--gold-light);
  border-radius: 0;
}

#kontakt .u-note-sm,
#kontakt .contact-details .u-note-sm {
  max-width: 30rem;
  margin-top: 1.25rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(248, 247, 243, 0.68);
}

.map-box {
  padding: 2rem 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line-light);
  border-radius: 0;
  box-shadow: none;
}

.map-box p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
}

#kontakt .map-box .u-muted-xs {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(248, 247, 243, 0.66);
}


/* ==========================================================================
   19. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 3.5rem var(--pad-x) 2.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  background:
    radial-gradient(40rem 20rem at 0% 0%, rgba(175, 196, 183, 0.2), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--ivory));
  border-top: 1px solid var(--line-gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.footer-inner p {
  max-width: 34rem;
  margin: 0;
}

.footer-inner p strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.site-footer a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: var(--line-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--sage);
}

.footer-disclaimer,
.footer-credit {
  max-width: 54rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.footer-credit {
  padding-top: 0;
  border-top: 0;
  font-size: 0.78rem;
  opacity: 0.9;
}


/* ==========================================================================
   20. BLOG INDEX
   ========================================================================== */
.page > section.blog-index,
.blog-index {
  background: none;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.blog-index h1 {
  max-width: 44rem;
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.blog-lead {
  max-width: 40rem;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--sage);
}

.blog-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem 3rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transition: border-color var(--t-med) var(--ease);
}

.blog-card:hover,
.blog-card:focus-within {
  border-top-color: var(--gold);
}

.blog-thumb-wrap {
  padding: 0 0 1.4rem;
}

.blog-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius);
}

.blog-thumb picture {
  width: 100%;
  height: 100%;
}

.blog-thumb-img,
.blog-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.blog-card:hover .blog-thumb-img,
.blog-card:hover .blog-thumb img {
  transform: scale(1.035);
}

.blog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
}

.blog-meta,
.blog-card-meta {
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.blog-title {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.blog-title a {
  color: inherit;
  text-decoration: none;
}

.blog-excerpt {
  margin: 0 0 1.5rem;
  font-size: 0.99rem;
  line-height: 1.7;
  color: var(--muted);
}

/* "Zobacz wiecej": a text link, not a button */
.btn-primary.blog-more,
.blog-more {
  align-self: flex-start;
  min-height: 0;
  margin-top: auto;
  padding: 0.35rem 0;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--sage);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-gold);
  border-radius: 0;
  gap: 0.8rem;
}

.btn-primary.blog-more::after,
.blog-more::after {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease);
  transform-origin: left center;
}

.btn-primary.blog-more:hover,
.btn-primary.blog-more:focus-visible,
.blog-more:hover {
  color: var(--ink);
  background: none;
  border-color: var(--sage);
}

.btn-primary.blog-more:hover::after,
.blog-more:hover::after {
  transform: scaleX(1.5);
}


/* ==========================================================================
   21. BREADCRUMBS
   ========================================================================== */
.breadcrumb,
.breadcrumbs {
  margin: 0;
  padding: 1.5rem var(--pad-x) 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.breadcrumb ol,
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li,
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.breadcrumb li + li::before,
.breadcrumbs li + li::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1px;
  background: var(--gold);
}

.breadcrumb a,
.breadcrumbs a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover,
.breadcrumbs a:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.breadcrumb [aria-current="page"],
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}


/* ==========================================================================
   22. ARTICLE / LONG-FORM
   Covers both semantic .article-* markup and the bare <section> articles.
   ========================================================================== */
.article-hero {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--edge) 1rem;
  text-align: left;
}

.article-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.article-hero .article-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.article-hero img {
  width: 100%;
  margin-top: 2rem;
  border-radius: var(--radius);
  box-shadow: none;
}

.article-body,
.page > section:not([id], .blog-index) {
  font-size: 1.125rem;
  line-height: 1.82;
  color: var(--ink);
}

.article-body {
  max-width: var(--reading);
  margin: 0 auto 3rem;
  padding: 0 var(--edge);
}

.page > section:not([id], .blog-index) > * {
  max-width: var(--reading);
  margin-left: auto;
  margin-right: auto;
}

.page > section:not([id], .blog-index) > .hero-photo,
.page > section:not([id], .blog-index) > picture,
.page > section:not([id], .blog-index) > img {
  max-width: 58rem;
}

.article-body h1,
.page > section:not([id], .blog-index) > h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
}

.article-body h2,
.page > section:not([id], .blog-index) > h2 {
  position: relative;
  margin: 2.6em auto 0.55em;
  padding-top: 1.1rem;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--sage);
}

.article-body h2::before,
.page > section:not([id], .blog-index) > h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

.page > section:not([id], .blog-index) > .hero-photo + picture + h2,
.page > section:not([id], .blog-index) > .hero-photo + h2,
.page > section:not([id], .blog-index) > h1 + h2 {
  margin-top: 1.5rem;
}

.article-body h3 {
  margin: 2em 0 0.5em;
  font-size: clamp(1.4rem, 2vw, 1.65rem);
  color: var(--ink);
}

.article-body p,
.page > section:not([id], .blog-index) > p {
  margin-bottom: 1.3em;
}

.article-body > p:first-of-type,
.article-body .lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--sage);
}

.article-body a,
.page > section:not([id], .blog-index) > p a {
  color: var(--sage);
  text-decoration: underline;
  text-decoration-color: var(--line-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.article-body a:hover,
.page > section:not([id], .blog-index) > p a:hover {
  color: var(--ink);
  text-decoration-color: var(--sage);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}

.article-body li::marker {
  color: var(--gold-ink);
}

.article-body blockquote {
  margin: 2.5em 0;
  padding: 0.25rem 0 0.25rem 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--sage);
  background: none;
  border: 0;
  border-left: 1px solid var(--gold);
  border-radius: 0;
}

.article-body img,
.article-body figure {
  margin: 2.25em 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-body figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
}

.article-body table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: collapse;
  font-size: 1rem;
}

.article-body th,
.article-body td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-body th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  background: none;
  border-bottom-color: var(--line-gold);
}


/* ==========================================================================
   23. RELATED, CTA BAND
   ========================================================================== */
.related {
  max-width: 64rem;
  margin: 4rem auto 0;
  padding: 0 var(--edge);
}

.related-title {
  margin-bottom: 1.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: left;
}

.related-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.related-grid > a,
.related-grid > article,
.related-card {
  display: block;
  padding: 1.6rem 0 1.75rem;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transition: border-color var(--t-med) var(--ease);
}

.related-grid > a:hover,
.related-grid > article:hover,
.related-card:hover {
  color: var(--sage);
  border-top-color: var(--gold);
}

.related-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  color: inherit;
}

.related-grid p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.cta-band {
  position: relative;
  margin: 4rem 0 0;
  padding: clamp(2.5rem, 5vw, 4rem) var(--edge);
  text-align: left;
  color: rgba(248, 247, 243, 0.86);
  background:
    radial-gradient(34rem 20rem at 100% 0%, rgba(175, 196, 183, 0.14), transparent 70%),
    linear-gradient(160deg, var(--sage), var(--sage-deep));
  border-radius: var(--radius);
}

.cta-band h2,
.cta-band h3,
.cta-band .cta-title {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ivory);
}

.cta-band h2::before {
  display: none;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  color: rgba(248, 247, 243, 0.8);
}

.cta-band a:not(.btn-primary):not(.btn-secondary) {
  color: var(--ivory);
}

.cta-band .btn-primary {
  color: var(--sage);
  background: var(--ivory);
  border-color: var(--ivory);
}

.cta-band .btn-primary:hover {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.cta-band .btn-secondary {
  color: var(--ivory);
}

.cta-band .btn-secondary:hover {
  color: var(--white);
}

.cta-band :focus-visible {
  outline-color: var(--gold-light);
}


/* ==========================================================================
   24. UTILITIES (kept for existing markup)
   ========================================================================== */
.u-mt-8 {
  margin-top: 0.5rem;
}

.u-h3-ua {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.u-text-sm {
  margin-top: 0;
  font-size: 0.97rem;
}

.u-text-sm-gap {
  margin: 0.5rem 0;
  font-size: 0.97rem;
}

.u-note-sm {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.u-note-sm-mt {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.u-text-body {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--muted);
}

.u-muted-xs {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.u-list-compact {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   25. MOTION
   .reveal fade/rise (JS adds .is-visible), hero entrance, soft image settle.
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(1.35rem);
    transition:
      opacity 0.9s var(--ease),
      transform 0.95s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .js .reveal.reveal-done {
    transition-delay: 0s;
    will-change: auto;
  }

  .reveal-delay-1 { --reveal-delay: 0.07s; }
  .reveal-delay-2 { --reveal-delay: 0.14s; }
  .reveal-delay-3 { --reveal-delay: 0.22s; }
  .reveal-delay-4 { --reveal-delay: 0.3s; }

  /* Hero copy rises in, line by line */
  .hero > div:first-child > *,
  .hero-copy > * {
    animation: heroRise 1s var(--ease) both;
  }

  .hero > div:first-child > :nth-child(1),
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero > div:first-child > :nth-child(2),
  .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
  .hero > div:first-child > :nth-child(3),
  .hero-copy > :nth-child(3) { animation-delay: 0.28s; }
  .hero > div:first-child > :nth-child(4),
  .hero-copy > :nth-child(4) { animation-delay: 0.4s; }
  .hero > div:first-child > :nth-child(5),
  .hero-copy > :nth-child(5) { animation-delay: 0.52s; }
  .hero > div:first-child > :nth-child(6),
  .hero-copy > :nth-child(6) { animation-delay: 0.62s; }

  /* The media plane fades in and settles, very subtly */
  .hero .hero-photo img,
  .hero-stage .hero-photo img,
  .hero-visual img,
  .hero-visual .hero-video,
  .hero-media .hero-video {
    animation: heroSettle 2.2s var(--ease) both;
  }

  /* Elements marked with a bare `reveal` attribute: scroll-driven where supported */
  @supports (animation-timeline: view()) {
    [reveal] {
      animation: heroRise 1s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroSettle {
  from {
    opacity: 0.72;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: scale(1.045);
  }
}


/* ==========================================================================
   26. RESPONSIVE (mobile-first)
   ========================================================================== */

/* ---- Mobile / tablet portrait: keep CTA in the first viewport ---- */
@media (max-width: 899.98px) {
  html,
  body {
    overflow-x: clip;
  }

  .site-header,
  .header-inner {
    max-width: 100%;
    min-width: 0;
  }

  .header-inner {
    gap: 0.5rem;
    padding-left: max(0.85rem, var(--edge));
    padding-right: max(0.85rem, var(--edge));
  }

  .hamburger-btn {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: auto;
  }

  .hero {
    min-height: clamp(30rem, 92svh, 44rem);
  }

  .hero > .hero-photo,
  .hero-stage > .hero-photo,
  .hero-visual,
  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    aspect-ratio: auto;
  }

  .hero > div:first-child,
  .hero-copy {
    width: min(34rem, calc(100% - (2 * var(--edge))));
    margin: clamp(1.1rem, 3vh, 1.75rem) var(--edge);
    padding: 0.85rem 0 1rem;
    background: transparent;
  }

  .hero-portrait {
    width: clamp(5.75rem, 22vw, 7.25rem);
    margin-bottom: 1rem;
  }

  .brand-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .brand-name {
    margin-bottom: 0.3em;
    font-size: clamp(1.95rem, 8.2vw, 2.5rem);
  }

  .brand-name ~ .hero-title,
  .hero-copy .brand-name + .hero-title {
    margin-bottom: 0.55rem;
    font-size: clamp(1.02rem, 3.5vw, 1.22rem);
    line-height: 1.28;
  }

  .hero-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-cta-row,
  .hero-actions {
    margin-top: 1rem;
    gap: 0.3rem 1.35rem;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 2.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .hero-cta-row .btn-primary,
  .hero-actions .btn-primary {
    flex: 0 1 auto;
  }
}

/* ---- Very short phones (360x800 / 390x844): primary CTA above the fold ---- */
@media (max-width: 899.98px) and (max-height: 850px) {
  .hero {
    min-height: clamp(28rem, 92svh, 40rem);
  }

  .hero > div:first-child,
  .hero-copy {
    margin-top: 0.85rem;
    margin-bottom: 0.85rem;
    padding: 0.5rem 0 0.75rem;
  }

  .brand-kicker {
    margin-bottom: 0.45rem;
  }

  .brand-name {
    font-size: clamp(1.8rem, 7.6vw, 2.25rem);
  }

  .brand-name ~ .hero-title,
  .hero-copy .brand-name + .hero-title {
    margin-bottom: 0.45rem;
    font-size: clamp(0.98rem, 3.3vw, 1.15rem);
  }

  .hero-subtitle {
    -webkit-line-clamp: 2;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-cta-row,
  .hero-actions {
    margin-top: 0.75rem;
  }
}

/* ---- < 560px: header trims down further ---- */
@media (max-width: 559.98px) {
  .site-header .lang-switch {
    display: none;
  }

  .hamburger-btn {
    margin-left: auto;
    margin-right: 0;
  }

  .logo-wrap {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-main {
    font-size: 1.15rem;
  }

  .site-header.is-scrolled .logo-main {
    font-size: 1.05rem;
  }

  .hero-cta-row,
  .hero-actions {
    gap: 0.25rem 1.5rem;
  }

  .hero-cta-row .btn-primary,
  .hero-actions .btn-primary {
    width: auto;
    min-width: min(100%, 14rem);
  }

  .accordion-content {
    padding-right: 0;
  }
}

/* ---- < 600px: no sub-line in the header ---- */
@media (max-width: 599.98px) {
  .logo-sub {
    display: none;
  }

  .header-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
}

/* ---- >= 600px ---- */
@media (min-width: 600px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }

  .footer-inner > .footer-disclaimer,
  .footer-inner > .footer-credit {
    grid-column: 1 / -1;
  }

  .blog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
}

/* ---- >= 760px ---- */
@media (min-width: 760px) {
  .methods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(3rem, 6vw, 6rem);
  }

  .offer-item {
    grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 7fr);
    align-items: baseline;
    column-gap: 1.25rem;
  }

  .offer-item::before {
    grid-row: 1;
  }

  .offer-item strong {
    grid-column: 2;
  }

  .offer-item span {
    grid-column: 3;
    max-width: none;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-card {
    padding: 2.25rem 2.25rem 2.5rem 0;
    border-top: 1px solid var(--line);
  }

  .review-card + .review-card {
    padding-left: 2.25rem;
    border-left: 1px solid var(--line-soft);
  }
}

/* ---- >= 860px ---- */
@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(3rem, 8vw, 8rem);
  }

  .map-box {
    padding: 0 0 0 clamp(2rem, 4vw, 4rem);
    border-top: 0;
    border-left: 1px solid var(--line-light);
  }
}

/* ---- >= 900px: glass panel floats over full-bleed video ---- */
@media (min-width: 900px) {
  .hero {
    min-height: clamp(36rem, 86svh, 54rem);
  }

  .hero > div:first-child,
  .hero-copy {
    justify-content: flex-start;
    width: min(36rem, 42vw);
    max-width: 36rem;
    margin:
      clamp(2.5rem, 7vh, 4rem)
      auto
      clamp(2.5rem, 7vh, 4rem)
      var(--edge);
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero > .hero-photo,
  .hero-stage > .hero-photo,
  .hero-visual,
  .hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    aspect-ratio: auto;
  }

  .hero-portrait {
    width: clamp(7.5rem, 11vw, 10.25rem);
    margin-bottom: 1.6rem;
  }

  .hero-photo-name {
    padding-left: clamp(1.5rem, 3vw, 3rem);
    padding-right: clamp(1.5rem, 3vw, 3rem);
  }

  .hero-photo-specialty {
    padding-left: clamp(1.5rem, 3vw, 3rem);
    padding-right: clamp(1.5rem, 3vw, 3rem);
  }

  .hero-photo-label,
  .hero-visual figcaption,
  .hero-photo figcaption {
    padding-left: clamp(1.5rem, 3vw, 3rem);
    padding-right: clamp(1.5rem, 3vw, 3rem);
  }

  /* Specjalizacje: full-width flip grid (heading centered above) */
  #specjalizacje {
    display: block;
  }

  /* Metody: heading full-width, then tall photo | methods (equal height) */
  #metody {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto minmax(36rem, auto);
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    row-gap: 0;
    align-content: start;
    align-items: stretch;
  }

  #metody > .section-heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #metody > .section-subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 40rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }

  #metody > .methods-portrait {
    grid-column: 1;
    grid-row: 3;
    align-self: stretch;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  #metody > .methods-grid {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  /* Oferta: classic editorial split + photo under lede (natural size) */
  #oferta,
  #dla-kogo,
  #opinie {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(3rem, 7vw, 8rem);
    align-content: start;
  }

  #oferta > .section-heading,
  #dla-kogo > .section-heading,
  #opinie > .section-heading {
    grid-column: 1;
    grid-row: 1;
  }

  #oferta > .section-subtitle,
  #dla-kogo > .section-subtitle,
  #opinie > .section-subtitle {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-bottom: 0;
  }

  #oferta > .offer-portrait,
  #opinie > .reviews-portrait {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    justify-self: stretch;
    width: 100%;
  }

  #oferta > .offer-list {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  #dla-kogo > .accordion-list,
  #opinie > .reviews-grid {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  #metody > p:not(.section-subtitle),
  #oferta > p:not(.section-subtitle),
  #dla-kogo > p:not(.section-subtitle),
  #opinie > p:not(.section-subtitle) {
    grid-column: 1 / -1;
    margin-top: 2rem;
  }

  /* Reviews: one elegant column in the right rail (not a cramped trio) */
  #opinie > .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #opinie .review-card + .review-card {
    padding-left: 0;
    border-left: 0;
  }

  .columns-two {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
  }

  .blog-list {
    gap: 4rem 3.5rem;
  }
}

/* ---- >= 1200px: full navigation, no hamburger ---- */
@media (min-width: 1200px) {
  .main-nav {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }

  .hamburger-btn,
  .nav-overlay,
  .nav-drawer {
    display: none;
  }

  .lang-switch {
    margin-left: 0;
  }

  .logo-wrap {
    max-width: 17rem;
  }

  .logo-sub {
    display: none;
  }

  body.nav-open {
    overflow: auto;
  }
}

/* ---- >= 1440px: room for the specialty line in the header ---- */
@media (min-width: 1440px) {
  .logo-wrap {
    max-width: 22rem;
  }

  .logo-sub {
    display: block;
  }

  .main-nav ul {
    gap: 0.25rem 1.75rem;
  }

  .blog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- 600-1199: header has room for the sub-line next to the hamburger ---- */
@media (min-width: 600px) and (max-width: 1199.98px) {
  .logo-sub {
    display: block;
    max-width: 26rem;
  }

  .logo-wrap {
    max-width: 26rem;
  }
}

/* ---- Short desktop viewports: keep the hero one composition ---- */
@media (min-width: 900px) and (max-height: 760px) {
  .brand-name {
    font-size: clamp(2.75rem, 5.2vw, 4.75rem);
    margin-bottom: 0.3em;
  }

  .hero-cta-row,
  .hero-actions {
    margin-top: 1.35rem;
  }

  .hero > div:first-child,
  .hero-copy {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }

  .hero-visual,
  .hero-media {
    min-height: clamp(16rem, 42vh, 26rem);
    margin-bottom: 2rem;
  }

  .brand-kicker {
    margin-bottom: 0.9rem;
  }
}


/* ==========================================================================
   27. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible,
  [reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero .hero-photo img,
  .hero-visual img,
  .hero-visual .hero-video,
  .hero-media .hero-video {
    transform: none !important;
  }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  body::before,
  .site-header,
  .nav-drawer,
  .nav-overlay,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .hero-stage {
    display: block;
    min-height: 0;
  }

  .hero > .hero-photo,
  .hero-visual,
  .hero-media {
    height: 14rem;
  }

  .hero-portrait {
    width: 5.5rem;
  }

  #kontakt {
    color: #000;
    background: none;
  }

  #kontakt .section-heading,
  #kontakt a,
  #kontakt strong {
    color: #000;
  }
}
