/* ============================================================
   literkowo. — logopedamszanadolna.pl
   Design tokens & components wg identyfikacji marki (Maj 2026)
   Realizacja: KB Projects
   ============================================================ */

:root {
  --ivory:       #F5F1EA;
  --ivory-2:     #EDE6D8;
  --ivory-3:     #E4DBC8;
  --ink:         #1C1C1C;
  --ink-2:       #2A2A2A;
  --sage:        #3A4A3F;
  --sage-2:      #5B6E5F;
  --champagne:   #B8A584;
  --champagne-2: #C9B894;
  --rule:        rgba(28,28,28,0.18);
  --rule-soft:   rgba(28,28,28,0.10);
  --rule-light:  rgba(245,241,234,0.22);
  --rule-light-soft: rgba(245,241,234,0.12);

  --font-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans:  'Manrope', system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --header-h: 78px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(52px, 7.5vw, 96px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--sage); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--champagne); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 12px 20px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* ---------- Typo utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.display, h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(23px, 2.6vw, 32px); line-height: 1.2; }
h1 em, h2 em, h3 em, .lead em, blockquote em { font-style: italic; color: var(--sage); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em,
.on-dark blockquote em, .on-dark .lead em { color: var(--champagne); }

.lead {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: var(--ink-2);
}
.body-serif { font-family: var(--font-serif); font-size: 18px; line-height: 1.75; color: var(--ink-2); }

.label, .micro {
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
}
.label { font-size: 11px; letter-spacing: .3em; }
.micro { font-size: 10px; letter-spacing: .28em; }

/* Eyebrow / kicker — slajd 11 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--sage);
  flex: none;
  transform-origin: left center;
}
.on-dark .eyebrow { color: var(--champagne); }
.on-dark .eyebrow::before { background: var(--champagne); }

/* Section index label — slajd 12: „— 01 / O nas" */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}
.on-dark .section-label { color: var(--champagne); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--sage); }
.btn-sage { background: var(--sage); color: var(--ivory); }
.btn-sage:hover { background: var(--sage-2); }
.btn-ivory { background: var(--ivory); color: var(--ink); }
.btn-ivory:hover { background: var(--champagne-2); }

.text-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 6px 1px 7px;
  transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--sage); border-color: var(--sage); }
.on-dark .text-link { color: var(--ivory); border-color: var(--ivory); }
.on-dark .text-link:hover { color: var(--champagne); border-color: var(--champagne); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow .3s ease;
}
/* tło + blur na pseudo-elemencie — backdrop-filter na headerze
   tworzyłby containing block dla fixed .main-nav (menu mobilne) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245,241,234,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled { box-shadow: 0 18px 40px rgba(28,28,28,.07); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 78px;
}
.brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.brand .dot { color: var(--champagne); font-style: normal; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.main-nav > ul { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 2px; right: 100%; bottom: 4px;
  height: 1px;
  background: var(--sage);
  transition: right .25s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--sage); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 2px; }

/* dropdown — Oferta */
.has-sub { position: relative; }
.has-sub > .nav-link { display: inline-flex; align-items: center; gap: 7px; }
.has-sub > .nav-link .caret { font-size: 8px; transform: translateY(-1px); transition: transform .2s ease; }
.sub-nav {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 250px;
  background: var(--ivory);
  border: 1px solid var(--rule-soft);
  box-shadow: 0 30px 60px rgba(28,28,28,.16);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.has-sub:hover .sub-nav,
.has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover > .nav-link .caret { transform: translateY(1px) rotate(180deg); }
.sub-nav a {
  display: block;
  padding: 11px 24px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease, padding-left .2s ease;
}
.sub-nav a:hover { background: var(--ivory-2); color: var(--sage); padding-left: 30px; }

.nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 920px) {
  /* nagłówek na stałe przyklejony do góry ekranu */
  .site-header { position: fixed; left: 0; right: 0; top: 0; }
  body { padding-top: var(--header-h); }

  /* menu rozwijane z góry jako panel (do ~połowy ekranu, na wysokość treści) */
  .main-nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ivory);
    padding: 6px var(--pad) 22px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 30px 60px rgba(28,28,28,.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .26s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav > ul > li { border-bottom: 1px solid var(--rule-soft); }
  .nav-link { display: block; padding: 16px 0; font-size: 13px; }
  .nav-link::after { display: none; }
  /* na telefonie podpunkty Oferty są zawsze widoczne (bez przełączania) */
  .has-sub > .nav-link .caret { display: none; }
  .has-sub > .nav-link { padding-bottom: 6px; }
  .sub-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: block;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 14px 16px;
    margin-bottom: 2px;
    border-left: 1px solid var(--rule-soft);
  }
  .sub-nav a { padding: 8px 0; font-size: 15px; }
  .sub-nav a:hover { background: transparent; padding-left: 6px; }
  .main-nav .btn { margin-top: 20px; width: 100%; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
  }
  .nav-toggle span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.nav-locked { overflow: hidden; }
}

/* ---------- Hero (slajd 11) ---------- */
.hero { overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero-copy .lead { max-width: 52ch; margin: 28px 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

.hero-panel {
  position: relative;
  background: var(--sage);
  min-height: clamp(380px, 46vw, 560px);
  overflow: hidden;
}
.hero-panel .watermark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(280px, 34vw, 460px);
  line-height: .82;
  letter-spacing: -.05em;
  color: var(--ivory);
  opacity: .09;
  pointer-events: none;
  user-select: none;
}
.hero-panel .watermark .pt { color: var(--champagne); opacity: .8; font-style: normal; }
.hero-panel .frame {
  position: absolute;
  inset: 22px;
  border: 1px solid var(--rule-light-soft);
  pointer-events: none;
}
.hero-quote {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 78%;
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 40px);
}
.hero-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.5;
}
.hero-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .65;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 340px; }
}

/* hero load animation (strona główna + page-hero podstron) */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-stagger], .page-hero [data-stagger] { opacity: 0; transform: translateY(26px); animation: heroIn .9s var(--ease) forwards; }
  .hero [data-stagger="1"], .page-hero [data-stagger="1"] { animation-delay: .05s; }
  .hero [data-stagger="2"], .page-hero [data-stagger="2"] { animation-delay: .18s; }
  .hero [data-stagger="3"], .page-hero [data-stagger="3"] { animation-delay: .32s; }
  .hero [data-stagger="4"], .page-hero [data-stagger="4"] { animation-delay: .46s; }
  .hero [data-stagger="5"], .page-hero [data-stagger="5"] { animation-delay: .55s; }
  .hero .eyebrow::before, .page-hero .eyebrow::before { transform: scaleX(0); animation: lineIn .8s var(--ease) .5s forwards; }
}
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes lineIn { to { transform: scaleX(1); } }

/* ---------- Sekcje ---------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section + .section { padding-top: 0; }
.section-grid {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) 2.3fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.section-head { position: sticky; top: 110px; }
@media (max-width: 760px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-head { position: static; }
}
.section-body h2, .section-body h3 { margin-bottom: 22px; }
.section-body .body-serif + .body-serif { margin-top: 18px; }
.rule-top { border-top: 1px solid var(--rule); padding-top: clamp(28px, 4vw, 48px); }

/* tinted / dark sections */
.tint { background: linear-gradient(180deg, var(--ivory-2), var(--ivory-3)); }
.on-dark { background: var(--sage); color: var(--ivory); }
.on-dark .lead, .on-dark .body-serif { color: rgba(245,241,234,.85); }
.on-dark.ink { background: var(--ink); }

/* Kompaktowe sekcje CTA przed stopką (wyższa specyficzność niż .section + .section) */
.section.on-dark.ink {
  padding-top: clamp(44px, 5.5vw, 72px);
  padding-bottom: clamp(44px, 5.5vw, 72px);
}

/* ---------- Listy usług (slajd 13) ---------- */
.service-list { border-top: 1px solid var(--rule-soft); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: padding-left .25s var(--ease), background-color .25s ease;
}
a.service-row:hover { padding-left: 14px; background: rgba(228,219,200,.35); }
.service-row .name { font-family: var(--font-serif); font-size: clamp(18px, 2vw, 22px); line-height: 1.35; }
.service-row .meta { font-family: var(--font-serif); font-style: italic; font-size: 15px; opacity: .55; text-align: right; }
@media (max-width: 600px) {
  .service-row { grid-template-columns: 1fr; gap: 4px; }
  .service-row .meta { text-align: left; }
}
.on-dark .service-list, .on-dark .service-row { border-color: var(--rule-light-soft); }
.on-dark a.service-row:hover { background: rgba(245,241,234,.06); }

/* 3 kolumny usług z pionowymi liniami */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.cols-3 > div { padding: 8px clamp(20px, 3vw, 44px); border-left: 1px solid var(--rule-soft); }
.cols-3 > div:first-child { border-left: 0; padding-left: 0; }
.cols-3 .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--champagne);
  display: block;
  margin-bottom: 14px;
}
.cols-3 h3 { margin-bottom: 14px; }
.cols-3 p { font-size: 14px; color: var(--ink-2); }
.cols-3 .text-link { margin-top: 22px; }
@media (max-width: 820px) {
  .cols-3 { grid-template-columns: 1fr; gap: 36px; }
  .cols-3 > div { border-left: 0; padding: 0; border-top: 1px solid var(--rule-soft); padding-top: 28px; }
  .cols-3 > div:first-child { border-top: 0; padding-top: 0; }
}

/* ---------- Cytat (slajd 14) ---------- */
.quote-block { text-align: center; max-width: 880px; margin: 0 auto; }
.quote-block blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.quote-block .attribution {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .7;
}
.quote-block .attribution::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* ---------- Statystyki ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: clamp(26px, 3.4vw, 44px) clamp(16px, 2.6vw, 40px);
  border-left: 1px solid var(--rule-soft);
}
.stat:first-child { border-left: 0; }
.stat .value {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.stat .value sup { font-size: .45em; color: var(--champagne); font-style: normal; }
.stat .desc { margin-top: 12px; font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); opacity: .75; }
@media (max-width: 820px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
}

/* ---------- Opinie Google ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.review {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 3.6vw, 48px) clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--rule-soft);
}
.review:first-child { border-left: 0; }
.review .stars { color: var(--champagne); font-size: 13px; letter-spacing: .35em; }
.review p { font-family: var(--font-serif); font-style: italic; font-size: 18px; line-height: 1.6; flex: 1; }
.review cite { font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; opacity: .65; }
@media (max-width: 820px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .review:first-child { border-top: 0; }
}

/* ---------- CTA section ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 760px; margin: 0 auto 20px; }
.cta-band .lead { max-width: 56ch; margin: 0 auto 40px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Page hero (podstrony) ---------- */
.page-hero { padding-top: clamp(40px, 5.5vw, 72px); padding-bottom: clamp(32px, 5vw, 60px); }
.page-hero .lead { max-width: 64ch; margin-top: 22px; }

/* grid hero podstron: treść + panel kontaktowy po prawej */
.ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 880px) {
  .ph-grid { grid-template-columns: 1fr; }
  .hero-aside { max-width: 440px; }
}
.hero-aside { border-top: 1px solid var(--rule); }
.ha-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--rule-soft);
}
.ha-k {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sage);
  white-space: nowrap;
}
.ha-v { font-family: var(--font-serif); font-size: 17px; line-height: 1.35; text-align: right; }
a.ha-v { transition: color .2s ease; }
a.ha-v:hover { color: var(--sage); }
.hero-aside .btn { width: 100%; margin-top: 18px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .6;
}
.breadcrumbs a:hover { color: var(--sage); }
.breadcrumbs .sep { color: var(--champagne); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--rule); }
.accordion-item { border-bottom: 1px solid var(--rule-soft); }
.accordion-trigger {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  transition: color .2s ease;
}
.accordion-trigger:hover { color: var(--sage); }
.accordion-trigger .q {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.3;
}
.accordion-trigger .idx {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--champagne);
  flex: none;
  width: 34px;
}
.accordion-trigger .sign {
  flex: none;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  color: var(--sage);
  transition: transform .3s var(--ease);
}
.accordion-item.is-open .accordion-trigger .sign { transform: rotate(45deg); }
.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease);
}
.accordion-content { padding: 2px 0 32px 34px; max-width: 70ch; }
.accordion-content p, .accordion-content li { font-family: var(--font-serif); font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.accordion-content p + p, .accordion-content ul { margin-top: 14px; }
.accordion-content ul li { padding-left: 22px; position: relative; margin-top: 8px; }
.accordion-content ul li::before { content: "·"; position: absolute; left: 4px; color: var(--champagne); font-weight: 700; }
@media (max-width: 600px) { .accordion-content { padding-left: 0; } }

/* ---------- Editorial list (i. ii. iii.) ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.step:first-child { border-top: 1px solid var(--rule); }
.step .n {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--champagne);
  line-height: 1.1;
}
.step h3 { margin-bottom: 10px; font-size: clamp(20px, 2.2vw, 26px); }
.step p { font-family: var(--font-serif); font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 66ch; }
.step ul { margin-top: 12px; }
.step ul li { font-family: var(--font-serif); font-size: 16.5px; color: var(--ink-2); padding-left: 22px; position: relative; margin-top: 7px; }
.step ul li::before { content: "·"; position: absolute; left: 4px; color: var(--champagne); font-weight: 700; }
@media (max-width: 540px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Checklist (dwie kolumny serif) ---------- */
.check-cols { columns: 2; column-gap: clamp(28px, 4vw, 64px); }
.check-cols li {
  break-inside: avoid;
  font-family: var(--font-serif);
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.check-cols li::before { content: "—"; position: absolute; left: 0; color: var(--champagne); }
@media (max-width: 700px) { .check-cols { columns: 1; } }

/* ---------- Zespół ---------- */
.team-featured {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .team-featured { grid-template-columns: 1fr; } }
.team-featured .photo { aspect-ratio: 4 / 5; }
.monogram-feat {
  aspect-ratio: 4 / 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory-2);
  border: 1px solid var(--sage);
  color: var(--sage);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(58px, 8.5vw, 116px);
  letter-spacing: .02em;
  position: relative;
}
.monogram-feat::after {
  content: "";
  position: absolute;
  right: 16px; bottom: 16px;
  width: 7px; height: 7px;
  background: var(--champagne);
  border-radius: 50%;
}
.team-featured .lead-bio { font-family: var(--font-serif); font-size: clamp(16.5px, 1.8vw, 19px); line-height: 1.75; color: var(--ink-2); }
.team-featured .lead-bio + .lead-bio { margin-top: 16px; }

.member-role {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 10px 0 18px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag-chip {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 7px 13px;
  border: 1px solid var(--rule);
  white-space: nowrap;
}
.team-quote {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.4;
  color: var(--ink);
}
.team-quote em { color: var(--sage); }

/* grupy zespołu wg specjalizacji */
.team-group + .team-group { margin-top: clamp(40px, 5.5vw, 76px); }
.team-group-head { margin-bottom: clamp(14px, 2.4vw, 28px); align-items: start; }
.team-group-head .section-label { white-space: normal; line-height: 1.6; }
.team-group-head h3 { font-size: clamp(22px, 2.6vw, 30px); margin-top: -0.12em; }

/* lista członków zespołu */
.team-grid { margin-top: clamp(8px, 1.5vw, 20px); }
.member {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 3.6vw, 46px) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.member:first-child { border-top: 1px solid var(--rule); }
.monogram {
  width: 72px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sage);
  color: var(--sage);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 27px;
  letter-spacing: .02em;
  position: relative;
}
.monogram::after {
  content: "";
  position: absolute;
  right: 7px; bottom: 7px;
  width: 4px; height: 4px;
  background: var(--champagne);
  border-radius: 50%;
}
.member h3 { margin-bottom: 2px; }
.member .member-role { margin: 8px 0 16px; }
.member .bio { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.72; color: var(--ink-2); max-width: 62ch; }
.member .tags { margin-top: 18px; }
@media (max-width: 560px) {
  .member { grid-template-columns: 1fr; gap: 14px; }
  .monogram { width: 60px; height: 70px; font-size: 23px; }
}

/* ---------- Cennik ---------- */
.price-group { margin-top: clamp(40px, 5vw, 64px); }
.price-group:first-of-type { margin-top: 0; }
.price-group .group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.price-row .name { font-family: var(--font-serif); font-size: clamp(17px, 1.9vw, 20px); }
.price-row .name small { display: block; font-family: var(--font-sans); font-size: 12px; opacity: .6; margin-top: 3px; }
.price-row .price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(17px, 1.9vw, 20px);
  white-space: nowrap;
}
.price-row .price.free { color: var(--sage); }
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--ivory-2);
  border-left: 2px solid var(--champagne);
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px);
}
.notice .mark { font-family: var(--font-serif); font-style: italic; font-size: 26px; color: var(--sage); line-height: 1; }
.notice p { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Aktualności ---------- */
.news-list { border-top: 1px solid var(--rule); }
.news-item {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: clamp(20px, 3.4vw, 56px);
  align-items: baseline;
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color .25s ease;
}
.news-item .date {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage);
}
.news-item h3 { margin-bottom: 10px; }
.news-item p { font-family: var(--font-serif); font-size: 17px; color: var(--ink-2); max-width: 64ch; }
.news-item .tag { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--champagne); white-space: nowrap; }
@media (max-width: 760px) {
  .news-item { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { padding: 22px 0; border-bottom: 1px solid var(--rule-soft); }
.contact-item:first-child { border-top: 1px solid var(--rule); }
.contact-item .k { font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.contact-item .v { font-family: var(--font-serif); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; }
.contact-item .v a { transition: color .2s ease; }
.contact-item .v a:hover { color: var(--sage); }

/* formularz */
.form-field { margin-bottom: 26px; }
.form-field label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 12px 2px;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-bottom-color: var(--sage);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(28,28,28,.35); font-style: italic; }
.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin: 30px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.form-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--sage); }
.form-note { font-size: 12px; opacity: .6; margin-top: 18px; }
.form-status { margin-top: 22px; font-family: var(--font-serif); font-style: italic; font-size: 18px; display: none; }
.form-status.ok { display: block; color: var(--sage); }
.form-status.err { display: block; color: #8a3030; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.map-frame {
  border: 1px solid var(--rule-soft);
  filter: grayscale(1) sepia(.14) contrast(.96);
  aspect-ratio: 4 / 3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--ivory); }
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 3.5vw, 52px);
  padding-top: clamp(32px, 3.8vw, 48px);
  padding-bottom: clamp(24px, 3vw, 36px);
}
.footer-lockup .brand { font-size: 34px; color: var(--ivory); }
.footer-lockup .lockup-rule { width: 160px; height: 1px; background: rgba(245,241,234,.32); margin: 14px 0 11px; }
.footer-lockup .lockup-sub { font-size: 10px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; opacity: .78; }
.footer-lockup .lockup-city { font-size: 9px; font-weight: 500; letter-spacing: .6em; text-transform: uppercase; color: var(--champagne); margin-top: 8px; }
.footer-col .label { color: var(--champagne); display: block; margin-bottom: 13px; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col a { font-size: 13.5px; opacity: .8; transition: opacity .2s ease, color .2s ease; }
.footer-col a:hover { opacity: 1; color: var(--champagne-2); }
.footer-col address { font-style: normal; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.8; opacity: .85; }
.footer-col address a:hover { color: var(--champagne-2); }
.footer-bottom {
  border-top: 1px solid rgba(245,241,234,.14);
  padding-top: 20px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
}
.footer-bottom a { border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease; }
.footer-bottom a:hover { color: var(--champagne-2); border-color: var(--champagne-2); }
@media (max-width: 820px) {
  .footer-main { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- Zdjęcia ---------- */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--ivory-3);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.2s var(--ease);
}
.photo:hover img { transform: scale(1.05); }
.photo .ph-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(245,241,234,.4);
  pointer-events: none;
  z-index: 2;
}
.photo.r34 { aspect-ratio: 3 / 4; }
.photo.r45 { aspect-ratio: 4 / 5; }
.photo.r11 { aspect-ratio: 1 / 1; }
.photo.banner { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .photo.banner { aspect-ratio: 4 / 3; } }
.ph-cap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .55;
}
.ph-cap::before { content: ""; width: 24px; height: 1px; background: var(--champagne); }

/* clip-path reveal zdjęć */
@media (prefers-reduced-motion: no-preference) {
  .img-reveal { clip-path: inset(14% 0 0 0); opacity: 0; transition: clip-path 1.1s var(--ease), opacity .8s ease; }
  .img-reveal.is-in { clip-path: inset(0 0 0 0); opacity: 1; }
  .img-reveal img { transform: scale(1.09); transition: transform 1.5s var(--ease); }
  .img-reveal.is-in img { transform: scale(1.001); }
  .img-reveal.is-in:hover img { transform: scale(1.05); }
}

/* hero — zdjęcie z powolnym zoomem przy wejściu */
.hero-panel .photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-panel .photo-img { transform: scale(1.09); animation: heroZoom 2.4s var(--ease) .25s forwards; }
}
@keyframes heroZoom { to { transform: scale(1); } }

/* ---------- Galeria editorial (kolaż z offsetami) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2.2vw, 30px);
  align-items: start;
}
.gallery .g1 { grid-column: 1 / span 5; }
.gallery .g2 { grid-column: 6 / span 4; margin-top: clamp(44px, 7vw, 110px); }
.gallery .g3 { grid-column: 10 / span 3; margin-top: clamp(20px, 3.4vw, 56px); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .g1 { grid-column: 1 / -1; }
  .gallery .g2 { grid-column: 1 / 2; margin-top: 0; }
  .gallery .g3 { grid-column: 2 / 3; margin-top: clamp(28px, 8vw, 56px); }
}

/* ---------- Siatka kafli ze zdjęciami gabinetów ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.2vw, 28px);
}
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tiles .photo { aspect-ratio: 4 / 5; }

/* ---------- Marquee specjalizacji ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: clamp(16px, 2vw, 26px) 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 44s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.marquee-track > div { display: flex; flex: none; }
.marquee span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink-2);
  padding-right: 22px;
}
.marquee span::after {
  content: "·";
  color: var(--champagne);
  font-style: normal;
  padding-left: 22px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pasek postępu scrolla ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: var(--champagne);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Maskowane odsłanianie nagłówków (split words) ---------- */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
@media (prefers-reduced-motion: no-preference) {
  .split .wi {
    display: inline-block;
    transform: translateY(118%);
    animation: wordUp .85s var(--ease) forwards;
    animation-delay: calc(var(--wd, 0) * 60ms + .12s);
  }
}
@keyframes wordUp { to { transform: none; } }

/* ---------- Mega typografia (wypełniona, scroll-driven) ---------- */
.mega { overflow: hidden; }
.mega .mega-line {
  display: inline-block;
  white-space: nowrap;
  padding-left: var(--pad);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(52px, 9.5vw, 144px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  will-change: transform;
  user-select: none;
}
.mega .mega-line i { font-style: normal; color: var(--champagne); }
.section.mega { padding-bottom: clamp(36px, 6vw, 80px); }

/* ---------- Magnetyczne przyciski + feedback wciśnięcia ---------- */
.btn {
  will-change: transform;
  transform: translate(var(--mx, 0), var(--my, 0)) scale(var(--press, 1));
  transition: background-color .2s ease, color .2s ease, transform .25s var(--ease);
}
.btn:active { --press: .97; transition-duration: .2s, .2s, .1s; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .07s; }
  .reveal[data-delay="2"] { transition-delay: .14s; }
  .reveal[data-delay="3"] { transition-delay: .21s; }
}

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.divider-dot { color: var(--champagne); margin: 0 10px; }
.page-section-anchor { scroll-margin-top: 110px; }

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
}
