/* Sztuka Harmonii — „Cisza nad zatoką”
   Chłodna biel, głęboki granat, cienka złota linia i łuk jako jedyny ornament. */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #15303d;
  --muted: #5a6b73;
  --accent: #1f5a6b;
  --gold: #c9a96a;
  --mist: #e7edec;
  --line: rgba(21, 48, 61, 0.16);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --gap: clamp(56px, 9vw, 120px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  padding-bottom: 76px; /* miejsce na stały pasek „Zadzwoń” na telefonie */
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6.2vw, 5.25rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: 0; }

p { max-width: 64ch; }
p + p { margin-top: 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; color: #fff; }

.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Nagłówek ---------- */

.topline { border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.topline-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topline a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap;
  padding-block: 8px;
}
.topline a:hover { text-decoration: underline; }
.topline .hours { display: none; }

.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 14px; }
.brand { display: block; color: var(--ink); line-height: 0; }
.brand svg { width: 190px; height: auto; display: block; }

.menu-btn {
  margin-left: auto;
  font: 500 1rem var(--sans); color: var(--ink);
  background: none; border: 1px solid var(--ink); border-radius: 999px;
  padding: 9px 18px; min-height: 44px; cursor: pointer;
}
.menu-btn[hidden] { display: none; }

.nav { flex-basis: 100%; }
.nav ul { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.nav a {
  display: block; padding: 13px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
.js .nav { display: none; }
.js .nav.open { display: block; }
.bar-cta { display: none; }

.brand { order: 0; }
.bar-cta { order: 1; }
.menu-btn { order: 2; }
.nav { order: 3; }

@media (min-width: 620px) {
  .topline .hours { display: inline; }
}

@media (min-width: 760px) {
  .bar-cta { display: inline-flex; margin-left: auto; }
  .menu-btn { margin-left: 0; }
}

@media (min-width: 1080px) {
  .bar { flex-wrap: nowrap; padding-block: 22px; gap: 32px; }
  .brand svg { width: 220px; }
  .menu-btn { display: none !important; }
  .nav, .js .nav { display: block; flex: 1 1 auto; }
  .nav ul { flex-direction: row; justify-content: center; gap: clamp(18px, 2.2vw, 34px); border: 0; }
  .nav a { border: 0; padding: 10px 0; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); padding-left: 0; }
  .nav { order: 1; }
  .bar-cta { order: 2; margin-left: 0; }
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 28px;
  border: 1px solid var(--ink); border-radius: 999px;
  font: 700 1.0625rem/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 46px; padding: 8px 22px; font-size: 1rem; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
@media (min-width: 560px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Łuk ---------- */

.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px 0 0;
  aspect-ratio: 4 / 5; background: var(--mist);
}
.arch img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.84) contrast(1.02) brightness(1.02);
}
.arch::after { /* lekkie chłodne tonowanie */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--accent); mix-blend-mode: soft-light; opacity: 0.2;
}
.arch-initials {
  display: grid; place-items: center; height: 100%;
  font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--accent);
}

/* ---------- Hero ---------- */

.hero .wrap { display: grid; gap: 40px; padding-top: clamp(28px, 6vw, 88px); }
.hero-sub { margin-top: 20px; font-size: 1.125rem; max-width: 46ch; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; max-width: 44ch; }
.hero-figure { width: min(100%, 300px); margin-inline: auto; }
.hero-arch-frame { position: relative; padding: 12px 12px 0; border-bottom: 1px solid var(--gold); }
.hero-arch-frame::before {
  content: ""; position: absolute; inset: 0 0 0 0;
  border: 1px solid var(--gold); border-bottom: 0; border-radius: 999px 999px 0 0;
}
.hero-figure figcaption { padding-top: 12px; font-size: 0.9375rem; color: var(--muted); }
.hero-figure figcaption strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 110px); align-items: end; }
  .hero-text { padding-bottom: clamp(40px, 6vw, 96px); }
  .hero-sub { font-size: 1.25rem; }
  .hero-figure { width: 100%; max-width: 400px; margin-inline: auto 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .arch { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .hero-arch-frame::before { animation: appear 1.2s ease 0.7s both; }
  @keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Nagłówek podstrony ---------- */

.page-head .wrap { padding-top: clamp(36px, 7vw, 96px); padding-bottom: clamp(36px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); max-width: 16ch; }
.page-head .lede { margin-top: 20px; font-size: 1.1875rem; max-width: 56ch; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 28px; }
.subnav a { color: var(--ink); padding-block: 6px; display: inline-block; }

/* ---------- Sekcje: złota linia zamiast tła ---------- */

.section > .wrap { position: relative; padding-block: var(--gap); }
.section > .wrap::before {
  content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad);
  border-top: 1px solid var(--gold);
}
.section.no-rule > .wrap::before { display: none; }

.split { display: grid; gap: 32px; }
.split-head .lede { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.split-body > * + * { margin-top: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
  .split-body { max-width: 680px; }
}
.split-body.wide { max-width: none; }

.more { margin-top: 28px; }
.more a { font-weight: 700; color: var(--ink); }
.small { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Pas z bezpłatną rozmową ---------- */

.band { position: relative; overflow: hidden; isolation: isolate; background: var(--surface); margin-top: clamp(40px, 6vw, 72px); }
.band-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -2; opacity: 0.34; filter: saturate(0.6) brightness(1.12);
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 55%, rgba(255, 255, 255, 0.45) 100%);
}
.band .wrap { padding-block: clamp(48px, 8vw, 104px); }
.band h2 { max-width: 16ch; }
.band p { margin-top: 18px; max-width: 52ch; }

/* ---------- Lista z ceną po prawej ---------- */

.prices { border-top: 1px solid var(--line); }
.prices li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.p-name { font: 700 1.0625rem/1.35 var(--sans); letter-spacing: 0; }
.p-note { grid-column: 1; font-size: 0.9375rem; color: var(--muted); max-width: 52ch; }
.p-price {
  grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1;
}
.p-price.ask { font-family: var(--sans); font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.price-group + .price-group { margin-top: 56px; }
.price-group h3 { margin-bottom: 14px; font-size: 1.75rem; }

/* ---------- Numerowane listy w łuku: kroki i gabinety ---------- */

.arch-list { counter-reset: n; }
.arch-list > li {
  counter-increment: n;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 6px 22px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.arch-list > li:first-child { border-top: 1px solid var(--line); }
.arch-list > li::before {
  content: counter(n);
  grid-row: 1 / span 3; align-self: start;
  width: 48px; height: 60px; padding-top: 6px;
  display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 24px 24px 0 0;
  font-family: var(--serif); font-size: 1.625rem; font-weight: 600; color: var(--accent);
}
.arch-list > li > * { grid-column: 2; }
.arch-list h3 { font-size: 1.5rem; }
.arch-list address { font-style: normal; font-weight: 700; }
.arch-list p { color: var(--muted); }
.arch-list .tag { color: var(--accent); font-size: 0.9375rem; font-weight: 700; }

/* ---------- Wartości i krótkie bloki ---------- */

.pairs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pairs > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.pairs p, .pairs dd { margin-top: 6px; color: var(--muted); }
.pairs dt { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
@media (min-width: 640px) {
  .pairs { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

.plain-list li { position: relative; padding: 8px 0 8px 22px; }
.plain-list li::before {
  content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; border-top: 1px solid var(--gold);
}

/* ---------- Cytat ---------- */

.creed {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; max-width: 30ch;
  padding-left: 22px; border-left: 1px solid var(--gold);
}

.reviews { display: grid; gap: 40px; }
.review blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.375rem; line-height: 1.4; max-width: 56ch;
}
.review.lead blockquote p { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.32; }
.review figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }
.review figcaption strong { color: var(--ink); }
.review + .review { padding-top: 40px; border-top: 1px solid var(--line); }
.split-body.reviews > * + * { margin-top: 0; }

/* ---------- Portrety ---------- */

.portraits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.intro-photo { max-width: 340px; }

.people { display: grid; gap: 0; border-top: 1px solid var(--line); }
.person {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px;
  padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.person .arch { width: 84px; }
.person h3 { font-size: 1.375rem; }
.person .role { color: var(--accent); font-size: 0.9375rem; font-weight: 500; margin-top: 2px; }
.person .owner { font-size: 0.875rem; color: var(--muted); }
.person dl { margin-top: 10px; font-size: 0.9375rem; }
.person dl div + div { margin-top: 6px; }
.person dt { display: inline; font-weight: 700; }
.person dd { display: inline; color: var(--muted); }
@media (min-width: 560px) {
  .person { grid-template-columns: 112px minmax(0, 1fr); gap: 24px; }
  .person .arch { width: 112px; }
}
@media (min-width: 1000px) {
  .people { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}

/* ---------- Obszary pomocy ---------- */

.topics > div { padding: 14px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.topics dt { font-weight: 700; }
.topics dd { color: var(--muted); font-size: 0.9375rem; margin-top: 2px; }
@media (min-width: 720px) {
  .topics { columns: 2; column-gap: 48px; }
}

.linklist { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.linklist a { display: inline-block; padding-block: 6px; color: var(--ink); }

.tests { border-top: 1px solid var(--line); }
.tests li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.tests b { font-weight: 700; color: var(--ink); }
.topics dt, .pairs dt { color: var(--ink); }
.p-price.ask { white-space: normal; max-width: 8.5em; }
.tests span { color: var(--muted); font-size: 0.9375rem; }
.tests .q { text-align: right; white-space: nowrap; }

/* ---------- Pytania ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 15px; border-top: 1.5px solid var(--accent);
  transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > *:not(summary) { padding: 0 0 20px; color: var(--muted); }
.faq details .topics > div:last-child, .faq details .tests li:last-child { border-bottom: 0; }

/* ---------- Ramka z numerami kryzysowymi ---------- */

.crisis { border: 1px solid var(--ink); background: var(--surface); padding: clamp(22px, 4vw, 36px); border-radius: 4px; }
.crisis h2 { font-size: 1.75rem; }
.crisis p { margin-top: 10px; }
.crisis ul { margin-top: 16px; display: grid; gap: 4px 32px; }
.crisis li { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 6px 0; }
.crisis li a { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; white-space: nowrap; color: var(--ink); }
.crisis li span { font-size: 0.9375rem; }
@media (min-width: 820px) {
  .crisis ul { grid-template-columns: 1fr 1fr; }
}

/* ---------- Kontakt ---------- */

.contact-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-lines > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-lines dt { font-size: 0.9375rem; color: var(--muted); }
.contact-lines dd { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.25; }
.contact-lines dd a { color: var(--ink); text-decoration: none; }
.contact-lines dd a:hover { text-decoration: underline; }
.contact-lines dd.text { font-family: var(--sans); font-size: 1.0625rem; font-weight: 500; line-height: 1.6; }

/* ---------- Stopka ---------- */

.site-footer { background: var(--ink); color: #eef2f1; margin-top: var(--gap); }
.site-footer .wrap { padding-block: clamp(48px, 7vw, 88px) 40px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer :focus-visible { outline-color: var(--gold); }
.site-footer h2 { font-size: 1.5rem; font-weight: 600; color: #fff; }
.site-footer h3 { font: 700 0.9375rem/1.4 var(--sans); color: var(--gold); margin-bottom: 10px; letter-spacing: 0; }

.foot-crisis { border: 1px solid var(--gold); border-radius: 4px; padding: clamp(20px, 3.5vw, 32px); }
.foot-crisis p { margin-top: 8px; color: #cfd9dc; max-width: 70ch; }
.foot-crisis ul { margin-top: 14px; display: grid; gap: 2px 32px; }
.foot-crisis li { display: grid; grid-template-columns: 6.8em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 5px 0; }
.foot-crisis li a { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.foot-crisis li a:hover { text-decoration: underline; }
.foot-crisis li span { font-size: 0.9375rem; color: #cfd9dc; }
@media (min-width: 820px) {
  .foot-crisis ul { grid-template-columns: 1fr 1fr; }
}

.foot-grid { display: grid; gap: 36px; margin-top: 48px; }
.foot-brand svg { width: 210px; height: auto; display: block; color: #fff; }
.foot-brand p { margin-top: 16px; color: #cfd9dc; max-width: 34ch; font-size: 0.9375rem; }
.foot-grid li { padding: 3px 0; font-size: 0.9375rem; }
.foot-grid .big a { font-family: var(--serif); font-size: 1.625rem; font-weight: 600; text-decoration: none; }
.foot-grid .big a:hover { text-decoration: underline; }
.fine { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.875rem; color: #cfd9dc; max-width: none; }
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .foot-grid { grid-template-columns: 1.3fr 1fr 1.2fr 0.9fr; gap: 48px; }
}

/* ---------- Stały pasek „Zadzwoń” na telefonie ---------- */

.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
}
.callbar .btn { min-height: 52px; padding: 8px 12px; font-size: 0.9375rem; gap: 8px; white-space: nowrap; }
.callbar .btn-primary { flex: 1 1 auto; }
.callbar .btn-ghost { flex: 0 0 auto; }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
}

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