/* Marek Świętochowski — lekarz rodzinny. Próbka strony, etap 1. */

:root {
  --navy: #0c3b4a;
  --navy-deep: #072832;
  --navy-soft: #164556;
  --teal: #1a9b8e;
  --teal-mid: #2ab5a6;
  --teal-bright: #3ec9ba;
  --teal-wash: #e7f6f4;
  --teal-mist: #f3faf9;
  --cream: #f6f8f7;
  --paper: #ffffff;
  --ink: #1a2e35;
  --muted: #5a7178;
  --line: #d5e4e1;
  --gold: #c9a227;
  --gold-soft: #f3e6b8;
  --tba: #8a5a12;
  --tba-bg: #fff6e8;
  --tba-line: #f0d7a4;
  --shadow: 0 16px 40px rgba(12, 59, 74, 0.08);
  --shadow-soft: 0 8px 24px rgba(12, 59, 74, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 76px;
  --topbar-h: 40px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 8px);
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--teal-mid);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 155, 142, 0.28);
}

.btn--primary:hover {
  background: #15887c;
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--navy);
  background: var(--teal-wash);
}

.btn--lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.btn__icon { flex-shrink: 0; }

/* Top bar + header */
.topbar {
  background: var(--navy-deep);
  color: #d7ece9;
  font-size: 0.82rem;
  min-height: var(--topbar-h);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--topbar-h);
}

.topbar p { margin: 0; }

.topbar__phone {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.topbar__phone:hover { color: var(--teal-bright); }

.topbar__area { opacity: 0.85; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(213, 228, 225, 0.8);
  min-height: var(--header-h);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.logo:hover { color: var(--navy); }

.logo__mark { color: var(--navy); flex-shrink: 0; }

.logo__text { display: flex; flex-direction: column; line-height: 1.15; }

.logo__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
}

.logo__role {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  display: block;
  text-decoration: none;
  color: var(--navy-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  white-space: nowrap;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--teal);
  background: var(--teal-wash);
}


.nav__item--sub { position: relative; }

.nav__subtoggle {
  display: block;
  width: auto;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--navy-soft);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  white-space: nowrap;
}

.nav__subtoggle::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 0.2rem;
  opacity: 0.7;
}

.nav__subtoggle:hover,
.nav__subtoggle[aria-current="true"] {
  color: var(--teal);
  background: var(--teal-wash);
}

.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid #d5e4e1;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(12, 59, 74, 0.12);
  z-index: 30;
}

.nav__sub a { white-space: normal; }

@media (min-width: 981px) {
  .nav__item--sub:hover > .nav__sub,
  .nav__item--sub:focus-within > .nav__sub {
    display: block;
  }
}

@media (max-width: 1100px) {
  .nav__subtoggle { padding: 0.4rem 0.38rem; font-size: 0.76rem; }
}

@media (max-width: 980px) {
  .nav__subtoggle {
    font-size: 1.05rem;
    padding: 0.7rem 0.4rem;
    width: 100%;
  }
  .nav__sub {
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 0.85rem;
    background: transparent;
    min-width: 0;
    display: none;
  }
  .nav__item--sub.is-open > .nav__sub { display: block; }
}

.header__cta { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: absolute;
  left: 12px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after { content: ""; top: 6px; }

body.nav-open .nav-toggle__bars { background: transparent; }
body.nav-open .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f4fbfa 0%, #eef6f4 48%, var(--cream) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 88% 12%, rgba(42, 181, 166, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 50% at 8% 80%, rgba(12, 59, 74, 0.08), transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.85rem);
  margin: 0 0 1.1rem;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.hero__lead,
.section__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.stars { color: var(--gold); letter-spacing: 0.05em; }

.rating-pill strong { color: var(--navy); }

.hero__address {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.portrait { margin: 0; position: relative; }

.portrait__frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(12, 59, 74, 0.18);
  aspect-ratio: 3 / 4;
  background: #e6f4f1;
}

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

.portrait__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(transparent, rgba(7, 40, 50, 0.82));
  color: #e8f7f5;
  font-size: 0.85rem;
  text-align: center;
}

.portrait__badges {
  position: absolute;
  left: -1.1rem;
  bottom: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portrait__badges li {
  background: #fff;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Trust */
.trust {
  padding: 0 0 1rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow-soft);
}

.trust__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-wash);
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.trust__title {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
}

.trust__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */
.section { padding: 5rem 0; }

.section__head { margin-bottom: 2.4rem; max-width: 44rem; }

.services { background: #fff; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  background: var(--teal-mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #b7ddd8;
  background: #fff;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--teal);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  flex: 1;
  font-size: 0.98rem;
}

.card__link {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--teal);
}

.card__link:hover { color: var(--navy); }

/* Why */
.why { background: var(--cream); }

.why__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.why__list li {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
}

.why__list strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.about-card,
.contact-card,
.hours,
.score,
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.placeholder-flag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--tba-bg);
  color: var(--tba);
  border: 1px solid var(--tba-line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-card p { color: var(--muted); }

.about-card .btn { margin-top: 0.5rem; }

/* Hours + map */
.hours-map { background: #fff; }

.hours-map__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hours__notice {
  background: var(--tba-bg);
  border: 1px dashed var(--tba-line);
  color: #5c3d0e;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours__table th,
.hours__table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.hours__table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hours__table tbody th { font-weight: 600; color: var(--navy); }

.tba {
  display: inline-block;
  background: var(--tba-bg);
  color: var(--tba);
  border: 1px dashed var(--tba-line);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.hours__hint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-wrap__title {
  font-family: var(--font);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.map-wrap__addr {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 360px;
  background: var(--teal-wash);
}

.map-frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* Reviews */
.reviews { background: var(--navy); color: #d9eeeb; }

.reviews h2,
.reviews .eyebrow { color: #fff; }

.reviews .eyebrow { color: var(--teal-bright); }

.reviews .section__lead { color: #c5ddd9; }

.reviews__layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1.4rem;
  align-items: stretch;
}

.score {
  background: var(--navy-soft);
  border-color: transparent;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.score__value {
  font-family: var(--display);
  font-size: 5rem;
  line-height: 0.9;
  margin: 0;
  font-weight: 600;
}

.score__stars {
  margin: 0.4rem 0 0.2rem;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  font-size: 1.2rem;
}

.score__meta { margin: 0 0 1.2rem; color: #c5ddd9; }

.score .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.score .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: #fff;
}

.review-cards {
  display: grid;
  gap: 1rem;
}

.review { margin: 0; }

.review p:not(.placeholder-flag) { margin: 0 0 0.8rem; color: var(--ink); }

.review footer {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* FAQ */
.faq { background: var(--cream); }

.faq__narrow { max-width: 820px; }

.accordion { display: grid; gap: 0.7rem; }

.acc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.acc h3 { margin: 0; }

.acc__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.05rem 1.15rem;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.acc__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  flex-shrink: 0;
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.acc__icon::before { width: 10px; height: 1.5px; }
.acc__icon::after { width: 1.5px; height: 10px; }

.acc.is-open .acc__icon::after { opacity: 0; }

.acc__panel {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.acc__panel p { margin: 0; }

/* Contact */
.contact {
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(42, 181, 166, 0.16), transparent 55%),
    #fff;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-card {
  font-style: normal;
  display: grid;
  gap: 1rem;
}

.contact-card p { margin: 0; }

.contact-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.contact-card a { text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c5ddd9;
  padding: 3.5rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  font-family: var(--display);
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 0.2rem;
}

.footer__tag { margin: 0 0 1rem; color: var(--teal-bright); font-weight: 600; }

.footer__head {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.8rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  color: #c5ddd9;
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.footer__legal {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: #8eada8;
}

.footer__copy {
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: #8eada8;
}

/* Reveal */
.js-anim .card,
.js-anim .trust__item,
.js-anim .about-card,
.js-anim .hours,
.js-anim .map-wrap,
.js-anim .review,
.js-anim .score,
.js-anim .acc,
.js-anim .contact-card {
  opacity: 0;
  transform: translateY(16px);
}

.js-anim .reveal {
  animation: rise 0.7s var(--ease) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .card, .btn { transition: none; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav__list a { padding: 0.4rem 0.38rem; font-size: 0.76rem; }
  .portrait__badges { left: 0.6rem; }
}

@media (max-width: 980px) {
  .hero__grid,
  .why__grid,
  .hours-map__grid,
  .reviews__layout,
  .contact__grid,
  .trust__grid {
    grid-template-columns: 1fr;
  }

  .cards { grid-template-columns: 1fr 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .header__cta { display: inline-flex; }

  .nav-toggle { display: inline-block; z-index: 60; }

  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    background: #fff;
    box-shadow: -16px 0 40px rgba(12, 59, 74, 0.15);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--header-h) + 1.2rem) 1.4rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), visibility 0.35s;
    gap: 1.2rem;
    visibility: hidden;
    pointer-events: none;
    z-index: 55;
    width: 100%;
  }

  body.nav-open .site-header {
    z-index: 60;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  body.nav-open .topbar {
    visibility: hidden;
  }

  body.nav-open .nav {
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open { overflow: hidden; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav__list a {
    font-size: 1.05rem;
    padding: 0.7rem 0.4rem;
    white-space: normal;
  }

  .nav .header__cta { display: inline-flex; width: 100%; }

  .header__inner .header__cta { margin-left: auto; }

  .topbar__area { display: none; }

  .portrait__badges {
    position: static;
    margin-top: 0.9rem;
  }
}

@media (max-width: 680px) {
  .container { width: min(var(--container), calc(100% - 1.5rem)); }

  .section { padding: 3.4rem 0; }

  .hero { padding: 2.6rem 0 3rem; }

  .cards,
  .footer__grid,
  .trust__grid { grid-template-columns: 1fr; }

  /* CTA pozostaje w menu mobilnym (jest wewnątrz .nav) */

  .topbar__place { display: none; }

  .topbar__inner { justify-content: center; }

  h1 { font-size: 2.15rem; }

  .score__value { font-size: 4rem; }

  .map-frame,
  .map-frame iframe { min-height: 280px; height: 280px; }
}


.map-wrap__link {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 680px) {
  .hero__actions .btn,
  .contact__actions .btn {
    width: 100%;
  }
}


.nav-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 40, 50, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 45;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-toggle {
    position: relative;
    z-index: 60;
  }
}


a[href^="tel:"] { white-space: nowrap; }

/* ===== Podstrony, treść, formularz, cennik (etap 2) ===== */

.page-hero {
  padding: 2.6rem 0 2.2rem;
  background:
    radial-gradient(ellipse 50% 60% at 92% 0%, rgba(42, 181, 166, 0.18), transparent 60%),
    linear-gradient(180deg, #f4fbfa 0%, var(--cream) 100%);
}

.breadcrumbs {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: #9bb0ac;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs [aria-current="page"] { color: var(--navy); font-weight: 600; }

.page-hero h1 { margin-bottom: 0.7rem; }

.page-hero__lead {
  margin: 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.content-section { padding: 3.6rem 0; }
.content-section--alt { background: #fff; }
.content-section--cream { background: var(--cream); }

.prose { max-width: 46rem; }
.prose p { color: var(--muted); }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose h3 {
  font-family: var(--font);
  font-size: 1.12rem;
  margin: 1.5rem 0 0.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}

.split--rev { grid-template-columns: 0.95fr 1.05fr; }
.split--rev .split__media { order: -1; }

.split__media,
.figure {
  margin: 0;
}

.split__media img,
.figure img,
.photo-frame img,
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__media picture,
.figure picture,
.photo-frame picture,
.portrait__frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.split__media,
.photo-frame,
.figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  background: var(--teal-wash);
}

.figure--tall { min-height: 320px; }
.figure--tall img { min-height: 320px; object-fit: cover; }

.figcap {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.stock-note {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--tba-bg);
  color: var(--tba);
  border: 1px solid var(--tba-line);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cta-band {
  background: var(--navy);
  color: #d9eeeb;
  padding: 3rem 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #c5ddd9; max-width: 38rem; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.cta-band .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.cta-band .btn--ghost:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: #fff;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  font-size: 0.98rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.price-table thead th {
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-table tbody th { font-weight: 600; color: var(--navy); width: 55%; }
.price-table tr:last-child td,
.price-table tr:last-child th { border-bottom: 0; }

.contact-form {
  display: grid;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(42, 181, 166, 0.35);
  border-color: var(--teal);
  background: #fff;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related a.card { text-decoration: none; color: inherit; }

.link-list { display: grid; gap: 0.4rem; padding: 0; margin: 0; list-style: none; }
.link-list a { font-weight: 600; text-decoration: none; color: var(--teal); }
.link-list a:hover { color: var(--navy); }

.portrait__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.photo-grid .photo-frame { min-height: 240px; }
.photo-grid .photo-frame img { min-height: 240px; }

@media (max-width: 980px) {
  .split,
  .split--rev,
  .photo-grid,
  .related { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .logo { position: relative; z-index: 60; }
}

@media (max-width: 680px) {
  .page-hero { padding: 1.8rem 0 1.6rem; }
  .content-section { padding: 2.6rem 0; }
  .contact-form .btn { width: 100%; }
}
