/* Studio Wilga - demo dla stronaza1000.pl
   Trzeci kierunek, celowo daleki od dwóch pozostałych: ciepły papier, szeryfowa
   antykwa w nagłówkach, miękkie plamy koloru zamiast krawędzi. Bez zdjęć - rolę
   obrazu przejmuje typografia i płynne kształty w tle. */

:root {
  --cream: #faf5f0;
  --cream-2: #f2e9e1;
  --card: #fffcfa;
  --plum: #3b2135;
  --plum-soft: #6b4a5f;
  --blush: #d99a92;
  --gold: #b08d57;
  --line: #e4d5c9;
  --ok: #4f7d5c;

  --display: "Fraunces", Georgia, serif;
  --body: "Jost", system-ui, sans-serif;
  --wrap: 1120px;

  /* aliasy dla wspólnego arkusza podstron */
  --sub-bg: var(--cream);
  --sub-surface: var(--card);
  --sub-ink: var(--plum);
  --sub-muted: var(--plum-soft);
  --sub-line: var(--line);
  --sub-accent: var(--blush);
  --sub-display: var(--display);
  --sub-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}
a { color: inherit; }

.kicker {
  font-size: 12px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px; font-weight: 400;
}

.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;
}

/* --- Pasek demo --------------------------------------------------------- */

.demo-flag {
  background: var(--plum); color: var(--cream);
  display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center;
  padding: 8px 18px; font-size: 13px; text-align: center; letter-spacing: .01em;
}
.demo-flag a { color: var(--blush); text-decoration: underline; text-underline-offset: 3px; }

/* --- Nawigacja ---------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(16px, 4vw, 44px);
  background: rgba(250, 245, 240, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display); font-size: 21px; text-decoration: none;
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand em {
  font-family: var(--body); font-style: normal; font-weight: 300;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--plum-soft); margin-top: 3px;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a {
  text-decoration: none; color: var(--plum-soft);
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: .2s;
}
.nav-links a:hover { color: var(--plum); border-color: var(--blush); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 400; font-size: 15px; letter-spacing: .04em;
  padding: 12px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--plum); color: var(--cream); }
.btn-solid:hover { background: #4d2c45; }
.btn-line { border-color: var(--plum); color: var(--plum); }
.btn-line:hover { background: var(--plum); color: var(--cream); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(46px, 7vw, 96px) clamp(16px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(30px, 5vw, 64px); align-items: center;
}

/* Miękkie plamy - odpowiednik zdjęcia w tej estetyce */
.petal {
  position: absolute; border-radius: 50%; filter: blur(50px); z-index: -1;
}
.petal-1 {
  width: 460px; height: 380px; top: -60px; left: -120px;
  background: radial-gradient(circle, rgba(217, 154, 146, .45), transparent 70%);
}
.petal-2 {
  width: 420px; height: 420px; right: -100px; bottom: -120px;
  background: radial-gradient(circle, rgba(176, 141, 87, .28), transparent 70%);
}

.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin-bottom: 22px; }
.hero h1 em {
  font-style: italic; color: var(--blush);
}
.lede { color: var(--plum-soft); font-size: clamp(16px, 1.5vw, 19px); max-width: 50ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--plum-soft); margin: 20px 0 0; letter-spacing: .02em; }
.hero-note b { font-weight: 500; color: var(--ok); }

.card-highlight {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 30px 26px; box-shadow: 0 30px 60px -40px rgba(59, 33, 53, .5);
}
.card-kicker {
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 10px;
}
.card-price { font-family: var(--display); font-size: 27px; margin: 0 0 12px; }
.card-price b { font-weight: 600; color: var(--blush); }
.card-desc { color: var(--plum-soft); font-size: 15.5px; margin: 0 0 18px; }
.card-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.card-list li { padding: 7px 0 7px 22px; position: relative; border-top: 1px solid var(--line); }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blush);
}

/* --- Pasek liczb -------------------------------------------------------- */

.band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--cream-2); border-block: 1px solid var(--line);
}
.band div {
  padding: 24px clamp(12px, 3vw, 28px); text-align: center;
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px;
}
.band div:last-child { border-right: 0; }
.band b { font-family: var(--display); font-size: clamp(21px, 2.6vw, 28px); font-weight: 400; }
.band span { font-size: 13px; color: var(--plum-soft); letter-spacing: .04em; }

/* --- Sekcje ------------------------------------------------------------- */

.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(52px, 7vw, 96px) clamp(16px, 4vw, 44px); }
.section-soft {
  max-width: none; background: var(--cream-2);
  border-block: 1px solid var(--line);
}
.section-soft > * { max-width: var(--wrap); margin-inline: auto; }

.sec-head { margin-bottom: clamp(30px, 4vw, 50px); max-width: 58ch; }
.sec-head h2 { font-size: clamp(29px, 4.2vw, 46px); margin-bottom: 14px; }
.sec-head p { color: var(--plum-soft); margin: 0; }

/* --- Cennik zabiegów ---------------------------------------------------- */

.treatments { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.treatments article {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px;
}
.treatments h3 {
  font-size: 22px; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.treatments ul { list-style: none; margin: 0; padding: 0; }
.treatments li {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 9px 0; font-size: 15.5px;
}
.treatments b { font-weight: 500; white-space: nowrap; color: var(--plum); }

/* --- Quiz --------------------------------------------------------------- */

.quiz { display: grid; gap: 26px; max-width: 760px; }
.quiz fieldset { border: 0; margin: 0; padding: 0; }
.quiz legend {
  font-family: var(--display); font-size: 19px; margin-bottom: 12px; padding: 0;
}
.opts { display: flex; flex-wrap: wrap; gap: 9px; }
.opts button {
  font: inherit; font-size: 15px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--plum);
  padding: 10px 18px; border-radius: 999px; transition: .18s;
}
.opts button:hover { border-color: var(--blush); }
.opts button[aria-pressed="true"] {
  background: var(--plum); border-color: var(--plum); color: var(--cream);
}
.quiz-result {
  display: block; background: var(--card); border: 1px solid var(--blush);
  border-radius: 18px; padding: 24px 26px; font-size: 16px;
}
.quiz-result strong { font-family: var(--display); font-weight: 600; font-size: 20px; display: block; margin-bottom: 6px; }
.quiz-result span { color: var(--plum-soft); display: block; margin-top: 10px; font-size: 15px; }

/* --- O mnie ------------------------------------------------------------- */

.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.about-mark {
  font-family: var(--display); font-size: clamp(90px, 13vw, 150px); line-height: .8;
  color: var(--blush); opacity: .55;
}
.about p { color: var(--plum-soft); margin: 0 0 16px; }
.about h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 20px; }
.signature {
  font-family: var(--display); font-style: italic; font-size: 26px;
  color: var(--plum) !important; margin-top: 6px !important;
}

/* --- Opinie ------------------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.quotes blockquote {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 28px 22px; position: relative;
}
.quotes p { margin: 0 0 16px; font-size: 16px; }
.quotes cite {
  font-style: normal; font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}

/* --- Kontakt ------------------------------------------------------------ */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.contact h2 { font-size: clamp(27px, 3.6vw, 40px); margin-bottom: 22px; }
.phone {
  font-family: var(--display); font-size: clamp(32px, 4.6vw, 46px);
  color: var(--blush); text-decoration: none; display: inline-block; margin-bottom: 16px;
}
.phone:hover { color: var(--plum); }
address { font-style: normal; color: var(--plum-soft); margin-bottom: 26px; }

.hours { width: 100%; max-width: 360px; border-collapse: collapse; margin-bottom: 16px; }
.hours th, .hours td { text-align: left; padding: 8px 0; font-weight: 300; font-size: 15px; border-bottom: 1px solid var(--line); }
.hours th { color: var(--plum-soft); }
.hours td { text-align: right; }
.hours .off { color: #a9928f; }
.hours tr.today th, .hours tr.today td { color: var(--plum); font-weight: 500; }
.hours tr.today th::before { content: "◆ "; color: var(--blush); }
.note { font-size: 14.5px; color: var(--plum-soft); }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 34px); }
.form h3 { font-size: 23px; margin-bottom: 6px; }
.form .note { margin: 0 0 20px; }
.form label {
  display: block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--plum-soft); margin-bottom: 16px;
}
.form input, .form select {
  display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 16px;
  padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--cream); color: var(--plum); letter-spacing: 0; text-transform: none;
}
.form input:focus, .form select:focus {
  outline: none; border-color: var(--blush); box-shadow: 0 0 0 3px rgba(217, 154, 146, .22);
}
.form .btn { width: 100%; margin-top: 6px; }
.form-note { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--ok); }

/* --- Stopka ------------------------------------------------------------- */

.footer {
  background: var(--plum); color: var(--cream-2);
  padding: 44px clamp(16px, 4vw, 44px) 92px; text-align: center; font-size: 14.5px;
}
.footer-brand { font-family: var(--display); font-size: 24px; margin: 0 0 10px; }
.footer p { margin: 6px 0; }
.footer a { color: var(--blush); }
.footer-demo { margin-top: 18px !important; font-size: 13px; opacity: .8; }

.callbar {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 60;
  display: none; align-items: center; justify-content: center;
  background: var(--plum); color: var(--cream); padding: 15px;
  border-radius: 999px; text-decoration: none; font-size: 15px; letter-spacing: .04em;
  box-shadow: 0 12px 30px -10px rgba(59, 33, 53, .7);
}

/* --- Responsywność ------------------------------------------------------ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-mark { display: none; }
  .band { grid-template-columns: 1fr 1fr; }
  .band div:nth-child(2) { border-right: 0; }
  .band div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .callbar { display: flex; }
  .nav .btn-solid { padding: 10px 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Nagłówek podstrony: te same miękkie plamy koloru co w hero na stronie głównej */
.page-hero { background: var(--cream-2); border-bottom-color: var(--line); }
.page-hero::before {
  content: ""; position: absolute; width: 420px; height: 340px;
  top: -120px; right: -60px; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle, rgba(217, 154, 146, .42), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero h1 { font-weight: 400; }


/* Nagłówek podstrony: te same miękkie plamy koloru co w hero na stronie głównej */
.page-hero { background: var(--cream-2); border-bottom-color: var(--line); }
.page-hero::before {
  content: ""; position: absolute; width: 420px; height: 340px;
  top: -120px; right: -60px; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle, rgba(217, 154, 146, .42), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero h1 { font-weight: 400; }


/* === 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; }
