/* =============================================
   SUBPAGES – sdílené styly pro podstránky
   předporodní péče / doprovod / poporodní
============================================= */

/* ─── PAGE HERO ─── */
.page-hero {
  position: relative;
  height: clamp(420px, 58vh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: grayscale(100%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,8,14,.72) 0%,
    rgba(20,8,14,.30) 50%,
    rgba(20,8,14,.08) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 64px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
  list-style: none;
}

.breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover { color: #fff; }

.bc-sep { color: rgba(255,255,255,.3); }

.eyebrow-ph {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--p3);
  margin-bottom: 12px;
}

.page-hero-content h1 {
  font-family: var(--font-h);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.page-hero-content h1 em {
  font-style: italic;
  color: var(--p3);
}


/* ─── SP INTRO ─── */
.sp-intro {
  padding: 88px 0 72px;
}

.sp-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.sp-intro-text .eyebrow { margin-bottom: 12px; }

.sp-intro-text h2 {
  font-family: var(--font-h);
  font-size: clamp(1.65rem, 2.6vw, 2.3rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0;
}

.sp-intro-text h2 em { font-style: italic; color: var(--p5); }

.sp-intro-divider {
  width: 48px;
  height: 3px;
  background: var(--p5);
  border-radius: 2px;
  margin: 22px 0 24px;
}

.sp-intro-text p {
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 14px;
  font-size: .95rem;
}

.sp-intro-img {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
}

.sp-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}


/* ─── MAIN SERVICES ─── */
.sp-services {
  padding: 80px 0 88px;
  background: var(--p1);
}

.sp-svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}

.sp-svc-card {
  background: #fff;
  border-radius: var(--r);
  padding: 34px 32px 30px;
  box-shadow: 0 2px 16px rgba(100,88,104,.07);
  border-top: 4px solid var(--p2);
  display: flex;
  flex-direction: column;
}

.sp-svc-card.featured {
  border-top-color: var(--p5);
}

.sp-svc-card.full-width {
  grid-column: 1 / -1;
}

.sp-svc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sp-svc-card-head h3 {
  font-family: var(--font-b);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.sp-badge {
  background: #fce4ef;
  color: var(--p5);
  font-size: .67rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .04em;
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-svc-card > p {
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 16px;
  font-size: .92rem;
}

.sp-svc-bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.sp-svc-bullets li {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
  margin-bottom: 7px;
}

.sp-svc-bullets li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--p3);
  font-size: .56rem;
  top: 5px;
}

.sp-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--p1);
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sp-price strong {
  font-size: 1.08rem;
  color: var(--p5);
  font-weight: 700;
}


/* ─── PHOTO GALLERY ─── */
.sp-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 420px;
  overflow: hidden;
}

.sp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-gallery-3 {
  grid-template-columns: 1fr 1fr 1fr;
}


/* ─── CAROUSEL ─── */
.sp-carousel {
  position: relative;
  overflow: hidden;
}

.sp-carousel-track {
  display: flex;
  gap: 4px;
  will-change: transform;
  transition: transform .52s cubic-bezier(.22,1,.36,1);
}

.sp-carousel-track img {
  flex-shrink: 0;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* width set by JS */
}

.sp-car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.88);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .18s, transform .18s;
  z-index: 2;
}

.sp-car-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.09);
}

.sp-car-prev { left: 12px; }
.sp-car-next { right: 12px; }

.sp-car-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.sp-car-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.sp-car-dot.active {
  background: #fff;
  transform: scale(1.35);
}

@media (max-width: 600px) {
  .sp-car-btn { width: 34px; height: 34px; }
}


.sp-svc-where {
  font-size: .84rem;
  color: var(--text-muted);
  background: var(--p1);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  line-height: 1.65;
}
.sp-svc-where strong { color: var(--p5-dark); font-weight: 600; }


/* ─── DOPLŇKOVÉ SLUŽBY ─── */
.sp-doplnkove {
  padding: 80px 0 88px;
  background: var(--p1);
}

.sp-dop-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.sp-dop-heading .eyebrow { margin-bottom: 10px; }

.sp-dop-heading h3 {
  font-family: var(--font-h);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text);
}

.sp-dop-heading h3 em { font-style: italic; color: var(--p5); }

.sp-dop-heading p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

.sp-dop-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sp-dop-item {
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 18px;
  border: 1px solid var(--p2);
}

.sp-dop-item h4 {
  font-family: var(--font-b);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text);
  margin-bottom: 8px;
}

.sp-dop-item p {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.sp-dop-price {
  display: block;
  font-size: .83rem;
  color: var(--p5);
  font-weight: 600;
  margin-top: 10px;
}


/* ─── INLINE CENÍK ─── */
.sp-cenik {
  padding: 80px 0;
  background: var(--p5);
}

.sp-cenik .section-header .eyebrow { color: rgba(255,255,255,.6); }
.sp-cenik .section-header h2 { color: #fff; }
.sp-cenik .section-header h2 em { color: var(--p3); font-style: italic; }
.sp-cenik .divider { background: rgba(255,255,255,.25); }

.sp-cenik-table {
  background: rgba(255,255,255,.09);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12);
}

.sp-cenik-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  gap: 16px;
}

.sp-cenik-row:last-child { border-bottom: none; }

.sp-cr-name {
  font-size: .92rem;
  color: rgba(255,255,255,.82);
  line-height: 1.4;
}

.sp-cr-name small {
  display: block;
  font-size: .74rem;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
}

.sp-cr-price {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  text-align: right;
}

.sp-cr-price.free { color: var(--p3); }


/* ─── SUB-PAGE CTA ─── */
.sp-cta {
  padding: 88px 0;
  text-align: center;
  background: #fff;
}

.sp-cta h2 {
  font-family: var(--font-h);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.sp-cta h2 em { font-style: italic; color: var(--p5); }

.sp-cta p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 34px;
  line-height: 1.75;
  font-size: .95rem;
}

.sp-cta-note {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 14px;
  opacity: .7;
}


/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .sp-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .sp-intro-img { aspect-ratio: 4/3; order: -1; }

  .sp-dop-inner { grid-template-columns: 1fr; gap: 36px; }

  .sp-gallery { height: 280px; }
}

@media (max-width: 768px) {
  .sp-svc-grid { grid-template-columns: 1fr; }
  .sp-svc-card.full-width { grid-column: 1; }

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

  .sp-gallery { height: 200px; }
  .sp-gallery-3 { grid-template-columns: 1fr 1fr; }
  .sp-gallery-3 img:last-child { display: none; }

  .sp-cenik-row { padding: 16px 20px; }
  .sp-cr-price { font-size: .95rem; }
}

@media (max-width: 480px) {
  .page-hero { height: clamp(320px, 50vh, 480px); }
  .page-hero-content { padding: 0 15px 44px; }
  .page-hero-content h1 { font-size: 1.8rem; }

  .sp-intro { padding: 60px 0 52px; }
  .sp-services { padding: 60px 0 68px; }
  .sp-doplnkove { padding: 60px 0 68px; }
  .sp-cta { padding: 64px 0; }
}
