/* KUŹNIA Barber Shop - demo dla stronaza1000.pl
   Kierunek: warsztatowy, ciemny, miedziany akcent. Zamiast fotografii: typografia,
   pasy w stylu słupa fryzjerskiego, ziarno i grafika SVG. Zdjęcia klienta wchodzą
   w miejsce bloków .hero-bg i sekcji galerii bez zmian w układzie. */

:root {
  --bg: #14110f;
  --bg-2: #1b1714;
  --surface: #211c18;
  --ink: #f4ede3;
  --muted: #a2968a;
  --line: #2e2721;
  --copper: #d97534;
  --copper-soft: #e8823f;
  --brass: #c9973f;
  --ok: #6fbf8b;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand span, .step-num, .ticket-num, .big-phone, .strip b {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

a { color: inherit; }

/* Ziarno na całej stronie - daje wrażenie druku zamiast płaskiego ekranu */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--copper); color: #170d06; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* --- Pasek demo -------------------------------------------------------- */

.demo-flag {
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center;
  align-items: baseline;
  background: var(--copper);
  color: #1a0e05;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  text-align: center;
}
.demo-flag a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Nawigacja ---------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(20, 17, 15, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--copper); flex: none; }
.brand span { font-size: 19px; letter-spacing: 0.01em; display: flex; flex-direction: column; }
.brand em {
  font-family: var(--font-body); font-style: normal; font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
  cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: #180d05; }
.btn-primary:hover { background: #e8823f; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper); }
.btn-call { border-color: var(--line); color: var(--ink); padding: 10px 18px; }
.btn-call:hover { border-color: var(--copper); color: var(--copper); }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px);
}

/* Warstwa tła: siatka punktów + miedziana poświata. Tu wchodzi zdjęcie klienta. */
.hero-bg {
  position: absolute; inset: -10% -20% 0 -20%;
  z-index: -1;
  background:
    radial-gradient(560px 340px at 22% 18%, rgba(217, 117, 52, .20), transparent 70%),
    radial-gradient(420px 300px at 82% 72%, rgba(201, 151, 63, .12), transparent 70%),
    radial-gradient(circle at center, rgba(244, 237, 227, .055) 1px, transparent 1.4px) 0 0 / 26px 26px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.eyebrow {
  font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 18px; font-weight: 600;
}

.hero h1 {
  font-size: clamp(46px, 8.2vw, 92px);
  margin: 0 0 22px;
}
.hero h1 em {
  font-family: var(--font-body); font-style: italic; font-weight: 400;
  font-size: 0.42em; letter-spacing: 0; color: var(--muted);
  display: inline-block; transform: translateY(-0.35em);
}

/* Podkreślenie pisane ręką, nie prostokątem */
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.28em;
  background: var(--copper); opacity: .85; z-index: -1;
  transform: skewX(-12deg) rotate(-1.2deg);
}

.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 52ch; margin: 0 0 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.status-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--muted); background: rgba(33, 28, 24, .6);
}
.status-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none;
}
.status-chip.open .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(111, 191, 139, .18); }
.status-chip.open { color: var(--ink); }

/* Bilet z cennikiem - motyw kwitka z zakładu */
.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  --notch: 13px;
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%, 0 100%
  );
}
.ticket::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(
    135deg, var(--copper) 0 10px, #f4ede3 10px 20px, #2b6b7d 20px 30px
  );
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 14px;
  font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.ticket-num { font-size: 26px; letter-spacing: 0; color: var(--copper); }
.ticket-list { list-style: none; margin: 0; padding: 0; }
.ticket-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(46, 39, 33, .7); font-size: 15px;
}
.ticket-list li:last-child { border-bottom: 0; }
.ticket-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Słup fryzjerski jako pionowy pasek na krawędzi ekranu */
.pole {
  position: absolute; right: 0; top: 12%; bottom: 12%; width: 10px;
  background: repeating-linear-gradient(
    180deg, var(--copper) 0 22px, #f4ede3 22px 44px, #2b6b7d 44px 66px
  );
  background-size: 100% 66px;
  animation: pole 5.5s linear infinite;
  opacity: .55;
  border-radius: 6px 0 0 6px;
}
@keyframes pole { to { background-position: 0 66px; } }

/* --- Pasek liczb -------------------------------------------------------- */

.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.strip div {
  padding: 26px clamp(14px, 3vw, 30px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.strip div:last-child { border-right: 0; }
.strip b { font-size: clamp(22px, 3vw, 30px); color: var(--copper); }
.strip span { font-size: 13.5px; color: var(--muted); }

/* --- Sekcje ------------------------------------------------------------- */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px);
}
.section-alt {
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: var(--wrap); margin-inline: auto; }

.section-head { margin-bottom: clamp(32px, 5vw, 52px); max-width: 62ch; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 50px); margin: 0 0 14px; }
.section-lede { color: var(--muted); margin: 0; font-size: 17px; }

/* --- Cennik w formie karty dań ------------------------------------------ */

.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu li {
  display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start;
  padding: 22px clamp(14px, 2.5vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, background .2s;
}
.menu li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.menu li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.menu li:hover { border-color: var(--copper); transform: translateX(4px); background: #251f1a; }
.menu li.featured { background: linear-gradient(100deg, #2a201a, var(--surface) 60%); }
.menu li.featured .menu-icon svg { color: var(--brass); }

.menu-icon svg {
  width: 34px; height: 34px; color: var(--copper);
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.menu-body h3 {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 19px; margin: 0 0 6px; font-weight: 600;
}
.menu-body h3 b { font-family: var(--font-display); color: var(--copper); white-space: nowrap; }
.dots { flex: 1; border-bottom: 1px dotted #4a4038; transform: translateY(-4px); }
.menu-body p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- Kroki -------------------------------------------------------------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px;
}
.steps li { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.steps li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 2px;
  background: var(--copper);
}
.step-num { font-size: 13px; color: var(--copper); letter-spacing: .2em; }
.steps h3 { font-size: 20px; margin: 8px 0 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* --- Opinie ------------------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
blockquote {
  margin: 0; padding: 28px 26px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  position: relative;
}
blockquote::before {
  content: "\201E"; position: absolute; top: -14px; left: 18px;
  font-family: var(--font-display); font-size: 68px; color: var(--copper); opacity: .5;
}
blockquote p { margin: 0 0 16px; font-size: 16px; }
blockquote cite {
  font-style: normal; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.quotes blockquote:nth-child(2) { transform: rotate(-.5deg); }
.quotes blockquote:nth-child(3) { transform: rotate(.4deg); }

/* --- Kontakt ------------------------------------------------------------ */

.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(30px, 5vw, 64px); align-items: start;
}
.contact h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 22px; }

.big-phone {
  display: inline-block; font-size: clamp(34px, 5vw, 52px); color: var(--copper);
  text-decoration: none; margin-bottom: 18px; letter-spacing: -0.03em;
}
.big-phone:hover { text-decoration: underline; text-underline-offset: 6px; }

address { font-style: normal; color: var(--muted); margin-bottom: 26px; font-size: 16px; }

.hours { width: 100%; border-collapse: collapse; margin-bottom: 18px; max-width: 380px; }
.hours th, .hours td { text-align: left; padding: 8px 0; font-weight: 400; font-size: 15px; }
.hours th { color: var(--muted); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr { border-bottom: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 0; }
.hours .closed { color: #8b7f74; }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 600; }
.hours tr.today th::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper); margin-right: 8px; vertical-align: middle;
}

.muted { color: var(--muted); font-size: 14.5px; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.contact-form h3 { font-size: 22px; margin: 0 0 6px; }
.contact-form .muted { margin: 0 0 20px; }
.contact-form label {
  display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.contact-form input, .contact-form select {
  display: block; width: 100%; margin-top: 7px;
  background: #17130f; border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink); padding: 12px 14px; font: inherit; font-size: 16px;
  text-transform: none; letter-spacing: 0;
}
.contact-form input:focus, .contact-form select:focus {
  outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(217, 117, 52, .16);
}
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--ok); }

/* --- Stopka ------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(16px, 4vw, 40px) 96px;
  text-align: center; color: var(--muted); font-size: 14.5px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink);
  margin-bottom: 14px;
}
.footer-brand span { font-family: var(--font-display); font-size: 17px; display: flex; flex-direction: column; }
.footer-brand em {
  font-family: var(--font-body); font-style: normal; font-size: 10px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.footer p { margin: 6px 0; }
.footer a { color: var(--copper); }
.footer-demo { margin-top: 20px !important; font-size: 13.5px; opacity: .85; }

/* Pasek telefonu na telefonach - najkrótsza droga do konwersji */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--copper); color: #180d05; font-weight: 700;
  padding: 15px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .8);
}
.callbar svg { width: 19px; height: 19px; }

/* --- Wejście sekcji ----------------------------------------------------- */

.reveal { animation: rise .7s cubic-bezier(.2, .7, .3, 1) backwards; animation-delay: var(--d, 0s); }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .pole { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsywność ------------------------------------------------------ */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .ticket { max-width: 460px; }
  .pole { display: none; }
  .nav-links { display: none; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(2) { border-right: 0; }
  .strip div:nth-child(1), .strip div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn-call span { display: none; }
  .callbar { display: flex; }
  .footer { padding-bottom: 96px; }
  .menu li { grid-template-columns: 40px 1fr; gap: 14px; }
  .menu-icon svg { width: 28px; height: 28px; }
  .menu-body h3 { flex-wrap: wrap; }
  .dots { display: none; }
}


:root {
  --sub-surface: var(--surface);
  --sub-ink: var(--ink);
  --sub-muted: var(--muted);
  --sub-line: var(--line);
  --sub-accent: var(--copper);
  --sub-display: var(--font-display);
  --sub-radius: 14px;
}


:root {
  --sub-surface: var(--surface);
  --sub-ink: var(--ink);
  --sub-muted: var(--muted);
  --sub-line: var(--line);
  --sub-accent: var(--copper);
  --sub-display: var(--font-display);
  --sub-radius: 14px;
}

/* Nagłówek podstrony: ta sama miedziana poświata i pas jak na stronie głównej */
.page-hero {
  background:
    radial-gradient(680px 300px at 20% 0%, rgba(217, 117, 52, .18), transparent 70%),
    radial-gradient(circle at center, rgba(244, 237, 227, .05) 1px, transparent 1.4px) 0 0 / 26px 26px,
    var(--bg-2);
}
.page-hero-decor::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(
    135deg, var(--copper) 0 10px, #f4ede3 10px 20px, #2b6b7d 20px 30px);
  opacity: .75;
}


:root {
  --sub-surface: var(--surface);
  --sub-ink: var(--ink);
  --sub-muted: var(--muted);
  --sub-line: var(--line);
  --sub-accent: var(--copper);
  --sub-display: var(--font-display);
  --sub-radius: 14px;
}

/* Nagłówek podstrony: ta sama miedziana poświata i pas jak na stronie głównej */
.page-hero {
  background:
    radial-gradient(680px 300px at 20% 0%, rgba(217, 117, 52, .18), transparent 70%),
    radial-gradient(circle at center, rgba(244, 237, 227, .05) 1px, transparent 1.4px) 0 0 / 26px 26px,
    var(--bg-2);
}
.page-hero-decor::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(
    135deg, var(--copper) 0 10px, #f4ede3 10px 20px, #2b6b7d 20px 30px);
  opacity: .75;
}


/* === Podstrony (generowane przez build_pages.py) =========================
   Zasada: podstrona ma wyglądać jak ta sama witryna co strona główna, a nie jak
   dokument tekstowy. Stąd pełnoszerokościowy nagłówek z dekoracją danego demo,
   wyraźna hierarchia typograficzna i karty zamiast surowych list. */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--sub-line);
  padding: clamp(26px, 4vw, 44px) 0 clamp(30px, 4.5vw, 52px);
  margin-bottom: clamp(30px, 4vw, 54px);
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 1120px; margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.page-hero h1 {
  font-family: var(--sub-display);
  font-size: clamp(31px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  max-width: 20ch;
}
.page-hero .page-lead {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--sub-muted);
  max-width: 58ch;
  margin: 0;
}
.page-kicker {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sub-accent); margin: 0 0 14px; font-weight: 600;
}

.crumbs { font-size: 13px; color: var(--sub-muted); margin-bottom: 20px; opacity: .9; }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-color: currentColor; }
.crumbs span { color: var(--sub-accent); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-chips div {
  border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px);
  padding: 10px 18px 11px;
  background: var(--sub-surface);
  min-width: 118px;
}
.hero-chips span {
  display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sub-muted); margin-bottom: 3px;
}
.hero-chips b { font-size: 16.5px; }

.subpage {
  max-width: 1120px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px);
}

/* --- Treść --------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose > p { margin: 0 0 18px; }
.prose > p:first-of-type { font-size: 1.06em; }
.prose h2 {
  font-family: var(--sub-display);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.15; letter-spacing: -0.015em;
  margin: 42px 0 16px; padding-top: 20px;
  border-top: 1px solid var(--sub-line);
  position: relative;
}
.prose h2::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 2px;
  background: var(--sub-accent);
}
.prose h2:first-child { margin-top: 0; }
.post-outro {
  margin-top: 30px; padding: 18px 22px;
  border-left: 3px solid var(--sub-accent);
  background: var(--sub-surface);
  font-style: italic;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq { margin-top: 46px; max-width: 68ch; }
.faq h2 {
  font-family: var(--sub-display); font-size: clamp(21px, 2.4vw, 27px); margin: 0 0 16px;
}
details {
  border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px);
  background: var(--sub-surface);
  margin-bottom: 10px;
  transition: border-color .18s;
}
details:hover { border-color: var(--sub-accent); }
details summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px;
  font-weight: 600; position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; line-height: 1; color: var(--sub-accent); transition: transform .2s;
}
details[open] summary::after { content: "-"; }
.faq-body { padding: 0 20px 18px; }
.faq-body p { margin: 0 0 10px; color: var(--sub-muted); }
.faq-body p:last-child { margin-bottom: 0; }

/* --- Kafle usług i wpisów ------------------------------------------------ */

.tiles, .post-list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.tile, .post-card {
  position: relative; display: block; text-decoration: none;
  background: var(--sub-surface); border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px); padding: 26px 24px 22px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.tile:hover, .post-card:hover { border-color: var(--sub-accent); transform: translateY(-3px); }
.tile-num, .post-num {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--sub-display); font-size: 34px; line-height: 1;
  color: var(--sub-accent); opacity: .28;
}
.tile h3, .post-card h3 {
  font-family: var(--sub-display); font-size: 20px; line-height: 1.2;
  margin: 0 0 10px; padding-right: 42px;
}
.tile p, .post-card p { margin: 0 0 16px; color: var(--sub-muted); font-size: 15px; }
.tile-foot {
  display: flex; align-items: baseline; gap: 10px;
  border-top: 1px solid var(--sub-line); padding-top: 12px;
}
.tile-foot b { font-size: 17px; color: var(--sub-accent); }
.tile-foot i { font-style: normal; font-size: 13.5px; color: var(--sub-muted); }
.read { font-size: 14px; color: var(--sub-accent); font-weight: 600; }

/* --- Zasady i kontakt ---------------------------------------------------- */

.rule-cards, .contact-grid {
  display: grid; gap: 16px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.rule-card, .contact-block {
  background: var(--sub-surface); border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px); padding: 24px;
}
.rule-dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sub-accent); margin-bottom: 14px;
}
.rule-card h3, .contact-block h3 {
  font-family: var(--sub-display); font-size: 18px; margin: 0 0 10px;
}
.rule-card p, .contact-block p { margin: 0 0 8px; color: var(--sub-muted); font-size: 15px; }
.contact-block-main { grid-column: span 1; }
.contact-phone {
  display: inline-block; font-family: var(--sub-display); font-size: 30px;
  color: var(--sub-accent); text-decoration: none; margin: 4px 0 10px;
}
.contact-phone:hover { text-decoration: underline; text-underline-offset: 5px; }
.dim { color: var(--sub-muted); font-size: 14px; }
.dim a { color: var(--sub-accent); text-decoration: none; }

/* --- Wezwanie do kontaktu ------------------------------------------------ */

.cta-box {
  margin-top: 50px; padding: 26px 30px;
  border: 1px solid var(--sub-accent);
  border-radius: var(--sub-radius, 10px);
  background: var(--sub-surface);
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.cta-title { font-family: var(--sub-display); font-size: 21px; margin: 0 0 4px; }
.cta-sub { margin: 0; color: var(--sub-muted); font-size: 15px; }

/* --- Linkowanie krzyżowe ------------------------------------------------- */

.related { margin-top: 54px; }
.related h2 {
  font-family: var(--sub-display); font-size: 20px; margin: 0 0 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--sub-line);
}
.rel-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rel-card {
  display: block; text-decoration: none; padding: 16px 18px;
  border: 1px solid var(--sub-line); border-radius: var(--sub-radius, 10px);
  transition: border-color .18s, transform .18s;
}
.rel-card:hover { border-color: var(--sub-accent); transform: translateX(3px); }
.rel-card span {
  display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sub-accent); margin-bottom: 5px;
}
.rel-card b { font-family: var(--sub-display); font-weight: 600; font-size: 16px; line-height: 1.25; }

@media (max-width: 620px) {
  .cta-box { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-box .btn { width: 100%; }
  .page-hero h1 { max-width: none; }
}


/* --- Układ dwukolumnowy podstrony ---------------------------------------- */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.page-main { min-width: 0; }
.page-main .prose { max-width: 66ch; }

.side { position: sticky; top: 92px; display: grid; gap: 14px; }
.side-box {
  background: var(--sub-surface); border: 1px solid var(--sub-line);
  border-radius: var(--sub-radius, 10px); padding: 20px 22px;
}
.side-box-price { border-color: var(--sub-accent); }
.side-label {
  display: block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sub-muted); margin-bottom: 8px;
}
.side-price {
  font-family: var(--sub-display); font-size: 30px; line-height: 1;
  margin: 0 0 6px; color: var(--sub-accent);
}
.side-time { margin: 0 0 16px; font-size: 14px; color: var(--sub-muted); }
.side-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14.5px; }
.side-list li { padding: 7px 0 7px 18px; position: relative; border-top: 1px solid var(--sub-line); }
.side-list li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--sub-accent);
}
.side-box .btn, .side-box a[class*="btn"] { width: 100%; }
.side-links { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.side-links li { border-top: 1px solid var(--sub-line); }
.side-links li:first-child { border-top: 0; }
.side-links a {
  display: block; padding: 9px 0; text-decoration: none; color: var(--sub-muted);
  transition: color .15s, padding-left .15s;
}
.side-links a:hover { color: var(--sub-accent); padding-left: 5px; }

/* Pierwszy wpis szerszy - siatka nie zostawia wtedy sieroty w ostatnim rzędzie */
.post-card.featured { grid-column: span 2; }
.post-card.featured h3 { font-size: 25px; max-width: 22ch; }
.post-card.featured p { font-size: 16px; max-width: 58ch; }

@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .post-card.featured { grid-column: auto; }
}

/* --- Nawigacja na telefonie ---------------------------------------------
   Podstrony muszą być dostępne także z komórki, dlatego linki nie znikają -
   schodzą pod logo jako przewijalny pasek. Bez hamburgera, bez JS. */
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; row-gap: 10px; padding-bottom: 10px; }
  .nav-links {
    display: flex !important;
    order: 3; width: 100%; margin-left: 0;
    gap: 18px; overflow-x: auto; padding-bottom: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 14.5px; }
}

/* Druga droga do podstron - w stopce, na każdym ekranie */
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  margin: 0 0 16px; padding: 0; list-style: none; font-size: 14.5px;
}
.footer-nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-color: currentColor; }
