:root {
  --bg: #fffafc;
  --bg-soft: #fdf1f5;
  --surface: #ffffff;
  --surface-strong: #fff7fa;
  --text: #2f2830;
  --text-light: #6d6168;
  --accent: #d97f97;
  --accent-dark: #bf5f7d;
  --border: #edd8e0;
  --shadow: 0 12px 30px rgba(120, 70, 90, 0.08);
  --radius: 22px;
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffafc 0%, #fffdfd 100%);
  line-height: 1.6;
  overflow-y: scroll;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 0 32px;
}

.section-heading.left {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4vw, 4.5rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #fff1f5 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
 }

.logo-link:hover {
  text-decoration: none;
}

.logo {
  height: 80px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.main-nav a {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.main-nav a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-text h1 span {
  font-weight: 600;
}

.hero-buttons,
.hero-points {
  justify-content: center;
}

.hero-lead {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  color: var(--text-light);
}

.hero-buttons,
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

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

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 0.94rem;
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.hero-card-inner,
.contact-card,
.team-card,
.service-card,
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card-inner {
  width: 100%;
  max-width: 360px;
  padding: 28px;
}

.text-link {
  display: block;
  margin-top: 12px;
  font-weight: 700;
}

.intro-text {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  overflow: hidden;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

.team-content {
  padding: 26px;
}

.team-spec {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 24px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-top: 1px solid var(--border);
}

.price-row:hover {
  background: rgba(232, 163, 179, 0.08);
}

.price-list {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.price-group {
  padding-top: 20px;
}

.price-group h3 {
  text-align: center;
  width: 100%;
}

.price-row:last-child {
  border-bottom: 1px solid var(--border);
}

.price-row span {
  max-width: 70%;
}

.cta-section {
  padding-top: 40px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(180deg, #fff7fa 0%, #ffffff 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card {
  padding: 26px;
}

.map-wrap {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  padding: 2px 0 2px;
  background: linear-gradient(180deg, #ffffff 0%, #fff1f5 100%);
  border-top: 1px solid var(--border);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
}

.hero-subpage {
  padding: 64px 0 40px;
}

.specialists-hero {
  text-align: center;
  margin: 0 auto;
}

.specialist-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 32px;
  align-items: start;
}

.specialist-photo-wrap {
  width: 100%;
  max-width: 400px;
  justify-self: start;
}

.specialist-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.specialist-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.specialist-content p:last-of-type {
  margin-bottom: 0;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.service-content {
  max-width: 720px;
}

.service-content p {
  margin-bottom: 12px;
}

.service-content .btn {
  margin-top: 12px;
}

.cta-buttons {
  margin-top: 24px;
}

.service-list li {
  margin-bottom: 6px;
}

.service-content h3 {
  color: var(--accent-dark);
  margin-top: 24px;
}

.service-list {
  margin: 12px 0 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
}

.section:not(.section-soft) .service-list {
  background: rgba(232, 163, 179, 0.08);
}

.service-list li::marker {
  color: #e8a3b3;
}

.service-lead {
  font-size: 1rem;
  font-weight: 600;
  color: #d98c9f;
  margin-bottom: 20px;
}

#cennik .section-heading {
  padding: 20px 20px 0;
}

#cennik .container {
  max-width: 650px;
}


@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .services-grid,
  .team-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    display: grid;
  }


  .price-row span {
    max-width: 100%;
  }

  .hero-card {
    justify-content: stretch;
  }

  .hero-card-inner {
    max-width: none;
  }

  .specialist-layout {
  grid-template-columns: 1fr;
  }

  .specialist-photo-wrap {
  position: static;
  max-width: 100%;
  }

.specialist-content {
  padding: 24px;
}

}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .header-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .main-nav {
    justify-content: center;
    gap: 14px 18px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-points {
    gap: 8px;
  }

  .hero-points li {
    width: 100%;
    border-radius: 14px;
  }

  .team-content,
  .service-card,
  .contact-card,
  .hero-card-inner,
  .cta-box {
    padding: 22px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 320px;
  }
  
}

/* v2 tuned adjustments */
:root {
  --header-offset: 96px;
}

html {
  scroll-padding-top: var(--header-offset);
}

#onas,
#zespol,
#oferta,
#cennik,
#kontakt,
#marta,
#martyna,
#stomatologiczna,
#uroginekologiczna,
#pediatryczna,
#ortopedyczna,
#kobido {
  scroll-margin-top: var(--header-offset);
}

.header-wrap {
  min-height: 84px;
}

.main-nav {
  flex-wrap: nowrap;
  gap: 16px;
}

.main-nav a {
  white-space: nowrap;
}

.btn {
  min-height: 46px;
  padding: 0 22px;
}

.btn-primary {
  box-shadow: 0 8px 22px rgba(120, 70, 90, 0.10);
}

.hero-subpage {
  padding: 40px 0 24px;
}

.hero-subpage-compact {
  padding-bottom: 16px;
}

.price-row strong {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 980px) {
  :root {
    --header-offset: 88px;
  }

  .header-wrap {
    min-height: 76px;
    gap: 18px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 0.94rem;
  }
}

@media (max-width: 760px) {
  :root {
    --header-offset: 106px;
  }

  .header-wrap {
    padding: 10px 0 12px;
    gap: 10px;
  }

  .logo {
    height: 72px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .main-nav a {
    font-size: 0.84rem;
    letter-spacing: -0.01em;
  }

  .hero-buttons,
  .cta-buttons {
    gap: 10px;
  }

  .hero-buttons .btn,
  .cta-buttons .btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.95rem;
  }

  .hero-subpage {
    padding: 28px 0 10px;
  }

  .price-row {
    gap: 12px;
    padding: 16px 18px;
    align-items: center;
  }

  .price-row span {
    max-width: none;
    min-width: 0;
    font-size: 0.95rem;
  }

  .price-row strong {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  :root {
    --header-offset: 102px;
  }

  .container,
  .narrow {
    width: min(var(--container), calc(100% - 24px));
  }

  .logo {
    height: 68px;
  }

  .main-nav {
    gap: 6px;
  }

  .main-nav a {
    font-size: 0.79rem;
  }

  .hero-buttons .btn,
  .cta-buttons .btn {
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .price-row {
    gap: 10px;
    padding: 15px 16px;
  }

  .price-row span,
  .price-row strong {
    font-size: 0.92rem;
  }
}

/* ===== GALERIA ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.section-tight {
  padding-top: 32px;
}

/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 75vw;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== AKTUALNOŚCI ===== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.news-card h3 {
  margin-top: 12px;
  margin-bottom: 10px;
}

.news-card p {
  color: #555;
  line-height: 1.5;
}

/* ===== TAGI ===== */

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.tag.promo {
  background: #e6f7ec;
  color: #1f7a4c;
}

.tag.new {
  background: #e6f0ff;
  color: #1d4ed8;
}

.tag.tip {
  background: #fff4e6;
  color: #b45309;
}

.news-date {
  font-size: 12px;
  color: #888;
  margin: 6px 0 10px;
}