/* =========================================================
   Furmańczyk Dermatologia i Kosmetologia – arkusz stylów
   ========================================================= */

:root {
  --cream: #fff7f2;          /* kolor główny */
  --white: #ffffff;
  --btn: #9b6239;            /* przyciski */
  --btn-hover: #dd8d56;      /* przyciski po najechaniu */
  --accent: #9b6239;         /* akcenty tekstowe */
  --gold: #d6c59a;           /* napisy odręczne, linie */
  --ink: #1e1a17;            /* nagłówki */
  --text: #3d3632;           /* tekst */
  --footer: #211d1a;

  --font-head: "DM Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --font-script: "Mrs Saint Delafield", cursive;

  --container: 1400px;       /* szerokość szpalty na PC/laptopie */
  --gutter: 40px;            /* margines boczny */
  --radius-arch: 999px 999px 0 0;
  --shadow: 0 10px 30px rgba(60, 40, 25, .07);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.2;
  font-weight: 600;
}

p { margin: 0 0 1.2em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  background: var(--btn);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 17px 36px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }

:focus-visible { outline: 2px solid var(--btn-hover); outline-offset: 3px; }

/* =========================================================
   NAGŁÓWEK
   ========================================================= */
.site-header {
  background: var(--cream);
  position: relative;          /* bez z-index: telefon i podmenu mogą leżeć nad łukiem zdjęcia na stronie głównej */
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo { display: block; flex-shrink: 0; }
.logo-emblem {
  width: 165px;
  height: auto;
  mix-blend-mode: multiply;                  /* wtapia jasne tło pliku JPG w tło strony */
  filter: brightness(1.05) contrast(1.04);   /* tło logo -> czysta biel, bez widocznego kwadratu */
}

/* ---------- Menu (desktop) ---------- */
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}
.menu > li { position: relative; }
.menu a,
.menu .sub-trigger {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  transition: color .2s ease;
}
.menu .sub-trigger {
  background: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  line-height: inherit;
}
.menu a:hover,
.menu a.active,
.menu .sub-trigger:hover,
.menu .sub-trigger.active { color: var(--accent); }

.chev { width: 13px; height: 13px; transition: transform .2s ease; }

.submenu {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  position: absolute;
  top: 100%;
  left: -22px;
  min-width: 300px;
  z-index: 80;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.submenu a {
  display: block;
  padding: 10px 22px;
  font-size: 14.5px;
}
.has-sub:hover .submenu,
.submenu:focus-within,
.submenu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-sub:hover .chev,
.sub-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* ---------- Ikony społecznościowe ---------- */
.social { display: flex; align-items: center; gap: 20px; }
.social a { display: inline-flex; color: var(--ink); transition: color .2s ease; }
.social svg { width: 21px; height: 21px; fill: currentColor; }
.social a:hover { color: var(--accent); }

/* ---------- Telefon w nagłówku ---------- */
.main-nav { order: 2; }
.header-phone {
  order: 3;
  position: relative;
  z-index: 70;
  padding: 8px 16px;
  margin-right: -16px;
  background: var(--cream);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  white-space: nowrap;
  transition: color .2s ease;
}
.header-phone svg { width: 20px; height: 20px; fill: var(--btn); flex-shrink: 0; }
.header-phone:hover { color: var(--accent); }

/* ---------- Hamburger ---------- */
.nav-toggle {
  display: none;
  order: 4;
  margin-left: 4px;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { background: var(--cream); position: relative; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 40px;
}

.hero-text { padding-top: 90px; max-width: 680px; }
.hero-text h1 { font-size: clamp(32px, 2.7vw, 42px); margin-bottom: 24px; }
.hero-text p { font-size: 18.5px; margin-bottom: 38px; }

.hero-visual {
  position: relative;
  justify-self: start;
  margin-left: 50px;
  margin-top: -150px;          /* łuk zdjęcia zaczyna się na wysokości menu */
  z-index: 60;                 /* nad tłem nagłówka */
  padding-bottom: 20px;
  width: 100%;
  max-width: 460px;
}
.hero-arch {
  width: 100%;
  aspect-ratio: 400 / 530;
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: #efe3d6;
}
.hero-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  mix-blend-mode: multiply;    /* białe tło zdjęcia przyjmuje beżowy kolor łuku */
}

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-curve {
  display: block;
  width: 100%;
  height: 100px;
  background: var(--white);
  fill: var(--cream);
}

/* =========================================================
   SEKCJE
   ========================================================= */
.section { padding: 130px 0; }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }

/* Nagłówek z napisem odręcznym w tle */
.script-title { position: relative; margin-bottom: 28px; padding-top: 40px; }
.script-title .script {
  position: absolute;
  left: -4px;
  top: -22px;
  font-family: var(--font-script);
  font-size: clamp(96px, 10vw, 145px);
  line-height: 1;
  color: var(--gold);
  opacity: .85;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.script-title h2 {
  position: relative;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0;
}
.script-title--center { text-align: center; margin-bottom: 56px; }
.script-title--center .script { left: 50%; transform: translateX(-50%); top: -32px; }

/* Blok: tekst + zdjęcie */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 90px;
  align-items: center;
}
.split-text p { max-width: 520px; font-size: 18px; }

/* Lista usług na stronie głównej */
.service-links {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid rgba(214, 197, 154, .9);
}
.service-links li { border-bottom: 1px solid rgba(214, 197, 154, .9); }
.service-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 24px;
  align-items: center;
  padding: 22px 4px 20px;
  color: var(--ink);
}
.service-name {
  font-family: var(--font-head);
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 600;
  line-height: 1.25;
  transition: color .25s ease, transform .25s ease;
}
.service-desc {
  grid-column: 1;
  font-size: 15.5px;
  line-height: 1.5;
  color: #8a7d74;
  margin-top: 4px;
}
.service-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  color: var(--btn);
  transition: transform .25s ease, color .25s ease;
}
.service-links a:hover .service-name,
.service-links a:focus-visible .service-name { color: var(--accent); transform: translateX(6px); }
.service-links a:hover .service-arrow,
.service-links a:focus-visible .service-arrow { color: var(--btn-hover); transform: translateX(4px); }

.split-image img {
  width: 100%;
  aspect-ratio: 412 / 273;
  object-fit: cover;
}

/* Link „więcej” ze strzałką */
.more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color .2s ease, gap .2s ease;
}
.more svg { width: 16px; height: 16px; }
.more:hover { color: var(--btn-hover); gap: 12px; }


/* =========================================================
   STOPKA
   ========================================================= */
.site-footer { background: var(--footer); color: #e9e2dc; }
.site-footer h2,
.site-footer h3 { color: var(--white); font-weight: 500; }

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 48px;
  padding-top: 84px;
  padding-bottom: 70px;
}
.footer-brand h2 { font-size: 25px; line-height: 1.3; max-width: 360px; margin-bottom: 16px; }
.footer-brand p { font-size: 16.5px; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  transition: color .2s ease;
}
.footer-phone svg { width: 20px; height: 20px; fill: var(--gold); }
.footer-phone:hover { color: var(--btn-hover); }
.booksy-logo { display: block; width: fit-content; margin-bottom: 22px; opacity: .92; transition: opacity .2s ease; }
.booksy-logo img { width: 150px; height: auto; }
.booksy-logo:hover { opacity: 1; }
.footer-links h3,
.footer-cta h3 { font-size: 22px; margin-bottom: 20px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 16.5px; transition: color .2s ease; }
.footer-links a:hover { color: var(--btn-hover); }
.footer-cta h3 a { transition: color .2s ease; }
.footer-cta h3 a:hover { color: var(--btn-hover); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 26px;
}
.footer-bottom p { margin: 0; font-size: 15.5px; }
.social--footer a { color: #e9e2dc; }
.social--footer svg { width: 19px; height: 19px; }

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

/* Mniejsze laptopy */
@media (max-width: 1280px) {
  :root { --gutter: 32px; }
  .header-inner { gap: 40px; }
  .menu { gap: 28px; }
  .hero-inner { gap: 40px; }
  .split { gap: 60px; }
}

/* Tablety i telefony – menu hamburger */
@media (max-width: 960px) {
  .header-inner { gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .logo-emblem { width: 84px; }

  .nav-toggle { display: block; }
  .header-phone { margin-left: auto; margin-right: 0; padding: 8px 6px; font-size: 17px; }

  .main-nav {
    position: absolute;
    z-index: 80;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-top: 1px solid rgba(155, 98, 57, .15);
    box-shadow: 0 14px 24px rgba(60, 40, 25, .08);
    padding: 8px var(--gutter) 26px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .35s ease, visibility .35s;
  }
  .main-nav.open { max-height: 720px; visibility: visible; }

  .menu { flex-direction: column; gap: 0; }
  .menu > li { border-bottom: 1px solid rgba(155, 98, 57, .12); }
  .menu a { padding: 15px 0; font-size: 16px; }

  .menu .sub-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 16px;
    text-align: left;
  }
  .sub-trigger .chev { width: 16px; height: 16px; }

  .submenu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 10px 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .has-sub:hover .submenu,
  .submenu:focus-within { transform: none; }
  .has-sub:hover .chev { transform: none; }
  .sub-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .submenu.open { display: block; }
  .submenu a { padding: 10px 0; font-size: 15px; }

  .social--nav { padding-top: 22px; gap: 24px; }
  .social--nav svg { width: 22px; height: 22px; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-text { padding-top: 36px; max-width: none; }
  .hero-visual {
    z-index: auto;             /* rozwinięte menu mobilne ma być nad zdjęciem */
    justify-self: center;
    margin: 0 auto;
    max-width: 420px;
    padding-bottom: 10px;
  }

  /* Sekcje */
  .section { padding: 90px 0; }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split-text p { max-width: none; }


  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Telefony */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 16.5px; }
  .logo-emblem { width: 74px; }
  .header-phone { font-size: 16px; gap: 7px; }
  .header-phone svg { width: 18px; height: 18px; }

  .hero-text h1 { font-size: 31px; }
  .hero-text p { font-size: 17px; }
  .hero-curve { height: 50px; }

  .script-title .script { font-size: 88px; }
  .script-title h2 { font-size: 26px; }
  .split-text p { font-size: 17px; }


  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-cta .btn { display: none; }         /* na telefonie w stopce samo logo Booksy */
  .booksy-logo { margin-bottom: 0; }
  .footer-bottom-inner { flex-direction: column; gap: 14px; text-align: center; }
}

/* =========================================================
   PODSTRONY (dermatologia.html i kolejne)
   ========================================================= */

/* Wariant przycisków */
.btn--small { font-size: 12.5px; padding: 13px 24px; }
.btn--ghost {
  background: transparent;
  color: var(--btn);
  box-shadow: inset 0 0 0 1.5px var(--btn);
}
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--btn-hover); color: var(--white); box-shadow: none; }

/* Aktywna pozycja w podmenu */
.submenu a.active { color: var(--accent); }

/* ---------- Nagłówek podstrony ---------- */
.page-hero { background: var(--cream); }
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 20px;
}
.page-hero-text p { max-width: 64ch; }
.page-hero-text .lead { font-size: 19.5px; color: var(--ink); line-height: 1.7; }
.page-hero-text .btn { margin-top: 12px; }

.breadcrumb ol {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 14.5px;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 10px;
  color: var(--gold);
}
.breadcrumb a { color: var(--text); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--accent); }

.script-title--page { margin-bottom: 30px; padding-top: 34px; }
.script-title--page .script { top: -26px; }
.script-title--page h1 {
  position: relative;
  font-size: clamp(40px, 4.4vw, 62px);
  font-weight: 600;
  margin: 0;
}

.page-hero-visual { justify-self: end; width: 100%; max-width: 440px; }

/* Miejsca na grafiki (do podmiany na <img>) */
.media-slot {
  position: relative;
  width: 100%;
  background:
    linear-gradient(160deg, rgba(214, 197, 154, .45), rgba(155, 98, 57, .14)),
    #f6ece3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.media-slot--arch { aspect-ratio: 400 / 520; border-radius: var(--radius-arch); }
.media-slot--photo { aspect-ratio: 4 / 3; }
.media-slot img { width: 100%; height: 100%; object-fit: cover; }
.media-slot-label {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--accent);
  background: rgba(255, 255, 255, .75);
  padding: 6px 14px;
  margin-bottom: 22px;
}

/* ---------- Treść: spis + artykuł ---------- */
.article-section { padding-top: 110px; }
.article-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 90px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 32px;
  padding-right: 10px;
}
.toc-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}
.toc ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-left: 1px solid rgba(155, 98, 57, .2);
}
.toc ul a {
  display: block;
  padding: 9px 0 9px 20px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--text);
  transition: color .2s ease, border-color .2s ease;
}
.toc ul a:hover { color: var(--accent); }
.toc ul a.is-current {
  color: var(--accent);
  border-left-color: var(--btn);
  font-weight: 600;
}

.article { max-width: 820px; }

.topic {
  scroll-margin-top: 30px;
  padding-bottom: 64px;
  margin-bottom: 64px;
  border-bottom: 1px solid rgba(155, 98, 57, .14);
}
.topic:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.topic h2 {
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 600;
  margin-bottom: 22px;
}
.topic p { max-width: 70ch; }

.list-intro { font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.symptoms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
}
.symptoms li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
}
.symptoms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 12px;
  height: 2px;
  background: var(--gold);
}

/* Blok z grafiką obok tekstu */
.topic--media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: 22px 50px;
  align-items: center;
}
.topic--media .note { grid-column: 1 / -1; }

.topic .note {
  max-width: none;
  background: var(--cream);
  border-left: 3px solid var(--btn);
  padding: 22px 28px;
  margin: 0;
  color: var(--ink);
  font-size: 17.5px;
}

.aside-line {
  font-style: italic;
  color: var(--accent);
}

/* Laser CO2 / IPL */
.tech {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 30px 0 30px;
}
.tech-item {
  background: var(--cream);
  padding: 28px 30px 24px;
}
.tech dt {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.tech dt span {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  margin-top: 2px;
}
.tech dd { margin: 0; font-size: 16.5px; }

/* Lista w jednej kolumnie, akapit po liście */
.symptoms--single { grid-template-columns: 1fr; }
.topic .after-list { margin-top: 26px; }

/* Ramka z uwagą zawierająca link */
.topic .note { margin-top: 30px; }
.topic .note p { margin-bottom: 14px; }
.topic .note p:last-child { margin-bottom: 0; }

/* Pole z odesłaniem do innej podstrony */
.link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 30px;
  padding: 26px 30px;
  background: var(--cream);
  color: var(--ink);
  transition: background-color .25s ease;
}
.link-box .more { flex-shrink: 0; }
.link-box:hover { background: #fbeee4; }
.link-box:hover .more { color: var(--btn-hover); gap: 12px; }

/* ---------- Rozdziały z podrozdziałami (laseroterapia) ---------- */
.toc ul a small {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  color: #8a7d74;
  margin-top: 2px;
}

.topic-head { margin-bottom: 26px; }
.topic-head h2 { margin-bottom: 4px; }
.topic-sub {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--accent);
  margin: 0;
}
.topic .topic-lead { font-size: 19px; color: var(--ink); line-height: 1.65; }

.topic-intro-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 30px;
}
.topic-intro-media p:last-child { margin-bottom: 0; }

.subtopic { margin-top: 48px; }
.subtopic h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 16px;
}
.topic .note + p { margin-top: 24px; }

/* 755 nm / 810 nm */
.waves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 28px 0 28px;
}
.wave {
  border-top: 2px solid var(--gold);
  padding-top: 18px;
}
.wave dt {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
}
.wave-num {
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.01em;
}
.wave dd { margin: 0; font-size: 16.5px; }

/* Obszary zabiegu */
.tags {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags li {
  background: var(--cream);
  border: 1px solid rgba(155, 98, 57, .18);
  padding: 7px 16px;
  font-size: 15.5px;
  line-height: 1.4;
  border-radius: 999px;
}

/* Odnośniki do innych działów */
.combo-links {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.combo-links a {
  display: inline-block;
  padding: 11px 22px;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--btn);
  box-shadow: inset 0 0 0 1.5px var(--btn);
  transition: background-color .2s ease, color .2s ease;
}
.combo-links a:hover { background: var(--btn-hover); color: var(--white); box-shadow: none; }

/* Główne zdanie zakończenia */
.closing-inner > .statement {
  font-family: var(--font-head);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 30px;
}
.statement strong { font-weight: 700; color: var(--accent); }

/* ---------- Kosmetologia / Endermologia ---------- */

/* Podpozycja w podmenu (Kosmetologia → Endermologia LPG) */
.submenu .submenu-child a {
  position: relative;
  padding-left: 42px;
  font-size: 13.5px;
}
.submenu .submenu-child a::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--gold);
}

/* Podpis pod grafiką w bloku z grafiką */
.topic--media .media-foot { grid-column: 1 / -1; margin: 0; }
.media-slot--tall { aspect-ratio: 4 / 5; }

/* Wyróżniony odnośnik do podstrony */
.feature-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 32px;
  padding: 32px 34px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  transition: background-color .25s ease;
}
.feature-link-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.feature-link-text span { display: block; font-size: 16.5px; line-height: 1.6; color: var(--text); }
.feature-link .btn { flex-shrink: 0; }
.feature-link:hover { background: #fbeee4; }
.feature-link:hover .btn { background: var(--btn-hover); }

/* Siatka korzyści */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 44px;
  margin-top: 8px;
}
.benefit { border-top: 2px solid var(--gold); padding-top: 20px; }
.benefit h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.topic .benefit p { font-size: 16.5px; margin: 0; }

/* ---------- Cennik ---------- */
.page-hero--compact .container { padding-top: 30px; padding-bottom: 30px; }
.page-hero--compact .lead { max-width: 60ch; margin-bottom: 0; font-size: 19.5px; color: var(--ink); }

.price-article { max-width: 900px; }

.price-section {
  scroll-margin-top: 30px;
  margin-bottom: 90px;
}
.price-section:last-child { margin-bottom: 0; }

.price-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 30px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}
.price-section-head h2 {
  font-size: clamp(28px, 2.6vw, 36px);
  margin: 0;
}

.price-group { margin-top: 36px; }
.price-group h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
.price-group h3 a { transition: color .2s ease; }
.price-group h3 a:hover { color: var(--accent); }
.price-group-note {
  font-size: 15px;
  color: var(--accent);
  margin: 0 0 6px;
}

.price-list { list-style: none; margin: 8px 0 0; padding: 0; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
}
/* kropki prowadzące wzrok od nazwy do ceny */
.price-row::after {
  content: "";
  order: 1;
  flex: 1 1 24px;
  min-width: 24px;
  border-bottom: 1px dotted rgba(155, 98, 57, .45);
  transform: translateY(-4px);
}
.price-name { order: 0; flex: 0 1 auto; line-height: 1.5; }
.price-name small {
  display: block;
  font-size: 14px;
  color: #8a7d74;
  margin-top: 2px;
}
.price-val {
  order: 2;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Cena pakietu pod ceną pojedynczego zabiegu */
.price-row--sub { padding-top: 0; }
.price-row--sub .price-name { padding-left: 18px; font-size: 15.5px; color: var(--accent); }
.price-row--sub .price-val { font-size: 16px; font-weight: 500; color: var(--accent); }

/* ---------- Kontakt ---------- */
.contact-section { padding-top: 90px; }

.contact-main { position: relative; }

.contact-map {
  position: relative;
  z-index: 0;                 /* warstwy mapy nie przykrywają karty ani menu */
  height: 600px;
  background: #efe7df;
}
.contact-map .leaflet-tile-pane { filter: grayscale(.35) sepia(.18) brightness(1.03) contrast(.95); }
.contact-map .leaflet-control-attribution { font-size: 11px; }
.map-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 30px;
  text-align: center;
  color: var(--text);
}
.map-fallback a { color: var(--accent); text-decoration: underline; }
@media (min-width: 961px) { .map-fallback { padding-left: 540px; } }

/* Znacznik na mapie */
.map-pin span {
  position: absolute;
  left: 2px;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--btn);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(60, 40, 25, .35);
}
.map-pin span::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--white);
  border-radius: 50%;
}

/* Karta głównej placówki nachodząca na mapę */
.contact-card {
  position: absolute;
  z-index: 2;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  background: var(--white);
  padding: 40px 42px 38px;
  box-shadow: 0 18px 44px rgba(60, 40, 25, .14);
}
.contact-card h2 { font-size: 34px; margin-bottom: 20px; }

.contact-address {
  font-style: normal;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
  transition: color .2s ease;
}
.contact-phone svg { width: 24px; height: 24px; fill: var(--btn); }
.contact-phone:hover { color: var(--accent); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Gabinet w Szczytnie – drugorzędny */
.contact-secondary-section { padding: 80px 0; }
.contact-secondary {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 24px 50px;
  align-items: center;
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 34px;
}
.contact-secondary-head h2 { font-size: 24px; margin: 0; }
.contact-secondary .contact-address { font-size: 17px; margin: 0; }
.contact-secondary-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-phone--small { font-size: 22px; gap: 10px; }
.contact-phone--small svg { width: 19px; height: 19px; }

/* ---------- O nas / zespół ---------- */
.team-hero { grid-template-columns: 1fr 1.15fr; }
.team-hero-photo { position: relative; margin: 0; }
.team-hero-photo::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1.5px solid var(--gold);
  z-index: 0;
}
.team-hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.team-jump {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.team-jump a {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--btn);
  box-shadow: inset 0 0 0 1.5px var(--btn);
  transition: background-color .2s ease, color .2s ease;
}
.team-jump a:hover { background: var(--btn-hover); color: var(--white); box-shadow: none; }

.team-section { scroll-margin-top: 20px; }
.team-section > .container > .script-title { margin-bottom: 70px; }

/* Lekarz: portret w łuku + biogram */
.person {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 40px 90px;
  align-items: start;
  margin-bottom: 110px;
}
.person:last-child { margin-bottom: 0; }
.person--lead { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); }
.person--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); }
.person--reverse .person-photo { order: 2; }

.person-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: var(--cream);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; mix-blend-mode: multiply; } /* białe tło zdjęcia przyjmuje kolor łuku */

.person-body { max-width: 720px; padding-top: 30px; }
.person-body p { max-width: 68ch; }
.person-role {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 8px;
}
.person-body h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 18px; }
.person--lead .person-body h3 { font-size: clamp(30px, 3vw, 42px); }
.person-lead { font-size: 19px; color: var(--ink); line-height: 1.6; }
.person-private { font-style: italic; color: var(--accent); }
.person-pending { color: #8a7d74; font-style: italic; }

/* Oś czasu kariery */
.timeline {
  list-style: none;
  margin: 34px 0 34px;
  padding: 0;
  border-left: 1.5px solid var(--gold);
}
.timeline li {
  position: relative;
  padding: 0 0 26px 30px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--btn);
}
.timeline-year {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}
.person-body .timeline p { margin: 0; }

/* Kosmetolodzy */
.cosmo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 60px;
  align-items: end;
}
.cosmo-group { margin: 0; }
.cosmo-group img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.cosmo-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.person-card-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 18px;
}
.person-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.person-card h3 { font-size: 21px; margin-bottom: 2px; }
.person-card .person-role { margin: 0; font-size: 15px; }
.cosmo-link { margin-top: 56px; }

/* ---------- Zakończenie ---------- */
.closing-inner { max-width: 900px; text-align: center; }
.closing .script-title--center { margin-bottom: 34px; }
.closing .script-title h2 { text-transform: none; font-weight: 600; }
.closing-inner > p { font-size: 18.5px; line-height: 1.8; margin-bottom: 40px; }
.closing-inner > p:has(+ p) { margin-bottom: 22px; }
.closing-inner > .closing-emphasis {
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

@media (max-width: 1280px) {
  .page-hero-inner { gap: 50px; }
  .article-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 960px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 50px; padding-top: 24px; }
  .page-hero-visual { justify-self: center; max-width: 380px; }

  .article-section { padding-top: 80px; }
  .article-layout { grid-template-columns: 1fr; gap: 50px; }
  .toc {
    position: static;
    background: var(--cream);
    padding: 24px 26px 26px;
  }
  .toc ul { margin-bottom: 22px; }

  .topic { padding-bottom: 50px; margin-bottom: 50px; }
  .topic--media { grid-template-columns: 1fr; }
  .topic-intro-media { grid-template-columns: 1fr; gap: 30px; }
  .media-slot--tall { aspect-ratio: 4 / 3; }

  .contact-section { padding-top: 60px; }
  .contact-main { display: flex; flex-direction: column-reverse; }
  .contact-card {
    position: static;
    transform: none;
    width: auto;
    box-shadow: none;
    padding: 0 0 36px;
  }
  .contact-map { height: 380px; }
  .contact-secondary { grid-template-columns: 1fr 1fr; }
  .contact-secondary-head { grid-column: 1 / -1; }

  .team-hero { grid-template-columns: 1fr; }
  .team-hero-photo { margin-right: 22px; }
  .team-section > .container > .script-title { margin-bottom: 50px; }
  .person,
  .person--lead,
  .person--reverse { grid-template-columns: 1fr; gap: 30px; margin-bottom: 80px; }
  .person--reverse .person-photo { order: 0; }
  .person-photo { width: 100%; max-width: 360px; }
  .person-body { padding-top: 0; }
  .cosmo-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .page-hero-text .lead { font-size: 18px; }
  .script-title--page h1 { font-size: 40px; }
  .symptoms { grid-template-columns: 1fr; }
  .tech { grid-template-columns: 1fr; }
  .topic .note { padding: 18px 20px; font-size: 16.5px; }
  .closing-inner > p { font-size: 17px; }
  .closing-inner > .closing-emphasis { font-size: 19px; }
  .link-box { flex-direction: column; align-items: flex-start; padding: 22px; }
  .waves { grid-template-columns: 1fr; gap: 22px; }
  .benefits { grid-template-columns: 1fr; gap: 28px; }
  .price-row { gap: 10px; }
  .price-row::after { display: none; }
  .price-name { flex: 1 1 auto; }
  .price-val { font-size: 16.5px; }
  .price-section { margin-bottom: 70px; }
  .contact-card h2 { font-size: 28px; }
  .contact-phone { font-size: 26px; }
  .contact-actions .btn { width: 100%; text-align: center; }
  .contact-map { height: 320px; }
  .contact-secondary { grid-template-columns: 1fr; padding-left: 22px; }
  .contact-secondary-head h2 { font-size: 21px; }
  .person-photo { max-width: 300px; }
  .person-lead { font-size: 17.5px; }
  .cosmo-people { gap: 18px; }
  .person-card h3 { font-size: 18px; }
  .feature-link { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .media-slot--tall { aspect-ratio: 4 / 3; }
  .wave-num { font-size: 46px; }
  .topic .topic-lead { font-size: 17.5px; }
}

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