@charset "UTF-8";
/* ============================================
   Plik:        style.css
   Projekt:     chp.pl — Ośrodek Chirurgii Plastycznej dr Łątkowski
   Wersja:      1.17.0
   Modyfikacja: 2026-08-01
   Zmiany:      j.w. + reset marginesów lead (.about-text .lead) dla treści z edytora.
   ============================================ */
/* ============================================
   dr Łątkowski — Chirurgia Plastyczna
   Czysty CSS (bez frameworków)
   ============================================ */

:root {
  --background: #f5fafe;
  --foreground: #15403f;
  --card: #ffffff;
  --muted: #eef3f4;
  --muted-foreground: #5a7170;
  --accent: #d3b257;
  --border: #d8e2e2;
  --background-on-dark: #f5fafe;
  --maxw: 1280px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Helpers */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

.serif {
  font-family: var(--font-serif);
}

.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
}

.section {
  padding: 96px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 160px 0;
  }
}

.italic {
  font-style: italic;
}

.accent {
  color: var(--accent);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, height 0.35s ease;
}

/* Stan po scrollu (i na podstronach): jasne tło + ciemna treść */
.site-header.scrolled {
  background: var(--background);
  border-bottom-color: var(--border);
}

/* Desktop: po scrollu smukły pasek 80px + mniejsze logo, treść wyśrodkowana.
   Na mobile bez zmian (logo i tak mniejsze, pasek niski). */
@media (min-width: 768px) {
  .site-header.scrolled {
    height: 80px;
  }
  .site-header.scrolled .header-inner {
    height: 80px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
  }
  .site-header.scrolled .brand-logo {
    height: 44px;
  }
}

/* Mobile (<768px): smukły pasek 60px — logo mniejsze i w jednej linii z napisem */
@media (max-width: 767px) {
  .site-header .header-inner {
    height: 60px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: center;
  }
  .site-header .brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .site-header .brand-logo {
    height: 36px;
  }
  .site-header .brand-name {
    font-size: 1.1rem;
    white-space: nowrap;
  }
}

.site-header .header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 20px;
  color: #fff;
}

@media (min-width: 768px) {
  .site-header .header-inner {
    padding: 28px 40px;
  }
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  transition: color 0.35s ease;
}

/* Logo w nagłówku — zasób jest ciemny (#003333); na stronie głównej
   rozjaśniamy go filtrem, aby działał jak biały tekst pod mix-blend-mode
   nagłówka. Na podstronach filtr jest wyłączany (patrz <style> w <head>). */
.brand-logo {
  height: 90px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease, height 0.35s ease;
}

@media (min-width: 768px) {
  .brand-logo {
    height: 180px;
  }
}

.brand-name {
  line-height: 1;
}

/* Przełączenie kolorów nagłówka po scrollu / na podstronach */
.site-header.scrolled .brand,
.site-header.scrolled .nav a,
.site-header.scrolled .nav-toggle {
  color: var(--foreground);
}
.site-header.scrolled .brand-logo {
  filter: none;
}

@media (min-width: 768px) {
  .brand {
    font-size: 1.5rem;
  }
}

.nav {
  display: none;
  gap: 36px;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  transition: opacity 0.2s, color 0.35s ease;
}

.nav a:hover {
  opacity: 0.6;
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: color 0.35s ease;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--foreground);
  color: var(--background-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
}

.mobile-menu .close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--foreground);
  color: var(--background-on-dark);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--foreground), rgba(21, 64, 63, 0.3) 55%, rgba(21, 64, 63, 0.4));
}

.hero-meta {
  position: absolute;
  top: 112px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(245, 250, 254, 0.7);
}

@media (min-width: 768px) {
  .hero-meta {
    padding: 0 40px;
  }
}

.hero-meta .hide-sm {
  display: none;
}

@media (min-width: 640px) {
  .hero-meta .hide-sm {
    display: block;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 160px 20px 128px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 160px 40px 128px;
  }
}

.hero-content p {
  max-width: 28rem;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: rgba(245, 250, 254, 0.8);
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: 3.75rem;
}

.hero-content h1 span {
  display: block;
}

.hero-content h1 .soft {
  font-style: italic;
  color: rgba(245, 250, 254, 0.6);
}

@media (min-width: 640px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 6rem;
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 7rem;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: none;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(245, 250, 254, 0.6);
}

@media (min-width: 768px) {
  .hero-scroll {
    display: block;
  }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: 20px 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .marquee {
    padding: 28px 0;
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-track span.word {
  padding: 0 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
}

@media (min-width: 768px) {
  .marquee-track span.word {
    font-size: 3rem;
  }
}

.marquee-track span.star {
  color: var(--accent);
  align-self: center;
}

.marquee-item {
  display: flex;
  align-items: center;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ============================================
   GRID / SHARED SECTION HEADERS
   ============================================ */
.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .section-head {
    grid-template-columns: repeat(12, 1fr);
  }
  .section-head .eyebrow {
    grid-column: span 3;
  }
  .section-head h2 {
    grid-column: span 9;
  }
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-head h2 {
    font-size: 3rem;
  }
}

/* ============================================
   MANIFESTO / ABOUT
   ============================================ */
.about {
  background: var(--background);
}

.about-top {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .about-top {
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
  }
  .about-top .eyebrow {
    grid-column: span 3;
  }
  .about-top .about-head {
    grid-column: span 9;
  }
}

.about-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .about-head h2 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .about-head h2 {
    font-size: 3.75rem;
  }
}

.about-body {
  display: grid;
  gap: 32px;
  margin-top: 80px;
}

@media (min-width: 768px) {
  .about-body {
    grid-template-columns: repeat(12, 1fr);
  }
  .about-figure {
    grid-column: span 5;
  }
  .about-text {
    grid-column: 7 / span 6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
  }
}

.figure {
  position: relative;
  overflow: hidden;
  background: var(--muted);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-figure .figure {
  aspect-ratio: 4 / 5;
}

.about-text p.lead {
  font-size: 1.125rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .about-text p.lead {
    font-size: 1.25rem;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stat-value {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: -0.02em;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

/* ============================================
   SERVICES (index list + preview)
   ============================================ */
.services {
  background: var(--foreground);
  color: var(--background-on-dark);
}

.services .eyebrow {
  color: rgba(245, 250, 254, 0.5);
}

.services .section-head h2 {
  color: var(--background-on-dark);
}

.services-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .services-list {
    grid-column: span 7;
  }
  .services-preview {
    grid-column: 9 / span 4;
  }
}

.services-list li {
  border-top: 1px solid rgba(245, 250, 254, 0.15);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.services-list li:last-child {
  border-bottom: 1px solid rgba(245, 250, 254, 0.15);
}

.services-list li.active,
.services-list li:hover {
  opacity: 1;
}

.services-list a {
  display: block;
  padding: 28px 0;
}

.service-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.service-no {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: rgba(245, 250, 254, 0.5);
}

.service-main {
  flex: 1;
}

.service-main h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .service-main h3 {
    font-size: 2.25rem;
  }
}

.service-tags {
  margin-top: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(245, 250, 254, 0.5);
}

.service-summary {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.875rem;
  color: rgba(245, 250, 254, 0.8);
  transition: all 0.3s ease;
}

.services-list li.active .service-summary {
  max-height: 120px;
  opacity: 1;
  margin-top: 16px;
}

.service-arrow {
  align-self: center;
  font-size: 1.125rem;
  color: rgba(245, 250, 254, 0.4);
  transition: transform 0.2s;
}

.services-list a:hover .service-arrow {
  transform: translateX(4px);
}

.services-preview .preview-box {
  position: sticky;
  top: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(245, 250, 254, 0.1);
}

.services-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}

.services-preview img.active {
  opacity: 1;
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  background: var(--background);
}

.process-grid {
  display: grid;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

@media (min-width: 768px) {
  .process-step {
    border-bottom: none;
    padding: 48px 24px 0 0;
  }
}

.process-no {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3.75rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.process-step h3 {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
}

.process-step p {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.quote {
  max-width: 56rem;
  margin: 112px auto 0;
  text-align: center;
}

.quote p {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .quote p {
    font-size: 2.25rem;
  }
}

.quote footer {
  margin-top: 32px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--muted);
}

.testimonials-grid {
  display: grid;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

@media (min-width: 768px) {
  .testimonial {
    border-bottom: none;
    padding: 48px 32px 0 0;
  }
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.testimonial figcaption {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--background);
}

.contact-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .contact-info {
    grid-column: span 5;
  }
  .contact-form-wrap {
    grid-column: 7 / span 6;
  }
}

.contact-info h2 {
  margin-top: 24px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .contact-info h2 {
    font-size: 3.75rem;
  }
}

.contact-info p.desc {
  margin-top: 32px;
  max-width: 24rem;
  color: var(--muted-foreground);
}

.contact-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.contact-list a {
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-list .place {
  color: var(--muted-foreground);
}

.field {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--foreground);
  outline: none;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--border);
}

.field.message {
  border-bottom: 1px solid var(--border);
}

.submit-btn {
  margin-top: 32px;
  width: 100%;
  background: var(--foreground);
  color: var(--background-on-dark);
  border: none;
  padding: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: var(--accent);
}

.form-success {
  display: flex;
  align-items: center;
  min-height: 300px;
  border-top: 1px solid var(--border);
}

.form-success p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  line-height: 1.3;
}

.hidden {
  display: none !important;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  overflow: hidden;
  background: var(--foreground);
  color: var(--background-on-dark);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 20px 0;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 112px 40px 0;
  }
}

.footer-top {
  display: grid;
  gap: 40px;
  border-bottom: 1px solid rgba(245, 250, 254, 0.15);
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(12, 1fr);
  }
  .footer-about {
    grid-column: span 5;
  }
  .footer-nav {
    grid-column: 7 / span 3;
  }
  .footer-contact {
    grid-column: span 3;
  }
}

.footer-about p {
  max-width: 20rem;
  color: rgba(245, 250, 254, 0.7);
}

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(245, 250, 254, 0.5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  opacity: 0.6;
}

.footer-contact ul li {
  color: rgba(245, 250, 254, 0.8);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 0;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(245, 250, 254, 0.5);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom .links {
  display: flex;
  gap: 24px;
}

.footer-wordmark {
  line-height: 1;
}

.footer-wordmark span {
  display: block;
  padding: 0 8px 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: -0.02em;
  color: rgba(245, 250, 254, 0.9);
  user-select: none;
}

@media (min-width: 768px) {
  .footer-wordmark span {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-wordmark span {
    font-size: 6rem;
  }
}

/* ============================================
   PAGE HERO (podstrony)
   ============================================ */
.page-hero {
  padding: 160px 0 64px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 192px 0 80px;
  }
}

.page-hero .grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .page-hero .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .page-hero .ph-label {
    grid-column: span 3;
  }
  .page-hero .ph-main {
    grid-column: span 9;
  }
}

.page-hero h1 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.75rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 60rem;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 4.5rem;
  }
}

.page-hero .intro {
  margin-top: 24px;
  max-width: 40rem;
  color: var(--muted-foreground);
}

.back-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.6;
}

/* Two-column intro on clinic page */
.split {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: repeat(12, 1fr);
    gap: 64px;
  }
  .split .split-figure {
    grid-column: span 7;
  }
  .split .split-text {
    grid-column: span 5;
    padding-top: 32px;
  }
}

.split-figure .figure {
  aspect-ratio: 4 / 3;
}

.split-text p.lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .split-text p.lead {
    font-size: 1.875rem;
  }
}

.split-text p:not(.lead) {
  margin-top: 24px;
  color: var(--muted-foreground);
}

/* Stats strip (dark) */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--foreground);
  color: var(--background-on-dark);
  padding: 64px 0;
}

.stats-strip .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (min-width: 768px) {
  .stats-strip .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats-strip .stat-value {
  font-size: 3rem;
}

@media (min-width: 768px) {
  .stats-strip .stat-value {
    font-size: 3.75rem;
  }
}

.stats-strip .stat-label {
  color: rgba(245, 250, 254, 0.5);
}

/* Values grid */
.values-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--background);
  padding: 32px;
}

@media (min-width: 768px) {
  .value-card {
    padding: 40px;
  }
}

.value-card .num {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

.value-card h3 {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.value-card p {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* CTA band */
.cta {
  border-top: 1px solid var(--border);
}

.cta .inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

@media (min-width: 768px) {
  .cta .inner {
    flex-direction: row;
    align-items: flex-end;
  }
}

.cta h2 {
  max-width: 42rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .cta h2 {
    font-size: 3.75rem;
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--foreground);
  padding: 16px 32px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--foreground);
  color: var(--background-on-dark);
}

/* Treatment index grid */
.treatments-index {
  display: grid;
  border-top: 1px solid var(--border);
}

.treatment-row {
  display: grid;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  transition: opacity 0.2s;
}

.treatment-row:hover {
  opacity: 0.65;
}

@media (min-width: 768px) {
  .treatment-row {
    grid-template-columns: repeat(12, 1fr);
    align-items: baseline;
  }
  .treatment-row .t-no {
    grid-column: span 1;
  }
  .treatment-row .t-title {
    grid-column: span 5;
  }
  .treatment-row .t-summary {
    grid-column: span 5;
  }
  .treatment-row .t-arrow {
    grid-column: span 1;
    text-align: right;
  }
}

.treatment-row .t-no {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.treatment-row .t-title h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .treatment-row .t-title h3 {
    font-size: 2.25rem;
  }
}

.treatment-row .t-cat {
  margin-top: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.treatment-row .t-summary {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Treatment detail */
.detail-hero {
  padding: 144px 0 48px;
}

@media (min-width: 768px) {
  .detail-hero {
    padding: 192px 0 48px;
  }
}

.detail-hero .head {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .detail-hero .head {
    grid-template-columns: repeat(12, 1fr);
  }
  .detail-hero .d-no {
    grid-column: span 2;
  }
  .detail-hero .d-main {
    grid-column: span 10;
  }
}

.detail-hero .d-no {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--muted-foreground);
}

.detail-hero .d-tags {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
}

.detail-hero h1 {
  margin-top: 16px;
  max-width: 56rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .detail-hero h1 {
    font-size: 4.5rem;
  }
}

.detail-image .figure {
  aspect-ratio: 16 / 9;
  max-width: var(--maxw);
  margin: 0 auto;
}

.detail-body {
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .detail-body {
    grid-template-columns: repeat(12, 1fr);
    gap: 64px;
  }
  .detail-body .d-desc {
    grid-column: span 7;
  }
  .detail-body .d-facts {
    grid-column: 9 / span 4;
  }
}

.detail-body .d-desc h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .detail-body .d-desc h2 {
    font-size: 2.25rem;
  }
}

.detail-body .d-desc p {
  margin-top: 32px;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.facts {
  border-top: 1px solid var(--border);
}

.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.fact .f-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.fact .f-value {
  text-align: right;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Procedures (dark) */
.procedures {
  border-top: 1px solid var(--border);
  background: var(--foreground);
  color: var(--background-on-dark);
}

.procedures .eyebrow,
.procedures .section-head h2 {
  color: var(--background-on-dark);
}

.procedures .eyebrow {
  color: rgba(245, 250, 254, 0.5);
}

.procedures-list {
  border-top: 1px solid rgba(245, 250, 254, 0.15);
}

.procedure {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid rgba(245, 250, 254, 0.15);
  padding: 32px 0;
}

@media (min-width: 768px) {
  .procedure {
    grid-template-columns: repeat(12, 1fr);
  }
  .procedure .p-no {
    grid-column: span 1;
  }
  .procedure .p-name {
    grid-column: span 4;
  }
  .procedure .p-detail {
    grid-column: span 7;
  }
}

.procedure .p-no {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(245, 250, 254, 0.4);
}

.procedure .p-name {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.procedure .p-detail {
  color: rgba(245, 250, 254, 0.7);
}

/* ============================================
   Treść z edytora (strona zabiegu) — v1.10.0
   Podsumowanie (.d-lead) i opis (.d-body) renderowane jako HTML.
   ============================================ */
.detail-body .d-desc .d-lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.detail-body .d-desc .d-lead > * { margin: 0; }
@media (min-width: 768px) {
  .detail-body .d-desc .d-lead { font-size: 2.25rem; }
}

.detail-body .d-desc .d-body {
  margin-top: 32px;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}
.detail-body .d-desc .d-body > *:first-child { margin-top: 0; }
.detail-body .d-desc .d-body p { margin-top: 20px; }
.detail-body .d-desc .d-body h2,
.detail-body .d-desc .d-body h3 {
  margin-top: 36px;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: var(--foreground);
}
.detail-body .d-desc .d-body h2 { font-size: 1.5rem; }
.detail-body .d-desc .d-body h3 { font-size: 1.25rem; }
.detail-body .d-desc .d-body ul,
.detail-body .d-desc .d-body ol {
  margin-top: 20px;
  padding-left: 24px;
}
.detail-body .d-desc .d-body ul { list-style: disc; }
.detail-body .d-desc .d-body ol { list-style: decimal; }
.detail-body .d-desc .d-body li { margin-top: 8px; }
.detail-body .d-desc .d-body strong { color: var(--foreground); font-weight: 600; }
.detail-body .d-desc .d-body a { color: var(--foreground); text-decoration: underline; }
.detail-body .d-desc .d-body blockquote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-style: italic;
}

/* ============================================
   Galeria (strona główna) — v1.11.0
   ============================================ */
.gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .gallery-section .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
.gallery-section .gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  background: var(--muted);
}
.gallery-section .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-section .gallery-item:hover img {
  transform: scale(1.05);
}

/* Lead sekcji „Klinika" wstrzykiwany jako HTML z edytora — reset marginesów skrajnych */
.about-text .lead > *:first-child { margin-top: 0; }
.about-text .lead > *:last-child { margin-bottom: 0; }

/* ============================================
   Podstrony (strona.html) — v1.13.0
   ============================================ */
.page-content { max-width: 760px; }
.page-content .page-lead { font-size: 1.25rem; line-height: 1.5; color: var(--foreground); margin-bottom: 28px; }
.page-content .d-body { font-size: 1.0625rem; color: var(--muted-foreground); line-height: 1.7; }
.page-content .d-body > *:first-child { margin-top: 0; }
.page-content .d-body p { margin-top: 18px; }
.page-content .d-body h2,
.page-content .d-body h3,
.page-content .d-body h4 { margin-top: 34px; font-family: var(--font-serif); font-weight: 500; color: var(--foreground); line-height: 1.3; }
.page-content .d-body h2 { font-size: 1.6rem; }
.page-content .d-body h3 { font-size: 1.3rem; }
.page-content .d-body h4 { font-size: 1.1rem; }
.page-content .d-body ul,
.page-content .d-body ol { margin-top: 18px; padding-left: 24px; }
.page-content .d-body ul { list-style: disc; }
.page-content .d-body ol { list-style: decimal; }
.page-content .d-body li { margin-top: 8px; }
.page-content .d-body a { color: var(--foreground); text-decoration: underline; }
.page-content .d-body strong { color: var(--foreground); font-weight: 600; }
.page-content .d-body blockquote { margin: 26px 0; padding-left: 20px; border-left: 3px solid var(--accent); font-style: italic; }

/* ============================================
   Banery / slider (promo-banners) — v1.14.0
   ============================================ */
.promo-banners:empty { display: none; }
.promo-banners { position: relative; }
.promo-track { position: relative; min-height: 100vh; }
.promo-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.promo-slide.active { opacity: 1; pointer-events: auto; }
.promo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,64,63,.9), rgba(21,64,63,.32) 55%, rgba(21,64,63,.5)); }
.promo-inner {
  position: relative; z-index: 2; color: #fff;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px 20px 128px;
}
@media (min-width: 768px) { .promo-inner { padding: 160px 40px 128px; } }
.promo-inner p { max-width: 28rem; margin-bottom: 28px; font-size: 0.95rem; line-height: 1.6; color: rgba(245,250,254,.82); }
.promo-inner h2 {
  font-family: var(--font-serif, Georgia, serif); font-weight: 500;
  line-height: 0.95; letter-spacing: -0.02em; font-size: 3.25rem;
}
.promo-inner h2 span { display: block; }
.promo-inner h2 .soft { font-style: italic; color: rgba(245,250,254,.55); }
@media (min-width: 640px) { .promo-inner h2 { font-size: 4.25rem; } }
@media (min-width: 768px) { .promo-inner h2 { font-size: 5.5rem; } }
@media (min-width: 1024px) { .promo-inner h2 { font-size: 6rem; } }
.promo-btn {
  align-self: flex-start; display: inline-block; margin-top: 30px; padding: 13px 30px;
  background: var(--accent, #d3b257); color: #15403f;
  border-radius: 999px; font-weight: 600; letter-spacing: .01em;
  transition: transform .2s ease, filter .2s ease;
}
.promo-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.promo-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; backdrop-filter: blur(4px); transition: background .2s ease; z-index: 2;
}
.promo-nav:hover { background: rgba(255,255,255,.32); }
.promo-nav.prev { left: 18px; } .promo-nav.next { right: 18px; }
.promo-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 2; }
.promo-dot { width: 10px; height: 10px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s ease; }
.promo-dot.active { background: #fff; }
@media (max-width: 768px) {
  .promo-nav { width: 38px; height: 38px; }
}
