/**
 * WITAL — Redesign v2
 * Styling oparty na KLASACH (nie inline) — sekcje to natywne bloki Gutenberga,
 * header/footer to template-parts PHP. Wszystko scope'owane pod .witalv2-page.
 */

/* ===== Tokeny / baza ===================================================== */
.witalv2-page {
  --c-cream:   #FBF6EE;
  --c-ink:     #20302A;
  --c-muted:   #5C6A62;
  --c-green-1: #16332A;
  --c-green-2: #1F4A3A;
  --c-green-3: #2C6A52;
  --c-green-4: #3F6B4B;
  --c-green-5: #87B38D;
  --c-orange:  #FD7E14;
  --c-orange-d:#E86A00;
  --c-line:    #EADFCE;
  --c-line-2:  #E6D9C6;
  --c-foot:    #12281F;
  --serif: 'Spectral', Georgia, serif;
  --sans: 'Mulish', system-ui, sans-serif;
  --wrap: 1180px;

  font-family: var(--sans);
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}
.witalv2-page *,
.witalv2-page *::before,
.witalv2-page *::after { box-sizing: border-box; }

/* Płynne przewijanie do kotwic (z poszanowaniem ustawień dostępności) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.witalv2-page ::selection { background: var(--c-orange); color: #fff; }
.witalv2-page img { max-width: 100%; height: auto; }

@keyframes v2-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes v2-pop  { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ===== Layout pomocniczy ================================================ */
.witalv2-page .v2-container { max-width: var(--wrap); margin-inline: auto; }
.witalv2-page .v2-container--wide { max-width: 1280px; }
.witalv2-page .v2-container--narrow { max-width: 920px; margin-inline: auto; }

.witalv2-page .v2-section { width: 100%; padding: 90px 28px; }
.witalv2-page .v2-section--cream { background: var(--c-cream); }
.witalv2-page .v2-section--white { background: #fff; }
.witalv2-page .v2-section--green {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--c-green-1), var(--c-green-2) 65%, var(--c-green-3));
}
.witalv2-page .v2-section--green::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 80% at 88% 12%, rgba(253,126,20,.26), transparent 56%);
  pointer-events: none;
}

/* ===== Typografia (klasy na natywnych blokach) ========================== */
.witalv2-page .v2-eyebrow {
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-orange-d); font-size: .82rem; margin: 0 0 14px;
}
.witalv2-page .v2-eyebrow--light { color: var(--c-green-5); }
.witalv2-page .v2-title {
  font-family: var(--serif); font-weight: 600; color: var(--c-green-2);
  font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.12; margin: 0 0 18px;
}
.witalv2-page .v2-title--light { color: #fff; }
.witalv2-page .v2-text { color: var(--c-muted); font-size: 1.16rem; line-height: 1.7; margin: 0 0 18px; }
.witalv2-page .v2-text--light { color: #CBDDD2; }

/* ===== Przyciski ======================================================== */
/* Uwaga: goły .v2-btn--* kwalifikujemy elementem (button./a.), żeby NIE stylować
   wrappera bloku core/button (div.wp-block-button) — inaczej powstaje podwójna pigułka. */
.witalv2-page .wp-block-button.v2-btn--primary .wp-block-button__link,
.witalv2-page button.v2-btn--primary,
.witalv2-page a.v2-btn--primary {
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-d));
  color: #fff; border: none; border-radius: 999px; font-weight: 800;
  padding: 16px 30px; box-shadow: 0 14px 28px -12px rgba(253,126,20,.7);
  text-decoration: none; cursor: pointer; transition: .18s ease; display: inline-block;
}
.witalv2-page button.v2-btn--primary:hover,
.witalv2-page a.v2-btn--primary:hover,
.witalv2-page .wp-block-button.v2-btn--primary .wp-block-button__link:hover {
  transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(253,126,20,.6);
}
.witalv2-page .wp-block-button.v2-btn--ghost .wp-block-button__link,
.witalv2-page button.v2-btn--ghost,
.witalv2-page a.v2-btn--ghost {
  background: rgba(255,255,255,.06); color: #fff; border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 999px; font-weight: 700; padding: 16px 28px; text-decoration: none;
  cursor: pointer; transition: .18s ease; display: inline-block;
}
.witalv2-page button.v2-btn--ghost:hover,
.witalv2-page a.v2-btn--ghost:hover,
.witalv2-page .wp-block-button.v2-btn--ghost .wp-block-button__link:hover { background: rgba(255,255,255,.16); }
.witalv2-page .wp-block-button.v2-btn--ghost-dark .wp-block-button__link,
.witalv2-page button.v2-btn--ghost-dark,
.witalv2-page a.v2-btn--ghost-dark {
  background: transparent; color: var(--c-green-2); border: 1.5px solid var(--c-green-2);
  border-radius: 999px; font-weight: 800; padding: 14px 28px; text-decoration: none;
  cursor: pointer; transition: .18s ease; display: inline-block;
}
.witalv2-page button.v2-btn--ghost-dark:hover,
.witalv2-page a.v2-btn--ghost-dark:hover,
.witalv2-page .wp-block-button.v2-btn--ghost-dark .wp-block-button__link:hover { background: var(--c-green-2); color: #fff; }

/* Wrapper bloku core/button — żadnego tła/obramowania (styl jest na linku) */
.witalv2-page .wp-block-button.v2-btn--primary,
.witalv2-page .wp-block-button.v2-btn--ghost,
.witalv2-page .wp-block-button.v2-btn--ghost-dark { background: none; border: none; padding: 0; box-shadow: none; }

/* ===== TOP BAR ========================================================== */
.witalv2-page .v2-topbar { background: var(--c-green-1); color: #CFE0D6; font-size: .82rem; }
.witalv2-page .v2-topbar__inner {
  max-width: 1280px; margin-inline: auto; padding: 9px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.witalv2-page .v2-topbar__loc { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .04em; }
.witalv2-page .v2-topbar__phone { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; text-decoration: none; }
.witalv2-page .v2-social {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 7px; background: rgba(255,255,255,.14); margin-left: 6px; text-decoration: none;
}

/* ===== HEADER / NAW ===================================================== */
.witalv2-page .v2-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,246,238,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.witalv2-page .v2-header__inner {
  max-width: 1280px; margin-inline: auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.witalv2-page .v2-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.witalv2-page .v2-brand__logo { height: 50px; width: auto; display: block; }
.witalv2-page .v2-brand__tag {
  border-left: 1px solid #E2D2BD; padding-left: 14px; font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; color: var(--c-green-4); text-transform: uppercase; line-height: 1.4;
}
.witalv2-page .v2-nav { display: flex; align-items: center; gap: 2px; }
.witalv2-page .v2-nav__item { position: relative; }
.witalv2-page .v2-nav__link {
  display: flex; align-items: center; gap: 5px; padding: 10px 14px; font-weight: 700;
  font-size: .92rem; letter-spacing: .03em; color: var(--c-ink); text-decoration: none;
  text-transform: uppercase; transition: color .15s ease;
}
.witalv2-page .v2-nav__link:hover { color: var(--c-orange-d); }
.witalv2-page .v2-dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff;
  border: 1px solid var(--c-line); border-radius: 14px; box-shadow: 0 26px 50px -20px rgba(31,74,58,.3);
  padding: 8px; animation: v2-pop .16s ease;
}
.witalv2-page .v2-nav__item:hover .v2-dropdown { display: block; }
.witalv2-page .v2-dropdown a {
  display: block; padding: 11px 14px; border-radius: 9px; text-decoration: none;
  color: var(--c-ink); font-weight: 600; font-size: .92rem; transition: .15s ease;
}
.witalv2-page .v2-dropdown a:hover { background: #F3EADA; transform: translateX(2px); }
.witalv2-page .v2-header .v2-btn--primary { padding: 13px 22px; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }

.witalv2-page .v2-burger {
  display: none; cursor: pointer; border: 1px solid var(--c-line); background: #fff;
  border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center;
}
.witalv2-page .v2-mobile {
  display: none; border-top: 1px solid var(--c-line); background: var(--c-cream);
  padding: 14px 28px 22px; flex-direction: column; gap: 4px;
}
.witalv2-page .v2-mobile a {
  padding: 13px 4px; font-weight: 700; color: var(--c-ink); text-decoration: none;
  border-bottom: 1px solid var(--c-line); text-transform: uppercase; font-size: .95rem;
}
.witalv2-page .v2-mobile a:last-of-type { border-bottom: none; }
.witalv2-page .v2-mobile__cta {
  margin-top: 12px; cursor: pointer; border: none; text-align: center;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-d));
  color: #fff; font-family: inherit; font-weight: 800; padding: 15px; border-radius: 12px; text-transform: uppercase;
}

/* ===== HERO ============================================================= */
.witalv2-page .v2-hero {
  position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden;
  background-color: var(--c-green-1);
  background-image:
    /* dół: zlanie z kremowym tłem strony (miękka krawędź nad formularzem) */
    linear-gradient(180deg, rgba(251,246,238,0) 78%, rgba(251,246,238,.55) 100%),
    /* czytelność tekstu po lewej + zielony tint marki na całym kadrze */
    linear-gradient(110deg, rgba(16,40,30,.9), rgba(22,51,42,.62) 50%, rgba(31,74,58,.5)),
    url("../images/hero.jpg");
  background-size: cover; background-position: center;
  background-blend-mode: normal, multiply, normal;
}
.witalv2-page .v2-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 90% at 92% 18%, rgba(253,126,20,.28), transparent 55%);
  pointer-events: none;
}
.witalv2-page .v2-hero__inner {
  position: relative; z-index: 2; max-width: 1280px; margin-inline: auto;
  padding: 96px 28px 120px; width: 100%;
}
.witalv2-page .v2-hero__box { max-width: 720px; animation: v2-fade .7s ease both; }
.witalv2-page .v2-hero__title {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.015em; margin: 18px 0 0;
}
.witalv2-page .v2-hero__lead { color: #DCE9E1; font-size: 1.26rem; line-height: 1.6; max-width: 600px; margin: 24px 0 0; }

/* Plakietka (badge) */
.witalv2-page .v2-badge {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(135,179,141,.2);
  border: 1px solid rgba(135,179,141,.4); color: #CFE3D4; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin: 0;
}
.witalv2-page .v2-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-orange); display: inline-block;
}

/* ===== PASEK REZERWACJI ================================================= */
.witalv2-page .v2-booking { position: relative; z-index: 5; max-width: 1120px; margin: -60px auto 0; padding: 0 28px; }
.witalv2-page .v2-booking__card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(31,74,58,.45); padding: 22px 24px;
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
}
.witalv2-page .v2-field {
  flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 7px;
  font-weight: 800; color: var(--c-ink); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
}
.witalv2-page .v2-field input,
.witalv2-page .v2-field select,
.v2-modal input:not([type="checkbox"]),
.v2-modal select,
.v2-modal textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--c-line-2);
  border-radius: 11px; outline: none; background: #FBF8F2; color: var(--c-ink);
  height: auto; line-height: 1.3; width: 100%;
}
.v2-modal textarea { resize: vertical; min-height: 84px; }
.v2-modal input:focus, .v2-modal select:focus, .v2-modal textarea:focus { border-color: var(--c-green-3); }
.v2-modal__form .v2-opt { font-weight: 400; color: #8A968E; font-size: .82rem; }
.v2-modal__form .v2-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .85rem; color: #5C6A62; line-height: 1.45; }
.v2-modal__form .v2-check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--c-green-3); }
.v2-modal__form .v2-check a { color: #E86A00; font-weight: 700; }
.v2-modal__form .v2-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.v2-modal__error { margin: 0; color: #B23A2E; font-size: .85rem; font-weight: 700; }

/* ===== O SANATORIUM ==================================================== */
.witalv2-page .v2-grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.witalv2-page .v2-grid-2--even { grid-template-columns: 1fr 1fr; gap: 60px; }
.witalv2-page .v2-checklist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.witalv2-page .v2-checklist li {
  display: flex; gap: 10px; color: var(--c-ink); font-weight: 600; font-size: 1.02rem; align-items: flex-start;
}
.witalv2-page .v2-checklist li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%233F6B4B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
}
.witalv2-page .v2-media {
  border-radius: 24px; overflow: hidden; border: 1px solid var(--c-line-2);
  background: linear-gradient(135deg, #E6EFE7, #C9DECF); position: relative;
  box-shadow: 0 30px 60px -34px rgba(31,74,58,.5);
}
.witalv2-page .v2-media--portrait { aspect-ratio: 4/5; }
.witalv2-page .v2-media__note {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px;
  color: var(--c-green-4); font-family: 'Courier New', monospace; font-size: .75rem; z-index: 1;
}
/* Diagonalna tekstura tylko gdy w ramce NIE ma zdjęcia (placeholder) */
.witalv2-page .v2-media:not(:has(img))::after,
.witalv2-page .v2-ph:not(.v2-ph--warm):not(:has(img))::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(63,107,75,.10) 0 12px, transparent 12px 24px);
}
/* Zdjęcia wypełniające ramki (.v2-media / .v2-ph) */
.witalv2-page .v2-media .wp-block-image,
.witalv2-page .v2-ph .wp-block-image {
  margin: 0; position: absolute; inset: 0; height: 100%; width: 100%;
}
.witalv2-page .v2-media .wp-block-image img,
.witalv2-page .v2-ph .wp-block-image img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0;
}
.witalv2-page .v2-stat-card {
  position: absolute; bottom: -26px; left: -26px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 18px; padding: 20px 24px; box-shadow: 0 24px 48px -24px rgba(31,74,58,.5);
}
.witalv2-page .v2-stat-card__num { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--c-orange); line-height: 1; }
.witalv2-page .v2-stat-card__lbl { color: var(--c-muted); font-weight: 700; margin-top: 4px; font-size: .92rem; }

/* ===== STATY =========================================================== */
.witalv2-page .v2-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; border-top: 1px solid var(--c-line-2); padding-top: 48px; }
.witalv2-page .v2-stats__num { font-family: var(--serif); font-size: clamp(2.2rem,3.4vw,3rem); font-weight: 700; color: var(--c-green-2); line-height: 1; }
.witalv2-page .v2-stats__lbl { color: var(--c-muted); font-weight: 600; margin-top: 8px; }
.witalv2-page .v2-stats--light .v2-stats__num { color: var(--c-orange); }
.witalv2-page .v2-stats--light .v2-stats__lbl { color: #A9C3B5; }
.witalv2-page .v2-stats--inline { display: flex; gap: 38px; flex-wrap: wrap; border: none; padding: 0; }

/* ===== LECZENIE ======================================================== */
.witalv2-page .v2-grid-lecz { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.witalv2-page .v2-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.witalv2-page .v2-tag { background: #F3EADA; border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--c-green-4); font-size: .9rem; }
.witalv2-page .v2-lecz-list { counter-reset: lecz; display: flex; flex-direction: column; }
.witalv2-page .v2-lecz-list .v2-lecz-item { padding: 26px 4px; border-bottom: 1px solid var(--c-line); position: relative; padding-left: 60px; }
.witalv2-page .v2-lecz-list .v2-lecz-item:last-child { border-bottom: none; }
.witalv2-page .v2-lecz-list .v2-lecz-item::before {
  counter-increment: lecz; content: "0" counter(lecz);
  position: absolute; left: 4px; top: 26px; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--c-green-5); width: 38px;
}
.witalv2-page .v2-lecz-item h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 6px; color: var(--c-ink); }
.witalv2-page .v2-lecz-item p { margin: 0; color: var(--c-muted); font-size: 1.04rem; line-height: 1.55; }

/* ===== PAKIETY (tabela) ================================================ */
.witalv2-page .v2-pricing { overflow-x: auto; border-radius: 22px; border: 1px solid var(--c-line); box-shadow: 0 30px 60px -34px rgba(31,74,58,.4); background: #fff; margin: 0; }
.witalv2-page .v2-pricing table { width: 100%; min-width: 780px; border-collapse: collapse; }
.witalv2-page .v2-pricing th,
.witalv2-page .v2-pricing td { padding: 16px 18px; text-align: center; border: none; border-left: 1px solid #EFE6D6; border-top: 1px solid #EFE6D6; color: var(--c-ink); }
.witalv2-page .v2-pricing thead th { border-top: none; }
.witalv2-page .v2-pricing thead th { padding: 26px 18px; }
.witalv2-page .v2-pricing tbody tr:nth-child(even) { background: #FCFAF5; }
.witalv2-page .v2-pricing th:first-child,
.witalv2-page .v2-pricing td:first-child { text-align: left; border-left: none; font-weight: 700; color: var(--c-ink); padding-left: 24px; }
.witalv2-page .v2-pricing__name { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c-green-4); font-size: .82rem; }
.witalv2-page .v2-pricing__price { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--c-ink); }
.witalv2-page .v2-pricing__cur { color: #8A968E; font-weight: 700; }
/* Wyróżniona kolumna „Premium" = 4. kolumna */
.witalv2-page .v2-pricing th:nth-child(4) { background: linear-gradient(160deg, var(--c-green-2), var(--c-green-1)); color: #fff; position: relative; }
.witalv2-page .v2-pricing th:nth-child(4) .v2-pricing__name { color: var(--c-green-5); }
.witalv2-page .v2-pricing th:nth-child(4) .v2-pricing__price { color: #fff; }
.witalv2-page .v2-pricing td:nth-child(4) { background: #F4F8F5; color: var(--c-green-1); font-weight: 700; }
.witalv2-page .v2-pricing .v2-yes::before {
  content: ""; display: inline-block; width: 20px; height: 20px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233F6B4B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
}
.witalv2-page .v2-pricing .v2-no { color: #C9BBA6; }
.witalv2-page .v2-pricing-cta { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 14px; margin-top: 18px; align-items: center; }
.witalv2-page .v2-pricing-note { text-align: center; margin: 26px 0 0; color: var(--c-muted); font-size: 1rem; }
.witalv2-page .v2-pricing-note a { color: var(--c-orange-d); font-weight: 700; }

/* ===== KLIMAT / GALERIA — mozaiki ====================================== */
.witalv2-page .v2-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.witalv2-page .v2-mosaic .v2-ph { border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); position: relative; }
.witalv2-page .v2-ph {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #8FBA97, #6B9879);
}
.witalv2-page .v2-ph--soft { background: linear-gradient(135deg, #E6EFE7, #C9DECF); }
.witalv2-page .v2-ph--warm { background: linear-gradient(135deg, #FFE0CC, #FBC79E); }
.witalv2-page .v2-ph--tall { grid-row: span 2; } /* wypełnia wysokość 2 wierszy (jak w projekcie) */
.witalv2-page .v2-ph--square { aspect-ratio: 1/1; }
.witalv2-page .v2-ph__note {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px;
  color: rgba(22,51,42,.66); font-family: 'Courier New', monospace; font-size: .7rem; z-index: 1;
}
.witalv2-page .v2-gallery { display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 180px; gap: 14px; }
.witalv2-page .v2-gallery .v2-ph { transition: transform .4s ease; }
.witalv2-page .v2-gallery .v2-ph:hover { transform: scale(1.04); }
.witalv2-page .v2-gallery .v2-ph--big { grid-column: span 2; grid-row: span 2; }
.witalv2-page .v2-gallery .v2-ph--wide { grid-column: span 2; }
.witalv2-page .v2-gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.witalv2-page .v2-link { font-weight: 700; color: var(--c-green-4); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.witalv2-page .v2-link:hover { color: var(--c-orange-d); }

/* ===== OPINIA ========================================================== */
.witalv2-page .v2-quote { font-family: var(--serif); font-size: clamp(1.7rem,3.2vw,2.5rem); line-height: 1.35; color: var(--c-green-2); margin: 0 0 28px; font-weight: 500; }
.witalv2-page .v2-stars { color: var(--c-orange); font-size: 1.3rem; margin: 0 0 22px; letter-spacing: 2px; }
.witalv2-page .v2-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.witalv2-page .v2-avatar { width: 50px; height: 50px; border-radius: 50%; background: #E6EFE7; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--c-green-4); font-size: 1.05rem; }

/* ===== CTA BAND ======================================================== */
.witalv2-page .v2-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.witalv2-page .v2-tel-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--c-orange); color: #fff; font-weight: 800; font-size: 1.1rem; padding: 18px 32px; border-radius: 999px; text-decoration: none; box-shadow: 0 16px 32px -14px rgba(253,126,20,.8); }

/* ===== FOOTER ========================================================== */
.witalv2-page .v2-footer { background: var(--c-foot); color: #B7CCC0; padding: 64px 28px 30px; }
.witalv2-page .v2-footer__grid { max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.witalv2-page .v2-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.witalv2-page .v2-footer__col { display: flex; flex-direction: column; gap: 10px; }
.witalv2-page .v2-footer a { color: #B7CCC0; text-decoration: none; transition: .15s ease; }
.witalv2-page .v2-footer a:hover { color: var(--c-orange); }
.witalv2-page .v2-footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.witalv2-page .v2-footer__brand img { height: 46px; width: auto; }
.witalv2-page .v2-footer__brand span { border-left: 1px solid rgba(255,255,255,.2); padding-left: 14px; font-size: .68rem; font-weight: 700; letter-spacing: .2em; color: var(--c-green-5); text-transform: uppercase; line-height: 1.4; }
.witalv2-page .v2-footer__about { margin: 0 0 18px; line-height: 1.6; font-size: .98rem; max-width: 320px; }
.witalv2-page .v2-footer__phone { display: block; color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.witalv2-page .v2-footer__bar { max-width: var(--wrap); margin: 42px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; color: #7E938A; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.witalv2-page .v2-footer__credit a { color: #A9BBB2; font-weight: 700; }
.witalv2-page .v2-footer__credit a:hover { color: var(--c-orange); }

/* ===== STICKY CTA + MODAL ============================================== */
.witalv2-page .v2-sticky {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; cursor: pointer; border: none;
  background: linear-gradient(135deg, var(--c-orange), var(--c-orange-d)); color: #fff;
  font-family: inherit; font-weight: 800; font-size: 1rem; padding: 16px 24px; border-radius: 999px;
  box-shadow: 0 18px 40px -12px rgba(253,126,20,.8); display: inline-flex; align-items: center; gap: 10px; transition: .2s ease;
}
.witalv2-page .v2-sticky:hover { transform: translateY(-3px) scale(1.02); }
.v2-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(18,40,31,.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
  font-family: 'Mulish', system-ui, sans-serif;
}
.v2-modal__box { background: #fff; border-radius: 22px; max-width: 480px; width: 100%; padding: 38px 36px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); animation: v2-pop .24s ease; max-height: 92vh; overflow: auto; }
.v2-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.v2-modal__title { font-family: 'Spectral', serif; font-weight: 700; font-size: 1.8rem; margin: 0; color: #1F4A3A; }
.v2-modal__close { cursor: pointer; border: none; background: #F3EADA; border-radius: 10px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.v2-modal__close svg { width: 20px; height: 20px; flex-shrink: 0; }
.v2-modal__intro { margin: 0 0 24px; color: #5C6A62; font-size: 1rem; line-height: 1.5; }
.v2-modal__form { display: flex; flex-direction: column; gap: 14px; }
.v2-modal__form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: #20302A; font-size: .9rem; }
.v2-modal__submit { margin-top: 6px; cursor: pointer; border: none; background: linear-gradient(135deg,#FD7E14,#E86A00); color: #fff; font-family: inherit; font-weight: 800; font-size: 1.05rem; padding: 16px; border-radius: 13px; box-shadow: 0 14px 28px -12px rgba(253,126,20,.7); }
.v2-modal__hint { margin: 2px 0 0; text-align: center; color: #8A968E; font-size: .82rem; }
.v2-modal__hint a { color: #E86A00; font-weight: 700; }
.v2-modal__ok { text-align: center; padding: 14px 0; display: none; }
.v2-modal__ok-icon { width: 72px; height: 72px; border-radius: 50%; background: #E6EFE7; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.v2-modal__close-btn { cursor: pointer; border: none; background: #1F4A3A; color: #fff; font-family: inherit; font-weight: 800; font-size: 1rem; padding: 14px 30px; border-radius: 12px; }

/* Astra styluje globalnie button:hover/:focus (niebieskie tło) — nasze przyciski
   muszą mieć własny stan hover/focus o wyższej specyficzności. */
.v2-modal__close:hover, .v2-modal__close:focus { background: #E9DCC4; }
.v2-modal__submit:hover, .v2-modal__submit:focus { background: linear-gradient(135deg,#E86A00,#D65F00); color: #fff; }
.v2-modal__close-btn:hover, .v2-modal__close-btn:focus { background: #163A2C; color: #fff; }

/* ===== Helpery + korekty natywnych bloków ============================== */
.witalv2-page .v2-rel { position: relative; }
.witalv2-page .v2-center { text-align: center; }
.witalv2-page .v2-center .v2-container--narrow,
.witalv2-page .v2-container--narrow.v2-center { margin-inline: auto; }

/* Treść ponad dekoracyjnym tłem zielonych sekcji */
.witalv2-page .v2-section--green > * { position: relative; z-index: 1; }

/* Reset domyślnych marginesów akapitów użytych jako etykiety/liczby */
.witalv2-page .v2-eyebrow,
.witalv2-page .v2-badge,
.witalv2-page .v2-stats__num,
.witalv2-page .v2-stats__lbl,
.witalv2-page .v2-stat-card__num,
.witalv2-page .v2-stat-card__lbl,
.witalv2-page .v2-tag,
.witalv2-page .v2-media__note,
.witalv2-page .v2-ph__note,
.witalv2-page .v2-stars,
.witalv2-page .v2-avatar { margin-top: 0; margin-bottom: 0; }
.witalv2-page .v2-eyebrow { margin-bottom: 14px; }
.witalv2-page .v2-stars { margin-bottom: 22px; }
.witalv2-page .v2-stats__lbl { margin-top: 8px; }

/* Grupy WP nie powinny dawać własnego prześwitu tam, gdzie sterujemy gridem */
.witalv2-page .v2-grid-2 > *,
.witalv2-page .v2-grid-lecz > *,
.witalv2-page .v2-stats > *,
.witalv2-page .v2-mosaic > *,
.witalv2-page .v2-gallery > * { margin: 0; }

/* ===== PODSTRONY (subpages) ============================================= */
/* Kotwice nie chowają się pod sticky-headerem */
.witalv2-page .v2-section[id] { scroll-margin-top: 92px; }

/* Lekki nagłówek podstrony */
.witalv2-page .v2-subhero {
  position: relative; width: 100%;
  padding: 64px 28px 58px;
  background: var(--c-green-1); color: #fff; overflow: hidden;
}
.witalv2-page .v2-subhero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 82% -20%, rgba(63,107,75,.55), transparent 60%);
}
.witalv2-page .v2-subhero__inner { position: relative; z-index: 1; max-width: var(--wrap); margin-inline: auto; animation: v2-fade .6s ease both; }
.witalv2-page .v2-subhero__crumbs { font-size: .85rem; color: var(--c-green-5); letter-spacing: .03em; margin: 0 0 14px; }
.witalv2-page .v2-subhero__crumbs a { color: var(--c-green-5); text-decoration: none; }
.witalv2-page .v2-subhero__crumbs a:hover { color: #fff; }
.witalv2-page .v2-subhero__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: 0; color: #fff; }
.witalv2-page .v2-subhero__lead { color: #DCE9E1; font-size: 1.16rem; line-height: 1.6; max-width: 640px; margin: 18px 0 0; }

/* Sticky pasek kotwic (jump-nav) — zbudowany z bloku „Przyciski" */
.witalv2-page .v2-pagenav {
  position: sticky; top: 79px; z-index: 50; margin: 0; width: 100%;
  background: rgba(251,246,238,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.witalv2-page .v2-pagenav.wp-block-buttons {
  max-width: var(--wrap); margin-inline: auto; padding: 4px 28px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.witalv2-page .v2-pagenav .wp-block-button__link {
  background: transparent; color: var(--c-muted); border: none; border-radius: 0;
  padding: 16px 2px; margin-right: 22px; font-weight: 700; font-size: .92rem;
  border-bottom: 2px solid transparent;
}
.witalv2-page .v2-pagenav .wp-block-button__link:hover { color: var(--c-green-3); border-bottom-color: var(--c-green-5); }

/* Karty grup zabiegowych */
.witalv2-page .v2-zabieg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.witalv2-page .v2-zabieg {
  background: #fff; border: 1px solid var(--c-line); border-radius: 18px;
  padding: 30px 30px 22px; transition: box-shadow .25s ease, transform .25s ease;
}
.witalv2-page .v2-zabieg:hover { box-shadow: 0 18px 40px -22px rgba(22,51,42,.4); transform: translateY(-3px); }
.witalv2-page .v2-zabieg h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 0 0 6px; color: var(--c-ink); }
.witalv2-page .v2-zabieg__intro { color: var(--c-muted); margin: 0 0 14px; line-height: 1.6; }
.witalv2-page .v2-zabieg__list.wp-block-list { list-style: none; margin: 0; padding: 0; }
.witalv2-page .v2-zabieg__list.wp-block-list li { padding: 13px 0; border-top: 1px solid var(--c-line); line-height: 1.55; color: var(--c-ink); }
.witalv2-page .v2-zabieg__list.wp-block-list li:first-child { border-top: none; }
.witalv2-page .v2-zabieg__list.wp-block-list strong { color: var(--c-green-3); }

/* Kroki / lista numerowana w bloku informacyjnym */
.witalv2-page .v2-steps.wp-block-list { padding-left: 0; list-style: none; counter-reset: v2step; margin: 0; }
.witalv2-page .v2-steps.wp-block-list li { position: relative; counter-increment: v2step; padding: 0 0 18px 52px; line-height: 1.55; }
.witalv2-page .v2-steps.wp-block-list li::before {
  content: counter(v2step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--c-green-3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
}
.witalv2-page .v2-info-card { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; padding: 32px; }
.witalv2-page .v2-info-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0 0 20px; }

/* ===== POBYTY I CENNIK ================================================== */
/* Kafelki pakietów */
.witalv2-page .v2-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.witalv2-page .v2-tier { background: #fff; border: 1px solid var(--c-line); border-radius: 18px; padding: 30px 24px 26px; display: flex; flex-direction: column; }
.witalv2-page .v2-tier--featured { border: 2px solid var(--c-green-3); box-shadow: 0 26px 54px -28px rgba(31,74,58,.5); }
.witalv2-page .v2-tier__name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; margin: 0; color: var(--c-ink); }
.witalv2-page .v2-tier__price { margin: 14px 0 0; font-size: 2rem; font-weight: 800; color: var(--c-green-3); line-height: 1; }
.witalv2-page .v2-tier__per { margin: 4px 0 0; font-size: .85rem; color: var(--c-muted); }
.witalv2-page .v2-tier__list.wp-block-list { list-style: none; margin: 18px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--c-line); flex: 1 1 auto; }
.witalv2-page .v2-tier__list.wp-block-list li { padding: 7px 0 7px 26px; position: relative; line-height: 1.45; }
.witalv2-page .v2-tier__list.wp-block-list li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--c-green-3); font-weight: 800; }
.witalv2-page .v2-tier .wp-block-button { margin-top: auto; }

/* Rozwijane kategorie cennika (blok „Szczegóły") */
.witalv2-page .v2-acc.wp-block-details { background: #fff; border: 1px solid var(--c-line); border-radius: 14px; padding: 2px 24px; margin: 0 0 12px; }
.witalv2-page .v2-acc.wp-block-details summary { cursor: pointer; padding: 18px 0; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--c-ink); list-style: none; }
.witalv2-page .v2-acc.wp-block-details summary::-webkit-details-marker { display: none; }
.witalv2-page .v2-acc.wp-block-details summary::after { content: "+"; float: right; color: var(--c-green-3); font-size: 1.5rem; line-height: 1; }
.witalv2-page .v2-acc.wp-block-details[open] summary::after { content: "–"; }

/* Wideo (osadzenie YouTube) */
.witalv2-page .v2-video { margin: 32px auto 0; max-width: 860px; }
.witalv2-page .v2-video .wp-block-embed__wrapper { border-radius: 18px; overflow: hidden; box-shadow: 0 26px 54px -30px rgba(22,51,42,.55); }
.witalv2-page .v2-video iframe { display: block; width: 100%; border: 0; }

/* Mapa kontaktowa */
.witalv2-page .v2-map { border-radius: 18px; overflow: hidden; border: 1px solid var(--c-line); box-shadow: 0 26px 54px -30px rgba(22,51,42,.45); line-height: 0; height: 100%; min-height: 360px; }
.witalv2-page .v2-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; }

/* Strona regulaminu / treść prawna */
.witalv2-page .v2-legal { max-width: 860px; }
.witalv2-page .v2-legal h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 34px 0 10px; color: var(--c-ink); }
.witalv2-page .v2-legal p, .witalv2-page .v2-legal li { color: var(--c-muted); line-height: 1.7; }
.witalv2-page .v2-legal ul { padding-left: 20px; }
.witalv2-page .v2-legal li { margin: 6px 0; }

.witalv2-page .v2-tags--center { justify-content: center; }

.witalv2-page .v2-mt-l { margin-top: 44px; }
.witalv2-page .v2-mt-xl { margin-top: 52px; }

/* Tabela cennika (nazwa + ceny) */
.witalv2-page .v2-cennik { margin: 0 0 18px; overflow-x: auto; }
.witalv2-page .v2-cennik table { width: 100%; border-collapse: collapse; }
.witalv2-page .v2-cennik th, .witalv2-page .v2-cennik td { padding: 11px 8px; border: none; border-bottom: 1px solid var(--c-line); text-align: right; color: var(--c-ink); }
.witalv2-page .v2-cennik th { color: var(--c-muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.witalv2-page .v2-cennik td:first-child, .witalv2-page .v2-cennik th:first-child { text-align: left; font-weight: 600; }
.witalv2-page .v2-cennik tr:last-child td { border-bottom: none; }

/* ===== RESPONSYWNOŚĆ =================================================== */
@media (max-width: 1024px) {
  .witalv2-page .v2-nav,
  .witalv2-page .v2-header .v2-btn--primary { display: none !important; }
  .witalv2-page .v2-burger { display: flex !important; }
}
@media (max-width: 980px) {
  .witalv2-page .v2-grid-2,
  .witalv2-page .v2-grid-2--even,
  .witalv2-page .v2-grid-lecz { grid-template-columns: 1fr !important; }
  .witalv2-page .v2-zabieg-grid { grid-template-columns: 1fr; }
  .witalv2-page .v2-tiers { grid-template-columns: repeat(2,1fr); }
  .witalv2-page .v2-stats { grid-template-columns: repeat(3,1fr); }
  .witalv2-page .v2-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .witalv2-page .v2-section { padding: 64px 20px; }
  .witalv2-page .v2-tiers { grid-template-columns: 1fr; }
  .witalv2-page .v2-gallery { grid-template-columns: 1fr 1fr; }
  .witalv2-page .v2-booking__card { flex-direction: column; align-items: stretch; }
  .witalv2-page .v2-booking__card > * { width: 100%; }
  .witalv2-page .v2-pricing-cta { grid-template-columns: 1fr 1fr; }
  .witalv2-page .v2-footer__grid { grid-template-columns: 1fr; }
}

/* ===== PASEK ZDJĘĆ (podstrony) ======================================== */
.witalv2-page .v2-photoband { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.witalv2-page .v2-photoband .v2-ph { aspect-ratio: 4 / 3; transition: transform .4s ease; }
.witalv2-page .v2-photoband .v2-ph:hover { transform: scale(1.03); }
.witalv2-page .v2-photoband > * { margin: 0; }
@media (max-width: 880px) { .witalv2-page .v2-photoband { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .witalv2-page .v2-photoband { grid-template-columns: 1fr; } }

/* ===== BANER ZDJĘCIOWY (pojedyncze szerokie zdjęcie, np. Kontakt) ====== */
.witalv2-page .v2-banner {
  position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--c-line-2);
  box-shadow: 0 30px 60px -34px rgba(31,74,58,.5); aspect-ratio: 16 / 7; margin-top: 44px;
}
.witalv2-page .v2-banner .wp-block-image { margin: 0; position: absolute; inset: 0; height: 100%; width: 100%; }
.witalv2-page .v2-banner .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 680px) { .witalv2-page .v2-banner { aspect-ratio: 4 / 3; } }

/* ===== ZDJĘCIE W KOLUMNIE KONTAKTU (pod danymi, obok mapy) ============ */
.witalv2-page .v2-contact-col { display: flex; flex-direction: column; gap: 24px; height: 100%; }
.witalv2-page .v2-contact-photo {
  position: relative; flex: 1 1 auto; min-height: 200px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--c-line); box-shadow: 0 26px 54px -30px rgba(22,51,42,.45);
}
.witalv2-page .v2-contact-photo .wp-block-image { margin: 0; position: absolute; inset: 0; height: 100%; width: 100%; }
.witalv2-page .v2-contact-photo .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== LIGHTBOX (galeria + mozaika + pasek + baner + kontakt) ========= */
.witalv2-page .v2-gallery .v2-frame-img img,
.witalv2-page .v2-mosaic .v2-frame-img img,
.witalv2-page .v2-photoband .v2-frame-img img,
.witalv2-page .v2-banner .v2-frame-img img,
.witalv2-page .v2-contact-photo .v2-frame-img img { cursor: zoom-in; }
.witalv2-page .v2-link { cursor: pointer; }

.v2-lb { position: fixed; inset: 0; z-index: 9999; display: none;
  background: rgba(18, 26, 22, .94); backdrop-filter: blur(2px);
  align-items: center; justify-content: center; }
.v2-lb.is-open { display: flex; }
.v2-lb__stage { position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 56px 72px; box-sizing: border-box; }
.v2-lb__img { max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 6px; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.v2-lb__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  color: rgba(255,255,255,.86); font-family: Mulish, sans-serif; font-size: .95rem; letter-spacing: .01em; }
.v2-lb__count { position: absolute; top: 20px; left: 24px; color: rgba(255,255,255,.7);
  font-family: Mulish, sans-serif; font-size: .9rem; }
.v2-lb__btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.v2-lb__btn:hover { background: rgba(255,255,255,.26); }
.v2-lb__close { top: 16px; right: 20px; }
.v2-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.v2-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 680px) {
  .v2-lb__stage { padding: 56px 12px; }
  .v2-lb__prev { left: 6px; } .v2-lb__next { right: 6px; }
  .v2-lb__btn { width: 42px; height: 42px; }
}

/* ---------- Bon podarunkowy (#bon, Pobyty i cennik) ---------- */
.witalv2-page .v2-bon-img { margin: 30px auto 6px; max-width: 660px; }
.witalv2-page .v2-bon-img img { width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 20px 48px rgba(15, 61, 42, .25); cursor: zoom-in; }
